You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19786 lines
543 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="socat.c"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. FIPSLD_CC
  574. LIBOBJS
  575. FILAN
  576. SSLCLS
  577. SYCLS
  578. HAVE_FIPSLD
  579. EGREP
  580. GREP
  581. CPP
  582. AR
  583. RANLIB
  584. OBJEXT
  585. EXEEXT
  586. ac_ct_CC
  587. CPPFLAGS
  588. LDFLAGS
  589. CFLAGS
  590. CC
  591. INSTALL_DATA
  592. INSTALL_SCRIPT
  593. INSTALL_PROGRAM
  594. SYSDEFS
  595. target_alias
  596. host_alias
  597. build_alias
  598. LIBS
  599. ECHO_T
  600. ECHO_N
  601. ECHO_C
  602. DEFS
  603. mandir
  604. localedir
  605. libdir
  606. psdir
  607. pdfdir
  608. dvidir
  609. htmldir
  610. infodir
  611. docdir
  612. oldincludedir
  613. includedir
  614. runstatedir
  615. localstatedir
  616. sharedstatedir
  617. sysconfdir
  618. datadir
  619. datarootdir
  620. libexecdir
  621. sbindir
  622. bindir
  623. program_transform_name
  624. prefix
  625. exec_prefix
  626. PACKAGE_URL
  627. PACKAGE_BUGREPORT
  628. PACKAGE_STRING
  629. PACKAGE_VERSION
  630. PACKAGE_TARNAME
  631. PACKAGE_NAME
  632. PATH_SEPARATOR
  633. SHELL'
  634. ac_subst_files=''
  635. ac_user_opts='
  636. enable_option_checking
  637. enable_help
  638. enable_stdio
  639. enable_fdnum
  640. enable_file
  641. enable_creat
  642. enable_gopen
  643. enable_pipe
  644. enable_termios
  645. enable_unix
  646. enable_abstract_unixsocket
  647. enable_ip4
  648. enable_ip6
  649. enable_rawip
  650. enable_genericsocket
  651. enable_interface
  652. enable_tcp
  653. enable_udp
  654. enable_sctp
  655. enable_listen
  656. enable_socks4
  657. enable_socks4a
  658. enable_proxy
  659. enable_exec
  660. enable_system
  661. enable_pty
  662. enable_ext2
  663. enable_readline
  664. enable_openssl
  665. enable_openssl_method
  666. enable_res_deprecated
  667. enable_fips
  668. enable_tun
  669. enable_sycls
  670. enable_filan
  671. enable_retry
  672. enable_msglevel
  673. enable_libwrap
  674. '
  675. ac_precious_vars='build_alias
  676. host_alias
  677. target_alias
  678. CC
  679. CFLAGS
  680. LDFLAGS
  681. LIBS
  682. CPPFLAGS
  683. CPP'
  684. # Initialize some variables set by options.
  685. ac_init_help=
  686. ac_init_version=false
  687. ac_unrecognized_opts=
  688. ac_unrecognized_sep=
  689. # The variables have the same names as the options, with
  690. # dashes changed to underlines.
  691. cache_file=/dev/null
  692. exec_prefix=NONE
  693. no_create=
  694. no_recursion=
  695. prefix=NONE
  696. program_prefix=NONE
  697. program_suffix=NONE
  698. program_transform_name=s,x,x,
  699. silent=
  700. site=
  701. srcdir=
  702. verbose=
  703. x_includes=NONE
  704. x_libraries=NONE
  705. # Installation directory options.
  706. # These are left unexpanded so users can "make install exec_prefix=/foo"
  707. # and all the variables that are supposed to be based on exec_prefix
  708. # by default will actually change.
  709. # Use braces instead of parens because sh, perl, etc. also accept them.
  710. # (The list follows the same order as the GNU Coding Standards.)
  711. bindir='${exec_prefix}/bin'
  712. sbindir='${exec_prefix}/sbin'
  713. libexecdir='${exec_prefix}/libexec'
  714. datarootdir='${prefix}/share'
  715. datadir='${datarootdir}'
  716. sysconfdir='${prefix}/etc'
  717. sharedstatedir='${prefix}/com'
  718. localstatedir='${prefix}/var'
  719. runstatedir='${localstatedir}/run'
  720. includedir='${prefix}/include'
  721. oldincludedir='/usr/include'
  722. docdir='${datarootdir}/doc/${PACKAGE}'
  723. infodir='${datarootdir}/info'
  724. htmldir='${docdir}'
  725. dvidir='${docdir}'
  726. pdfdir='${docdir}'
  727. psdir='${docdir}'
  728. libdir='${exec_prefix}/lib'
  729. localedir='${datarootdir}/locale'
  730. mandir='${datarootdir}/man'
  731. ac_prev=
  732. ac_dashdash=
  733. for ac_option
  734. do
  735. # If the previous option needs an argument, assign it.
  736. if test -n "$ac_prev"; then
  737. eval $ac_prev=\$ac_option
  738. ac_prev=
  739. continue
  740. fi
  741. case $ac_option in
  742. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  743. *=) ac_optarg= ;;
  744. *) ac_optarg=yes ;;
  745. esac
  746. # Accept the important Cygnus configure options, so we can diagnose typos.
  747. case $ac_dashdash$ac_option in
  748. --)
  749. ac_dashdash=yes ;;
  750. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  751. ac_prev=bindir ;;
  752. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  753. bindir=$ac_optarg ;;
  754. -build | --build | --buil | --bui | --bu)
  755. ac_prev=build_alias ;;
  756. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  757. build_alias=$ac_optarg ;;
  758. -cache-file | --cache-file | --cache-fil | --cache-fi \
  759. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  760. ac_prev=cache_file ;;
  761. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  762. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  763. cache_file=$ac_optarg ;;
  764. --config-cache | -C)
  765. cache_file=config.cache ;;
  766. -datadir | --datadir | --datadi | --datad)
  767. ac_prev=datadir ;;
  768. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  769. datadir=$ac_optarg ;;
  770. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  771. | --dataroo | --dataro | --datar)
  772. ac_prev=datarootdir ;;
  773. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  774. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  775. datarootdir=$ac_optarg ;;
  776. -disable-* | --disable-*)
  777. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  778. # Reject names that are not valid shell variable names.
  779. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  780. as_fn_error $? "invalid feature name: $ac_useropt"
  781. ac_useropt_orig=$ac_useropt
  782. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  783. case $ac_user_opts in
  784. *"
  785. "enable_$ac_useropt"
  786. "*) ;;
  787. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  788. ac_unrecognized_sep=', ';;
  789. esac
  790. eval enable_$ac_useropt=no ;;
  791. -docdir | --docdir | --docdi | --doc | --do)
  792. ac_prev=docdir ;;
  793. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  794. docdir=$ac_optarg ;;
  795. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  796. ac_prev=dvidir ;;
  797. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  798. dvidir=$ac_optarg ;;
  799. -enable-* | --enable-*)
  800. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  801. # Reject names that are not valid shell variable names.
  802. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  803. as_fn_error $? "invalid feature name: $ac_useropt"
  804. ac_useropt_orig=$ac_useropt
  805. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  806. case $ac_user_opts in
  807. *"
  808. "enable_$ac_useropt"
  809. "*) ;;
  810. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  811. ac_unrecognized_sep=', ';;
  812. esac
  813. eval enable_$ac_useropt=\$ac_optarg ;;
  814. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  815. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  816. | --exec | --exe | --ex)
  817. ac_prev=exec_prefix ;;
  818. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  819. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  820. | --exec=* | --exe=* | --ex=*)
  821. exec_prefix=$ac_optarg ;;
  822. -gas | --gas | --ga | --g)
  823. # Obsolete; use --with-gas.
  824. with_gas=yes ;;
  825. -help | --help | --hel | --he | -h)
  826. ac_init_help=long ;;
  827. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  828. ac_init_help=recursive ;;
  829. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  830. ac_init_help=short ;;
  831. -host | --host | --hos | --ho)
  832. ac_prev=host_alias ;;
  833. -host=* | --host=* | --hos=* | --ho=*)
  834. host_alias=$ac_optarg ;;
  835. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  836. ac_prev=htmldir ;;
  837. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  838. | --ht=*)
  839. htmldir=$ac_optarg ;;
  840. -includedir | --includedir | --includedi | --included | --include \
  841. | --includ | --inclu | --incl | --inc)
  842. ac_prev=includedir ;;
  843. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  844. | --includ=* | --inclu=* | --incl=* | --inc=*)
  845. includedir=$ac_optarg ;;
  846. -infodir | --infodir | --infodi | --infod | --info | --inf)
  847. ac_prev=infodir ;;
  848. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  849. infodir=$ac_optarg ;;
  850. -libdir | --libdir | --libdi | --libd)
  851. ac_prev=libdir ;;
  852. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  853. libdir=$ac_optarg ;;
  854. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  855. | --libexe | --libex | --libe)
  856. ac_prev=libexecdir ;;
  857. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  858. | --libexe=* | --libex=* | --libe=*)
  859. libexecdir=$ac_optarg ;;
  860. -localedir | --localedir | --localedi | --localed | --locale)
  861. ac_prev=localedir ;;
  862. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  863. localedir=$ac_optarg ;;
  864. -localstatedir | --localstatedir | --localstatedi | --localstated \
  865. | --localstate | --localstat | --localsta | --localst | --locals)
  866. ac_prev=localstatedir ;;
  867. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  868. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  869. localstatedir=$ac_optarg ;;
  870. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  871. ac_prev=mandir ;;
  872. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  873. mandir=$ac_optarg ;;
  874. -nfp | --nfp | --nf)
  875. # Obsolete; use --without-fp.
  876. with_fp=no ;;
  877. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  878. | --no-cr | --no-c | -n)
  879. no_create=yes ;;
  880. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  881. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  882. no_recursion=yes ;;
  883. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  884. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  885. | --oldin | --oldi | --old | --ol | --o)
  886. ac_prev=oldincludedir ;;
  887. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  888. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  889. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  890. oldincludedir=$ac_optarg ;;
  891. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  892. ac_prev=prefix ;;
  893. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  894. prefix=$ac_optarg ;;
  895. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  896. | --program-pre | --program-pr | --program-p)
  897. ac_prev=program_prefix ;;
  898. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  899. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  900. program_prefix=$ac_optarg ;;
  901. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  902. | --program-suf | --program-su | --program-s)
  903. ac_prev=program_suffix ;;
  904. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  905. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  906. program_suffix=$ac_optarg ;;
  907. -program-transform-name | --program-transform-name \
  908. | --program-transform-nam | --program-transform-na \
  909. | --program-transform-n | --program-transform- \
  910. | --program-transform | --program-transfor \
  911. | --program-transfo | --program-transf \
  912. | --program-trans | --program-tran \
  913. | --progr-tra | --program-tr | --program-t)
  914. ac_prev=program_transform_name ;;
  915. -program-transform-name=* | --program-transform-name=* \
  916. | --program-transform-nam=* | --program-transform-na=* \
  917. | --program-transform-n=* | --program-transform-=* \
  918. | --program-transform=* | --program-transfor=* \
  919. | --program-transfo=* | --program-transf=* \
  920. | --program-trans=* | --program-tran=* \
  921. | --progr-tra=* | --program-tr=* | --program-t=*)
  922. program_transform_name=$ac_optarg ;;
  923. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  924. ac_prev=pdfdir ;;
  925. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  926. pdfdir=$ac_optarg ;;
  927. -psdir | --psdir | --psdi | --psd | --ps)
  928. ac_prev=psdir ;;
  929. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  930. psdir=$ac_optarg ;;
  931. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  932. | -silent | --silent | --silen | --sile | --sil)
  933. silent=yes ;;
  934. -runstatedir | --runstatedir | --runstatedi | --runstated \
  935. | --runstate | --runstat | --runsta | --runst | --runs \
  936. | --run | --ru | --r)
  937. ac_prev=runstatedir ;;
  938. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  939. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  940. | --run=* | --ru=* | --r=*)
  941. runstatedir=$ac_optarg ;;
  942. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  943. ac_prev=sbindir ;;
  944. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  945. | --sbi=* | --sb=*)
  946. sbindir=$ac_optarg ;;
  947. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  948. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  949. | --sharedst | --shareds | --shared | --share | --shar \
  950. | --sha | --sh)
  951. ac_prev=sharedstatedir ;;
  952. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  953. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  954. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  955. | --sha=* | --sh=*)
  956. sharedstatedir=$ac_optarg ;;
  957. -site | --site | --sit)
  958. ac_prev=site ;;
  959. -site=* | --site=* | --sit=*)
  960. site=$ac_optarg ;;
  961. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  962. ac_prev=srcdir ;;
  963. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  964. srcdir=$ac_optarg ;;
  965. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  966. | --syscon | --sysco | --sysc | --sys | --sy)
  967. ac_prev=sysconfdir ;;
  968. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  969. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  970. sysconfdir=$ac_optarg ;;
  971. -target | --target | --targe | --targ | --tar | --ta | --t)
  972. ac_prev=target_alias ;;
  973. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  974. target_alias=$ac_optarg ;;
  975. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  976. verbose=yes ;;
  977. -version | --version | --versio | --versi | --vers | -V)
  978. ac_init_version=: ;;
  979. -with-* | --with-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. as_fn_error $? "invalid package name: $ac_useropt"
  984. ac_useropt_orig=$ac_useropt
  985. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  986. case $ac_user_opts in
  987. *"
  988. "with_$ac_useropt"
  989. "*) ;;
  990. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  991. ac_unrecognized_sep=', ';;
  992. esac
  993. eval with_$ac_useropt=\$ac_optarg ;;
  994. -without-* | --without-*)
  995. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  996. # Reject names that are not valid shell variable names.
  997. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998. as_fn_error $? "invalid package name: $ac_useropt"
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "with_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval with_$ac_useropt=no ;;
  1009. --x)
  1010. # Obsolete; use --with-x.
  1011. with_x=yes ;;
  1012. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1013. | --x-incl | --x-inc | --x-in | --x-i)
  1014. ac_prev=x_includes ;;
  1015. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1016. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1017. x_includes=$ac_optarg ;;
  1018. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1019. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1020. ac_prev=x_libraries ;;
  1021. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1022. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1023. x_libraries=$ac_optarg ;;
  1024. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1025. Try \`$0 --help' for more information"
  1026. ;;
  1027. *=*)
  1028. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1029. # Reject names that are not valid shell variable names.
  1030. case $ac_envvar in #(
  1031. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1032. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1033. esac
  1034. eval $ac_envvar=\$ac_optarg
  1035. export $ac_envvar ;;
  1036. *)
  1037. # FIXME: should be removed in autoconf 3.0.
  1038. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1039. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1041. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1042. ;;
  1043. esac
  1044. done
  1045. if test -n "$ac_prev"; then
  1046. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1047. as_fn_error $? "missing argument to $ac_option"
  1048. fi
  1049. if test -n "$ac_unrecognized_opts"; then
  1050. case $enable_option_checking in
  1051. no) ;;
  1052. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1053. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1054. esac
  1055. fi
  1056. # Check all directory arguments for consistency.
  1057. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1058. datadir sysconfdir sharedstatedir localstatedir includedir \
  1059. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1060. libdir localedir mandir runstatedir
  1061. do
  1062. eval ac_val=\$$ac_var
  1063. # Remove trailing slashes.
  1064. case $ac_val in
  1065. */ )
  1066. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1067. eval $ac_var=\$ac_val;;
  1068. esac
  1069. # Be sure to have absolute directory names.
  1070. case $ac_val in
  1071. [\\/$]* | ?:[\\/]* ) continue;;
  1072. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1073. esac
  1074. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1075. done
  1076. # There might be people who depend on the old broken behavior: `$host'
  1077. # used to hold the argument of --host etc.
  1078. # FIXME: To remove some day.
  1079. build=$build_alias
  1080. host=$host_alias
  1081. target=$target_alias
  1082. # FIXME: To remove some day.
  1083. if test "x$host_alias" != x; then
  1084. if test "x$build_alias" = x; then
  1085. cross_compiling=maybe
  1086. elif test "x$build_alias" != "x$host_alias"; then
  1087. cross_compiling=yes
  1088. fi
  1089. fi
  1090. ac_tool_prefix=
  1091. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1092. test "$silent" = yes && exec 6>/dev/null
  1093. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1094. ac_ls_di=`ls -di .` &&
  1095. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1096. as_fn_error $? "working directory cannot be determined"
  1097. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1098. as_fn_error $? "pwd does not report name of working directory"
  1099. # Find the source files, if location was not specified.
  1100. if test -z "$srcdir"; then
  1101. ac_srcdir_defaulted=yes
  1102. # Try the directory containing this script, then the parent directory.
  1103. ac_confdir=`$as_dirname -- "$as_myself" ||
  1104. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1105. X"$as_myself" : 'X\(//\)[^/]' \| \
  1106. X"$as_myself" : 'X\(//\)$' \| \
  1107. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1108. $as_echo X"$as_myself" |
  1109. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\/\)[^/].*/{
  1114. s//\1/
  1115. q
  1116. }
  1117. /^X\(\/\/\)$/{
  1118. s//\1/
  1119. q
  1120. }
  1121. /^X\(\/\).*/{
  1122. s//\1/
  1123. q
  1124. }
  1125. s/.*/./; q'`
  1126. srcdir=$ac_confdir
  1127. if test ! -r "$srcdir/$ac_unique_file"; then
  1128. srcdir=..
  1129. fi
  1130. else
  1131. ac_srcdir_defaulted=no
  1132. fi
  1133. if test ! -r "$srcdir/$ac_unique_file"; then
  1134. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1135. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1136. fi
  1137. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1138. ac_abs_confdir=`(
  1139. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1140. pwd)`
  1141. # When building in place, set srcdir=.
  1142. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1143. srcdir=.
  1144. fi
  1145. # Remove unnecessary trailing slashes from srcdir.
  1146. # Double slashes in file names in object file debugging info
  1147. # mess up M-x gdb in Emacs.
  1148. case $srcdir in
  1149. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1150. esac
  1151. for ac_var in $ac_precious_vars; do
  1152. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1153. eval ac_env_${ac_var}_value=\$${ac_var}
  1154. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1155. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1156. done
  1157. #
  1158. # Report the --help message.
  1159. #
  1160. if test "$ac_init_help" = "long"; then
  1161. # Omit some internal or obsolete options to make the list less imposing.
  1162. # This message is too long to be a string in the A/UX 3.1 sh.
  1163. cat <<_ACEOF
  1164. \`configure' configures this package to adapt to many kinds of systems.
  1165. Usage: $0 [OPTION]... [VAR=VALUE]...
  1166. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1167. VAR=VALUE. See below for descriptions of some of the useful variables.
  1168. Defaults for the options are specified in brackets.
  1169. Configuration:
  1170. -h, --help display this help and exit
  1171. --help=short display options specific to this package
  1172. --help=recursive display the short help of all the included packages
  1173. -V, --version display version information and exit
  1174. -q, --quiet, --silent do not print \`checking ...' messages
  1175. --cache-file=FILE cache test results in FILE [disabled]
  1176. -C, --config-cache alias for \`--cache-file=config.cache'
  1177. -n, --no-create do not create output files
  1178. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1179. Installation directories:
  1180. --prefix=PREFIX install architecture-independent files in PREFIX
  1181. [$ac_default_prefix]
  1182. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1183. [PREFIX]
  1184. By default, \`make install' will install all the files in
  1185. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1186. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1187. for instance \`--prefix=\$HOME'.
  1188. For better control, use the options below.
  1189. Fine tuning of the installation directories:
  1190. --bindir=DIR user executables [EPREFIX/bin]
  1191. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1192. --libexecdir=DIR program executables [EPREFIX/libexec]
  1193. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1194. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1195. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1196. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1197. --libdir=DIR object code libraries [EPREFIX/lib]
  1198. --includedir=DIR C header files [PREFIX/include]
  1199. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1200. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1201. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1202. --infodir=DIR info documentation [DATAROOTDIR/info]
  1203. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1204. --mandir=DIR man documentation [DATAROOTDIR/man]
  1205. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1206. --htmldir=DIR html documentation [DOCDIR]
  1207. --dvidir=DIR dvi documentation [DOCDIR]
  1208. --pdfdir=DIR pdf documentation [DOCDIR]
  1209. --psdir=DIR ps documentation [DOCDIR]
  1210. _ACEOF
  1211. cat <<\_ACEOF
  1212. _ACEOF
  1213. fi
  1214. if test -n "$ac_init_help"; then
  1215. cat <<\_ACEOF
  1216. Optional Features:
  1217. --disable-option-checking ignore unrecognized --enable/--with options
  1218. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1219. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1220. --disable-help disable help
  1221. --disable-stdio disable STDIO support
  1222. --disable-fdnum disable FD-number support
  1223. --disable-file disable direct file support
  1224. --disable-creat disable direct create support
  1225. --disable-gopen disable open for UNIX socket support
  1226. --disable-pipe disable pipe support
  1227. --disable-termios disable termios support
  1228. --disable-unix disable UNIX domain socket support
  1229. --disable-abstract-unixsocket disable abstract UNIX domain socket support
  1230. --disable-ip4 disable IPv4 support
  1231. --disable-ip6 disable IPv6 support
  1232. --disable-rawip disable raw IP support
  1233. --disable-genericsocket disable generic socket support
  1234. --disable-interface disable network interface support
  1235. --disable-tcp disable TCP support
  1236. --disable-udp disable UDP support
  1237. --disable-sctp disable SCTP support
  1238. --disable-listen disable listen support
  1239. --disable-socks4 disable socks4 support
  1240. --disable-socks4a disable socks4a support
  1241. --disable-proxy disable proxy connect support
  1242. --disable-exec disable exec support
  1243. --disable-system disable system (shell) support
  1244. --disable-pty disable pty support
  1245. --disable-ext2 disable ext2 fs attributes support
  1246. --disable-readline disable readline support
  1247. --disable-openssl disable OpenSSL support
  1248. --enable-openssl-method enable OpenSSL method option
  1249. --enable-res-deprecated enable deprecated resolver options
  1250. --enable-fips enable OpenSSL FIPS support
  1251. --disable-tun disable TUN/TAP support
  1252. --disable-sycls disable system call tracing
  1253. --disable-filan disable file descriptor analyzer
  1254. --disable-retry disable retry support
  1255. --enable-msglevel=N set max verbosity to debug,info,notice,warn,error,fatal
  1256. --disable-libwrap disable libwrap support
  1257. Some influential environment variables:
  1258. CC C compiler command
  1259. CFLAGS C compiler flags
  1260. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1261. nonstandard directory <lib dir>
  1262. LIBS libraries to pass to the linker, e.g. -l<library>
  1263. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1264. you have headers in a nonstandard directory <include dir>
  1265. CPP C preprocessor
  1266. Use these variables to override the choices made by `configure' or to help
  1267. it to find libraries and programs with nonstandard names/locations.
  1268. Report bugs to the package provider.
  1269. _ACEOF
  1270. ac_status=$?
  1271. fi
  1272. if test "$ac_init_help" = "recursive"; then
  1273. # If there are subdirs, report their specific --help.
  1274. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1275. test -d "$ac_dir" ||
  1276. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1277. continue
  1278. ac_builddir=.
  1279. case "$ac_dir" in
  1280. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1281. *)
  1282. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1283. # A ".." for each directory in $ac_dir_suffix.
  1284. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1285. case $ac_top_builddir_sub in
  1286. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1287. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1288. esac ;;
  1289. esac
  1290. ac_abs_top_builddir=$ac_pwd
  1291. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1292. # for backward compatibility:
  1293. ac_top_builddir=$ac_top_build_prefix
  1294. case $srcdir in
  1295. .) # We are building in place.
  1296. ac_srcdir=.
  1297. ac_top_srcdir=$ac_top_builddir_sub
  1298. ac_abs_top_srcdir=$ac_pwd ;;
  1299. [\\/]* | ?:[\\/]* ) # Absolute name.
  1300. ac_srcdir=$srcdir$ac_dir_suffix;
  1301. ac_top_srcdir=$srcdir
  1302. ac_abs_top_srcdir=$srcdir ;;
  1303. *) # Relative name.
  1304. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1305. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1306. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1307. esac
  1308. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1309. cd "$ac_dir" || { ac_status=$?; continue; }
  1310. # Check for guested configure.
  1311. if test -f "$ac_srcdir/configure.gnu"; then
  1312. echo &&
  1313. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1314. elif test -f "$ac_srcdir/configure"; then
  1315. echo &&
  1316. $SHELL "$ac_srcdir/configure" --help=recursive
  1317. else
  1318. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1319. fi || ac_status=$?
  1320. cd "$ac_pwd" || { ac_status=$?; break; }
  1321. done
  1322. fi
  1323. test -n "$ac_init_help" && exit $ac_status
  1324. if $ac_init_version; then
  1325. cat <<\_ACEOF
  1326. configure
  1327. generated by GNU Autoconf 2.69
  1328. Copyright (C) 2012 Free Software Foundation, Inc.
  1329. This configure script is free software; the Free Software Foundation
  1330. gives unlimited permission to copy, distribute and modify it.
  1331. _ACEOF
  1332. exit
  1333. fi
  1334. ## ------------------------ ##
  1335. ## Autoconf initialization. ##
  1336. ## ------------------------ ##
  1337. # ac_fn_c_try_compile LINENO
  1338. # --------------------------
  1339. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1340. ac_fn_c_try_compile ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. rm -f conftest.$ac_objext
  1344. if { { ac_try="$ac_compile"
  1345. case "(($ac_try" in
  1346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1347. *) ac_try_echo=$ac_try;;
  1348. esac
  1349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1350. $as_echo "$ac_try_echo"; } >&5
  1351. (eval "$ac_compile") 2>conftest.err
  1352. ac_status=$?
  1353. if test -s conftest.err; then
  1354. grep -v '^ *+' conftest.err >conftest.er1
  1355. cat conftest.er1 >&5
  1356. mv -f conftest.er1 conftest.err
  1357. fi
  1358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1359. test $ac_status = 0; } && {
  1360. test -z "$ac_c_werror_flag" ||
  1361. test ! -s conftest.err
  1362. } && test -s conftest.$ac_objext; then :
  1363. ac_retval=0
  1364. else
  1365. $as_echo "$as_me: failed program was:" >&5
  1366. sed 's/^/| /' conftest.$ac_ext >&5
  1367. ac_retval=1
  1368. fi
  1369. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1370. as_fn_set_status $ac_retval
  1371. } # ac_fn_c_try_compile
  1372. # ac_fn_c_try_cpp LINENO
  1373. # ----------------------
  1374. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1375. ac_fn_c_try_cpp ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1379. case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1384. $as_echo "$ac_try_echo"; } >&5
  1385. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1386. ac_status=$?
  1387. if test -s conftest.err; then
  1388. grep -v '^ *+' conftest.err >conftest.er1
  1389. cat conftest.er1 >&5
  1390. mv -f conftest.er1 conftest.err
  1391. fi
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } > conftest.i && {
  1394. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1395. test ! -s conftest.err
  1396. }; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=1
  1402. fi
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } # ac_fn_c_try_cpp
  1406. # ac_fn_c_try_run LINENO
  1407. # ----------------------
  1408. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1409. # that executables *can* be run.
  1410. ac_fn_c_try_run ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. if { { ac_try="$ac_link"
  1414. case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_link") 2>&5
  1421. ac_status=$?
  1422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1423. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1424. { { case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_try") 2>&5
  1431. ac_status=$?
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; }; }; then :
  1434. ac_retval=0
  1435. else
  1436. $as_echo "$as_me: program exited with status $ac_status" >&5
  1437. $as_echo "$as_me: failed program was:" >&5
  1438. sed 's/^/| /' conftest.$ac_ext >&5
  1439. ac_retval=$ac_status
  1440. fi
  1441. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1442. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1443. as_fn_set_status $ac_retval
  1444. } # ac_fn_c_try_run
  1445. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1446. # -------------------------------------------------------
  1447. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1448. # the include files in INCLUDES and setting the cache variable VAR
  1449. # accordingly.
  1450. ac_fn_c_check_header_mongrel ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. if eval \${$3+:} false; then :
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1455. $as_echo_n "checking for $2... " >&6; }
  1456. if eval \${$3+:} false; then :
  1457. $as_echo_n "(cached) " >&6
  1458. fi
  1459. eval ac_res=\$$3
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1461. $as_echo "$ac_res" >&6; }
  1462. else
  1463. # Is the header compilable?
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1465. $as_echo_n "checking $2 usability... " >&6; }
  1466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1467. /* end confdefs.h. */
  1468. $4
  1469. #include <$2>
  1470. _ACEOF
  1471. if ac_fn_c_try_compile "$LINENO"; then :
  1472. ac_header_compiler=yes
  1473. else
  1474. ac_header_compiler=no
  1475. fi
  1476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1478. $as_echo "$ac_header_compiler" >&6; }
  1479. # Is the header present?
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1481. $as_echo_n "checking $2 presence... " >&6; }
  1482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1483. /* end confdefs.h. */
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_c_try_cpp "$LINENO"; then :
  1487. ac_header_preproc=yes
  1488. else
  1489. ac_header_preproc=no
  1490. fi
  1491. rm -f conftest.err conftest.i conftest.$ac_ext
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1493. $as_echo "$ac_header_preproc" >&6; }
  1494. # So? What about this header?
  1495. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1496. yes:no: )
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1498. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1500. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1501. ;;
  1502. no:yes:* )
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1504. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1506. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1508. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1510. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1512. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1513. ;;
  1514. esac
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1516. $as_echo_n "checking for $2... " >&6; }
  1517. if eval \${$3+:} false; then :
  1518. $as_echo_n "(cached) " >&6
  1519. else
  1520. eval "$3=\$ac_header_compiler"
  1521. fi
  1522. eval ac_res=\$$3
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1524. $as_echo "$ac_res" >&6; }
  1525. fi
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. } # ac_fn_c_check_header_mongrel
  1528. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1529. # -------------------------------------------------------
  1530. # Tests whether HEADER exists and can be compiled using the include files in
  1531. # INCLUDES, setting the cache variable VAR accordingly.
  1532. ac_fn_c_check_header_compile ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1536. $as_echo_n "checking for $2... " >&6; }
  1537. if eval \${$3+:} false; then :
  1538. $as_echo_n "(cached) " >&6
  1539. else
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. #include <$2>
  1544. _ACEOF
  1545. if ac_fn_c_try_compile "$LINENO"; then :
  1546. eval "$3=yes"
  1547. else
  1548. eval "$3=no"
  1549. fi
  1550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1551. fi
  1552. eval ac_res=\$$3
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1554. $as_echo "$ac_res" >&6; }
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. } # ac_fn_c_check_header_compile
  1557. # ac_fn_c_try_link LINENO
  1558. # -----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1560. ac_fn_c_try_link ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. rm -f conftest.$ac_objext conftest$ac_exeext
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>conftest.err
  1572. ac_status=$?
  1573. if test -s conftest.err; then
  1574. grep -v '^ *+' conftest.err >conftest.er1
  1575. cat conftest.er1 >&5
  1576. mv -f conftest.er1 conftest.err
  1577. fi
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && {
  1580. test -z "$ac_c_werror_flag" ||
  1581. test ! -s conftest.err
  1582. } && test -s conftest$ac_exeext && {
  1583. test "$cross_compiling" = yes ||
  1584. test -x conftest$ac_exeext
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1593. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1594. # interfere with the next link command; also delete a directory that is
  1595. # left behind by Apple's compiler. We do this before executing the actions.
  1596. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. as_fn_set_status $ac_retval
  1599. } # ac_fn_c_try_link
  1600. # ac_fn_c_check_func LINENO FUNC VAR
  1601. # ----------------------------------
  1602. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1603. ac_fn_c_check_func ()
  1604. {
  1605. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1607. $as_echo_n "checking for $2... " >&6; }
  1608. if eval \${$3+:} false; then :
  1609. $as_echo_n "(cached) " >&6
  1610. else
  1611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1612. /* end confdefs.h. */
  1613. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1614. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1615. #define $2 innocuous_$2
  1616. /* System header to define __stub macros and hopefully few prototypes,
  1617. which can conflict with char $2 (); below.
  1618. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1619. <limits.h> exists even on freestanding compilers. */
  1620. #ifdef __STDC__
  1621. # include <limits.h>
  1622. #else
  1623. # include <assert.h>
  1624. #endif
  1625. #undef $2
  1626. /* Override any GCC internal prototype to avoid an error.
  1627. Use char because int might match the return type of a GCC
  1628. builtin and then its argument prototype would still apply. */
  1629. #ifdef __cplusplus
  1630. extern "C"
  1631. #endif
  1632. char $2 ();
  1633. /* The GNU C library defines this for functions which it implements
  1634. to always fail with ENOSYS. Some functions are actually named
  1635. something starting with __ and the normal name is an alias. */
  1636. #if defined __stub_$2 || defined __stub___$2
  1637. choke me
  1638. #endif
  1639. int
  1640. main ()
  1641. {
  1642. return $2 ();
  1643. ;
  1644. return 0;
  1645. }
  1646. _ACEOF
  1647. if ac_fn_c_try_link "$LINENO"; then :
  1648. eval "$3=yes"
  1649. else
  1650. eval "$3=no"
  1651. fi
  1652. rm -f core conftest.err conftest.$ac_objext \
  1653. conftest$ac_exeext conftest.$ac_ext
  1654. fi
  1655. eval ac_res=\$$3
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1657. $as_echo "$ac_res" >&6; }
  1658. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1659. } # ac_fn_c_check_func
  1660. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1661. # -------------------------------------------
  1662. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1663. # variable VAR accordingly.
  1664. ac_fn_c_check_type ()
  1665. {
  1666. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1668. $as_echo_n "checking for $2... " >&6; }
  1669. if eval \${$3+:} false; then :
  1670. $as_echo_n "(cached) " >&6
  1671. else
  1672. eval "$3=no"
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. $4
  1676. int
  1677. main ()
  1678. {
  1679. if (sizeof ($2))
  1680. return 0;
  1681. ;
  1682. return 0;
  1683. }
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"; then :
  1686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h. */
  1688. $4
  1689. int
  1690. main ()
  1691. {
  1692. if (sizeof (($2)))
  1693. return 0;
  1694. ;
  1695. return 0;
  1696. }
  1697. _ACEOF
  1698. if ac_fn_c_try_compile "$LINENO"; then :
  1699. else
  1700. eval "$3=yes"
  1701. fi
  1702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. fi
  1706. eval ac_res=\$$3
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. $as_echo "$ac_res" >&6; }
  1709. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1710. } # ac_fn_c_check_type
  1711. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1712. # ----------------------------------------------------
  1713. # Tries to find if the field MEMBER exists in type AGGR, after including
  1714. # INCLUDES, setting cache variable VAR accordingly.
  1715. ac_fn_c_check_member ()
  1716. {
  1717. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1719. $as_echo_n "checking for $2.$3... " >&6; }
  1720. if eval \${$4+:} false; then :
  1721. $as_echo_n "(cached) " >&6
  1722. else
  1723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1724. /* end confdefs.h. */
  1725. $5
  1726. int
  1727. main ()
  1728. {
  1729. static $2 ac_aggr;
  1730. if (ac_aggr.$3)
  1731. return 0;
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. if ac_fn_c_try_compile "$LINENO"; then :
  1737. eval "$4=yes"
  1738. else
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. $5
  1742. int
  1743. main ()
  1744. {
  1745. static $2 ac_aggr;
  1746. if (sizeof ac_aggr.$3)
  1747. return 0;
  1748. ;
  1749. return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_compile "$LINENO"; then :
  1753. eval "$4=yes"
  1754. else
  1755. eval "$4=no"
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1758. fi
  1759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1760. fi
  1761. eval ac_res=\$$4
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1763. $as_echo "$ac_res" >&6; }
  1764. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1765. } # ac_fn_c_check_member
  1766. cat >config.log <<_ACEOF
  1767. This file contains any messages produced by compilers while
  1768. running configure, to aid debugging if configure makes a mistake.
  1769. It was created by $as_me, which was
  1770. generated by GNU Autoconf 2.69. Invocation command line was
  1771. $ $0 $@
  1772. _ACEOF
  1773. exec 5>>config.log
  1774. {
  1775. cat <<_ASUNAME
  1776. ## --------- ##
  1777. ## Platform. ##
  1778. ## --------- ##
  1779. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1780. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1781. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1782. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1783. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1784. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1785. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1786. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1787. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1788. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1789. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1790. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1791. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1792. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1793. _ASUNAME
  1794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1795. for as_dir in $PATH
  1796. do
  1797. IFS=$as_save_IFS
  1798. test -z "$as_dir" && as_dir=.
  1799. $as_echo "PATH: $as_dir"
  1800. done
  1801. IFS=$as_save_IFS
  1802. } >&5
  1803. cat >&5 <<_ACEOF
  1804. ## ----------- ##
  1805. ## Core tests. ##
  1806. ## ----------- ##
  1807. _ACEOF
  1808. # Keep a trace of the command line.
  1809. # Strip out --no-create and --no-recursion so they do not pile up.
  1810. # Strip out --silent because we don't want to record it for future runs.
  1811. # Also quote any args containing shell meta-characters.
  1812. # Make two passes to allow for proper duplicate-argument suppression.
  1813. ac_configure_args=
  1814. ac_configure_args0=
  1815. ac_configure_args1=
  1816. ac_must_keep_next=false
  1817. for ac_pass in 1 2
  1818. do
  1819. for ac_arg
  1820. do
  1821. case $ac_arg in
  1822. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1823. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1824. | -silent | --silent | --silen | --sile | --sil)
  1825. continue ;;
  1826. *\'*)
  1827. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1828. esac
  1829. case $ac_pass in
  1830. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1831. 2)
  1832. as_fn_append ac_configure_args1 " '$ac_arg'"
  1833. if test $ac_must_keep_next = true; then
  1834. ac_must_keep_next=false # Got value, back to normal.
  1835. else
  1836. case $ac_arg in
  1837. *=* | --config-cache | -C | -disable-* | --disable-* \
  1838. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1839. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1840. | -with-* | --with-* | -without-* | --without-* | --x)
  1841. case "$ac_configure_args0 " in
  1842. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1843. esac
  1844. ;;
  1845. -* ) ac_must_keep_next=true ;;
  1846. esac
  1847. fi
  1848. as_fn_append ac_configure_args " '$ac_arg'"
  1849. ;;
  1850. esac
  1851. done
  1852. done
  1853. { ac_configure_args0=; unset ac_configure_args0;}
  1854. { ac_configure_args1=; unset ac_configure_args1;}
  1855. # When interrupted or exit'd, cleanup temporary files, and complete
  1856. # config.log. We remove comments because anyway the quotes in there
  1857. # would cause problems or look ugly.
  1858. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1859. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1860. trap 'exit_status=$?
  1861. # Save into config.log some information that might help in debugging.
  1862. {
  1863. echo
  1864. $as_echo "## ---------------- ##
  1865. ## Cache variables. ##
  1866. ## ---------------- ##"
  1867. echo
  1868. # The following way of writing the cache mishandles newlines in values,
  1869. (
  1870. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1871. eval ac_val=\$$ac_var
  1872. case $ac_val in #(
  1873. *${as_nl}*)
  1874. case $ac_var in #(
  1875. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1876. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1877. esac
  1878. case $ac_var in #(
  1879. _ | IFS | as_nl) ;; #(
  1880. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1881. *) { eval $ac_var=; unset $ac_var;} ;;
  1882. esac ;;
  1883. esac
  1884. done
  1885. (set) 2>&1 |
  1886. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1887. *${as_nl}ac_space=\ *)
  1888. sed -n \
  1889. "s/'\''/'\''\\\\'\'''\''/g;
  1890. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1891. ;; #(
  1892. *)
  1893. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1894. ;;
  1895. esac |
  1896. sort
  1897. )
  1898. echo
  1899. $as_echo "## ----------------- ##
  1900. ## Output variables. ##
  1901. ## ----------------- ##"
  1902. echo
  1903. for ac_var in $ac_subst_vars
  1904. do
  1905. eval ac_val=\$$ac_var
  1906. case $ac_val in
  1907. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1908. esac
  1909. $as_echo "$ac_var='\''$ac_val'\''"
  1910. done | sort
  1911. echo
  1912. if test -n "$ac_subst_files"; then
  1913. $as_echo "## ------------------- ##
  1914. ## File substitutions. ##
  1915. ## ------------------- ##"
  1916. echo
  1917. for ac_var in $ac_subst_files
  1918. do
  1919. eval ac_val=\$$ac_var
  1920. case $ac_val in
  1921. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1922. esac
  1923. $as_echo "$ac_var='\''$ac_val'\''"
  1924. done | sort
  1925. echo
  1926. fi
  1927. if test -s confdefs.h; then
  1928. $as_echo "## ----------- ##
  1929. ## confdefs.h. ##
  1930. ## ----------- ##"
  1931. echo
  1932. cat confdefs.h
  1933. echo
  1934. fi
  1935. test "$ac_signal" != 0 &&
  1936. $as_echo "$as_me: caught signal $ac_signal"
  1937. $as_echo "$as_me: exit $exit_status"
  1938. } >&5
  1939. rm -f core *.core core.conftest.* &&
  1940. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1941. exit $exit_status
  1942. ' 0
  1943. for ac_signal in 1 2 13 15; do
  1944. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1945. done
  1946. ac_signal=0
  1947. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1948. rm -f -r conftest* confdefs.h
  1949. $as_echo "/* confdefs.h */" > confdefs.h
  1950. # Predefined preprocessor variables.
  1951. cat >>confdefs.h <<_ACEOF
  1952. #define PACKAGE_NAME "$PACKAGE_NAME"
  1953. _ACEOF
  1954. cat >>confdefs.h <<_ACEOF
  1955. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1956. _ACEOF
  1957. cat >>confdefs.h <<_ACEOF
  1958. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1959. _ACEOF
  1960. cat >>confdefs.h <<_ACEOF
  1961. #define PACKAGE_STRING "$PACKAGE_STRING"
  1962. _ACEOF
  1963. cat >>confdefs.h <<_ACEOF
  1964. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1965. _ACEOF
  1966. cat >>confdefs.h <<_ACEOF
  1967. #define PACKAGE_URL "$PACKAGE_URL"
  1968. _ACEOF
  1969. # Let the site file select an alternate cache file if it wants to.
  1970. # Prefer an explicitly selected file to automatically selected ones.
  1971. ac_site_file1=NONE
  1972. ac_site_file2=NONE
  1973. if test -n "$CONFIG_SITE"; then
  1974. # We do not want a PATH search for config.site.
  1975. case $CONFIG_SITE in #((
  1976. -*) ac_site_file1=./$CONFIG_SITE;;
  1977. */*) ac_site_file1=$CONFIG_SITE;;
  1978. *) ac_site_file1=./$CONFIG_SITE;;
  1979. esac
  1980. elif test "x$prefix" != xNONE; then
  1981. ac_site_file1=$prefix/share/config.site
  1982. ac_site_file2=$prefix/etc/config.site
  1983. else
  1984. ac_site_file1=$ac_default_prefix/share/config.site
  1985. ac_site_file2=$ac_default_prefix/etc/config.site
  1986. fi
  1987. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1988. do
  1989. test "x$ac_site_file" = xNONE && continue
  1990. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1992. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1993. sed 's/^/| /' "$ac_site_file" >&5
  1994. . "$ac_site_file" \
  1995. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1996. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1997. as_fn_error $? "failed to load site script $ac_site_file
  1998. See \`config.log' for more details" "$LINENO" 5; }
  1999. fi
  2000. done
  2001. if test -r "$cache_file"; then
  2002. # Some versions of bash will fail to source /dev/null (special files
  2003. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2004. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2006. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2007. case $cache_file in
  2008. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2009. *) . "./$cache_file";;
  2010. esac
  2011. fi
  2012. else
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2014. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2015. >$cache_file
  2016. fi
  2017. # Check that the precious variables saved in the cache have kept the same
  2018. # value.
  2019. ac_cache_corrupted=false
  2020. for ac_var in $ac_precious_vars; do
  2021. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2022. eval ac_new_set=\$ac_env_${ac_var}_set
  2023. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2024. eval ac_new_val=\$ac_env_${ac_var}_value
  2025. case $ac_old_set,$ac_new_set in
  2026. set,)
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2028. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2029. ac_cache_corrupted=: ;;
  2030. ,set)
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2032. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2033. ac_cache_corrupted=: ;;
  2034. ,);;
  2035. *)
  2036. if test "x$ac_old_val" != "x$ac_new_val"; then
  2037. # differences in whitespace do not lead to failure.
  2038. ac_old_val_w=`echo x $ac_old_val`
  2039. ac_new_val_w=`echo x $ac_new_val`
  2040. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2042. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2043. ac_cache_corrupted=:
  2044. else
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2046. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2047. eval $ac_var=\$ac_old_val
  2048. fi
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2050. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2052. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2053. fi;;
  2054. esac
  2055. # Pass precious variables to config.status.
  2056. if test "$ac_new_set" = set; then
  2057. case $ac_new_val in
  2058. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2059. *) ac_arg=$ac_var=$ac_new_val ;;
  2060. esac
  2061. case " $ac_configure_args " in
  2062. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2063. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2064. esac
  2065. fi
  2066. done
  2067. if $ac_cache_corrupted; then
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2071. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2072. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2073. fi
  2074. ## -------------------- ##
  2075. ## Main body of script. ##
  2076. ## -------------------- ##
  2077. ac_ext=c
  2078. ac_cpp='$CPP $CPPFLAGS'
  2079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2082. ac_config_headers="$ac_config_headers config.h"
  2083. if test -f /usr/xpg4/bin/fgrep; then
  2084. FGREP=/usr/xpg4/bin/fgrep # Solaris
  2085. else
  2086. FGREP=fgrep
  2087. fi
  2088. # find out which defines gcc passes to cpp, so makedepend does not run into
  2089. # (harmless) "error architecture not supported"
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which defines needed for makedepend" >&5
  2091. $as_echo_n "checking which defines needed for makedepend... " >&6; }
  2092. __cpp_defs=`gcc -v -E - </dev/null 2>&1 |$FGREP -e '/cpp ' -e '/cc1 '`
  2093. SYSDEFS=`aa=; for a in $__cpp_defs
  2094. do case "$a" in -D*) aa="$aa $a";; esac; done; echo "$aa"`
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSDEFS" >&5
  2096. $as_echo "$SYSDEFS" >&6; }
  2097. # this must come before AC_PROG_CC
  2098. if test -z "$CFLAGS"; then
  2099. # if CFLAGS is not set, we preset it to -O
  2100. # with this setting, we prevent autoconf from defaulting to "-g -O2"
  2101. export CFLAGS=-O
  2102. fi
  2103. ac_aux_dir=
  2104. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2105. if test -f "$ac_dir/install-sh"; then
  2106. ac_aux_dir=$ac_dir
  2107. ac_install_sh="$ac_aux_dir/install-sh -c"
  2108. break
  2109. elif test -f "$ac_dir/install.sh"; then
  2110. ac_aux_dir=$ac_dir
  2111. ac_install_sh="$ac_aux_dir/install.sh -c"
  2112. break
  2113. elif test -f "$ac_dir/shtool"; then
  2114. ac_aux_dir=$ac_dir
  2115. ac_install_sh="$ac_aux_dir/shtool install -c"
  2116. break
  2117. fi
  2118. done
  2119. if test -z "$ac_aux_dir"; then
  2120. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2121. fi
  2122. # These three variables are undocumented and unsupported,
  2123. # and are intended to be withdrawn in a future Autoconf release.
  2124. # They can cause serious problems if a builder's source tree is in a directory
  2125. # whose full name contains unusual characters.
  2126. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2127. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2128. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2129. # Find a good install program. We prefer a C program (faster),
  2130. # so one script is as good as another. But avoid the broken or
  2131. # incompatible versions:
  2132. # SysV /etc/install, /usr/sbin/install
  2133. # SunOS /usr/etc/install
  2134. # IRIX /sbin/install
  2135. # AIX /bin/install
  2136. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2137. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2138. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2139. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2140. # OS/2's system install, which has a completely different semantic
  2141. # ./install, which can be erroneously created by make from ./install.sh.
  2142. # Reject install programs that cannot install multiple files.
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2144. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2145. if test -z "$INSTALL"; then
  2146. if ${ac_cv_path_install+:} false; then :
  2147. $as_echo_n "(cached) " >&6
  2148. else
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. # Account for people who put trailing slashes in PATH elements.
  2155. case $as_dir/ in #((
  2156. ./ | .// | /[cC]/* | \
  2157. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2158. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2159. /usr/ucb/* ) ;;
  2160. *)
  2161. # OSF1 and SCO ODT 3.0 have their own names for install.
  2162. # Don't use installbsd from OSF since it installs stuff as root
  2163. # by default.
  2164. for ac_prog in ginstall scoinst install; do
  2165. for ac_exec_ext in '' $ac_executable_extensions; do
  2166. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2167. if test $ac_prog = install &&
  2168. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2169. # AIX install. It has an incompatible calling convention.
  2170. :
  2171. elif test $ac_prog = install &&
  2172. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2173. # program-specific install script used by HP pwplus--don't use.
  2174. :
  2175. else
  2176. rm -rf conftest.one conftest.two conftest.dir
  2177. echo one > conftest.one
  2178. echo two > conftest.two
  2179. mkdir conftest.dir
  2180. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2181. test -s conftest.one && test -s conftest.two &&
  2182. test -s conftest.dir/conftest.one &&
  2183. test -s conftest.dir/conftest.two
  2184. then
  2185. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2186. break 3
  2187. fi
  2188. fi
  2189. fi
  2190. done
  2191. done
  2192. ;;
  2193. esac
  2194. done
  2195. IFS=$as_save_IFS
  2196. rm -rf conftest.one conftest.two conftest.dir
  2197. fi
  2198. if test "${ac_cv_path_install+set}" = set; then
  2199. INSTALL=$ac_cv_path_install
  2200. else
  2201. # As a last resort, use the slow shell script. Don't cache a
  2202. # value for INSTALL within a source directory, because that will
  2203. # break other packages using the cache if that directory is
  2204. # removed, or if the value is a relative name.
  2205. INSTALL=$ac_install_sh
  2206. fi
  2207. fi
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2209. $as_echo "$INSTALL" >&6; }
  2210. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2211. # It thinks the first close brace ends the variable substitution.
  2212. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2213. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2214. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2215. ac_ext=c
  2216. ac_cpp='$CPP $CPPFLAGS'
  2217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2220. if test -n "$ac_tool_prefix"; then
  2221. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2222. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2224. $as_echo_n "checking for $ac_word... " >&6; }
  2225. if ${ac_cv_prog_CC+:} false; then :
  2226. $as_echo_n "(cached) " >&6
  2227. else
  2228. if test -n "$CC"; then
  2229. ac_cv_prog_CC="$CC" # Let the user override the test.
  2230. else
  2231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. for as_dir in $PATH
  2233. do
  2234. IFS=$as_save_IFS
  2235. test -z "$as_dir" && as_dir=.
  2236. for ac_exec_ext in '' $ac_executable_extensions; do
  2237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2238. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2240. break 2
  2241. fi
  2242. done
  2243. done
  2244. IFS=$as_save_IFS
  2245. fi
  2246. fi
  2247. CC=$ac_cv_prog_CC
  2248. if test -n "$CC"; then
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2250. $as_echo "$CC" >&6; }
  2251. else
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2253. $as_echo "no" >&6; }
  2254. fi
  2255. fi
  2256. if test -z "$ac_cv_prog_CC"; then
  2257. ac_ct_CC=$CC
  2258. # Extract the first word of "gcc", so it can be a program name with args.
  2259. set dummy gcc; ac_word=$2
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2261. $as_echo_n "checking for $ac_word... " >&6; }
  2262. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test -n "$ac_ct_CC"; then
  2266. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2275. ac_cv_prog_ac_ct_CC="gcc"
  2276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2277. break 2
  2278. fi
  2279. done
  2280. done
  2281. IFS=$as_save_IFS
  2282. fi
  2283. fi
  2284. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2285. if test -n "$ac_ct_CC"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2287. $as_echo "$ac_ct_CC" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. if test "x$ac_ct_CC" = x; then
  2293. CC=""
  2294. else
  2295. case $cross_compiling:$ac_tool_warned in
  2296. yes:)
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2299. ac_tool_warned=yes ;;
  2300. esac
  2301. CC=$ac_ct_CC
  2302. fi
  2303. else
  2304. CC="$ac_cv_prog_CC"
  2305. fi
  2306. if test -z "$CC"; then
  2307. if test -n "$ac_tool_prefix"; then
  2308. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2309. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2311. $as_echo_n "checking for $ac_word... " >&6; }
  2312. if ${ac_cv_prog_CC+:} false; then :
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. if test -n "$CC"; then
  2316. ac_cv_prog_CC="$CC" # Let the user override the test.
  2317. else
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. for as_dir in $PATH
  2320. do
  2321. IFS=$as_save_IFS
  2322. test -z "$as_dir" && as_dir=.
  2323. for ac_exec_ext in '' $ac_executable_extensions; do
  2324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2325. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2327. break 2
  2328. fi
  2329. done
  2330. done
  2331. IFS=$as_save_IFS
  2332. fi
  2333. fi
  2334. CC=$ac_cv_prog_CC
  2335. if test -n "$CC"; then
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2337. $as_echo "$CC" >&6; }
  2338. else
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2340. $as_echo "no" >&6; }
  2341. fi
  2342. fi
  2343. fi
  2344. if test -z "$CC"; then
  2345. # Extract the first word of "cc", so it can be a program name with args.
  2346. set dummy cc; ac_word=$2
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2348. $as_echo_n "checking for $ac_word... " >&6; }
  2349. if ${ac_cv_prog_CC+:} false; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. if test -n "$CC"; then
  2353. ac_cv_prog_CC="$CC" # Let the user override the test.
  2354. else
  2355. ac_prog_rejected=no
  2356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2357. for as_dir in $PATH
  2358. do
  2359. IFS=$as_save_IFS
  2360. test -z "$as_dir" && as_dir=.
  2361. for ac_exec_ext in '' $ac_executable_extensions; do
  2362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2363. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2364. ac_prog_rejected=yes
  2365. continue
  2366. fi
  2367. ac_cv_prog_CC="cc"
  2368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2369. break 2
  2370. fi
  2371. done
  2372. done
  2373. IFS=$as_save_IFS
  2374. if test $ac_prog_rejected = yes; then
  2375. # We found a bogon in the path, so make sure we never use it.
  2376. set dummy $ac_cv_prog_CC
  2377. shift
  2378. if test $# != 0; then
  2379. # We chose a different compiler from the bogus one.
  2380. # However, it has the same basename, so the bogon will be chosen
  2381. # first if we set CC to just the basename; use the full file name.
  2382. shift
  2383. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2384. fi
  2385. fi
  2386. fi
  2387. fi
  2388. CC=$ac_cv_prog_CC
  2389. if test -n "$CC"; then
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2391. $as_echo "$CC" >&6; }
  2392. else
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2394. $as_echo "no" >&6; }
  2395. fi
  2396. fi
  2397. if test -z "$CC"; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. for ac_prog in cl.exe
  2400. do
  2401. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2402. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2404. $as_echo_n "checking for $ac_word... " >&6; }
  2405. if ${ac_cv_prog_CC+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. if test -n "$CC"; then
  2409. ac_cv_prog_CC="$CC" # Let the user override the test.
  2410. else
  2411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2412. for as_dir in $PATH
  2413. do
  2414. IFS=$as_save_IFS
  2415. test -z "$as_dir" && as_dir=.
  2416. for ac_exec_ext in '' $ac_executable_extensions; do
  2417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2418. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2420. break 2
  2421. fi
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. fi
  2427. CC=$ac_cv_prog_CC
  2428. if test -n "$CC"; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2430. $as_echo "$CC" >&6; }
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2433. $as_echo "no" >&6; }
  2434. fi
  2435. test -n "$CC" && break
  2436. done
  2437. fi
  2438. if test -z "$CC"; then
  2439. ac_ct_CC=$CC
  2440. for ac_prog in cl.exe
  2441. do
  2442. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2443. set dummy $ac_prog; ac_word=$2
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2445. $as_echo_n "checking for $ac_word... " >&6; }
  2446. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2447. $as_echo_n "(cached) " >&6
  2448. else
  2449. if test -n "$ac_ct_CC"; then
  2450. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2451. else
  2452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2453. for as_dir in $PATH
  2454. do
  2455. IFS=$as_save_IFS
  2456. test -z "$as_dir" && as_dir=.
  2457. for ac_exec_ext in '' $ac_executable_extensions; do
  2458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2459. ac_cv_prog_ac_ct_CC="$ac_prog"
  2460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. fi
  2467. fi
  2468. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2469. if test -n "$ac_ct_CC"; then
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2471. $as_echo "$ac_ct_CC" >&6; }
  2472. else
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2474. $as_echo "no" >&6; }
  2475. fi
  2476. test -n "$ac_ct_CC" && break
  2477. done
  2478. if test "x$ac_ct_CC" = x; then
  2479. CC=""
  2480. else
  2481. case $cross_compiling:$ac_tool_warned in
  2482. yes:)
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2485. ac_tool_warned=yes ;;
  2486. esac
  2487. CC=$ac_ct_CC
  2488. fi
  2489. fi
  2490. fi
  2491. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2493. as_fn_error $? "no acceptable C compiler found in \$PATH
  2494. See \`config.log' for more details" "$LINENO" 5; }
  2495. # Provide some information about the compiler.
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2497. set X $ac_compile
  2498. ac_compiler=$2
  2499. for ac_option in --version -v -V -qversion; do
  2500. { { ac_try="$ac_compiler $ac_option >&5"
  2501. case "(($ac_try" in
  2502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2503. *) ac_try_echo=$ac_try;;
  2504. esac
  2505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2506. $as_echo "$ac_try_echo"; } >&5
  2507. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2508. ac_status=$?
  2509. if test -s conftest.err; then
  2510. sed '10a\
  2511. ... rest of stderr output deleted ...
  2512. 10q' conftest.err >conftest.er1
  2513. cat conftest.er1 >&5
  2514. fi
  2515. rm -f conftest.er1 conftest.err
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2517. test $ac_status = 0; }
  2518. done
  2519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2520. /* end confdefs.h. */
  2521. int
  2522. main ()
  2523. {
  2524. ;
  2525. return 0;
  2526. }
  2527. _ACEOF
  2528. ac_clean_files_save=$ac_clean_files
  2529. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2530. # Try to create an executable without -o first, disregard a.out.
  2531. # It will help us diagnose broken compilers, and finding out an intuition
  2532. # of exeext.
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2534. $as_echo_n "checking whether the C compiler works... " >&6; }
  2535. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2536. # The possible output files:
  2537. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2538. ac_rmfiles=
  2539. for ac_file in $ac_files
  2540. do
  2541. case $ac_file in
  2542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2543. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2544. esac
  2545. done
  2546. rm -f $ac_rmfiles
  2547. if { { ac_try="$ac_link_default"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2553. $as_echo "$ac_try_echo"; } >&5
  2554. (eval "$ac_link_default") 2>&5
  2555. ac_status=$?
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }; then :
  2558. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2559. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2560. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2561. # so that the user can short-circuit this test for compilers unknown to
  2562. # Autoconf.
  2563. for ac_file in $ac_files ''
  2564. do
  2565. test -f "$ac_file" || continue
  2566. case $ac_file in
  2567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2568. ;;
  2569. [ab].out )
  2570. # We found the default executable, but exeext='' is most
  2571. # certainly right.
  2572. break;;
  2573. *.* )
  2574. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2575. then :; else
  2576. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2577. fi
  2578. # We set ac_cv_exeext here because the later test for it is not
  2579. # safe: cross compilers may not add the suffix if given an `-o'
  2580. # argument, so we may need to know it at that point already.
  2581. # Even if this section looks crufty: it has the advantage of
  2582. # actually working.
  2583. break;;
  2584. * )
  2585. break;;
  2586. esac
  2587. done
  2588. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2589. else
  2590. ac_file=''
  2591. fi
  2592. if test -z "$ac_file"; then :
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. $as_echo "no" >&6; }
  2595. $as_echo "$as_me: failed program was:" >&5
  2596. sed 's/^/| /' conftest.$ac_ext >&5
  2597. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2599. as_fn_error 77 "C compiler cannot create executables
  2600. See \`config.log' for more details" "$LINENO" 5; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2603. $as_echo "yes" >&6; }
  2604. fi
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2606. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2608. $as_echo "$ac_file" >&6; }
  2609. ac_exeext=$ac_cv_exeext
  2610. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2611. ac_clean_files=$ac_clean_files_save
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2613. $as_echo_n "checking for suffix of executables... " >&6; }
  2614. if { { ac_try="$ac_link"
  2615. case "(($ac_try" in
  2616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2617. *) ac_try_echo=$ac_try;;
  2618. esac
  2619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2620. $as_echo "$ac_try_echo"; } >&5
  2621. (eval "$ac_link") 2>&5
  2622. ac_status=$?
  2623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2624. test $ac_status = 0; }; then :
  2625. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2626. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2627. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2628. # `rm'.
  2629. for ac_file in conftest.exe conftest conftest.*; do
  2630. test -f "$ac_file" || continue
  2631. case $ac_file in
  2632. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2633. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2634. break;;
  2635. * ) break;;
  2636. esac
  2637. done
  2638. else
  2639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2641. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2642. See \`config.log' for more details" "$LINENO" 5; }
  2643. fi
  2644. rm -f conftest conftest$ac_cv_exeext
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2646. $as_echo "$ac_cv_exeext" >&6; }
  2647. rm -f conftest.$ac_ext
  2648. EXEEXT=$ac_cv_exeext
  2649. ac_exeext=$EXEEXT
  2650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2651. /* end confdefs.h. */
  2652. #include <stdio.h>
  2653. int
  2654. main ()
  2655. {
  2656. FILE *f = fopen ("conftest.out", "w");
  2657. return ferror (f) || fclose (f) != 0;
  2658. ;
  2659. return 0;
  2660. }
  2661. _ACEOF
  2662. ac_clean_files="$ac_clean_files conftest.out"
  2663. # Check that the compiler produces executables we can run. If not, either
  2664. # the compiler is broken, or we cross compile.
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2666. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2667. if test "$cross_compiling" != yes; then
  2668. { { ac_try="$ac_link"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2674. $as_echo "$ac_try_echo"; } >&5
  2675. (eval "$ac_link") 2>&5
  2676. ac_status=$?
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2678. test $ac_status = 0; }
  2679. if { ac_try='./conftest$ac_cv_exeext'
  2680. { { case "(($ac_try" in
  2681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2682. *) ac_try_echo=$ac_try;;
  2683. esac
  2684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2685. $as_echo "$ac_try_echo"; } >&5
  2686. (eval "$ac_try") 2>&5
  2687. ac_status=$?
  2688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2689. test $ac_status = 0; }; }; then
  2690. cross_compiling=no
  2691. else
  2692. if test "$cross_compiling" = maybe; then
  2693. cross_compiling=yes
  2694. else
  2695. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2697. as_fn_error $? "cannot run C compiled programs.
  2698. If you meant to cross compile, use \`--host'.
  2699. See \`config.log' for more details" "$LINENO" 5; }
  2700. fi
  2701. fi
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2704. $as_echo "$cross_compiling" >&6; }
  2705. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2706. ac_clean_files=$ac_clean_files_save
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2708. $as_echo_n "checking for suffix of object files... " >&6; }
  2709. if ${ac_cv_objext+:} false; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2713. /* end confdefs.h. */
  2714. int
  2715. main ()
  2716. {
  2717. ;
  2718. return 0;
  2719. }
  2720. _ACEOF
  2721. rm -f conftest.o conftest.obj
  2722. if { { ac_try="$ac_compile"
  2723. case "(($ac_try" in
  2724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2725. *) ac_try_echo=$ac_try;;
  2726. esac
  2727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2728. $as_echo "$ac_try_echo"; } >&5
  2729. (eval "$ac_compile") 2>&5
  2730. ac_status=$?
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2732. test $ac_status = 0; }; then :
  2733. for ac_file in conftest.o conftest.obj conftest.*; do
  2734. test -f "$ac_file" || continue;
  2735. case $ac_file in
  2736. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2737. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2738. break;;
  2739. esac
  2740. done
  2741. else
  2742. $as_echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2745. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2746. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2747. See \`config.log' for more details" "$LINENO" 5; }
  2748. fi
  2749. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2750. fi
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2752. $as_echo "$ac_cv_objext" >&6; }
  2753. OBJEXT=$ac_cv_objext
  2754. ac_objext=$OBJEXT
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2756. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2757. if ${ac_cv_c_compiler_gnu+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2761. /* end confdefs.h. */
  2762. int
  2763. main ()
  2764. {
  2765. #ifndef __GNUC__
  2766. choke me
  2767. #endif
  2768. ;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. if ac_fn_c_try_compile "$LINENO"; then :
  2773. ac_compiler_gnu=yes
  2774. else
  2775. ac_compiler_gnu=no
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2779. fi
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2781. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2782. if test $ac_compiler_gnu = yes; then
  2783. GCC=yes
  2784. else
  2785. GCC=
  2786. fi
  2787. ac_test_CFLAGS=${CFLAGS+set}
  2788. ac_save_CFLAGS=$CFLAGS
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2790. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2791. if ${ac_cv_prog_cc_g+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. ac_save_c_werror_flag=$ac_c_werror_flag
  2795. ac_c_werror_flag=yes
  2796. ac_cv_prog_cc_g=no
  2797. CFLAGS="-g"
  2798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. if ac_fn_c_try_compile "$LINENO"; then :
  2808. ac_cv_prog_cc_g=yes
  2809. else
  2810. CFLAGS=""
  2811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2812. /* end confdefs.h. */
  2813. int
  2814. main ()
  2815. {
  2816. ;
  2817. return 0;
  2818. }
  2819. _ACEOF
  2820. if ac_fn_c_try_compile "$LINENO"; then :
  2821. else
  2822. ac_c_werror_flag=$ac_save_c_werror_flag
  2823. CFLAGS="-g"
  2824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. if ac_fn_c_try_compile "$LINENO"; then :
  2834. ac_cv_prog_cc_g=yes
  2835. fi
  2836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2837. fi
  2838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2839. fi
  2840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2841. ac_c_werror_flag=$ac_save_c_werror_flag
  2842. fi
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2844. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2845. if test "$ac_test_CFLAGS" = set; then
  2846. CFLAGS=$ac_save_CFLAGS
  2847. elif test $ac_cv_prog_cc_g = yes; then
  2848. if test "$GCC" = yes; then
  2849. CFLAGS="-g -O2"
  2850. else
  2851. CFLAGS="-g"
  2852. fi
  2853. else
  2854. if test "$GCC" = yes; then
  2855. CFLAGS="-O2"
  2856. else
  2857. CFLAGS=
  2858. fi
  2859. fi
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2861. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2862. if ${ac_cv_prog_cc_c89+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. ac_cv_prog_cc_c89=no
  2866. ac_save_CC=$CC
  2867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2868. /* end confdefs.h. */
  2869. #include <stdarg.h>
  2870. #include <stdio.h>
  2871. struct stat;
  2872. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2873. struct buf { int x; };
  2874. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2875. static char *e (p, i)
  2876. char **p;
  2877. int i;
  2878. {
  2879. return p[i];
  2880. }
  2881. static char *f (char * (*g) (char **, int), char **p, ...)
  2882. {
  2883. char *s;
  2884. va_list v;
  2885. va_start (v,p);
  2886. s = g (p, va_arg (v,int));
  2887. va_end (v);
  2888. return s;
  2889. }
  2890. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2891. function prototypes and stuff, but not '\xHH' hex character constants.
  2892. These don't provoke an error unfortunately, instead are silently treated
  2893. as 'x'. The following induces an error, until -std is added to get
  2894. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2895. array size at least. It's necessary to write '\x00'==0 to get something
  2896. that's true only with -std. */
  2897. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2898. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2899. inside strings and character constants. */
  2900. #define FOO(x) 'x'
  2901. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2902. int test (int i, double x);
  2903. struct s1 {int (*f) (int a);};
  2904. struct s2 {int (*f) (double a);};
  2905. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2906. int argc;
  2907. char **argv;
  2908. int
  2909. main ()
  2910. {
  2911. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2912. ;
  2913. return 0;
  2914. }
  2915. _ACEOF
  2916. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2917. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2918. do
  2919. CC="$ac_save_CC $ac_arg"
  2920. if ac_fn_c_try_compile "$LINENO"; then :
  2921. ac_cv_prog_cc_c89=$ac_arg
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext
  2924. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2925. done
  2926. rm -f conftest.$ac_ext
  2927. CC=$ac_save_CC
  2928. fi
  2929. # AC_CACHE_VAL
  2930. case "x$ac_cv_prog_cc_c89" in
  2931. x)
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2933. $as_echo "none needed" >&6; } ;;
  2934. xno)
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2936. $as_echo "unsupported" >&6; } ;;
  2937. *)
  2938. CC="$CC $ac_cv_prog_cc_c89"
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2940. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2941. esac
  2942. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2943. fi
  2944. ac_ext=c
  2945. ac_cpp='$CPP $CPPFLAGS'
  2946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2949. if test -n "$ac_tool_prefix"; then
  2950. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2951. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. $as_echo_n "checking for $ac_word... " >&6; }
  2954. if ${ac_cv_prog_RANLIB+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. if test -n "$RANLIB"; then
  2958. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2959. else
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. test -z "$as_dir" && as_dir=.
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2967. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi
  2975. fi
  2976. RANLIB=$ac_cv_prog_RANLIB
  2977. if test -n "$RANLIB"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  2979. $as_echo "$RANLIB" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. fi
  2985. if test -z "$ac_cv_prog_RANLIB"; then
  2986. ac_ct_RANLIB=$RANLIB
  2987. # Extract the first word of "ranlib", so it can be a program name with args.
  2988. set dummy ranlib; ac_word=$2
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2990. $as_echo_n "checking for $ac_word... " >&6; }
  2991. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. if test -n "$ac_ct_RANLIB"; then
  2995. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2996. else
  2997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2998. for as_dir in $PATH
  2999. do
  3000. IFS=$as_save_IFS
  3001. test -z "$as_dir" && as_dir=.
  3002. for ac_exec_ext in '' $ac_executable_extensions; do
  3003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3004. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3006. break 2
  3007. fi
  3008. done
  3009. done
  3010. IFS=$as_save_IFS
  3011. fi
  3012. fi
  3013. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3014. if test -n "$ac_ct_RANLIB"; then
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3016. $as_echo "$ac_ct_RANLIB" >&6; }
  3017. else
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3019. $as_echo "no" >&6; }
  3020. fi
  3021. if test "x$ac_ct_RANLIB" = x; then
  3022. RANLIB=":"
  3023. else
  3024. case $cross_compiling:$ac_tool_warned in
  3025. yes:)
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3027. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3028. ac_tool_warned=yes ;;
  3029. esac
  3030. RANLIB=$ac_ct_RANLIB
  3031. fi
  3032. else
  3033. RANLIB="$ac_cv_prog_RANLIB"
  3034. fi
  3035. # Extract the first word of "ar", so it can be a program name with args.
  3036. set dummy ar; ac_word=$2
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3038. $as_echo_n "checking for $ac_word... " >&6; }
  3039. if ${ac_cv_prog_AR+:} false; then :
  3040. $as_echo_n "(cached) " >&6
  3041. else
  3042. if test -n "$AR"; then
  3043. ac_cv_prog_AR="$AR" # Let the user override the test.
  3044. else
  3045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3046. for as_dir in $PATH
  3047. do
  3048. IFS=$as_save_IFS
  3049. test -z "$as_dir" && as_dir=.
  3050. for ac_exec_ext in '' $ac_executable_extensions; do
  3051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3052. ac_cv_prog_AR="ar"
  3053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3054. break 2
  3055. fi
  3056. done
  3057. done
  3058. IFS=$as_save_IFS
  3059. test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="gar"
  3060. fi
  3061. fi
  3062. AR=$ac_cv_prog_AR
  3063. if test -n "$AR"; then
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3065. $as_echo "$AR" >&6; }
  3066. else
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3068. $as_echo "no" >&6; }
  3069. fi
  3070. #
  3071. # we need to explicitely call this here; otherwise, with --disable-libwrap we
  3072. # fail
  3073. if test "$GCC" = yes; then
  3074. CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -Wno-parentheses"
  3075. ERRONWARN="-Werror -O0"
  3076. elif test "$CC" = "clang"; then
  3077. CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -Wno-parentheses"
  3078. ERRONWARN="-Werror -O0"
  3079. #elif Sun Studio
  3080. # ERRONWARN="-errwarn"
  3081. else
  3082. ERRONWARN=
  3083. fi
  3084. export CFLAGS
  3085. ac_ext=c
  3086. ac_cpp='$CPP $CPPFLAGS'
  3087. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3088. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3089. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3091. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3092. # On Suns, sometimes $CPP names a directory.
  3093. if test -n "$CPP" && test -d "$CPP"; then
  3094. CPP=
  3095. fi
  3096. if test -z "$CPP"; then
  3097. if ${ac_cv_prog_CPP+:} false; then :
  3098. $as_echo_n "(cached) " >&6
  3099. else
  3100. # Double quotes because CPP needs to be expanded
  3101. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3102. do
  3103. ac_preproc_ok=false
  3104. for ac_c_preproc_warn_flag in '' yes
  3105. do
  3106. # Use a header file that comes with gcc, so configuring glibc
  3107. # with a fresh cross-compiler works.
  3108. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3109. # <limits.h> exists even on freestanding compilers.
  3110. # On the NeXT, cc -E runs the code through the compiler's parser,
  3111. # not just through cpp. "Syntax error" is here to catch this case.
  3112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3113. /* end confdefs.h. */
  3114. #ifdef __STDC__
  3115. # include <limits.h>
  3116. #else
  3117. # include <assert.h>
  3118. #endif
  3119. Syntax error
  3120. _ACEOF
  3121. if ac_fn_c_try_cpp "$LINENO"; then :
  3122. else
  3123. # Broken: fails on valid input.
  3124. continue
  3125. fi
  3126. rm -f conftest.err conftest.i conftest.$ac_ext
  3127. # OK, works on sane cases. Now check whether nonexistent headers
  3128. # can be detected and how.
  3129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3130. /* end confdefs.h. */
  3131. #include <ac_nonexistent.h>
  3132. _ACEOF
  3133. if ac_fn_c_try_cpp "$LINENO"; then :
  3134. # Broken: success on invalid input.
  3135. continue
  3136. else
  3137. # Passes both tests.
  3138. ac_preproc_ok=:
  3139. break
  3140. fi
  3141. rm -f conftest.err conftest.i conftest.$ac_ext
  3142. done
  3143. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3144. rm -f conftest.i conftest.err conftest.$ac_ext
  3145. if $ac_preproc_ok; then :
  3146. break
  3147. fi
  3148. done
  3149. ac_cv_prog_CPP=$CPP
  3150. fi
  3151. CPP=$ac_cv_prog_CPP
  3152. else
  3153. ac_cv_prog_CPP=$CPP
  3154. fi
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3156. $as_echo "$CPP" >&6; }
  3157. ac_preproc_ok=false
  3158. for ac_c_preproc_warn_flag in '' yes
  3159. do
  3160. # Use a header file that comes with gcc, so configuring glibc
  3161. # with a fresh cross-compiler works.
  3162. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3163. # <limits.h> exists even on freestanding compilers.
  3164. # On the NeXT, cc -E runs the code through the compiler's parser,
  3165. # not just through cpp. "Syntax error" is here to catch this case.
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. #ifdef __STDC__
  3169. # include <limits.h>
  3170. #else
  3171. # include <assert.h>
  3172. #endif
  3173. Syntax error
  3174. _ACEOF
  3175. if ac_fn_c_try_cpp "$LINENO"; then :
  3176. else
  3177. # Broken: fails on valid input.
  3178. continue
  3179. fi
  3180. rm -f conftest.err conftest.i conftest.$ac_ext
  3181. # OK, works on sane cases. Now check whether nonexistent headers
  3182. # can be detected and how.
  3183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3184. /* end confdefs.h. */
  3185. #include <ac_nonexistent.h>
  3186. _ACEOF
  3187. if ac_fn_c_try_cpp "$LINENO"; then :
  3188. # Broken: success on invalid input.
  3189. continue
  3190. else
  3191. # Passes both tests.
  3192. ac_preproc_ok=:
  3193. break
  3194. fi
  3195. rm -f conftest.err conftest.i conftest.$ac_ext
  3196. done
  3197. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3198. rm -f conftest.i conftest.err conftest.$ac_ext
  3199. if $ac_preproc_ok; then :
  3200. else
  3201. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3203. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3204. See \`config.log' for more details" "$LINENO" 5; }
  3205. fi
  3206. ac_ext=c
  3207. ac_cpp='$CPP $CPPFLAGS'
  3208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3212. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3213. if ${ac_cv_path_GREP+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. if test -z "$GREP"; then
  3217. ac_path_GREP_found=false
  3218. # Loop through the user's path and test for each of PROGNAME-LIST
  3219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3220. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3221. do
  3222. IFS=$as_save_IFS
  3223. test -z "$as_dir" && as_dir=.
  3224. for ac_prog in grep ggrep; do
  3225. for ac_exec_ext in '' $ac_executable_extensions; do
  3226. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3227. as_fn_executable_p "$ac_path_GREP" || continue
  3228. # Check for GNU ac_path_GREP and select it if it is found.
  3229. # Check for GNU $ac_path_GREP
  3230. case `"$ac_path_GREP" --version 2>&1` in
  3231. *GNU*)
  3232. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3233. *)
  3234. ac_count=0
  3235. $as_echo_n 0123456789 >"conftest.in"
  3236. while :
  3237. do
  3238. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3239. mv "conftest.tmp" "conftest.in"
  3240. cp "conftest.in" "conftest.nl"
  3241. $as_echo 'GREP' >> "conftest.nl"
  3242. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3243. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3244. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3245. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3246. # Best one so far, save it but keep looking for a better one
  3247. ac_cv_path_GREP="$ac_path_GREP"
  3248. ac_path_GREP_max=$ac_count
  3249. fi
  3250. # 10*(2^10) chars as input seems more than enough
  3251. test $ac_count -gt 10 && break
  3252. done
  3253. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3254. esac
  3255. $ac_path_GREP_found && break 3
  3256. done
  3257. done
  3258. done
  3259. IFS=$as_save_IFS
  3260. if test -z "$ac_cv_path_GREP"; then
  3261. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3262. fi
  3263. else
  3264. ac_cv_path_GREP=$GREP
  3265. fi
  3266. fi
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3268. $as_echo "$ac_cv_path_GREP" >&6; }
  3269. GREP="$ac_cv_path_GREP"
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3271. $as_echo_n "checking for egrep... " >&6; }
  3272. if ${ac_cv_path_EGREP+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3276. then ac_cv_path_EGREP="$GREP -E"
  3277. else
  3278. if test -z "$EGREP"; then
  3279. ac_path_EGREP_found=false
  3280. # Loop through the user's path and test for each of PROGNAME-LIST
  3281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3282. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3283. do
  3284. IFS=$as_save_IFS
  3285. test -z "$as_dir" && as_dir=.
  3286. for ac_prog in egrep; do
  3287. for ac_exec_ext in '' $ac_executable_extensions; do
  3288. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3289. as_fn_executable_p "$ac_path_EGREP" || continue
  3290. # Check for GNU ac_path_EGREP and select it if it is found.
  3291. # Check for GNU $ac_path_EGREP
  3292. case `"$ac_path_EGREP" --version 2>&1` in
  3293. *GNU*)
  3294. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3295. *)
  3296. ac_count=0
  3297. $as_echo_n 0123456789 >"conftest.in"
  3298. while :
  3299. do
  3300. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3301. mv "conftest.tmp" "conftest.in"
  3302. cp "conftest.in" "conftest.nl"
  3303. $as_echo 'EGREP' >> "conftest.nl"
  3304. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3305. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3306. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3307. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3308. # Best one so far, save it but keep looking for a better one
  3309. ac_cv_path_EGREP="$ac_path_EGREP"
  3310. ac_path_EGREP_max=$ac_count
  3311. fi
  3312. # 10*(2^10) chars as input seems more than enough
  3313. test $ac_count -gt 10 && break
  3314. done
  3315. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3316. esac
  3317. $ac_path_EGREP_found && break 3
  3318. done
  3319. done
  3320. done
  3321. IFS=$as_save_IFS
  3322. if test -z "$ac_cv_path_EGREP"; then
  3323. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3324. fi
  3325. else
  3326. ac_cv_path_EGREP=$EGREP
  3327. fi
  3328. fi
  3329. fi
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3331. $as_echo "$ac_cv_path_EGREP" >&6; }
  3332. EGREP="$ac_cv_path_EGREP"
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3334. $as_echo_n "checking for ANSI C header files... " >&6; }
  3335. if ${ac_cv_header_stdc+:} false; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. #include <stdlib.h>
  3341. #include <stdarg.h>
  3342. #include <string.h>
  3343. #include <float.h>
  3344. int
  3345. main ()
  3346. {
  3347. ;
  3348. return 0;
  3349. }
  3350. _ACEOF
  3351. if ac_fn_c_try_compile "$LINENO"; then :
  3352. ac_cv_header_stdc=yes
  3353. else
  3354. ac_cv_header_stdc=no
  3355. fi
  3356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3357. if test $ac_cv_header_stdc = yes; then
  3358. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3360. /* end confdefs.h. */
  3361. #include <string.h>
  3362. _ACEOF
  3363. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3364. $EGREP "memchr" >/dev/null 2>&1; then :
  3365. else
  3366. ac_cv_header_stdc=no
  3367. fi
  3368. rm -f conftest*
  3369. fi
  3370. if test $ac_cv_header_stdc = yes; then
  3371. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end confdefs.h. */
  3374. #include <stdlib.h>
  3375. _ACEOF
  3376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3377. $EGREP "free" >/dev/null 2>&1; then :
  3378. else
  3379. ac_cv_header_stdc=no
  3380. fi
  3381. rm -f conftest*
  3382. fi
  3383. if test $ac_cv_header_stdc = yes; then
  3384. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3385. if test "$cross_compiling" = yes; then :
  3386. :
  3387. else
  3388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3389. /* end confdefs.h. */
  3390. #include <ctype.h>
  3391. #include <stdlib.h>
  3392. #if ((' ' & 0x0FF) == 0x020)
  3393. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3394. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3395. #else
  3396. # define ISLOWER(c) \
  3397. (('a' <= (c) && (c) <= 'i') \
  3398. || ('j' <= (c) && (c) <= 'r') \
  3399. || ('s' <= (c) && (c) <= 'z'))
  3400. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3401. #endif
  3402. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3403. int
  3404. main ()
  3405. {
  3406. int i;
  3407. for (i = 0; i < 256; i++)
  3408. if (XOR (islower (i), ISLOWER (i))
  3409. || toupper (i) != TOUPPER (i))
  3410. return 2;
  3411. return 0;
  3412. }
  3413. _ACEOF
  3414. if ac_fn_c_try_run "$LINENO"; then :
  3415. else
  3416. ac_cv_header_stdc=no
  3417. fi
  3418. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3419. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3420. fi
  3421. fi
  3422. fi
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3424. $as_echo "$ac_cv_header_stdc" >&6; }
  3425. if test $ac_cv_header_stdc = yes; then
  3426. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3427. fi
  3428. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3429. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3430. inttypes.h stdint.h unistd.h
  3431. do :
  3432. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3433. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3434. "
  3435. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3436. cat >>confdefs.h <<_ACEOF
  3437. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3438. _ACEOF
  3439. fi
  3440. done
  3441. for ac_header in stdbool.h
  3442. do :
  3443. ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
  3444. if test "x$ac_cv_header_stdbool_h" = xyes; then :
  3445. cat >>confdefs.h <<_ACEOF
  3446. #define HAVE_STDBOOL_H 1
  3447. _ACEOF
  3448. fi
  3449. done
  3450. for ac_header in inttypes.h
  3451. do :
  3452. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  3453. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  3454. cat >>confdefs.h <<_ACEOF
  3455. #define HAVE_INTTYPES_H 1
  3456. _ACEOF
  3457. fi
  3458. done
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3460. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  3461. if ${ac_cv_header_sys_wait_h+:} false; then :
  3462. $as_echo_n "(cached) " >&6
  3463. else
  3464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3465. /* end confdefs.h. */
  3466. #include <sys/types.h>
  3467. #include <sys/wait.h>
  3468. #ifndef WEXITSTATUS
  3469. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  3470. #endif
  3471. #ifndef WIFEXITED
  3472. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3473. #endif
  3474. int
  3475. main ()
  3476. {
  3477. int s;
  3478. wait (&s);
  3479. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3480. ;
  3481. return 0;
  3482. }
  3483. _ACEOF
  3484. if ac_fn_c_try_compile "$LINENO"; then :
  3485. ac_cv_header_sys_wait_h=yes
  3486. else
  3487. ac_cv_header_sys_wait_h=no
  3488. fi
  3489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  3492. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  3493. if test $ac_cv_header_sys_wait_h = yes; then
  3494. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  3495. fi
  3496. for ac_header in fcntl.h limits.h strings.h sys/param.h sys/ioctl.h sys/time.h syslog.h unistd.h
  3497. do :
  3498. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3499. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3500. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3501. cat >>confdefs.h <<_ACEOF
  3502. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3503. _ACEOF
  3504. fi
  3505. done
  3506. for ac_header in pwd.h grp.h stdint.h sys/types.h poll.h sys/poll.h sys/socket.h sys/uio.h sys/stat.h netdb.h sys/un.h
  3507. do :
  3508. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3509. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3510. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3511. cat >>confdefs.h <<_ACEOF
  3512. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3513. _ACEOF
  3514. fi
  3515. done
  3516. for ac_header in pty.h
  3517. do :
  3518. ac_fn_c_check_header_mongrel "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
  3519. if test "x$ac_cv_header_pty_h" = xyes; then :
  3520. cat >>confdefs.h <<_ACEOF
  3521. #define HAVE_PTY_H 1
  3522. _ACEOF
  3523. fi
  3524. done
  3525. for ac_header in netinet/in.h netinet/in_systm.h
  3526. do :
  3527. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3528. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3529. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3530. cat >>confdefs.h <<_ACEOF
  3531. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3532. _ACEOF
  3533. fi
  3534. done
  3535. for ac_header in netinet/ip.h
  3536. do :
  3537. ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "$ac_includes_default
  3538. #if HAVE_NETINET_IN_H && HAVE_NETINET_IN_SYSTM_H
  3539. #include <netinet/in.h>
  3540. #include <netinet/in_systm.h>
  3541. #endif
  3542. "
  3543. if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
  3544. cat >>confdefs.h <<_ACEOF
  3545. #define HAVE_NETINET_IP_H 1
  3546. _ACEOF
  3547. fi
  3548. done
  3549. # Solaris prerequisites for netinet/ip.h
  3550. for ac_header in netinet/tcp.h
  3551. do :
  3552. ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
  3553. if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
  3554. cat >>confdefs.h <<_ACEOF
  3555. #define HAVE_NETINET_TCP_H 1
  3556. _ACEOF
  3557. fi
  3558. done
  3559. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
  3560. #if HAVE_SYS_SOCKET_H
  3561. #include <sys/socket.h>
  3562. #endif
  3563. "
  3564. if test "x$ac_cv_header_net_if_h" = xyes; then :
  3565. $as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h
  3566. fi
  3567. # Mac OS X requires including sys/socket.h
  3568. for ac_header in arpa/nameser.h
  3569. do :
  3570. ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
  3571. if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
  3572. cat >>confdefs.h <<_ACEOF
  3573. #define HAVE_ARPA_NAMESER_H 1
  3574. _ACEOF
  3575. fi
  3576. done
  3577. for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
  3578. do :
  3579. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3580. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
  3581. # include <sys/types.h>
  3582. #endif
  3583. #ifdef HAVE_NETINET_IN_H
  3584. # include <netinet/in.h> /* inet_ functions / structs */
  3585. #endif
  3586. #ifdef HAVE_ARPA_NAMESER_H
  3587. # include <arpa/nameser.h> /* DNS HEADER struct */
  3588. #endif
  3589. #ifdef HAVE_NETDB_H
  3590. # include <netdb.h>
  3591. #endif
  3592. "
  3593. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3594. cat >>confdefs.h <<_ACEOF
  3595. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3596. _ACEOF
  3597. fi
  3598. done
  3599. for ac_header in termios.h linux/if_tun.h
  3600. do :
  3601. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3602. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3603. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3604. cat >>confdefs.h <<_ACEOF
  3605. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3606. _ACEOF
  3607. fi
  3608. done
  3609. for ac_header in net/if_dl.h
  3610. do :
  3611. ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
  3612. if test "x$ac_cv_header_net_if_dl_h" = xyes; then :
  3613. cat >>confdefs.h <<_ACEOF
  3614. #define HAVE_NET_IF_DL_H 1
  3615. _ACEOF
  3616. fi
  3617. done
  3618. for ac_header in linux/types.h
  3619. do :
  3620. ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
  3621. if test "x$ac_cv_header_linux_types_h" = xyes; then :
  3622. cat >>confdefs.h <<_ACEOF
  3623. #define HAVE_LINUX_TYPES_H 1
  3624. _ACEOF
  3625. fi
  3626. done
  3627. ac_fn_c_check_header_compile "$LINENO" "linux/errqueue.h" "ac_cv_header_linux_errqueue_h" "#include <sys/time.h>
  3628. #include <linux/types.h>
  3629. "
  3630. if test "x$ac_cv_header_linux_errqueue_h" = xyes; then :
  3631. $as_echo "#define HAVE_LINUX_ERRQUEUE_H 1" >>confdefs.h
  3632. fi
  3633. for ac_header in sys/utsname.h sys/select.h sys/file.h
  3634. do :
  3635. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3636. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3637. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3638. cat >>confdefs.h <<_ACEOF
  3639. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3640. _ACEOF
  3641. fi
  3642. done
  3643. for ac_header in util.h bsd/libutil.h libutil.h sys/stropts.h regex.h
  3644. do :
  3645. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3646. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3647. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3648. cat >>confdefs.h <<_ACEOF
  3649. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3650. _ACEOF
  3651. fi
  3652. done
  3653. for ac_header in linux/fs.h linux/ext2_fs.h
  3654. do :
  3655. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3656. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3657. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3658. cat >>confdefs.h <<_ACEOF
  3659. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3660. _ACEOF
  3661. fi
  3662. done
  3663. for ac_func in setgrent getgrent endgrent
  3664. do :
  3665. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3666. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3667. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3668. cat >>confdefs.h <<_ACEOF
  3669. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3670. _ACEOF
  3671. fi
  3672. done
  3673. for ac_func in getgrouplist
  3674. do :
  3675. ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
  3676. if test "x$ac_cv_func_getgrouplist" = xyes; then :
  3677. cat >>confdefs.h <<_ACEOF
  3678. #define HAVE_GETGROUPLIST 1
  3679. _ACEOF
  3680. fi
  3681. done
  3682. for ac_func in cfmakeraw
  3683. do :
  3684. ac_fn_c_check_func "$LINENO" "cfmakeraw" "ac_cv_func_cfmakeraw"
  3685. if test "x$ac_cv_func_cfmakeraw" = xyes; then :
  3686. cat >>confdefs.h <<_ACEOF
  3687. #define HAVE_CFMAKERAW 1
  3688. _ACEOF
  3689. fi
  3690. done
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
  3692. $as_echo_n "checking for library containing res_9_init... " >&6; }
  3693. if ${ac_cv_search_res_9_init+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. ac_func_search_save_LIBS=$LIBS
  3697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3698. /* end confdefs.h. */
  3699. /* Override any GCC internal prototype to avoid an error.
  3700. Use char because int might match the return type of a GCC
  3701. builtin and then its argument prototype would still apply. */
  3702. #ifdef __cplusplus
  3703. extern "C"
  3704. #endif
  3705. char res_9_init ();
  3706. int
  3707. main ()
  3708. {
  3709. return res_9_init ();
  3710. ;
  3711. return 0;
  3712. }
  3713. _ACEOF
  3714. for ac_lib in '' resolv; do
  3715. if test -z "$ac_lib"; then
  3716. ac_res="none required"
  3717. else
  3718. ac_res=-l$ac_lib
  3719. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3720. fi
  3721. if ac_fn_c_try_link "$LINENO"; then :
  3722. ac_cv_search_res_9_init=$ac_res
  3723. fi
  3724. rm -f core conftest.err conftest.$ac_objext \
  3725. conftest$ac_exeext
  3726. if ${ac_cv_search_res_9_init+:} false; then :
  3727. break
  3728. fi
  3729. done
  3730. if ${ac_cv_search_res_9_init+:} false; then :
  3731. else
  3732. ac_cv_search_res_9_init=no
  3733. fi
  3734. rm conftest.$ac_ext
  3735. LIBS=$ac_func_search_save_LIBS
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
  3738. $as_echo "$ac_cv_search_res_9_init" >&6; }
  3739. ac_res=$ac_cv_search_res_9_init
  3740. if test "$ac_res" != no; then :
  3741. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3742. fi
  3743. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  3744. if test "x$ac_cv_func_hstrerror" = xyes; then :
  3745. else
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
  3747. $as_echo_n "checking for hstrerror in -lresolv... " >&6; }
  3748. if ${ac_cv_lib_resolv_hstrerror+:} false; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. ac_check_lib_save_LIBS=$LIBS
  3752. LIBS="-lresolv $LIBS"
  3753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3754. /* end confdefs.h. */
  3755. /* Override any GCC internal prototype to avoid an error.
  3756. Use char because int might match the return type of a GCC
  3757. builtin and then its argument prototype would still apply. */
  3758. #ifdef __cplusplus
  3759. extern "C"
  3760. #endif
  3761. char hstrerror ();
  3762. int
  3763. main ()
  3764. {
  3765. return hstrerror ();
  3766. ;
  3767. return 0;
  3768. }
  3769. _ACEOF
  3770. if ac_fn_c_try_link "$LINENO"; then :
  3771. ac_cv_lib_resolv_hstrerror=yes
  3772. else
  3773. ac_cv_lib_resolv_hstrerror=no
  3774. fi
  3775. rm -f core conftest.err conftest.$ac_objext \
  3776. conftest$ac_exeext conftest.$ac_ext
  3777. LIBS=$ac_check_lib_save_LIBS
  3778. fi
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
  3780. $as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
  3781. if test "x$ac_cv_lib_resolv_hstrerror" = xyes; then :
  3782. LIBS="$LIBS -lresolv"; $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
  3783. fi
  3784. fi
  3785. ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
  3786. if test "x$ac_cv_func_gethostent" = xyes; then :
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5
  3789. $as_echo_n "checking for gethostent in -lnsl... " >&6; }
  3790. if ${ac_cv_lib_nsl_gethostent+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. ac_check_lib_save_LIBS=$LIBS
  3794. LIBS="-lnsl $LIBS"
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. /* Override any GCC internal prototype to avoid an error.
  3798. Use char because int might match the return type of a GCC
  3799. builtin and then its argument prototype would still apply. */
  3800. #ifdef __cplusplus
  3801. extern "C"
  3802. #endif
  3803. char gethostent ();
  3804. int
  3805. main ()
  3806. {
  3807. return gethostent ();
  3808. ;
  3809. return 0;
  3810. }
  3811. _ACEOF
  3812. if ac_fn_c_try_link "$LINENO"; then :
  3813. ac_cv_lib_nsl_gethostent=yes
  3814. else
  3815. ac_cv_lib_nsl_gethostent=no
  3816. fi
  3817. rm -f core conftest.err conftest.$ac_objext \
  3818. conftest$ac_exeext conftest.$ac_ext
  3819. LIBS=$ac_check_lib_save_LIBS
  3820. fi
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5
  3822. $as_echo "$ac_cv_lib_nsl_gethostent" >&6; }
  3823. if test "x$ac_cv_lib_nsl_gethostent" = xyes; then :
  3824. cat >>confdefs.h <<_ACEOF
  3825. #define HAVE_LIBNSL 1
  3826. _ACEOF
  3827. LIBS="-lnsl $LIBS"
  3828. fi
  3829. fi
  3830. ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
  3831. if test "x$ac_cv_func_setsockopt" = xyes; then :
  3832. else
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
  3834. $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
  3835. if ${ac_cv_lib_socket_setsockopt+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. ac_check_lib_save_LIBS=$LIBS
  3839. LIBS="-lsocket $LIBS"
  3840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3841. /* end confdefs.h. */
  3842. /* Override any GCC internal prototype to avoid an error.
  3843. Use char because int might match the return type of a GCC
  3844. builtin and then its argument prototype would still apply. */
  3845. #ifdef __cplusplus
  3846. extern "C"
  3847. #endif
  3848. char setsockopt ();
  3849. int
  3850. main ()
  3851. {
  3852. return setsockopt ();
  3853. ;
  3854. return 0;
  3855. }
  3856. _ACEOF
  3857. if ac_fn_c_try_link "$LINENO"; then :
  3858. ac_cv_lib_socket_setsockopt=yes
  3859. else
  3860. ac_cv_lib_socket_setsockopt=no
  3861. fi
  3862. rm -f core conftest.err conftest.$ac_objext \
  3863. conftest$ac_exeext conftest.$ac_ext
  3864. LIBS=$ac_check_lib_save_LIBS
  3865. fi
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
  3867. $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
  3868. if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
  3869. cat >>confdefs.h <<_ACEOF
  3870. #define HAVE_LIBSOCKET 1
  3871. _ACEOF
  3872. LIBS="-lsocket $LIBS"
  3873. fi
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror prototype" >&5
  3876. $as_echo_n "checking for hstrerror prototype... " >&6; }
  3877. if ${sc_cv_have_prototype_hstrerror+:} false; then :
  3878. $as_echo_n "(cached) " >&6
  3879. else
  3880. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')";
  3881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3882. /* end confdefs.h. */
  3883. #include <netdb.h>
  3884. int
  3885. main ()
  3886. {
  3887. hstrerror();
  3888. ;
  3889. return 0;
  3890. }
  3891. _ACEOF
  3892. if ac_fn_c_try_compile "$LINENO"; then :
  3893. sc_cv_have_prototype_hstrerror=no
  3894. else
  3895. sc_cv_have_prototype_hstrerror=yes
  3896. fi
  3897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
  3898. CFLAGS="$CFLAGS1"
  3899. fi
  3900. if test $sc_cv_have_prototype_hstrerror = yes; then
  3901. $as_echo "#define HAVE_PROTOTYPE_HSTRERROR 1" >>confdefs.h
  3902. fi
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_hstrerror" >&5
  3904. $as_echo "$sc_cv_have_prototype_hstrerror" >&6; }
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include help" >&5
  3906. $as_echo_n "checking whether to include help... " >&6; }
  3907. # Check whether --enable-help was given.
  3908. if test "${enable_help+set}" = set; then :
  3909. enableval=$enable_help; case "$enableval" in
  3910. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3911. $as_echo "no" >&6; };;
  3912. *) $as_echo "#define WITH_HELP 1" >>confdefs.h
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3914. $as_echo "yes" >&6; };;
  3915. esac
  3916. else
  3917. $as_echo "#define WITH_HELP 1" >>confdefs.h
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3919. $as_echo "yes" >&6; }
  3920. fi
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include STDIO support" >&5
  3922. $as_echo_n "checking whether to include STDIO support... " >&6; }
  3923. # Check whether --enable-stdio was given.
  3924. if test "${enable_stdio+set}" = set; then :
  3925. enableval=$enable_stdio; case "$enableval" in
  3926. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3927. $as_echo "no" >&6; };;
  3928. *) $as_echo "#define WITH_STDIO 1" >>confdefs.h
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3930. $as_echo "yes" >&6; };;
  3931. esac
  3932. else
  3933. $as_echo "#define WITH_STDIO 1" >>confdefs.h
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3935. $as_echo "yes" >&6; }
  3936. fi
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include FD-number support" >&5
  3938. $as_echo_n "checking whether to include FD-number support... " >&6; }
  3939. # Check whether --enable-fdnum was given.
  3940. if test "${enable_fdnum+set}" = set; then :
  3941. enableval=$enable_fdnum; case "$enableval" in
  3942. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; };;
  3944. *) $as_echo "#define WITH_FDNUM 1" >>confdefs.h
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3946. $as_echo "yes" >&6; };;
  3947. esac
  3948. else
  3949. $as_echo "#define WITH_FDNUM 1" >>confdefs.h
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3951. $as_echo "yes" >&6; }
  3952. fi
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include direct file support" >&5
  3954. $as_echo_n "checking whether to include direct file support... " >&6; }
  3955. # Check whether --enable-file was given.
  3956. if test "${enable_file+set}" = set; then :
  3957. enableval=$enable_file; case "$enableval" in
  3958. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3959. $as_echo "no" >&6; };;
  3960. *) $as_echo "#define WITH_FILE 1" >>confdefs.h
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3962. $as_echo "yes" >&6; };;
  3963. esac
  3964. else
  3965. $as_echo "#define WITH_FILE 1" >>confdefs.h
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3967. $as_echo "yes" >&6; }
  3968. fi
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include direct create support" >&5
  3970. $as_echo_n "checking whether to include direct create support... " >&6; }
  3971. # Check whether --enable-creat was given.
  3972. if test "${enable_creat+set}" = set; then :
  3973. enableval=$enable_creat; case "$enableval" in
  3974. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3975. $as_echo "no" >&6; };;
  3976. *) $as_echo "#define WITH_CREAT 1" >>confdefs.h
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3978. $as_echo "yes" >&6; };;
  3979. esac
  3980. else
  3981. $as_echo "#define WITH_CREAT 1" >>confdefs.h
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3983. $as_echo "yes" >&6; }
  3984. fi
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gopen support" >&5
  3986. $as_echo_n "checking whether to include gopen support... " >&6; }
  3987. # Check whether --enable-gopen was given.
  3988. if test "${enable_gopen+set}" = set; then :
  3989. enableval=$enable_gopen; case "$enableval" in
  3990. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3991. $as_echo "no" >&6; };;
  3992. *) $as_echo "#define WITH_GOPEN 1" >>confdefs.h
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3994. $as_echo "yes" >&6; };;
  3995. esac
  3996. else
  3997. $as_echo "#define WITH_GOPEN 1" >>confdefs.h
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3999. $as_echo "yes" >&6; }
  4000. fi
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include explicit pipe support" >&5
  4002. $as_echo_n "checking whether to include explicit pipe support... " >&6; }
  4003. # Check whether --enable-pipe was given.
  4004. if test "${enable_pipe+set}" = set; then :
  4005. enableval=$enable_pipe; case "$enableval" in
  4006. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4007. $as_echo "no" >&6; };;
  4008. *) $as_echo "#define WITH_PIPE 1" >>confdefs.h
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4010. $as_echo "yes" >&6; };;
  4011. esac
  4012. else
  4013. $as_echo "#define WITH_PIPE 1" >>confdefs.h
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4015. $as_echo "yes" >&6; }
  4016. fi
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include explicit termios support" >&5
  4018. $as_echo_n "checking whether to include explicit termios support... " >&6; }
  4019. # Check whether --enable-termios was given.
  4020. if test "${enable_termios+set}" = set; then :
  4021. enableval=$enable_termios; case "$enableval" in
  4022. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4023. $as_echo "no" >&6; };;
  4024. *) $as_echo "#define WITH_TERMIOS 1" >>confdefs.h
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4026. $as_echo "yes" >&6; };;
  4027. esac
  4028. else
  4029. $as_echo "#define WITH_TERMIOS 1" >>confdefs.h
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4031. $as_echo "yes" >&6; }
  4032. fi
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UNIX socket support" >&5
  4034. $as_echo_n "checking whether to include UNIX socket support... " >&6; }
  4035. # Check whether --enable-unix was given.
  4036. if test "${enable_unix+set}" = set; then :
  4037. enableval=$enable_unix; case "$enableval" in
  4038. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4039. $as_echo "no" >&6; };;
  4040. *) $as_echo "#define WITH_UNIX 1" >>confdefs.h
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4042. $as_echo "yes" >&6; };;
  4043. esac
  4044. else
  4045. $as_echo "#define WITH_UNIX 1" >>confdefs.h
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4047. $as_echo "yes" >&6; }
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include abstract UNIX socket support" >&5
  4050. $as_echo_n "checking whether to include abstract UNIX socket support... " >&6; }
  4051. # Check whether --enable-abstract_unixsocket was given.
  4052. if test "${enable_abstract_unixsocket+set}" = set; then :
  4053. enableval=$enable_abstract_unixsocket; case "$enableval" in
  4054. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4055. $as_echo "no" >&6; };;
  4056. *) $as_echo "#define WITH_ABSTRACT_UNIXSOCKET 1" >>confdefs.h
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4058. $as_echo "yes" >&6; };;
  4059. esac
  4060. else
  4061. case "`uname`" in
  4062. Linux)
  4063. $as_echo "#define WITH_ABSTRACT_UNIXSOCKET 1" >>confdefs.h
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4065. $as_echo "yes" >&6; };;
  4066. *)
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4068. $as_echo "no" >&6; };;
  4069. esac
  4070. fi
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include IPv4 support" >&5
  4072. $as_echo_n "checking whether to include IPv4 support... " >&6; }
  4073. # Check whether --enable-ip4 was given.
  4074. if test "${enable_ip4+set}" = set; then :
  4075. enableval=$enable_ip4; case "$enableval" in
  4076. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4077. $as_echo "no" >&6; };;
  4078. *) $as_echo "#define WITH_IP4 1" >>confdefs.h
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4080. $as_echo "yes" >&6; };;
  4081. esac
  4082. else
  4083. $as_echo "#define WITH_IP4 1" >>confdefs.h
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4085. $as_echo "yes" >&6; }
  4086. fi
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include IPv6 support" >&5
  4088. $as_echo_n "checking whether to include IPv6 support... " >&6; }
  4089. # Check whether --enable-ip6 was given.
  4090. if test "${enable_ip6+set}" = set; then :
  4091. enableval=$enable_ip6; case "$enableval" in
  4092. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4093. $as_echo "no" >&6; }; WITH_IP6= ;;
  4094. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4095. $as_echo "yes" >&6; }; WITH_IP6=1 ;;
  4096. esac
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4099. $as_echo "yes" >&6; }; WITH_IP6=1
  4100. fi
  4101. if test "$WITH_IP6"; then
  4102. for ac_header in netinet/ip6.h
  4103. do :
  4104. ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" "$ac_includes_default
  4105. #ifdef HAVE_NETINET_IN_H
  4106. # include <netinet/in.h>
  4107. #endif
  4108. "
  4109. if test "x$ac_cv_header_netinet_ip6_h" = xyes; then :
  4110. cat >>confdefs.h <<_ACEOF
  4111. #define HAVE_NETINET_IP6_H 1
  4112. _ACEOF
  4113. $as_echo "#define HAVE_NETINET_IP6_H 1" >>confdefs.h
  4114. $as_echo "#define WITH_IP6 1" >>confdefs.h
  4115. else
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: include file netinet/ip6.h not found, disabling IP6" >&5
  4117. $as_echo "$as_me: WARNING: include file netinet/ip6.h not found, disabling IP6" >&2;}
  4118. fi
  4119. done
  4120. for ac_header in netinet6/in6.h
  4121. do :
  4122. ac_fn_c_check_header_mongrel "$LINENO" "netinet6/in6.h" "ac_cv_header_netinet6_in6_h" "$ac_includes_default"
  4123. if test "x$ac_cv_header_netinet6_in6_h" = xyes; then :
  4124. cat >>confdefs.h <<_ACEOF
  4125. #define HAVE_NETINET6_IN6_H 1
  4126. _ACEOF
  4127. fi
  4128. done
  4129. # found on OpenBSD and Lion, used for IPV6_*
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __APPLE_USE_RFC_2292 is helpful" >&5
  4131. $as_echo_n "checking if __APPLE_USE_RFC_2292 is helpful... " >&6; }
  4132. if ${ac_cv_apple_use_rfc_2292+:} false; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. int
  4138. main ()
  4139. {
  4140. #ifndef IPV6_HOPOPTS
  4141. murks;
  4142. #endif
  4143. ;
  4144. return 0;
  4145. }
  4146. _ACEOF
  4147. if ac_fn_c_try_compile "$LINENO"; then :
  4148. ac_cv_apple_use_rfc_2292=no
  4149. else
  4150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end confdefs.h. */
  4152. #define __APPLE_USE_RFC_2292
  4153. int
  4154. main ()
  4155. {
  4156. #ifndef IPV6_HOPOPTS
  4157. murks;
  4158. #endif
  4159. ;
  4160. return 0;
  4161. }
  4162. _ACEOF
  4163. if ac_fn_c_try_compile "$LINENO"; then :
  4164. ac_cv_apple_use_rfc_2292=yes
  4165. else
  4166. ac_cv_apple_use_rfc_2292=no
  4167. fi
  4168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. fi
  4170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4171. fi
  4172. if test "$ac_cv_apple_use_rfc_2292" = yes; then
  4173. $as_echo "#define __APPLE_USE_RFC_2292 1" >>confdefs.h
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_apple_use_rfc_2292" >&5
  4176. $as_echo "$ac_cv_apple_use_rfc_2292" >&6; }
  4177. fi
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raw IP support" >&5
  4179. $as_echo_n "checking whether to include raw IP support... " >&6; }
  4180. # Check whether --enable-rawip was given.
  4181. if test "${enable_rawip+set}" = set; then :
  4182. enableval=$enable_rawip; case "$enableval" in
  4183. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4184. $as_echo "no" >&6; };;
  4185. *) $as_echo "#define WITH_RAWIP 1" >>confdefs.h
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4187. $as_echo "yes" >&6; };;
  4188. esac
  4189. else
  4190. $as_echo "#define WITH_RAWIP 1" >>confdefs.h
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4192. $as_echo "yes" >&6; }
  4193. fi
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include generic socket support" >&5
  4195. $as_echo_n "checking whether to include generic socket support... " >&6; }
  4196. # Check whether --enable-genericsocket was given.
  4197. if test "${enable_genericsocket+set}" = set; then :
  4198. enableval=$enable_genericsocket; case "$enableval" in
  4199. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; };;
  4201. *) $as_echo "#define WITH_GENERICSOCKET 1" >>confdefs.h
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4203. $as_echo "yes" >&6; };;
  4204. esac
  4205. else
  4206. $as_echo "#define WITH_GENERICSOCKET 1" >>confdefs.h
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4208. $as_echo "yes" >&6; }
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include generic network interface support" >&5
  4211. $as_echo_n "checking whether to include generic network interface support... " >&6; }
  4212. # Check whether --enable-interface was given.
  4213. if test "${enable_interface+set}" = set; then :
  4214. enableval=$enable_interface; case "$enableval" in
  4215. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4216. $as_echo "no" >&6; }; WITH_INTERFACE= ;;
  4217. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4218. $as_echo "yes" >&6; }; WITH_INTERFACE=1 ;;
  4219. esac
  4220. else
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4222. $as_echo "yes" >&6; }; WITH_INTERFACE=1
  4223. fi
  4224. if test "$WITH_INTERFACE"; then
  4225. ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
  4226. if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
  4227. $as_echo "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
  4228. else
  4229. WITH_INTERFACE=;
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: include file netpacket/packet.h not found, disabling interface" >&5
  4231. $as_echo "$as_me: WARNING: include file netpacket/packet.h not found, disabling interface" >&2;}
  4232. fi
  4233. fi
  4234. if test "$WITH_INTERFACE"; then
  4235. ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "$ac_includes_default
  4236. #if HAVE_NET_IF_H && HAVE_NETINET_IN_H
  4237. #include <net/if.h>
  4238. #include <netinet/in.h>
  4239. #endif
  4240. "
  4241. if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
  4242. $as_echo "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h
  4243. else
  4244. WITH_INTERFACE=;
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: include file netinet/if_ether.h not found, disabling interface" >&5
  4246. $as_echo "$as_me: WARNING: include file netinet/if_ether.h not found, disabling interface" >&2;}
  4247. fi
  4248. fi
  4249. if test "$WITH_INTERFACE"; then
  4250. $as_echo "#define WITH_INTERFACE 1" >>confdefs.h
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include TCP support" >&5
  4253. $as_echo_n "checking whether to include TCP support... " >&6; }
  4254. # Check whether --enable-tcp was given.
  4255. if test "${enable_tcp+set}" = set; then :
  4256. enableval=$enable_tcp; case "$enableval" in
  4257. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4258. $as_echo "no" >&6; };;
  4259. *) $as_echo "#define WITH_TCP 1" >>confdefs.h
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4261. $as_echo "yes" >&6; };;
  4262. esac
  4263. else
  4264. $as_echo "#define WITH_TCP 1" >>confdefs.h
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4266. $as_echo "yes" >&6; }
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UDP support" >&5
  4269. $as_echo_n "checking whether to include UDP support... " >&6; }
  4270. # Check whether --enable-udp was given.
  4271. if test "${enable_udp+set}" = set; then :
  4272. enableval=$enable_udp; case "$enableval" in
  4273. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4274. $as_echo "no" >&6; };;
  4275. *) $as_echo "#define WITH_UDP 1" >>confdefs.h
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4277. $as_echo "yes" >&6; };;
  4278. esac
  4279. else
  4280. $as_echo "#define WITH_UDP 1" >>confdefs.h
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4282. $as_echo "yes" >&6; }
  4283. fi
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SCTP support" >&5
  4285. $as_echo_n "checking whether to include SCTP support... " >&6; }
  4286. # Check whether --enable-sctp was given.
  4287. if test "${enable_sctp+set}" = set; then :
  4288. enableval=$enable_sctp; case "$enableval" in
  4289. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4290. $as_echo "no" >&6; }; WITH_SCTP= ;;
  4291. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4292. $as_echo "yes" >&6; }; WITH_SCTP=1 ;;
  4293. esac
  4294. else
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4296. $as_echo "yes" >&6; }; WITH_SCTP=1
  4297. fi
  4298. if test -n "$WITH_SCTP"; then
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPPROTO_SCTP" >&5
  4300. $as_echo_n "checking for IPPROTO_SCTP... " >&6; }
  4301. if ${sc_cv_define_ipproto_sctp+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end confdefs.h. */
  4306. #include <sys/types.h>
  4307. #include <netinet/in.h>
  4308. int
  4309. main ()
  4310. {
  4311. IPPROTO_SCTP;
  4312. ;
  4313. return 0;
  4314. }
  4315. _ACEOF
  4316. if ac_fn_c_try_compile "$LINENO"; then :
  4317. sc_cv_define_ipproto_sctp=yes
  4318. else
  4319. sc_cv_define_ipproto_sctp=no
  4320. fi
  4321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4322. fi
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_define_ipproto_sctp" >&5
  4324. $as_echo "$sc_cv_define_ipproto_sctp" >&6; }
  4325. if test $sc_cv_define_ipproto_sctp = yes; then
  4326. $as_echo "#define WITH_SCTP 1" >>confdefs.h
  4327. else
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IPPROTO_SCTP undefined, disabling SCTP support" >&5
  4329. $as_echo "$as_me: WARNING: IPPROTO_SCTP undefined, disabling SCTP support" >&2;}
  4330. fi
  4331. fi
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include listen support" >&5
  4333. $as_echo_n "checking whether to include listen support... " >&6; }
  4334. # Check whether --enable-listen was given.
  4335. if test "${enable_listen+set}" = set; then :
  4336. enableval=$enable_listen; case "$enableval" in
  4337. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4338. $as_echo "no" >&6; };;
  4339. *) $as_echo "#define WITH_LISTEN 1" >>confdefs.h
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4341. $as_echo "yes" >&6; };;
  4342. esac
  4343. else
  4344. $as_echo "#define WITH_LISTEN 1" >>confdefs.h
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4346. $as_echo "yes" >&6; }
  4347. fi
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include socks4 support" >&5
  4349. $as_echo_n "checking whether to include socks4 support... " >&6; }
  4350. # Check whether --enable-socks4 was given.
  4351. if test "${enable_socks4+set}" = set; then :
  4352. enableval=$enable_socks4; case "$enableval" in
  4353. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4354. $as_echo "no" >&6; };;
  4355. *) $as_echo "#define WITH_SOCKS4 1" >>confdefs.h
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4357. $as_echo "yes" >&6; };;
  4358. esac
  4359. else
  4360. $as_echo "#define WITH_SOCKS4 1" >>confdefs.h
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4362. $as_echo "yes" >&6; }
  4363. fi
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include socks4a support" >&5
  4365. $as_echo_n "checking whether to include socks4a support... " >&6; }
  4366. # Check whether --enable-socks4a was given.
  4367. if test "${enable_socks4a+set}" = set; then :
  4368. enableval=$enable_socks4a; case "$enableval" in
  4369. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4370. $as_echo "no" >&6; };;
  4371. *) $as_echo "#define WITH_SOCKS4A 1" >>confdefs.h
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4373. $as_echo "yes" >&6; };;
  4374. esac
  4375. else
  4376. $as_echo "#define WITH_SOCKS4A 1" >>confdefs.h
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4378. $as_echo "yes" >&6; }
  4379. fi
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include proxy connect support" >&5
  4381. $as_echo_n "checking whether to include proxy connect support... " >&6; }
  4382. # Check whether --enable-proxy was given.
  4383. if test "${enable_proxy+set}" = set; then :
  4384. enableval=$enable_proxy; case "$enableval" in
  4385. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4386. $as_echo "no" >&6; };;
  4387. *) $as_echo "#define WITH_PROXY 1" >>confdefs.h
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4389. $as_echo "yes" >&6; };;
  4390. esac
  4391. else
  4392. $as_echo "#define WITH_PROXY 1" >>confdefs.h
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4394. $as_echo "yes" >&6; }
  4395. fi
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include exec support" >&5
  4397. $as_echo_n "checking whether to include exec support... " >&6; }
  4398. # Check whether --enable-exec was given.
  4399. if test "${enable_exec+set}" = set; then :
  4400. enableval=$enable_exec; case "$enableval" in
  4401. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4402. $as_echo "no" >&6; };;
  4403. *) $as_echo "#define WITH_EXEC 1" >>confdefs.h
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4405. $as_echo "yes" >&6; };;
  4406. esac
  4407. else
  4408. $as_echo "#define WITH_EXEC 1" >>confdefs.h
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4410. $as_echo "yes" >&6; }
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include system (shell) support" >&5
  4413. $as_echo_n "checking whether to include system (shell) support... " >&6; }
  4414. # Check whether --enable-system was given.
  4415. if test "${enable_system+set}" = set; then :
  4416. enableval=$enable_system; case "$enableval" in
  4417. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4418. $as_echo "no" >&6; };;
  4419. *) $as_echo "#define WITH_SYSTEM 1" >>confdefs.h
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4421. $as_echo "yes" >&6; };;
  4422. esac
  4423. else
  4424. $as_echo "#define WITH_SYSTEM 1" >>confdefs.h
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4426. $as_echo "yes" >&6; }
  4427. fi
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include pty address support" >&5
  4429. $as_echo_n "checking whether to include pty address support... " >&6; }
  4430. # Check whether --enable-pty was given.
  4431. if test "${enable_pty+set}" = set; then :
  4432. enableval=$enable_pty; case "$enableval" in
  4433. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4434. $as_echo "no" >&6; };;
  4435. *) $as_echo "#define WITH_PTY 1" >>confdefs.h
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4437. $as_echo "yes" >&6; };;
  4438. esac
  4439. else
  4440. $as_echo "#define WITH_PTY 1" >>confdefs.h
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4442. $as_echo "yes" >&6; }
  4443. fi
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include ext2 fs attributes support" >&5
  4445. $as_echo_n "checking whether to include ext2 fs attributes support... " >&6; }
  4446. # Check whether --enable-ext2 was given.
  4447. if test "${enable_ext2+set}" = set; then :
  4448. enableval=$enable_ext2; case "$enableval" in
  4449. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4450. $as_echo "no" >&6; };;
  4451. *) $as_echo "#define WITH_EXT2 1" >>confdefs.h
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4453. $as_echo "yes" >&6; };;
  4454. esac
  4455. else
  4456. $as_echo "#define WITH_EXT2 1" >>confdefs.h
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4458. $as_echo "yes" >&6; }
  4459. fi
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include readline support" >&5
  4461. $as_echo_n "checking whether to include readline support... " >&6; }
  4462. # Check whether --enable-readline was given.
  4463. if test "${enable_readline+set}" = set; then :
  4464. enableval=$enable_readline; case "$enableval" in
  4465. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }; WITH_READLINE= ;;
  4467. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4468. $as_echo "yes" >&6; }; WITH_READLINE=1 ;;
  4469. esac
  4470. else
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4472. $as_echo "yes" >&6; }; WITH_READLINE=1
  4473. fi
  4474. if test -n "$WITH_READLINE"; then
  4475. CPPFLAGS_ORIG=$CPPFLAGS
  4476. CFLAGS_ORIG=$CFLAGS
  4477. LIBS_ORIG=$LIBS
  4478. sc_usable_readline_found=
  4479. for D in "" "/usr/local" "/opt/local" "/sw" "/opt/freeware" "/usr/sfw"; do
  4480. if test -n "$D" ; then
  4481. CPPFLAGS="$CPPFLAGS -I$D/include"
  4482. CFLAGS="$CFLAGS -L$D/lib"
  4483. DLOC="in location $D"
  4484. else
  4485. DLOC="in default location"
  4486. fi
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable readline $DLOC" >&5
  4488. $as_echo_n "checking for usable readline $DLOC... " >&6; }
  4489. # Some systems require -lcurses, some require -lncurses.
  4490. # Mac OS X 10.4 (and others) ships with libedit masquerading as readline,
  4491. # but it doesn't work well with socat. It can be recognized by the absence
  4492. # of append_history.
  4493. for L in "" "-lcurses" "-lncurses"; do
  4494. LIBS="$LIBS_ORIG -lreadline $L"
  4495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4496. /* end confdefs.h. */
  4497. #include <stdio.h>
  4498. #include <readline/readline.h>
  4499. #include <readline/history.h>
  4500. int
  4501. main ()
  4502. {
  4503. readline(NULL);
  4504. append_history(0, NULL);
  4505. ;
  4506. return 0;
  4507. }
  4508. _ACEOF
  4509. if ac_fn_c_try_link "$LINENO"; then :
  4510. sc_usable_readline_found=1
  4511. break
  4512. fi
  4513. rm -f core conftest.err conftest.$ac_objext \
  4514. conftest$ac_exeext conftest.$ac_ext
  4515. done
  4516. if test -n "$sc_usable_readline_found"; then
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4518. $as_echo "yes" >&6; }
  4519. $as_echo "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
  4520. $as_echo "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
  4521. $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
  4522. $as_echo "#define WITH_READLINE 1" >>confdefs.h
  4523. break
  4524. else
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4526. $as_echo "no" >&6; }
  4527. CPPFLAGS=$CPPFLAGS_ORIG
  4528. CFLAGS=$CFLAGS_ORIG
  4529. LIBS=$LIBS_ORIG
  4530. fi
  4531. done
  4532. if test -z "$sc_usable_readline_found"; then
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable version of readline found; perhaps you need to install a newer version" >&5
  4534. $as_echo "$as_me: WARNING: no suitable version of readline found; perhaps you need to install a newer version" >&2;}
  4535. fi
  4536. fi
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include openssl support" >&5
  4538. $as_echo_n "checking whether to include openssl support... " >&6; }
  4539. # Check whether --enable-openssl was given.
  4540. if test "${enable_openssl+set}" = set; then :
  4541. enableval=$enable_openssl; case "$enableval" in
  4542. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4543. $as_echo "no" >&6; }; WITH_OPENSSL= ;;
  4544. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4545. $as_echo "yes" >&6; }; WITH_OPENSSL=1 ;;
  4546. esac
  4547. else
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4549. $as_echo "yes" >&6; }; WITH_OPENSSL=1
  4550. fi
  4551. #
  4552. if test -n "$WITH_OPENSSL"; then
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for components of OpenSSL" >&5
  4554. $as_echo "$as_me: checking for components of OpenSSL" >&6;}
  4555. # first, we need to find the include file <openssl/ssl.h>
  4556. if ${sc_cv_have_openssl_ssl_h+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end confdefs.h. */
  4561. #include <openssl/ssl.h>
  4562. int
  4563. main ()
  4564. {
  4565. ;
  4566. ;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. if ac_fn_c_try_compile "$LINENO"; then :
  4571. sc_cv_have_openssl_ssl_h=yes; OPENSSL_ROOT="";
  4572. else
  4573. sc_cv_have_openssl_ssl_h=no
  4574. for D in "/sw" "/usr/local" "/opt/freeware" "/usr/sfw" "/usr/local/ssl"; do
  4575. I="$D/include"
  4576. i="$I/openssl/ssl.h"
  4577. if test -r "$i"; then
  4578. #V_INCL="$V_INCL -I$I"
  4579. CPPFLAGS="$CPPFLAGS -I$I"
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: found $i" >&5
  4581. $as_echo "$as_me: found $i" >&6;}
  4582. sc_cv_have_openssl_ssl_h=yes; OPENSSL_ROOT="$D"
  4583. break;
  4584. fi
  4585. done
  4586. fi
  4587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4588. fi
  4589. if test "$sc_cv_have_openssl_ssl_h" = "yes"; then
  4590. $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
  4591. fi
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checked for openssl/ssl.h... $sc_cv_have_openssl_ssl_h" >&5
  4593. $as_echo "$as_me: checked for openssl/ssl.h... $sc_cv_have_openssl_ssl_h" >&6;}
  4594. fi # end checking for openssl/ssl.h
  4595. #
  4596. if test -n "$WITH_OPENSSL" -a "$sc_cv_have_openssl_ssl_h" = 'yes'; then
  4597. # next, we search for the openssl library (libssl.*)
  4598. # interesting: Linux only requires -lssl, FreeBSD requires -lssl -lcrypto
  4599. # Note, version OpenSSL 0.9.7j requires -lcrypto even on Linux.
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
  4601. $as_echo_n "checking for libssl... " >&6; }
  4602. if ${sc_cv_have_libssl+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. LIBS0="$LIBS"
  4606. if test -n "$OPENSSL_ROOT"; then
  4607. L="$OPENSSL_ROOT/lib"; LIBS="$LIBS -L$L -lssl"
  4608. else
  4609. LIBS="$LIBS -lssl"
  4610. fi
  4611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4612. /* end confdefs.h. */
  4613. #include <openssl/ssl.h>
  4614. int
  4615. main ()
  4616. {
  4617. SSL_library_init();ERR_error_string()
  4618. ;
  4619. return 0;
  4620. }
  4621. _ACEOF
  4622. if ac_fn_c_try_link "$LINENO"; then :
  4623. sc_cv_have_libssl='yes'
  4624. else
  4625. LIBS="$LIBS -lcrypto"
  4626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627. /* end confdefs.h. */
  4628. #include <openssl/ssl.h>
  4629. int
  4630. main ()
  4631. {
  4632. SSL_library_init()
  4633. ;
  4634. return 0;
  4635. }
  4636. _ACEOF
  4637. if ac_fn_c_try_link "$LINENO"; then :
  4638. sc_cv_have_libssl='yes'
  4639. else
  4640. sc_cv_have_libssl='no'
  4641. fi
  4642. rm -f core conftest.err conftest.$ac_objext \
  4643. conftest$ac_exeext conftest.$ac_ext
  4644. fi
  4645. rm -f core conftest.err conftest.$ac_objext \
  4646. conftest$ac_exeext conftest.$ac_ext
  4647. if test "$sc_cv_have_libssl" != 'yes'; then
  4648. LIBS="$LIBS0"
  4649. fi
  4650. fi
  4651. if test "$sc_cv_have_libssl" = 'yes'; then
  4652. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  4653. fi
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_libssl" >&5
  4655. $as_echo "$sc_cv_have_libssl" >&6; }
  4656. fi
  4657. #
  4658. # # a possible location for openssl (on Sourceforge/Solaris)
  4659. # AC_CHECK_FILE(/usr/local/ssl/lib, LIBS="$LIBS -L/usr/local/ssl/lib/")
  4660. # # sometimes on Solaris:
  4661. # AC_CHECK_FILE(/pkgs/lib, LIBS="$LIBS -L/pkgs/lib/")
  4662. # # for AIX 5.1 with Linux toolbox:
  4663. # AC_CHECK_FILE(/opt/freeware/lib, LIBS="$LIBS -L/opt/freeware/lib/")
  4664. #
  4665. # AC_CHECK_LIB(crypto, main)
  4666. # AC_CHECK_LIB(ssl, main)
  4667. #
  4668. # # MacOSX has openssl includes in another directory
  4669. # if test -d /sw/include/; then
  4670. # V_INCL="$V_INCL -I/sw/include"
  4671. # # and Solaris at sourceforge here:
  4672. # elif test -d /usr/local/ssl/include/; then
  4673. # V_INCL="$V_INCL -I/usr/local/ssl/include"
  4674. # # and AIX 5.1 with Linux toolbox:
  4675. # elif test -d /opt/freeware/include; then
  4676. # V_INCL="$V_INCL -I/opt/freeware/include"
  4677. # fi
  4678. #fi
  4679. if test -n "$WITH_OPENSSL"; then
  4680. if test "$sc_cv_have_openssl_ssl_h" = "yes" -a "$sc_cv_have_libssl" = "yes"; then
  4681. $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
  4682. else
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not all components of OpenSSL found, disabling it" >&5
  4684. $as_echo "$as_me: WARNING: not all components of OpenSSL found, disabling it" >&2;};
  4685. fi
  4686. fi
  4687. if test -n "$WITH_OPENSSL"; then
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include OpenSSL method option" >&5
  4689. $as_echo_n "checking whether to include OpenSSL method option... " >&6; }
  4690. # Check whether --enable-openssl-method was given.
  4691. if test "${enable_openssl_method+set}" = set; then :
  4692. enableval=$enable_openssl_method; case "$enableval" in
  4693. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4694. $as_echo "no" >&6; };;
  4695. *) $as_echo "#define WITH_OPENSSL_METHOD 1" >>confdefs.h
  4696. WITH_OPENSSL_METHOD=1; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4697. $as_echo "yes" >&6; };;
  4698. esac
  4699. else
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4701. $as_echo "no" >&6; }
  4702. fi
  4703. fi
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include deprecated resolver option" >&5
  4705. $as_echo_n "checking whether to include deprecated resolver option... " >&6; }
  4706. # Check whether --enable-res-deprecated was given.
  4707. if test "${enable_res_deprecated+set}" = set; then :
  4708. enableval=$enable_res_deprecated; case "$enableval" in
  4709. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4710. $as_echo "no" >&6; };;
  4711. *) $as_echo "#define WITH_RES_DEPRECATED 1" >>confdefs.h
  4712. WITH_RES_DEPRECATED=1; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4713. $as_echo "yes" >&6; };;
  4714. esac
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. # check for fips support
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include openssl fips support" >&5
  4721. $as_echo_n "checking whether to include openssl fips support... " >&6; }
  4722. # Check whether --enable-fips was given.
  4723. if test "${enable_fips+set}" = set; then :
  4724. enableval=$enable_fips; case "$enableval" in
  4725. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4726. $as_echo "yes" >&6; }; WITH_FIPS=1 ;;
  4727. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4728. $as_echo "no" >&6; }; WITH_FIPS= ;;
  4729. esac
  4730. else
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4732. $as_echo "no" >&6; }; WITH_FIPS=
  4733. fi
  4734. if test -n "$WITH_FIPS"; then
  4735. if test -n "$WITH_OPENSSL"; then
  4736. # Extract the first word of "fipsld", so it can be a program name with args.
  4737. set dummy fipsld; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if ${ac_cv_prog_HAVE_FIPSLD+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$HAVE_FIPSLD"; then
  4744. ac_cv_prog_HAVE_FIPSLD="$HAVE_FIPSLD" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4753. ac_cv_prog_HAVE_FIPSLD="1"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. HAVE_FIPSLD=$ac_cv_prog_HAVE_FIPSLD
  4763. if test -n "$HAVE_FIPSLD"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FIPSLD" >&5
  4765. $as_echo "$HAVE_FIPSLD" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. if test "$sc_cv_have_openssl_ssl_h" != "yes" -o "$sc_cv_have_libssl" != "yes" -o ! "$HAVE_FIPSLD";
  4771. then
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not all components of OpenSSL found, disabling FIPS" >&5
  4773. $as_echo "$as_me: WARNING: not all components of OpenSSL found, disabling FIPS" >&2;};
  4774. WITH_FIPS=
  4775. fi
  4776. else
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: must enable OpenSSL to enable FIPS; use --enable-openssl" >&5
  4778. $as_echo "$as_me: WARNING: must enable OpenSSL to enable FIPS; use --enable-openssl" >&2;};
  4779. fi
  4780. fi
  4781. if test -n "$WITH_FIPS"; then
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for components of OpenSSL FIPS" >&5
  4783. $as_echo_n "checking for components of OpenSSL FIPS... " >&6; }
  4784. # first, we need to find the include file <openssl/fips.h>
  4785. if ${sc_cv_have_openssl_fips_h+:} false; then :
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4789. /* end confdefs.h. */
  4790. #define OPENSSL_FIPS
  4791. #include <stddef.h>
  4792. #include <openssl/fips.h>
  4793. int
  4794. main ()
  4795. {
  4796. ;
  4797. ;
  4798. return 0;
  4799. }
  4800. _ACEOF
  4801. if ac_fn_c_try_compile "$LINENO"; then :
  4802. sc_cv_have_openssl_fips_h=yes;
  4803. else
  4804. sv_cv_have_openssl_fips_h=no
  4805. if test -n "$OPENSSL_ROOT"; then
  4806. I="$OPENSSL_ROOT/include"
  4807. i="$I/openssl/fips.h"
  4808. if test -r "$i"; then
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: found $i" >&5
  4810. $as_echo "$as_me: found $i" >&6;}
  4811. sc_cv_have_openssl_fips_h=yes;
  4812. fi
  4813. fi
  4814. fi
  4815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4816. fi
  4817. if test "$sv_cv_have_openssl_fips_h" = "yes"; then
  4818. $as_echo "#define HAVE_OPENSSL_FIPS_H 1" >>confdefs.h
  4819. fi
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checked for openssl/fips.h... $sc_cv_have_openssl_ssl_h" >&5
  4821. $as_echo "$as_me: checked for openssl/fips.h... $sc_cv_have_openssl_ssl_h" >&6;}
  4822. fi
  4823. if test -n "$WITH_FIPS" -a "$sc_cv_have_openssl_fips_h" = 'yes'; then
  4824. # check for the libcrypto library with fips support
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto with FIPS support" >&5
  4826. $as_echo_n "checking for libcrypto with FIPS support... " >&6; }
  4827. if ${sc_cv_have_libcrypto+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. LIBS0="$LIBS"
  4831. echo $LIBS | grep -q "\-lcrypto"
  4832. if test $? -ne 0; then
  4833. if test -n "$OPENSSL_ROOT"; then
  4834. L="$OPENSSL_ROOT/lib"; LIBS="$LIBS -L$L -lcrypto"
  4835. else
  4836. LIBS="$LIBS -lcrypto"
  4837. fi
  4838. fi
  4839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4840. /* end confdefs.h. */
  4841. #define OPENSSL_FIPS
  4842. #include <openssl/ssl.h>
  4843. #include <openssl/fips.h>
  4844. int
  4845. main ()
  4846. {
  4847. int res = FIPS_mode_set(1);
  4848. ;
  4849. return 0;
  4850. }
  4851. _ACEOF
  4852. if ac_fn_c_try_link "$LINENO"; then :
  4853. sc_cv_have_libcrypto='yes'
  4854. else
  4855. sc_cv_have_libcrypto='no'
  4856. fi
  4857. rm -f core conftest.err conftest.$ac_objext \
  4858. conftest$ac_exeext conftest.$ac_ext
  4859. if test "$sc_cv_have_libcrypto" != 'yes'; then
  4860. LIBS="$LIBS0"
  4861. fi
  4862. fi
  4863. if test "$sc_cv_have_libcrypto" = 'yes'; then
  4864. $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
  4865. fi
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_libcrypto" >&5
  4867. $as_echo "$sc_cv_have_libcrypto" >&6; }
  4868. fi
  4869. if test -n "$WITH_FIPS"; then
  4870. if test "$sc_cv_have_openssl_fips_h" = 'yes' -a "$sc_cv_have_libcrypto" = 'yes'; then
  4871. $as_echo "#define WITH_FIPS 1" >>confdefs.h
  4872. $as_echo "#define OPENSSL_FIPS 1" >>confdefs.h
  4873. else
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not all components of OpenSSL FIPS found, disabling it" >&5
  4875. $as_echo "$as_me: WARNING: not all components of OpenSSL FIPS found, disabling it" >&2;};
  4876. fi
  4877. fi
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include tun/tap address support" >&5
  4879. $as_echo_n "checking whether to include tun/tap address support... " >&6; }
  4880. # Check whether --enable-tun was given.
  4881. if test "${enable_tun+set}" = set; then :
  4882. enableval=$enable_tun; case "$enableval" in
  4883. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4884. $as_echo "no" >&6; }; WITH_TUN= ;;
  4885. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4886. $as_echo "yes" >&6; }; WITH_TUN=1 ;;
  4887. esac
  4888. else
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4890. $as_echo "yes" >&6; }; WITH_TUN=1
  4891. fi
  4892. #
  4893. if ! test "$ac_cv_header_linux_if_tun_h" = 'yes'; then
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: include file linux/if_tun.h not found" >&5
  4895. $as_echo "$as_me: WARNING: include file linux/if_tun.h not found" >&2;}
  4896. WITH_TUN=
  4897. fi
  4898. #
  4899. if test -n "$WITH_TUN"; then
  4900. $as_echo "#define WITH_TUN 1" >>confdefs.h
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include system call tracing" >&5
  4903. $as_echo_n "checking whether to include system call tracing... " >&6; }
  4904. # Check whether --enable-sycls was given.
  4905. if test "${enable_sycls+set}" = set; then :
  4906. enableval=$enable_sycls; case "$enableval" in
  4907. no) SYCLS=""; SSLCLS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4908. $as_echo "no" >&6; };;
  4909. *) $as_echo "#define WITH_SYCLS 1" >>confdefs.h
  4910. SYCLS="sycls.c"; SSLCLS="sslcls.c"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4911. $as_echo "yes" >&6; };;
  4912. esac
  4913. else
  4914. $as_echo "#define WITH_SYCLS 1" >>confdefs.h
  4915. SYCLS="sycls.c"; SSLCLS="sslcls.c"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4916. $as_echo "yes" >&6; }
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include file descriptor analyzer" >&5
  4919. $as_echo_n "checking whether to include file descriptor analyzer... " >&6; }
  4920. # Check whether --enable-filan was given.
  4921. if test "${enable_filan+set}" = set; then :
  4922. enableval=$enable_filan; case "$enableval" in
  4923. no) FILAN=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924. $as_echo "no" >&6; };;
  4925. *) $as_echo "#define WITH_FILAN 1" >>confdefs.h
  4926. FILAN="filan.c"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4927. $as_echo "yes" >&6; };;
  4928. esac
  4929. else
  4930. $as_echo "#define WITH_FILAN 1" >>confdefs.h
  4931. FILAN="filan.c"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4932. $as_echo "yes" >&6; }
  4933. fi
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include retry support" >&5
  4935. $as_echo_n "checking whether to include retry support... " >&6; }
  4936. # Check whether --enable-retry was given.
  4937. if test "${enable_retry+set}" = set; then :
  4938. enableval=$enable_retry; case "$enableval" in
  4939. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4940. $as_echo "no" >&6; };;
  4941. *) $as_echo "#define WITH_RETRY 1" >>confdefs.h
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4943. $as_echo "yes" >&6; };;
  4944. esac
  4945. else
  4946. $as_echo "#define WITH_RETRY 1" >>confdefs.h
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4948. $as_echo "yes" >&6; }
  4949. fi
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking included message level" >&5
  4951. $as_echo_n "checking included message level... " >&6; }
  4952. # Check whether --enable-msglevel was given.
  4953. if test "${enable_msglevel+set}" = set; then :
  4954. enableval=$enable_msglevel; case "$enableval" in
  4955. 0|debug) $as_echo "#define WITH_MSGLEVEL 0" >>confdefs.h
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
  4957. $as_echo "debug" >&6; };;
  4958. 1|info) $as_echo "#define WITH_MSGLEVEL 1" >>confdefs.h
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5
  4960. $as_echo "info" >&6; };;
  4961. 2|notice) $as_echo "#define WITH_MSGLEVEL 2" >>confdefs.h
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: notice" >&5
  4963. $as_echo "notice" >&6; };;
  4964. 3|warn) $as_echo "#define WITH_MSGLEVEL 3" >>confdefs.h
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: warn" >&5
  4966. $as_echo "warn" >&6; };;
  4967. 4|error) $as_echo "#define WITH_MSGLEVEL 4" >>confdefs.h
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
  4969. $as_echo "error" >&6; };;
  4970. 5|fatal) $as_echo "#define WITH_MSGLEVEL 5" >>confdefs.h
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fatal" >&5
  4972. $as_echo "fatal" >&6; };;
  4973. *) $as_echo "#define WITH_MSGLEVEL 0" >>confdefs.h
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
  4975. $as_echo "debug" >&6; };;
  4976. esac
  4977. else
  4978. $as_echo "#define WITH_MSGLEVEL 0" >>confdefs.h
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
  4980. $as_echo "debug" >&6; }
  4981. fi
  4982. #AC_SUBST(V_INCL)
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4984. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4985. if ${ac_cv_c_const+:} false; then :
  4986. $as_echo_n "(cached) " >&6
  4987. else
  4988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h. */
  4990. int
  4991. main ()
  4992. {
  4993. #ifndef __cplusplus
  4994. /* Ultrix mips cc rejects this sort of thing. */
  4995. typedef int charset[2];
  4996. const charset cs = { 0, 0 };
  4997. /* SunOS 4.1.1 cc rejects this. */
  4998. char const *const *pcpcc;
  4999. char **ppc;
  5000. /* NEC SVR4.0.2 mips cc rejects this. */
  5001. struct point {int x, y;};
  5002. static struct point const zero = {0,0};
  5003. /* AIX XL C 1.02.0.0 rejects this.
  5004. It does not let you subtract one const X* pointer from another in
  5005. an arm of an if-expression whose if-part is not a constant
  5006. expression */
  5007. const char *g = "string";
  5008. pcpcc = &g + (g ? g-g : 0);
  5009. /* HPUX 7.0 cc rejects these. */
  5010. ++pcpcc;
  5011. ppc = (char**) pcpcc;
  5012. pcpcc = (char const *const *) ppc;
  5013. { /* SCO 3.2v4 cc rejects this sort of thing. */
  5014. char tx;
  5015. char *t = &tx;
  5016. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5017. *t++ = 0;
  5018. if (s) return 0;
  5019. }
  5020. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5021. int x[] = {25, 17};
  5022. const int *foo = &x[0];
  5023. ++foo;
  5024. }
  5025. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5026. typedef const int *iptr;
  5027. iptr p = 0;
  5028. ++p;
  5029. }
  5030. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  5031. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5032. struct s { int j; const int *ap[3]; } bx;
  5033. struct s *b = &bx; b->j = 5;
  5034. }
  5035. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5036. const int foo = 10;
  5037. if (!foo) return 0;
  5038. }
  5039. return !cs[0] && !zero.x;
  5040. #endif
  5041. ;
  5042. return 0;
  5043. }
  5044. _ACEOF
  5045. if ac_fn_c_try_compile "$LINENO"; then :
  5046. ac_cv_c_const=yes
  5047. else
  5048. ac_cv_c_const=no
  5049. fi
  5050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5051. fi
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5053. $as_echo "$ac_cv_c_const" >&6; }
  5054. if test $ac_cv_c_const = no; then
  5055. $as_echo "#define const /**/" >>confdefs.h
  5056. fi
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5058. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5059. if ${ac_cv_type_uid_t+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5063. /* end confdefs.h. */
  5064. #include <sys/types.h>
  5065. _ACEOF
  5066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5067. $EGREP "uid_t" >/dev/null 2>&1; then :
  5068. ac_cv_type_uid_t=yes
  5069. else
  5070. ac_cv_type_uid_t=no
  5071. fi
  5072. rm -f conftest*
  5073. fi
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5075. $as_echo "$ac_cv_type_uid_t" >&6; }
  5076. if test $ac_cv_type_uid_t = no; then
  5077. $as_echo "#define uid_t int" >>confdefs.h
  5078. $as_echo "#define gid_t int" >>confdefs.h
  5079. fi
  5080. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  5081. if test "x$ac_cv_type_mode_t" = xyes; then :
  5082. else
  5083. cat >>confdefs.h <<_ACEOF
  5084. #define mode_t int
  5085. _ACEOF
  5086. fi
  5087. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  5088. if test "x$ac_cv_type_off_t" = xyes; then :
  5089. else
  5090. cat >>confdefs.h <<_ACEOF
  5091. #define off_t long int
  5092. _ACEOF
  5093. fi
  5094. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5095. if test "x$ac_cv_type_pid_t" = xyes; then :
  5096. else
  5097. cat >>confdefs.h <<_ACEOF
  5098. #define pid_t int
  5099. _ACEOF
  5100. fi
  5101. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5102. if test "x$ac_cv_type_size_t" = xyes; then :
  5103. else
  5104. cat >>confdefs.h <<_ACEOF
  5105. #define size_t unsigned int
  5106. _ACEOF
  5107. fi
  5108. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  5109. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  5110. cat >>confdefs.h <<_ACEOF
  5111. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  5112. _ACEOF
  5113. $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
  5114. fi
  5115. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  5116. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  5117. cat >>confdefs.h <<_ACEOF
  5118. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  5119. _ACEOF
  5120. $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
  5121. else
  5122. case " $LIBOBJS " in
  5123. *" fileblocks.$ac_objext "* ) ;;
  5124. *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
  5125. ;;
  5126. esac
  5127. fi
  5128. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  5129. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  5130. cat >>confdefs.h <<_ACEOF
  5131. #define HAVE_STRUCT_STAT_ST_RDEV 1
  5132. _ACEOF
  5133. $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
  5134. fi
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5136. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5137. if ${ac_cv_header_time+:} false; then :
  5138. $as_echo_n "(cached) " >&6
  5139. else
  5140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5141. /* end confdefs.h. */
  5142. #include <sys/types.h>
  5143. #include <sys/time.h>
  5144. #include <time.h>
  5145. int
  5146. main ()
  5147. {
  5148. if ((struct tm *) 0)
  5149. return 0;
  5150. ;
  5151. return 0;
  5152. }
  5153. _ACEOF
  5154. if ac_fn_c_try_compile "$LINENO"; then :
  5155. ac_cv_header_time=yes
  5156. else
  5157. ac_cv_header_time=no
  5158. fi
  5159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5160. fi
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5162. $as_echo "$ac_cv_header_time" >&6; }
  5163. if test $ac_cv_header_time = yes; then
  5164. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5165. fi
  5166. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  5167. if test "x$ac_cv_func_nanosleep" = xyes; then :
  5168. $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
  5169. else
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  5171. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  5172. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. ac_check_lib_save_LIBS=$LIBS
  5176. LIBS="-lrt $LIBS"
  5177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5178. /* end confdefs.h. */
  5179. /* Override any GCC internal prototype to avoid an error.
  5180. Use char because int might match the return type of a GCC
  5181. builtin and then its argument prototype would still apply. */
  5182. #ifdef __cplusplus
  5183. extern "C"
  5184. #endif
  5185. char nanosleep ();
  5186. int
  5187. main ()
  5188. {
  5189. return nanosleep ();
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. if ac_fn_c_try_link "$LINENO"; then :
  5195. ac_cv_lib_rt_nanosleep=yes
  5196. else
  5197. ac_cv_lib_rt_nanosleep=no
  5198. fi
  5199. rm -f core conftest.err conftest.$ac_objext \
  5200. conftest$ac_exeext conftest.$ac_ext
  5201. LIBS=$ac_check_lib_save_LIBS
  5202. fi
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  5204. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  5205. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  5206. LIBS="-lrt $LIBS"; $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
  5207. fi
  5208. fi
  5209. #AC_CHECK_FUNC(nanosleep, , AC_CHECK_LIB(rt, nanosleep))
  5210. if test $ac_cv_c_compiler_gnu = yes; then
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  5212. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  5213. if ${ac_cv_prog_gcc_traditional+:} false; then :
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. ac_pattern="Autoconf.*'x'"
  5217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5218. /* end confdefs.h. */
  5219. #include <sgtty.h>
  5220. Autoconf TIOCGETP
  5221. _ACEOF
  5222. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5223. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  5224. ac_cv_prog_gcc_traditional=yes
  5225. else
  5226. ac_cv_prog_gcc_traditional=no
  5227. fi
  5228. rm -f conftest*
  5229. if test $ac_cv_prog_gcc_traditional = no; then
  5230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5231. /* end confdefs.h. */
  5232. #include <termio.h>
  5233. Autoconf TCGETA
  5234. _ACEOF
  5235. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5236. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  5237. ac_cv_prog_gcc_traditional=yes
  5238. fi
  5239. rm -f conftest*
  5240. fi
  5241. fi
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  5243. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  5244. if test $ac_cv_prog_gcc_traditional = yes; then
  5245. CC="$CC -traditional"
  5246. fi
  5247. fi
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  5249. $as_echo_n "checking for working memcmp... " >&6; }
  5250. if ${ac_cv_func_memcmp_working+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. if test "$cross_compiling" = yes; then :
  5254. ac_cv_func_memcmp_working=no
  5255. else
  5256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5257. /* end confdefs.h. */
  5258. $ac_includes_default
  5259. int
  5260. main ()
  5261. {
  5262. /* Some versions of memcmp are not 8-bit clean. */
  5263. char c0 = '\100', c1 = '\200', c2 = '\201';
  5264. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  5265. return 1;
  5266. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  5267. or more and with at least one buffer not starting on a 4-byte boundary.
  5268. William Lewis provided this test program. */
  5269. {
  5270. char foo[21];
  5271. char bar[21];
  5272. int i;
  5273. for (i = 0; i < 4; i++)
  5274. {
  5275. char *a = foo + i;
  5276. char *b = bar + i;
  5277. strcpy (a, "--------01111111");
  5278. strcpy (b, "--------10000000");
  5279. if (memcmp (a, b, 16) >= 0)
  5280. return 1;
  5281. }
  5282. return 0;
  5283. }
  5284. ;
  5285. return 0;
  5286. }
  5287. _ACEOF
  5288. if ac_fn_c_try_run "$LINENO"; then :
  5289. ac_cv_func_memcmp_working=yes
  5290. else
  5291. ac_cv_func_memcmp_working=no
  5292. fi
  5293. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5294. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5295. fi
  5296. fi
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  5298. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  5299. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  5300. *" memcmp.$ac_objext "* ) ;;
  5301. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  5302. ;;
  5303. esac
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  5305. $as_echo_n "checking return type of signal handlers... " >&6; }
  5306. if ${ac_cv_type_signal+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5310. /* end confdefs.h. */
  5311. #include <sys/types.h>
  5312. #include <signal.h>
  5313. int
  5314. main ()
  5315. {
  5316. return *(signal (0, 0)) (0) == 1;
  5317. ;
  5318. return 0;
  5319. }
  5320. _ACEOF
  5321. if ac_fn_c_try_compile "$LINENO"; then :
  5322. ac_cv_type_signal=int
  5323. else
  5324. ac_cv_type_signal=void
  5325. fi
  5326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5327. fi
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  5329. $as_echo "$ac_cv_type_signal" >&6; }
  5330. cat >>confdefs.h <<_ACEOF
  5331. #define RETSIGTYPE $ac_cv_type_signal
  5332. _ACEOF
  5333. for ac_func in strftime
  5334. do :
  5335. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  5336. if test "x$ac_cv_func_strftime" = xyes; then :
  5337. cat >>confdefs.h <<_ACEOF
  5338. #define HAVE_STRFTIME 1
  5339. _ACEOF
  5340. else
  5341. # strftime is in -lintl on SCO UNIX.
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  5343. $as_echo_n "checking for strftime in -lintl... " >&6; }
  5344. if ${ac_cv_lib_intl_strftime+:} false; then :
  5345. $as_echo_n "(cached) " >&6
  5346. else
  5347. ac_check_lib_save_LIBS=$LIBS
  5348. LIBS="-lintl $LIBS"
  5349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5350. /* end confdefs.h. */
  5351. /* Override any GCC internal prototype to avoid an error.
  5352. Use char because int might match the return type of a GCC
  5353. builtin and then its argument prototype would still apply. */
  5354. #ifdef __cplusplus
  5355. extern "C"
  5356. #endif
  5357. char strftime ();
  5358. int
  5359. main ()
  5360. {
  5361. return strftime ();
  5362. ;
  5363. return 0;
  5364. }
  5365. _ACEOF
  5366. if ac_fn_c_try_link "$LINENO"; then :
  5367. ac_cv_lib_intl_strftime=yes
  5368. else
  5369. ac_cv_lib_intl_strftime=no
  5370. fi
  5371. rm -f core conftest.err conftest.$ac_objext \
  5372. conftest$ac_exeext conftest.$ac_ext
  5373. LIBS=$ac_check_lib_save_LIBS
  5374. fi
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  5376. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  5377. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  5378. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  5379. LIBS="-lintl $LIBS"
  5380. fi
  5381. fi
  5382. done
  5383. for ac_func in putenv select poll socket strtod strtol
  5384. do :
  5385. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5386. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5387. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5388. cat >>confdefs.h <<_ACEOF
  5389. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5390. _ACEOF
  5391. fi
  5392. done
  5393. for ac_func in strtoul uname getpgid getsid gethostbyname getaddrinfo
  5394. do :
  5395. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5396. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5397. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5398. cat >>confdefs.h <<_ACEOF
  5399. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5400. _ACEOF
  5401. fi
  5402. done
  5403. for ac_func in setgroups inet_aton
  5404. do :
  5405. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5406. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5407. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5408. cat >>confdefs.h <<_ACEOF
  5409. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5410. _ACEOF
  5411. fi
  5412. done
  5413. for ac_func
  5414. do :
  5415. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5416. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5417. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5418. cat >>confdefs.h <<_ACEOF
  5419. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5420. _ACEOF
  5421. fi
  5422. done
  5423. for ac_func in grantpt unlockpt
  5424. do :
  5425. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5426. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5427. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5428. cat >>confdefs.h <<_ACEOF
  5429. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5430. _ACEOF
  5431. fi
  5432. done
  5433. # GR AC_CHECK_FUNCS only checks linking, not prototype. This may lead to implicit
  5434. # function declarations and to SIGSEGV on systems with 32bit int and 64bit pointer
  5435. for ac_func in cfsetispeed cfgetispeed cfsetospeed cfgetospeed
  5436. do :
  5437. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5438. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5439. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5440. cat >>confdefs.h <<_ACEOF
  5441. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5442. _ACEOF
  5443. fi
  5444. done
  5445. ###################################
  5446. # check for prototype and existence of functions that return a pointer
  5447. # defines in config.h: HAVE_PROTOTYPE_LIB_$1
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strdup prototype" >&5
  5449. $as_echo_n "checking for strdup prototype... " >&6; }
  5450. if ${sc_cv_have_prototype_lib_strdup+:} false; then :
  5451. $as_echo_n "(cached) " >&6
  5452. else
  5453. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5455. /* end confdefs.h. */
  5456. #include "sysincludes.h"
  5457. int
  5458. main ()
  5459. {
  5460. return(&strdup==(void *)&strdup);
  5461. ;
  5462. return 0;
  5463. }
  5464. _ACEOF
  5465. if ac_fn_c_try_link "$LINENO"; then :
  5466. sc_cv_have_prototype_lib_strdup=yes
  5467. else
  5468. sc_cv_have_prototype_lib_strdup=no
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext \
  5471. conftest$ac_exeext conftest.$ac_ext;
  5472. CFLAGS="$CFLAGS1"
  5473. fi
  5474. if test $sc_cv_have_prototype_lib_strdup = yes; then
  5475. $as_echo "#define HAVE_PROTOTYPE_LIB_strdup 1" >>confdefs.h
  5476. fi
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_strdup" >&5
  5478. $as_echo "$sc_cv_have_prototype_lib_strdup" >&6; }
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror prototype" >&5
  5480. $as_echo_n "checking for strerror prototype... " >&6; }
  5481. if ${sc_cv_have_prototype_lib_strerror+:} false; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5486. /* end confdefs.h. */
  5487. #include "sysincludes.h"
  5488. int
  5489. main ()
  5490. {
  5491. return(&strerror==(void *)&strerror);
  5492. ;
  5493. return 0;
  5494. }
  5495. _ACEOF
  5496. if ac_fn_c_try_link "$LINENO"; then :
  5497. sc_cv_have_prototype_lib_strerror=yes
  5498. else
  5499. sc_cv_have_prototype_lib_strerror=no
  5500. fi
  5501. rm -f core conftest.err conftest.$ac_objext \
  5502. conftest$ac_exeext conftest.$ac_ext;
  5503. CFLAGS="$CFLAGS1"
  5504. fi
  5505. if test $sc_cv_have_prototype_lib_strerror = yes; then
  5506. $as_echo "#define HAVE_PROTOTYPE_LIB_strerror 1" >>confdefs.h
  5507. fi
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_strerror" >&5
  5509. $as_echo "$sc_cv_have_prototype_lib_strerror" >&6; }
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strstr prototype" >&5
  5511. $as_echo_n "checking for strstr prototype... " >&6; }
  5512. if ${sc_cv_have_prototype_lib_strstr+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5517. /* end confdefs.h. */
  5518. #include "sysincludes.h"
  5519. int
  5520. main ()
  5521. {
  5522. return(&strstr==(void *)&strstr);
  5523. ;
  5524. return 0;
  5525. }
  5526. _ACEOF
  5527. if ac_fn_c_try_link "$LINENO"; then :
  5528. sc_cv_have_prototype_lib_strstr=yes
  5529. else
  5530. sc_cv_have_prototype_lib_strstr=no
  5531. fi
  5532. rm -f core conftest.err conftest.$ac_objext \
  5533. conftest$ac_exeext conftest.$ac_ext;
  5534. CFLAGS="$CFLAGS1"
  5535. fi
  5536. if test $sc_cv_have_prototype_lib_strstr = yes; then
  5537. $as_echo "#define HAVE_PROTOTYPE_LIB_strstr 1" >>confdefs.h
  5538. fi
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_strstr" >&5
  5540. $as_echo "$sc_cv_have_prototype_lib_strstr" >&6; }
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getipnodebyname prototype" >&5
  5542. $as_echo_n "checking for getipnodebyname prototype... " >&6; }
  5543. if ${sc_cv_have_prototype_lib_getipnodebyname+:} false; then :
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5548. /* end confdefs.h. */
  5549. #include "sysincludes.h"
  5550. int
  5551. main ()
  5552. {
  5553. return(&getipnodebyname==(void *)&getipnodebyname);
  5554. ;
  5555. return 0;
  5556. }
  5557. _ACEOF
  5558. if ac_fn_c_try_link "$LINENO"; then :
  5559. sc_cv_have_prototype_lib_getipnodebyname=yes
  5560. else
  5561. sc_cv_have_prototype_lib_getipnodebyname=no
  5562. fi
  5563. rm -f core conftest.err conftest.$ac_objext \
  5564. conftest$ac_exeext conftest.$ac_ext;
  5565. CFLAGS="$CFLAGS1"
  5566. fi
  5567. if test $sc_cv_have_prototype_lib_getipnodebyname = yes; then
  5568. $as_echo "#define HAVE_PROTOTYPE_LIB_getipnodebyname 1" >>confdefs.h
  5569. fi
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_getipnodebyname" >&5
  5571. $as_echo "$sc_cv_have_prototype_lib_getipnodebyname" >&6; }
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memrchr prototype" >&5
  5573. $as_echo_n "checking for memrchr prototype... " >&6; }
  5574. if ${sc_cv_have_prototype_lib_memrchr+:} false; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5579. /* end confdefs.h. */
  5580. #include "sysincludes.h"
  5581. int
  5582. main ()
  5583. {
  5584. return(&memrchr==(void *)&memrchr);
  5585. ;
  5586. return 0;
  5587. }
  5588. _ACEOF
  5589. if ac_fn_c_try_link "$LINENO"; then :
  5590. sc_cv_have_prototype_lib_memrchr=yes
  5591. else
  5592. sc_cv_have_prototype_lib_memrchr=no
  5593. fi
  5594. rm -f core conftest.err conftest.$ac_objext \
  5595. conftest$ac_exeext conftest.$ac_ext;
  5596. CFLAGS="$CFLAGS1"
  5597. fi
  5598. if test $sc_cv_have_prototype_lib_memrchr = yes; then
  5599. $as_echo "#define HAVE_PROTOTYPE_LIB_memrchr 1" >>confdefs.h
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_memrchr" >&5
  5602. $as_echo "$sc_cv_have_prototype_lib_memrchr" >&6; }
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_indextoname prototype" >&5
  5604. $as_echo_n "checking for if_indextoname prototype... " >&6; }
  5605. if ${sc_cv_have_prototype_lib_if_indextoname+:} false; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5610. /* end confdefs.h. */
  5611. #include "sysincludes.h"
  5612. int
  5613. main ()
  5614. {
  5615. return(&if_indextoname==(void *)&if_indextoname);
  5616. ;
  5617. return 0;
  5618. }
  5619. _ACEOF
  5620. if ac_fn_c_try_link "$LINENO"; then :
  5621. sc_cv_have_prototype_lib_if_indextoname=yes
  5622. else
  5623. sc_cv_have_prototype_lib_if_indextoname=no
  5624. fi
  5625. rm -f core conftest.err conftest.$ac_objext \
  5626. conftest$ac_exeext conftest.$ac_ext;
  5627. CFLAGS="$CFLAGS1"
  5628. fi
  5629. if test $sc_cv_have_prototype_lib_if_indextoname = yes; then
  5630. $as_echo "#define HAVE_PROTOTYPE_LIB_if_indextoname 1" >>confdefs.h
  5631. fi
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_if_indextoname" >&5
  5633. $as_echo "$sc_cv_have_prototype_lib_if_indextoname" >&6; }
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptsname prototype" >&5
  5635. $as_echo_n "checking for ptsname prototype... " >&6; }
  5636. if ${sc_cv_have_prototype_lib_ptsname+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN -Wall $CFLAGS1";
  5640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5641. /* end confdefs.h. */
  5642. #include "sysincludes.h"
  5643. int
  5644. main ()
  5645. {
  5646. return(&ptsname==(void *)&ptsname);
  5647. ;
  5648. return 0;
  5649. }
  5650. _ACEOF
  5651. if ac_fn_c_try_link "$LINENO"; then :
  5652. sc_cv_have_prototype_lib_ptsname=yes
  5653. else
  5654. sc_cv_have_prototype_lib_ptsname=no
  5655. fi
  5656. rm -f core conftest.err conftest.$ac_objext \
  5657. conftest$ac_exeext conftest.$ac_ext;
  5658. CFLAGS="$CFLAGS1"
  5659. fi
  5660. if test $sc_cv_have_prototype_lib_ptsname = yes; then
  5661. $as_echo "#define HAVE_PROTOTYPE_LIB_ptsname 1" >>confdefs.h
  5662. fi
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_prototype_lib_ptsname" >&5
  5664. $as_echo "$sc_cv_have_prototype_lib_ptsname" >&6; }
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
  5666. $as_echo_n "checking for long long... " >&6; }
  5667. if ${sc_cv_type_longlong+:} false; then :
  5668. $as_echo_n "(cached) " >&6
  5669. else
  5670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5671. /* end confdefs.h. */
  5672. int
  5673. main ()
  5674. {
  5675. long long s;
  5676. ;
  5677. return 0;
  5678. }
  5679. _ACEOF
  5680. if ac_fn_c_try_compile "$LINENO"; then :
  5681. sc_cv_type_longlong=yes
  5682. else
  5683. sc_cv_type_longlong=no
  5684. fi
  5685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5686. fi
  5687. if test $sc_cv_type_longlong = yes; then
  5688. $as_echo "#define HAVE_TYPE_LONGLONG 1" >>confdefs.h
  5689. fi
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_longlong" >&5
  5691. $as_echo "$sc_cv_type_longlong" >&6; }
  5692. ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include \"sysincludes.h\"
  5693. "
  5694. if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
  5695. $as_echo "#define HAVE_TYPE_SIG_ATOMIC_T 1" >>confdefs.h
  5696. fi
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bool" >&5
  5698. $as_echo_n "checking for bool... " >&6; }
  5699. if ${sc_cv_type_bool+:} false; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5703. /* end confdefs.h. */
  5704. #ifdef HAVE_STDBOOL_H
  5705. #include <stdbool.h>
  5706. #endif
  5707. int
  5708. main ()
  5709. {
  5710. bool b;
  5711. ;
  5712. return 0;
  5713. }
  5714. _ACEOF
  5715. if ac_fn_c_try_compile "$LINENO"; then :
  5716. sc_cv_type_bool=yes
  5717. else
  5718. sc_cv_type_bool=no
  5719. fi
  5720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5721. fi
  5722. if test $sc_cv_type_bool = yes; then
  5723. $as_echo "#define HAVE_TYPE_BOOL 1" >>confdefs.h
  5724. fi
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_bool" >&5
  5726. $as_echo "$sc_cv_type_bool" >&6; }
  5727. # following builtin macro does not check unistd.h and sys/socket.h where
  5728. # socklen_t might be defined
  5729. #AC_CHECK_TYPE(socklen_t, int)
  5730. #
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  5732. $as_echo_n "checking for socklen_t... " >&6; }
  5733. if ${sc_cv_type_socklen+:} false; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5737. /* end confdefs.h. */
  5738. #include <sys/types.h>
  5739. #include <sys/socket.h>
  5740. #include <unistd.h>
  5741. int
  5742. main ()
  5743. {
  5744. socklen_t s;
  5745. ;
  5746. return 0;
  5747. }
  5748. _ACEOF
  5749. if ac_fn_c_try_compile "$LINENO"; then :
  5750. sc_cv_type_socklen=yes
  5751. else
  5752. sc_cv_type_socklen=no
  5753. fi
  5754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5755. fi
  5756. if test $sc_cv_type_socklen = yes; then
  5757. $as_echo "#define HAVE_TYPE_SOCKLEN 1" >>confdefs.h
  5758. fi
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_socklen" >&5
  5760. $as_echo "$sc_cv_type_socklen" >&6; }
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
  5762. $as_echo_n "checking for struct stat64... " >&6; }
  5763. if ${sc_cv_type_stat64+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5767. /* end confdefs.h. */
  5768. #include <sys/stat.h>
  5769. int
  5770. main ()
  5771. {
  5772. struct stat64 s;
  5773. ;
  5774. return 0;
  5775. }
  5776. _ACEOF
  5777. if ac_fn_c_try_compile "$LINENO"; then :
  5778. sc_cv_type_stat64=yes
  5779. else
  5780. sc_cv_type_stat64=no
  5781. fi
  5782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5783. fi
  5784. if test $sc_cv_type_stat64 = yes; then
  5785. $as_echo "#define HAVE_TYPE_STAT64 1" >>confdefs.h
  5786. fi
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64" >&5
  5788. $as_echo "$sc_cv_type_stat64" >&6; }
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
  5790. $as_echo_n "checking for off64_t... " >&6; }
  5791. if ${sc_cv_type_off64+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5795. /* end confdefs.h. */
  5796. #include <unistd.h>
  5797. int
  5798. main ()
  5799. {
  5800. off64_t s;
  5801. ;
  5802. return 0;
  5803. }
  5804. _ACEOF
  5805. if ac_fn_c_try_compile "$LINENO"; then :
  5806. sc_cv_type_off64=yes
  5807. else
  5808. sc_cv_type_off64=no
  5809. fi
  5810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5811. fi
  5812. if test $sc_cv_type_off64 = yes; then
  5813. $as_echo "#define HAVE_TYPE_OFF64 1" >>confdefs.h
  5814. fi
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_off64" >&5
  5816. $as_echo "$sc_cv_type_off64" >&6; }
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sighandler_t" >&5
  5818. $as_echo_n "checking for sighandler_t... " >&6; }
  5819. if ${sc_cv_type_sighandler+:} false; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5823. /* end confdefs.h. */
  5824. #include <signal.h>
  5825. int
  5826. main ()
  5827. {
  5828. sighandler_t s;
  5829. ;
  5830. return 0;
  5831. }
  5832. _ACEOF
  5833. if ac_fn_c_try_compile "$LINENO"; then :
  5834. sc_cv_type_sighandler=yes
  5835. else
  5836. sc_cv_type_sighandler=no
  5837. fi
  5838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5839. fi
  5840. if test $sc_cv_type_sighandler = yes; then
  5841. $as_echo "#define HAVE_TYPE_SIGHANDLER 1" >>confdefs.h
  5842. fi
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_socklen" >&5
  5844. $as_echo "$sc_cv_type_socklen" >&6; }
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
  5846. $as_echo_n "checking for uint8_t... " >&6; }
  5847. if ${sc_cv_type_uint8+:} false; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5851. /* end confdefs.h. */
  5852. #include <sys/types.h>
  5853. #if HAVE_STDINT_H
  5854. #include <stdint.h>
  5855. #endif
  5856. /* Tru64 has uint8_t etc from netdb.h */
  5857. #if HAVE_NETDB_H
  5858. #include <netdb.h>
  5859. #endif
  5860. #include <unistd.h>
  5861. int
  5862. main ()
  5863. {
  5864. uint8_t s;
  5865. ;
  5866. return 0;
  5867. }
  5868. _ACEOF
  5869. if ac_fn_c_try_compile "$LINENO"; then :
  5870. sc_cv_type_uint8=yes
  5871. else
  5872. sc_cv_type_uint8=no
  5873. fi
  5874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5875. fi
  5876. if test $sc_cv_type_uint8 = yes; then
  5877. $as_echo "#define HAVE_TYPE_UINT8 1" >>confdefs.h
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_uint8" >&5
  5880. $as_echo "$sc_cv_type_uint8" >&6; }
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
  5882. $as_echo_n "checking for uint16_t... " >&6; }
  5883. if ${sc_cv_type_uint16+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5887. /* end confdefs.h. */
  5888. #include <sys/types.h>
  5889. #if HAVE_STDINT_H
  5890. #include <stdint.h>
  5891. #endif
  5892. /* Tru64 has uint16_t etc from netdb.h */
  5893. #if HAVE_NETDB_H
  5894. #include <netdb.h>
  5895. #endif
  5896. #include <unistd.h>
  5897. int
  5898. main ()
  5899. {
  5900. uint16_t s;
  5901. ;
  5902. return 0;
  5903. }
  5904. _ACEOF
  5905. if ac_fn_c_try_compile "$LINENO"; then :
  5906. sc_cv_type_uint16=yes
  5907. else
  5908. sc_cv_type_uint16=no
  5909. fi
  5910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5911. fi
  5912. if test $sc_cv_type_uint16 = yes; then
  5913. $as_echo "#define HAVE_TYPE_UINT16 1" >>confdefs.h
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_uint16" >&5
  5916. $as_echo "$sc_cv_type_uint16" >&6; }
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
  5918. $as_echo_n "checking for uint32_t... " >&6; }
  5919. if ${sc_cv_type_uint32+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5923. /* end confdefs.h. */
  5924. #include <sys/types.h>
  5925. #if HAVE_STDINT_H
  5926. #include <stdint.h>
  5927. #endif
  5928. /* Tru64 has uint32_t etc from netdb.h */
  5929. #if HAVE_NETDB_H
  5930. #include <netdb.h>
  5931. #endif
  5932. #include <unistd.h>
  5933. int
  5934. main ()
  5935. {
  5936. uint32_t s;
  5937. ;
  5938. return 0;
  5939. }
  5940. _ACEOF
  5941. if ac_fn_c_try_compile "$LINENO"; then :
  5942. sc_cv_type_uint32=yes
  5943. else
  5944. sc_cv_type_uint32=no
  5945. fi
  5946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5947. fi
  5948. if test $sc_cv_type_uint32 = yes; then
  5949. $as_echo "#define HAVE_TYPE_UINT32 1" >>confdefs.h
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_uint32" >&5
  5952. $as_echo "$sc_cv_type_uint32" >&6; }
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
  5954. $as_echo_n "checking for uint64_t... " >&6; }
  5955. if ${sc_cv_type_uint64+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5959. /* end confdefs.h. */
  5960. #include <sys/types.h>
  5961. #if HAVE_STDINT_H
  5962. #include <stdint.h>
  5963. #endif
  5964. /* Tru64 has uint32_t etc from netdb.h */
  5965. #if HAVE_NETDB_H
  5966. #include <netdb.h>
  5967. #endif
  5968. #include <unistd.h>
  5969. int
  5970. main ()
  5971. {
  5972. uint64_t s;
  5973. ;
  5974. return 0;
  5975. }
  5976. _ACEOF
  5977. if ac_fn_c_try_compile "$LINENO"; then :
  5978. sc_cv_type_uint64=yes
  5979. else
  5980. sc_cv_type_uint64=no
  5981. fi
  5982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5983. fi
  5984. if test $sc_cv_type_uint64 = yes; then
  5985. $as_echo "#define HAVE_TYPE_UINT64 1" >>confdefs.h
  5986. fi
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_uint64" >&5
  5988. $as_echo "$sc_cv_type_uint64" >&6; }
  5989. ### AIX 4.1 needs _XOPEN_EXTENDED_SOURCE for syslog headers,
  5990. # but then gets problems with 3rd arg of getsockaddr...
  5991. #AC_MSG_CHECKING(for _XOPEN_EXTENDED_SOURCE requirement)
  5992. #CFLAGS="-Werror -Wall"
  5993. #AC_TRY_COMPILE([#include <sys/syslog.h>],
  5994. #[syslog(0," ");],
  5995. #[AC_MSG_RESULT(no)],
  5996. #[AC_MSG_RESULT(required); AC_DEFINE(_XOPEN_EXTENDED_SOURCE)])
  5997. ### fds_bits
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdset->fds_bits" >&5
  5999. $as_echo_n "checking for fdset->fds_bits... " >&6; }
  6000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6001. /* end confdefs.h. */
  6002. #include <sys/types.h>
  6003. #if HAVE_SYS_SELECT_H
  6004. #include <sys/select.h>
  6005. #endif
  6006. int
  6007. main ()
  6008. {
  6009. fd_set s; s.fds_bits[0]=0;
  6010. ;
  6011. return 0;
  6012. }
  6013. _ACEOF
  6014. if ac_fn_c_try_compile "$LINENO"; then :
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6016. $as_echo "yes" >&6; }; $as_echo "#define HAVE_FDS_BITS 1" >>confdefs.h
  6017. else
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6019. $as_echo "no" >&6; };
  6020. fi
  6021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios . c_ispeed" >&5
  6023. $as_echo_n "checking for struct termios . c_ispeed... " >&6; }
  6024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6025. /* end confdefs.h. */
  6026. #include <unistd.h>
  6027. #if HAVE_TERMIOS_H
  6028. #include <termios.h>
  6029. #endif
  6030. int
  6031. main ()
  6032. {
  6033. struct termios s; s.c_ispeed=0;
  6034. ;
  6035. return 0;
  6036. }
  6037. _ACEOF
  6038. if ac_fn_c_try_compile "$LINENO"; then :
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6040. $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRUCT_TERMIOS_C_ISPEED 1" >>confdefs.h
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; };
  6044. fi
  6045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios . c_ospeed" >&5
  6047. $as_echo_n "checking for struct termios . c_ospeed... " >&6; }
  6048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6049. /* end confdefs.h. */
  6050. #include <unistd.h>
  6051. #if HAVE_TERMIOS_H
  6052. #include <termios.h>
  6053. #endif
  6054. int
  6055. main ()
  6056. {
  6057. struct termios s; s.c_ospeed=0;
  6058. ;
  6059. return 0;
  6060. }
  6061. _ACEOF
  6062. if ac_fn_c_try_compile "$LINENO"; then :
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6064. $as_echo "yes" >&6; }; $as_echo "#define HAVE_STRUCT_TERMIOS_C_OSPEED 1" >>confdefs.h
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; };
  6068. fi
  6069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
  6071. $as_echo_n "checking for sa_family_t... " >&6; }
  6072. if ${sc_cv_type_sa_family_t+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. #include <sys/types.h>
  6078. #include <sys/socket.h>
  6079. #include <netinet/in.h>
  6080. int
  6081. main ()
  6082. {
  6083. sa_family_t s;
  6084. ;
  6085. return 0;
  6086. }
  6087. _ACEOF
  6088. if ac_fn_c_try_compile "$LINENO"; then :
  6089. sc_cv_type_sa_family_t=yes
  6090. else
  6091. sc_cv_type_sa_family_t=no
  6092. fi
  6093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6094. fi
  6095. if test $sc_cv_type_sa_family_t = yes; then
  6096. $as_echo "#define HAVE_TYPE_SA_FAMILY_T 1" >>confdefs.h
  6097. fi
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_sa_family_t" >&5
  6099. $as_echo "$sc_cv_type_sa_family_t" >&6; }
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sock_extended_err" >&5
  6101. $as_echo_n "checking for struct sock_extended_err... " >&6; }
  6102. if ${sc_cv_struct_sock_extended_err+:} false; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6106. /* end confdefs.h. */
  6107. #include <linux/types.h>
  6108. #if TIME_WITH_SYS_TIME
  6109. #include <sys/time.h>
  6110. #endif
  6111. #if HAVE_LINUX_ERRQUEUE_H
  6112. #include <linux/errqueue.h>
  6113. #endif
  6114. int
  6115. main ()
  6116. {
  6117. struct sock_extended_err s;
  6118. ;
  6119. return 0;
  6120. }
  6121. _ACEOF
  6122. if ac_fn_c_try_compile "$LINENO"; then :
  6123. sc_cv_struct_sock_extended_err=yes
  6124. else
  6125. sc_cv_struct_sock_extended_err=no
  6126. fi
  6127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6128. fi
  6129. if test $sc_cv_struct_sock_extended_err = yes; then
  6130. $as_echo "#define HAVE_STRUCT_SOCK_EXTENDED_ERR 1" >>confdefs.h
  6131. fi
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_sock_extended_err" >&5
  6133. $as_echo "$sc_cv_struct_sock_extended_err" >&6; }
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction.sa_sigaction" >&5
  6135. $as_echo_n "checking for struct sigaction.sa_sigaction... " >&6; }
  6136. if ${sc_cv_struct_sigaction_sa_sigaction+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6140. /* end confdefs.h. */
  6141. #include <signal.h>
  6142. int
  6143. main ()
  6144. {
  6145. struct sigaction s;s.sa_sigaction=0;
  6146. ;
  6147. return 0;
  6148. }
  6149. _ACEOF
  6150. if ac_fn_c_try_compile "$LINENO"; then :
  6151. sc_cv_struct_sigaction_sa_sigaction=yes
  6152. else
  6153. sc_cv_struct_sigaction_sa_sigaction=no
  6154. fi
  6155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6156. fi
  6157. if test $sc_cv_struct_sigaction_sa_sigaction = yes; then
  6158. $as_echo "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h
  6159. fi
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_sigaction_sa_sigaction" >&5
  6161. $as_echo "$sc_cv_struct_sigaction_sa_sigaction" >&6; }
  6162. # there is another issue with termios: OSR requires "#define _SVID3 ..."
  6163. # for reasonable termios support. We check this situation using IMAXBEL
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _SVID3 is helpful" >&5
  6165. $as_echo_n "checking if _SVID3 is helpful... " >&6; }
  6166. if ${ac_cv_svid3+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6170. /* end confdefs.h. */
  6171. #include <termios.h>
  6172. int
  6173. main ()
  6174. {
  6175. int i=IMAXBEL
  6176. ;
  6177. return 0;
  6178. }
  6179. _ACEOF
  6180. if ac_fn_c_try_compile "$LINENO"; then :
  6181. ac_cv_svid3=no
  6182. else
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. #define _SVID3 1
  6186. #include <termios.h>
  6187. int
  6188. main ()
  6189. {
  6190. int i=IMAXBEL
  6191. ;
  6192. return 0;
  6193. }
  6194. _ACEOF
  6195. if ac_fn_c_try_compile "$LINENO"; then :
  6196. ac_cv_svid3=yes
  6197. else
  6198. ac_cv_svid3=no
  6199. fi
  6200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6201. fi
  6202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6203. fi
  6204. if test $ac_cv_svid3 = yes; then
  6205. $as_echo "#define _SVID3 1" >>confdefs.h
  6206. fi
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_svid3" >&5
  6208. $as_echo "$ac_cv_svid3" >&6; }
  6209. # Openindiana needs _XPG4_2 for CMSG stuff
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _XPG4_2 is helpful" >&5
  6211. $as_echo_n "checking if _XPG4_2 is helpful... " >&6; }
  6212. if ${ac_cv_xpg4_2+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6216. /* end confdefs.h. */
  6217. #include <sys/socket.h>
  6218. int
  6219. main ()
  6220. {
  6221. int i=CMSG_DATA(0)
  6222. ;
  6223. return 0;
  6224. }
  6225. _ACEOF
  6226. if ac_fn_c_try_link "$LINENO"; then :
  6227. ac_cv_xpg4_2=no
  6228. else
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h. */
  6231. #define _XPG4_2 1
  6232. #include <sys/socket.h>
  6233. int
  6234. main ()
  6235. {
  6236. int i=CMSG_DATA(0)
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. if ac_fn_c_try_link "$LINENO"; then :
  6242. ac_cv_xpg4_2=yes
  6243. else
  6244. ac_cv_xpg4_2=no
  6245. fi
  6246. rm -f core conftest.err conftest.$ac_objext \
  6247. conftest$ac_exeext conftest.$ac_ext
  6248. fi
  6249. rm -f core conftest.err conftest.$ac_objext \
  6250. conftest$ac_exeext conftest.$ac_ext
  6251. fi
  6252. if test $ac_cv_xpg4_2 = yes; then
  6253. $as_echo "#define _XPG4_2 1" >>confdefs.h
  6254. fi
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xpg4_2" >&5
  6256. $as_echo "$ac_cv_xpg4_2" >&6; }
  6257. # When on Openindiana _XPG4_2 is defined (see above)
  6258. # we also need to define __EXTENSIONS__ for basic stuff.
  6259. # Note that <sys/procset.h> is important on Openindiana
  6260. # but does not exist on Linux
  6261. if test "$ac_cv_xpg4_2" = yes; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __EXTENSIONS__ is helpful" >&5
  6263. $as_echo_n "checking if __EXTENSIONS__ is helpful... " >&6; }
  6264. if ${ac_cv___extensions__+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6268. /* end confdefs.h. */
  6269. #include <sys/procset.h>
  6270. int
  6271. main ()
  6272. {
  6273. procset_t *s=0;
  6274. ;
  6275. return 0;
  6276. }
  6277. _ACEOF
  6278. if ac_fn_c_try_compile "$LINENO"; then :
  6279. ac_cv___extensions__=no
  6280. else
  6281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6282. /* end confdefs.h. */
  6283. #define __EXTENSIONS__ 1
  6284. #include <sys/procset.h>
  6285. int
  6286. main ()
  6287. {
  6288. procset_t *s=0;
  6289. ;
  6290. return 0;
  6291. }
  6292. _ACEOF
  6293. if ac_fn_c_try_compile "$LINENO"; then :
  6294. ac_cv___extensions__=yes
  6295. else
  6296. ac_cv___extensions__=no
  6297. fi
  6298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6299. fi
  6300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6301. fi
  6302. if test $ac_cv___extensions__ = yes; then
  6303. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___extensions__" >&5
  6306. $as_echo "$ac_cv___extensions__" >&6; }
  6307. fi
  6308. # When on Openindiana __EXTENSIONS__ is defined (see above)
  6309. # _POSIX_PTHREAD_SEMANTICS must be defined for standard ctime_r()
  6310. if test "$ac_cv___extensions__" = yes; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _POSIX_PTHREAD_SEMANTICS is helpful" >&5
  6312. $as_echo_n "checking if _POSIX_PTHREAD_SEMANTICS is helpful... " >&6; }
  6313. if ${ac_cv__posix_pthread_semantics+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. #include <time.h>
  6319. int
  6320. main ()
  6321. {
  6322. char *s = ctime_r(0,0);
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. if ac_fn_c_try_compile "$LINENO"; then :
  6328. ac_cv__posix_pthread_semantics=no
  6329. else
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. #define _POSIX_PTHREAD_SEMANTICS 1
  6333. #include <time.h>
  6334. int
  6335. main ()
  6336. {
  6337. char *s = ctime_r(0,0);
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. if ac_fn_c_try_compile "$LINENO"; then :
  6343. ac_cv__posix_pthread_semantics=yes
  6344. else
  6345. ac_cv__posix_pthread_semantics=no
  6346. fi
  6347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6348. fi
  6349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6350. fi
  6351. if test $ac_cv__posix_pthread_semantics = yes; then
  6352. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  6353. fi
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__posix_pthread_semantics" >&5
  6355. $as_echo "$ac_cv__posix_pthread_semantics" >&6; }
  6356. fi
  6357. # struct timespec
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
  6359. $as_echo_n "checking for struct timespec... " >&6; }
  6360. if ${sc_cv_struct_timespec+:} false; then :
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6364. /* end confdefs.h. */
  6365. #include <time.h>
  6366. #if HAVE_SYS_TIME_H
  6367. #include <sys/time.h>
  6368. #endif
  6369. int
  6370. main ()
  6371. {
  6372. struct timespec s;
  6373. ;
  6374. return 0;
  6375. }
  6376. _ACEOF
  6377. if ac_fn_c_try_compile "$LINENO"; then :
  6378. sc_cv_struct_timespec=yes
  6379. else
  6380. sc_cv_struct_timespec=no
  6381. fi
  6382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6383. fi
  6384. if test $sc_cv_struct_timespec = yes; then
  6385. $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
  6386. fi
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_timespec" >&5
  6388. $as_echo "$sc_cv_struct_timespec" >&6; }
  6389. # struct linger; FreeBSD requires sys/types.h for sys/socket.h
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct linger" >&5
  6391. $as_echo_n "checking for struct linger... " >&6; }
  6392. if ${sc_cv_struct_linger+:} false; then :
  6393. $as_echo_n "(cached) " >&6
  6394. else
  6395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6396. /* end confdefs.h. */
  6397. #include <sys/types.h>
  6398. #include <sys/socket.h>
  6399. int
  6400. main ()
  6401. {
  6402. struct linger s;
  6403. ;
  6404. return 0;
  6405. }
  6406. _ACEOF
  6407. if ac_fn_c_try_compile "$LINENO"; then :
  6408. sc_cv_struct_linger=yes
  6409. else
  6410. sc_cv_struct_linger=no
  6411. fi
  6412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6413. fi
  6414. if test $sc_cv_struct_linger = yes; then
  6415. $as_echo "#define HAVE_STRUCT_LINGER 1" >>confdefs.h
  6416. fi
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_linger" >&5
  6418. $as_echo "$sc_cv_struct_linger" >&6; }
  6419. # struct ip (for IPv4 header info)
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip" >&5
  6421. $as_echo_n "checking for struct ip... " >&6; }
  6422. if ${sc_cv_struct_ip+:} false; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6426. /* end confdefs.h. */
  6427. #include <netinet/ip.h>
  6428. int
  6429. main ()
  6430. {
  6431. struct ip s;
  6432. ;
  6433. return 0;
  6434. }
  6435. _ACEOF
  6436. if ac_fn_c_try_compile "$LINENO"; then :
  6437. sc_cv_struct_ip=yes
  6438. else
  6439. sc_cv_struct_ip=no
  6440. fi
  6441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6442. fi
  6443. if test $sc_cv_struct_ip = yes; then
  6444. $as_echo "#define HAVE_STRUCT_IP 1" >>confdefs.h
  6445. fi
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ip" >&5
  6447. $as_echo "$sc_cv_struct_ip" >&6; }
  6448. # struct ip_mreq (for multicasting options)
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
  6450. $as_echo_n "checking for struct ip_mreq... " >&6; }
  6451. if ${sc_cv_struct_ip_mreq+:} false; then :
  6452. $as_echo_n "(cached) " >&6
  6453. else
  6454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6455. /* end confdefs.h. */
  6456. #include <sys/types.h>
  6457. #include <sys/socket.h>
  6458. #include <netinet/in.h>
  6459. int
  6460. main ()
  6461. {
  6462. struct ip_mreq s;
  6463. ;
  6464. return 0;
  6465. }
  6466. _ACEOF
  6467. if ac_fn_c_try_compile "$LINENO"; then :
  6468. sc_cv_struct_ip_mreq=yes
  6469. else
  6470. sc_cv_struct_ip_mreq=no
  6471. fi
  6472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6473. fi
  6474. if test $sc_cv_struct_ip_mreq = yes; then
  6475. $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
  6476. fi
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ip_mreq" >&5
  6478. $as_echo "$sc_cv_struct_ip_mreq" >&6; }
  6479. # struct ip_mreqn (for multicasting options)
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreqn" >&5
  6481. $as_echo_n "checking for struct ip_mreqn... " >&6; }
  6482. if ${sc_cv_struct_ip_mreqn+:} false; then :
  6483. $as_echo_n "(cached) " >&6
  6484. else
  6485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6486. /* end confdefs.h. */
  6487. #include <sys/types.h>
  6488. #include <sys/socket.h>
  6489. #include <netinet/ip.h>
  6490. int
  6491. main ()
  6492. {
  6493. struct ip_mreqn s;
  6494. ;
  6495. return 0;
  6496. }
  6497. _ACEOF
  6498. if ac_fn_c_try_compile "$LINENO"; then :
  6499. sc_cv_struct_ip_mreqn=yes
  6500. else
  6501. sc_cv_struct_ip_mreqn=no
  6502. fi
  6503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6504. fi
  6505. if test $sc_cv_struct_ip_mreqn = yes; then
  6506. $as_echo "#define HAVE_STRUCT_IP_MREQN 1" >>confdefs.h
  6507. fi
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ip_mreqn" >&5
  6509. $as_echo "$sc_cv_struct_ip_mreqn" >&6; }
  6510. # struct ipv6_mreq (for multicasting options)
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ipv6_mreq" >&5
  6512. $as_echo_n "checking for struct ipv6_mreq... " >&6; }
  6513. if ${sc_cv_struct_ipv6_mreq+:} false; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end confdefs.h. */
  6518. #include <sys/types.h>
  6519. #include <sys/socket.h>
  6520. #include <netinet/in.h>
  6521. int
  6522. main ()
  6523. {
  6524. struct ipv6_mreq s;
  6525. ;
  6526. return 0;
  6527. }
  6528. _ACEOF
  6529. if ac_fn_c_try_compile "$LINENO"; then :
  6530. sc_cv_struct_ipv6_mreq=yes
  6531. else
  6532. sc_cv_struct_ipv6_mreq=no
  6533. fi
  6534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6535. fi
  6536. if test $sc_cv_struct_ipv6_mreq = yes; then
  6537. $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
  6538. fi
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ipv6_mreq" >&5
  6540. $as_echo "$sc_cv_struct_ipv6_mreq" >&6; }
  6541. # struct ifreq (for network interfaces)
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifreq" >&5
  6543. $as_echo_n "checking for struct ifreq... " >&6; }
  6544. if ${sc_cv_struct_ifreq+:} false; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6548. /* end confdefs.h. */
  6549. #include <sys/types.h>
  6550. #include <sys/socket.h>
  6551. #include <net/if.h>
  6552. int
  6553. main ()
  6554. {
  6555. struct ifreq s;
  6556. ;
  6557. return 0;
  6558. }
  6559. _ACEOF
  6560. if ac_fn_c_try_compile "$LINENO"; then :
  6561. sc_cv_struct_ifreq=yes
  6562. else
  6563. sc_cv_struct_ifreq=no
  6564. fi
  6565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6566. fi
  6567. if test $sc_cv_struct_ifreq = yes; then
  6568. $as_echo "#define HAVE_STRUCT_IFREQ 1" >>confdefs.h
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ifreq" >&5
  6571. $as_echo "$sc_cv_struct_ifreq" >&6; }
  6572. # struct ifreq.ifr_index
  6573. # on most systems that have struct ifreq
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifreq.ifr_index" >&5
  6575. $as_echo_n "checking for struct ifreq.ifr_index... " >&6; }
  6576. if ${sc_cv_struct_ifreq_ifr_index+:} false; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6580. /* end confdefs.h. */
  6581. #include <sys/types.h>
  6582. #include <sys/socket.h>
  6583. #include <net/if.h>
  6584. int
  6585. main ()
  6586. {
  6587. struct ifreq ir;ir.ifr_index=0;
  6588. ;
  6589. return 0;
  6590. }
  6591. _ACEOF
  6592. if ac_fn_c_try_compile "$LINENO"; then :
  6593. sc_cv_struct_ifreq_ifr_index=yes
  6594. else
  6595. sc_cv_struct_ifreq_ifr_index=no
  6596. fi
  6597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6598. fi
  6599. if test $sc_cv_struct_ifreq_ifr_index = yes; then
  6600. $as_echo "#define HAVE_STRUCT_IFREQ_IFR_INDEX 1" >>confdefs.h
  6601. fi
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ifreq_ifr_index" >&5
  6603. $as_echo "$sc_cv_struct_ifreq_ifr_index" >&6; }
  6604. # struct ifreq.ifr_ifindex
  6605. # Linux has ifr_ifindex instead of ifr_index
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifreq.ifr_ifindex" >&5
  6607. $as_echo_n "checking for struct ifreq.ifr_ifindex... " >&6; }
  6608. if ${sc_cv_struct_ifreq_ifr_ifindex+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6612. /* end confdefs.h. */
  6613. #include <sys/types.h>
  6614. #include <sys/socket.h>
  6615. #include <net/if.h>
  6616. int
  6617. main ()
  6618. {
  6619. struct ifreq ir;ir.ifr_ifindex=0;
  6620. ;
  6621. return 0;
  6622. }
  6623. _ACEOF
  6624. if ac_fn_c_try_compile "$LINENO"; then :
  6625. sc_cv_struct_ifreq_ifr_ifindex=yes
  6626. else
  6627. sc_cv_struct_ifreq_ifr_ifindex=no
  6628. fi
  6629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6630. fi
  6631. if test $sc_cv_struct_ifreq_ifr_ifindex = yes; then
  6632. $as_echo "#define HAVE_STRUCT_IFREQ_IFR_IFINDEX 1" >>confdefs.h
  6633. fi
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ifreq_ifr_ifindex" >&5
  6635. $as_echo "$sc_cv_struct_ifreq_ifr_ifindex" >&6; }
  6636. # some systems have a sa_len field in struct sockaddr and we need to support it
  6637. # so we can compare sockaddrs simply with memcmp
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr.sa_len" >&5
  6639. $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
  6640. if ${sc_cv_struct_sockaddr_salen+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6644. /* end confdefs.h. */
  6645. #include <sys/types.h>
  6646. #include <sys/socket.h>
  6647. int
  6648. main ()
  6649. {
  6650. struct sockaddr sa;sa.sa_len=0;
  6651. ;
  6652. return 0;
  6653. }
  6654. _ACEOF
  6655. if ac_fn_c_try_compile "$LINENO"; then :
  6656. sc_cv_struct_sockaddr_salen=yes
  6657. else
  6658. sc_cv_struct_sockaddr_salen=no
  6659. fi
  6660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6661. fi
  6662. if test $sc_cv_struct_sockaddr_salen = yes; then
  6663. $as_echo "#define HAVE_STRUCT_SOCKADDR_SALEN 1" >>confdefs.h
  6664. fi
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_sockaddr_salen" >&5
  6666. $as_echo "$sc_cv_struct_sockaddr_salen" >&6; }
  6667. ### IP6 sockaddr_in6
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for component names of sockaddr_in6" >&5
  6669. $as_echo_n "checking for component names of sockaddr_in6... " >&6; }
  6670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6671. /* end confdefs.h. */
  6672. #include <sys/types.h>
  6673. #include <netinet/in.h>
  6674. int
  6675. main ()
  6676. {
  6677. struct sockaddr_in6 sa6;sa6.sin6_addr.s6_addr[0]=0;
  6678. ;
  6679. return 0;
  6680. }
  6681. _ACEOF
  6682. if ac_fn_c_try_compile "$LINENO"; then :
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: s6_addr" >&5
  6684. $as_echo "s6_addr" >&6; };
  6685. $as_echo "#define HAVE_IP6_SOCKADDR 0" >>confdefs.h
  6686. else
  6687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6688. /* end confdefs.h. */
  6689. #include <sys/types.h>
  6690. #include <netinet/in.h>
  6691. int
  6692. main ()
  6693. {
  6694. struct sockaddr_in6 sa6;sa6.sin6_addr.u6_addr.u6_addr16[0]=0;
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. if ac_fn_c_try_compile "$LINENO"; then :
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: u6_addr.u6_addr16" >&5
  6701. $as_echo "u6_addr.u6_addr16" >&6; };
  6702. $as_echo "#define HAVE_IP6_SOCKADDR 1" >>confdefs.h
  6703. else
  6704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end confdefs.h. */
  6706. #include <sys/types.h>
  6707. #include <netinet/in.h>
  6708. int
  6709. main ()
  6710. {
  6711. struct sockaddr_in6 sa6;sa6.sin6_addr.u6_addr16[0]=0;
  6712. ;
  6713. return 0;
  6714. }
  6715. _ACEOF
  6716. if ac_fn_c_try_compile "$LINENO"; then :
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: u6_addr16" >&5
  6718. $as_echo "u6_addr16" >&6; }; $as_echo "#define HAVE_IP6_SOCKADDR 2" >>confdefs.h
  6719. else
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. #include <sys/types.h>
  6723. #include <netinet/in.h>
  6724. int
  6725. main ()
  6726. {
  6727. struct sockaddr_in6 sa6;sa6.sin6_addr.in6_u.u6_addr16[0]=0;
  6728. ;
  6729. return 0;
  6730. }
  6731. _ACEOF
  6732. if ac_fn_c_try_compile "$LINENO"; then :
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: in6_u.u6_addr16" >&5
  6734. $as_echo "in6_u.u6_addr16" >&6; };
  6735. $as_echo "#define HAVE_IP6_SOCKADDR 3" >>confdefs.h
  6736. else
  6737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6738. /* end confdefs.h. */
  6739. #include <sys/types.h>
  6740. #include <netinet/in.h>
  6741. int
  6742. main ()
  6743. {
  6744. struct sockaddr_in6 sa6;sa6.sin6_addr._S6_un._S6_u32[0]=0;
  6745. ;
  6746. return 0;
  6747. }
  6748. _ACEOF
  6749. if ac_fn_c_try_compile "$LINENO"; then :
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: _S6_un._S6_u32" >&5
  6751. $as_echo "_S6_un._S6_u32" >&6; };
  6752. $as_echo "#define HAVE_IP6_SOCKADDR 4" >>confdefs.h
  6753. else
  6754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6755. /* end confdefs.h. */
  6756. #include <sys/types.h>
  6757. #include <netinet/in.h>
  6758. int
  6759. main ()
  6760. {
  6761. struct sockaddr_in6 sa6;sa6.sin6_addr.__u6_addr.__u6_addr32[0]=0;
  6762. ;
  6763. return 0;
  6764. }
  6765. _ACEOF
  6766. if ac_fn_c_try_compile "$LINENO"; then :
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: __u6_addr.__u6_addr32" >&5
  6768. $as_echo "__u6_addr.__u6_addr32" >&6; };
  6769. $as_echo "#define HAVE_IP6_SOCKADDR 5" >>confdefs.h
  6770. else
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unknown" >&5
  6772. $as_echo "none or unknown" >&6; }
  6773. fi
  6774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6775. fi
  6776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6779. fi
  6780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6781. fi
  6782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6783. fi
  6784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5
  6786. $as_echo_n "checking for struct iovec... " >&6; }
  6787. if ${sc_cv_struct_iovec+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6791. /* end confdefs.h. */
  6792. #include <sys/uio.h>
  6793. int
  6794. main ()
  6795. {
  6796. struct iovec s;
  6797. ;
  6798. return 0;
  6799. }
  6800. _ACEOF
  6801. if ac_fn_c_try_compile "$LINENO"; then :
  6802. sc_cv_struct_iovec=yes
  6803. else
  6804. sc_cv_struct_iovec=no
  6805. fi
  6806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6807. fi
  6808. if test $sc_cv_struct_iovec = yes; then
  6809. $as_echo "#define HAVE_STRUCT_IOVEC 1" >>confdefs.h
  6810. fi
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_iovec" >&5
  6812. $as_echo "$sc_cv_struct_iovec" >&6; }
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr.msg_control" >&5
  6814. $as_echo_n "checking for struct msghdr.msg_control... " >&6; }
  6815. if ${sc_cv_struct_msghdr_msgcontrol+:} false; then :
  6816. $as_echo_n "(cached) " >&6
  6817. else
  6818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6819. /* end confdefs.h. */
  6820. #include <sys/types.h>
  6821. #include <sys/socket.h>
  6822. int
  6823. main ()
  6824. {
  6825. struct msghdr s;s.msg_control=0;
  6826. ;
  6827. return 0;
  6828. }
  6829. _ACEOF
  6830. if ac_fn_c_try_compile "$LINENO"; then :
  6831. sc_cv_struct_msghdr_msgcontrol=yes
  6832. else
  6833. sc_cv_struct_msghdr_msgcontrol=no
  6834. fi
  6835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6836. fi
  6837. if test $sc_cv_struct_msghdr_msgcontrol = yes; then
  6838. $as_echo "#define HAVE_STRUCT_MSGHDR_MSGCONTROL 1" >>confdefs.h
  6839. fi
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_msghdr_msgcontrol" >&5
  6841. $as_echo "$sc_cv_struct_msghdr_msgcontrol" >&6; }
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr.msg_controllen" >&5
  6843. $as_echo_n "checking for struct msghdr.msg_controllen... " >&6; }
  6844. if ${sc_cv_struct_msghdr_msgcontrollen+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6848. /* end confdefs.h. */
  6849. #include <sys/types.h>
  6850. #include <sys/socket.h>
  6851. int
  6852. main ()
  6853. {
  6854. struct msghdr s;s.msg_controllen=0;
  6855. ;
  6856. return 0;
  6857. }
  6858. _ACEOF
  6859. if ac_fn_c_try_compile "$LINENO"; then :
  6860. sc_cv_struct_msghdr_msgcontrollen=yes
  6861. else
  6862. sc_cv_struct_msghdr_msgcontrollen=no
  6863. fi
  6864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6865. fi
  6866. if test $sc_cv_struct_msghdr_msgcontrollen = yes; then
  6867. $as_echo "#define HAVE_STRUCT_MSGHDR_MSGCONTROLLEN 1" >>confdefs.h
  6868. fi
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_msghdr_msgcontrollen" >&5
  6870. $as_echo "$sc_cv_struct_msghdr_msgcontrollen" >&6; }
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr.msgflags" >&5
  6872. $as_echo_n "checking for struct msghdr.msgflags... " >&6; }
  6873. if ${sc_cv_struct_msghdr_msgflags+:} false; then :
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6877. /* end confdefs.h. */
  6878. #include <sys/types.h>
  6879. #include <sys/socket.h>
  6880. int
  6881. main ()
  6882. {
  6883. struct msghdr s;s.msg_flags=0;
  6884. ;
  6885. return 0;
  6886. }
  6887. _ACEOF
  6888. if ac_fn_c_try_compile "$LINENO"; then :
  6889. sc_cv_struct_msghdr_msgflags=yes
  6890. else
  6891. sc_cv_struct_msghdr_msgflags=no
  6892. fi
  6893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6894. fi
  6895. if test $sc_cv_struct_msghdr_msgflags = yes; then
  6896. $as_echo "#define HAVE_STRUCT_MSGHDR_MSGFLAGS 1" >>confdefs.h
  6897. fi
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_msghdr_msgflags" >&5
  6899. $as_echo "$sc_cv_struct_msghdr_msgflags" >&6; }
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5
  6901. $as_echo_n "checking for struct cmsghdr... " >&6; }
  6902. if ${sc_cv_struct_cmsghdr+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6906. /* end confdefs.h. */
  6907. #include <sys/types.h>
  6908. #include <sys/socket.h>
  6909. #include <net/if.h>
  6910. int
  6911. main ()
  6912. {
  6913. struct cmsghdr s;
  6914. ;
  6915. return 0;
  6916. }
  6917. _ACEOF
  6918. if ac_fn_c_try_compile "$LINENO"; then :
  6919. sc_cv_struct_cmsghdr=yes
  6920. else
  6921. sc_cv_struct_cmsghdr=no
  6922. fi
  6923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6924. fi
  6925. if test $sc_cv_struct_cmsghdr = yes; then
  6926. $as_echo "#define HAVE_STRUCT_CMSGHDR 1" >>confdefs.h
  6927. fi
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_cmsghdr" >&5
  6929. $as_echo "$sc_cv_struct_cmsghdr" >&6; }
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in_pktinfo" >&5
  6931. $as_echo_n "checking for struct in_pktinfo... " >&6; }
  6932. if ${sc_cv_struct_in_pktinfo+:} false; then :
  6933. $as_echo_n "(cached) " >&6
  6934. else
  6935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6936. /* end confdefs.h. */
  6937. #include <sys/types.h>
  6938. #include <sys/socket.h>
  6939. #include <netinet/in.h>
  6940. int
  6941. main ()
  6942. {
  6943. struct in_pktinfo s;
  6944. ;
  6945. return 0;
  6946. }
  6947. _ACEOF
  6948. if ac_fn_c_try_compile "$LINENO"; then :
  6949. sc_cv_struct_in_pktinfo=yes
  6950. else
  6951. sc_cv_struct_in_pktinfo=no
  6952. fi
  6953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6954. fi
  6955. if test $sc_cv_struct_in_pktinfo = yes; then
  6956. $as_echo "#define HAVE_STRUCT_IN_PKTINFO 1" >>confdefs.h
  6957. fi
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_in_pktinfo" >&5
  6959. $as_echo "$sc_cv_struct_in_pktinfo" >&6; }
  6960. if test $sc_cv_struct_in_pktinfo = 'yes'; then
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_spec_dst in struct in_pktinfo" >&5
  6962. $as_echo_n "checking for ipi_spec_dst in struct in_pktinfo... " >&6; }
  6963. if ${sc_cv_pktinfo_ipi_spec_dst+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6967. /* end confdefs.h. */
  6968. #include <sys/types.h>
  6969. #include <sys/socket.h>
  6970. #include <netinet/in.h>
  6971. int
  6972. main ()
  6973. {
  6974. struct in_pktinfo s; s.ipi_spec_dst
  6975. ;
  6976. return 0;
  6977. }
  6978. _ACEOF
  6979. if ac_fn_c_try_compile "$LINENO"; then :
  6980. sc_cv_pktinfo_ipi_spec_dst=yes
  6981. else
  6982. sc_cv_pktinfo_ipi_spec_dst=no
  6983. fi
  6984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6985. fi
  6986. if test $sc_cv_pktinfo_ipi_spec_dst = yes; then
  6987. $as_echo "#define HAVE_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h
  6988. fi
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_pktinfo_ipi_spec_dst" >&5
  6990. $as_echo "$sc_cv_pktinfo_ipi_spec_dst" >&6; }
  6991. fi
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_pktinfo" >&5
  6993. $as_echo_n "checking for struct in6_pktinfo... " >&6; }
  6994. if ${sc_cv_struct_in6_pktinfo+:} false; then :
  6995. $as_echo_n "(cached) " >&6
  6996. else
  6997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6998. /* end confdefs.h. */
  6999. #include "sysincludes.h"
  7000. int
  7001. main ()
  7002. {
  7003. struct in6_pktinfo s;
  7004. ;
  7005. return 0;
  7006. }
  7007. _ACEOF
  7008. if ac_fn_c_try_compile "$LINENO"; then :
  7009. sc_cv_struct_in6_pktinfo=yes
  7010. else
  7011. sc_cv_struct_in6_pktinfo=no
  7012. fi
  7013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7014. fi
  7015. if test $sc_cv_struct_in6_pktinfo = yes; then
  7016. $as_echo "#define HAVE_STRUCT_IN6_PKTINFO 1" >>confdefs.h
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_in6_pktinfo" >&5
  7019. $as_echo "$sc_cv_struct_in6_pktinfo" >&6; }
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip.ip_hl" >&5
  7021. $as_echo_n "checking for struct ip.ip_hl... " >&6; }
  7022. if ${sc_cv_struct_ip_ip_hl+:} false; then :
  7023. $as_echo_n "(cached) " >&6
  7024. else
  7025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7026. /* end confdefs.h. */
  7027. #include <sys/types.h>
  7028. #include <netinet/in_systm.h>
  7029. #include <netinet/in.h>
  7030. #include <netinet/ip.h>
  7031. int
  7032. main ()
  7033. {
  7034. struct ip s;s.ip_hl=0;
  7035. ;
  7036. return 0;
  7037. }
  7038. _ACEOF
  7039. if ac_fn_c_try_compile "$LINENO"; then :
  7040. sc_cv_struct_ip_ip_hl=yes
  7041. else
  7042. sc_cv_struct_ip_ip_hl=no
  7043. fi
  7044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7045. fi
  7046. if test $sc_cv_struct_ip_ip_hl = yes; then
  7047. $as_echo "#define HAVE_STRUCT_IP_IP_HL 1" >>confdefs.h
  7048. fi
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_struct_ip_ip_hl" >&5
  7050. $as_echo "$sc_cv_struct_ip_ip_hl" >&6; }
  7051. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  7052. if test "x$ac_cv_func_sigaction" = xyes; then :
  7053. $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
  7054. fi
  7055. ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64"
  7056. if test "x$ac_cv_func_stat64" = xyes; then :
  7057. $as_echo "#define HAVE_STAT64 1" >>confdefs.h
  7058. fi
  7059. ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
  7060. if test "x$ac_cv_func_fstat64" = xyes; then :
  7061. $as_echo "#define HAVE_FSTAT64 1" >>confdefs.h
  7062. fi
  7063. ac_fn_c_check_func "$LINENO" "lstat64" "ac_cv_func_lstat64"
  7064. if test "x$ac_cv_func_lstat64" = xyes; then :
  7065. $as_echo "#define HAVE_LSTAT64 1" >>confdefs.h
  7066. fi
  7067. ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
  7068. if test "x$ac_cv_func_lseek64" = xyes; then :
  7069. $as_echo "#define HAVE_LSEEK64 1" >>confdefs.h
  7070. fi
  7071. ac_fn_c_check_func "$LINENO" "truncate64" "ac_cv_func_truncate64"
  7072. if test "x$ac_cv_func_truncate64" = xyes; then :
  7073. $as_echo "#define HAVE_TRUNCATE64 1" >>confdefs.h
  7074. fi
  7075. ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
  7076. if test "x$ac_cv_func_ftruncate64" = xyes; then :
  7077. $as_echo "#define HAVE_FTRUNCATE64 1" >>confdefs.h
  7078. fi
  7079. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  7080. if test "x$ac_cv_func_strtoll" = xyes; then :
  7081. $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
  7082. fi
  7083. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  7084. if test "x$ac_cv_func_hstrerror" = xyes; then :
  7085. $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
  7086. fi
  7087. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  7088. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  7089. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  7090. fi
  7091. #if test "$ac_cv_func_hstrerror" = "yes"; then
  7092. # AC_MSG_CHECKING(if _XOPEN_SOURCE_EXTENDED is helpful)
  7093. # AC_CACHE_VAL(ac_cv_xopen_source_extended,
  7094. # [AC_TRY_COMPILE([#include <netdb.h>],
  7095. # [hstrerror()],
  7096. # [ac_cv_xopen_source_extended=no],
  7097. # [AC_TRY_COMPILE([#define _XOPEN_SOURCE_EXTENDED 1
  7098. ## include <netdb.h>],
  7099. # [hstrerror()],
  7100. # [ac_cv_xopen_source_extended=yes],
  7101. # [ac_cv_xopen_source_extended=no]
  7102. # )]
  7103. # )])
  7104. # if test $ac_cv_xopen_source_extended = yes; then
  7105. # AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
  7106. # fi
  7107. # AC_MSG_RESULT($ac_cv_xopen_source_extended)
  7108. #fi
  7109. # MacOS
  7110. ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
  7111. if test "x$ac_cv_func_openpty" = xyes; then :
  7112. $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
  7113. fi
  7114. # AIX
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
  7116. $as_echo_n "checking for openpty in -lbsd... " >&6; }
  7117. if ${ac_cv_lib_bsd_openpty+:} false; then :
  7118. $as_echo_n "(cached) " >&6
  7119. else
  7120. ac_check_lib_save_LIBS=$LIBS
  7121. LIBS="-lbsd $LIBS"
  7122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7123. /* end confdefs.h. */
  7124. /* Override any GCC internal prototype to avoid an error.
  7125. Use char because int might match the return type of a GCC
  7126. builtin and then its argument prototype would still apply. */
  7127. #ifdef __cplusplus
  7128. extern "C"
  7129. #endif
  7130. char openpty ();
  7131. int
  7132. main ()
  7133. {
  7134. return openpty ();
  7135. ;
  7136. return 0;
  7137. }
  7138. _ACEOF
  7139. if ac_fn_c_try_link "$LINENO"; then :
  7140. ac_cv_lib_bsd_openpty=yes
  7141. else
  7142. ac_cv_lib_bsd_openpty=no
  7143. fi
  7144. rm -f core conftest.err conftest.$ac_objext \
  7145. conftest$ac_exeext conftest.$ac_ext
  7146. LIBS=$ac_check_lib_save_LIBS
  7147. fi
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
  7149. $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
  7150. if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
  7151. LIBS="-lbsd $LIBS"; $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
  7152. fi
  7153. # Linux 2.4
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
  7155. $as_echo_n "checking for openpty in -lutil... " >&6; }
  7156. if ${ac_cv_lib_util_openpty+:} false; then :
  7157. $as_echo_n "(cached) " >&6
  7158. else
  7159. ac_check_lib_save_LIBS=$LIBS
  7160. LIBS="-lutil $LIBS"
  7161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7162. /* end confdefs.h. */
  7163. /* Override any GCC internal prototype to avoid an error.
  7164. Use char because int might match the return type of a GCC
  7165. builtin and then its argument prototype would still apply. */
  7166. #ifdef __cplusplus
  7167. extern "C"
  7168. #endif
  7169. char openpty ();
  7170. int
  7171. main ()
  7172. {
  7173. return openpty ();
  7174. ;
  7175. return 0;
  7176. }
  7177. _ACEOF
  7178. if ac_fn_c_try_link "$LINENO"; then :
  7179. ac_cv_lib_util_openpty=yes
  7180. else
  7181. ac_cv_lib_util_openpty=no
  7182. fi
  7183. rm -f core conftest.err conftest.$ac_objext \
  7184. conftest$ac_exeext conftest.$ac_ext
  7185. LIBS=$ac_check_lib_save_LIBS
  7186. fi
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
  7188. $as_echo "$ac_cv_lib_util_openpty" >&6; }
  7189. if test "x$ac_cv_lib_util_openpty" = xyes; then :
  7190. LIBS="-lutil $LIBS"; $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
  7191. fi
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  7193. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  7194. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. ac_check_lib_save_LIBS=$LIBS
  7198. LIBS="-lrt $LIBS"
  7199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7200. /* end confdefs.h. */
  7201. /* Override any GCC internal prototype to avoid an error.
  7202. Use char because int might match the return type of a GCC
  7203. builtin and then its argument prototype would still apply. */
  7204. #ifdef __cplusplus
  7205. extern "C"
  7206. #endif
  7207. char clock_gettime ();
  7208. int
  7209. main ()
  7210. {
  7211. return clock_gettime ();
  7212. ;
  7213. return 0;
  7214. }
  7215. _ACEOF
  7216. if ac_fn_c_try_link "$LINENO"; then :
  7217. ac_cv_lib_rt_clock_gettime=yes
  7218. else
  7219. ac_cv_lib_rt_clock_gettime=no
  7220. fi
  7221. rm -f core conftest.err conftest.$ac_objext \
  7222. conftest$ac_exeext conftest.$ac_ext
  7223. LIBS=$ac_check_lib_save_LIBS
  7224. fi
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  7226. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  7227. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  7228. LIBS="-lrt $LIBS"; $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  7229. fi
  7230. # with Linux it's in libc, with AIX in libbsd
  7231. ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
  7232. if test "x$ac_cv_func_flock" = xyes; then :
  7233. $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
  7234. else
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
  7236. $as_echo_n "checking for flock in -lbsd... " >&6; }
  7237. if ${ac_cv_lib_bsd_flock+:} false; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. ac_check_lib_save_LIBS=$LIBS
  7241. LIBS="-lbsd $LIBS"
  7242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7243. /* end confdefs.h. */
  7244. /* Override any GCC internal prototype to avoid an error.
  7245. Use char because int might match the return type of a GCC
  7246. builtin and then its argument prototype would still apply. */
  7247. #ifdef __cplusplus
  7248. extern "C"
  7249. #endif
  7250. char flock ();
  7251. int
  7252. main ()
  7253. {
  7254. return flock ();
  7255. ;
  7256. return 0;
  7257. }
  7258. _ACEOF
  7259. if ac_fn_c_try_link "$LINENO"; then :
  7260. ac_cv_lib_bsd_flock=yes
  7261. else
  7262. ac_cv_lib_bsd_flock=no
  7263. fi
  7264. rm -f core conftest.err conftest.$ac_objext \
  7265. conftest$ac_exeext conftest.$ac_ext
  7266. LIBS=$ac_check_lib_save_LIBS
  7267. fi
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
  7269. $as_echo "$ac_cv_lib_bsd_flock" >&6; }
  7270. if test "x$ac_cv_lib_bsd_flock" = xyes; then :
  7271. LIBS="-lbsd $LIBS"
  7272. fi
  7273. fi
  7274. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  7275. if test "x$ac_cv_func_setenv" = xyes; then :
  7276. $as_echo "#define HAVE_SETENV 1" >>confdefs.h
  7277. else
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv in -lisode" >&5
  7279. $as_echo_n "checking for setenv in -lisode... " >&6; }
  7280. if ${ac_cv_lib_isode_setenv+:} false; then :
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. ac_check_lib_save_LIBS=$LIBS
  7284. LIBS="-lisode $LIBS"
  7285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7286. /* end confdefs.h. */
  7287. /* Override any GCC internal prototype to avoid an error.
  7288. Use char because int might match the return type of a GCC
  7289. builtin and then its argument prototype would still apply. */
  7290. #ifdef __cplusplus
  7291. extern "C"
  7292. #endif
  7293. char setenv ();
  7294. int
  7295. main ()
  7296. {
  7297. return setenv ();
  7298. ;
  7299. return 0;
  7300. }
  7301. _ACEOF
  7302. if ac_fn_c_try_link "$LINENO"; then :
  7303. ac_cv_lib_isode_setenv=yes
  7304. else
  7305. ac_cv_lib_isode_setenv=no
  7306. fi
  7307. rm -f core conftest.err conftest.$ac_objext \
  7308. conftest$ac_exeext conftest.$ac_ext
  7309. LIBS=$ac_check_lib_save_LIBS
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_isode_setenv" >&5
  7312. $as_echo "$ac_cv_lib_isode_setenv" >&6; }
  7313. if test "x$ac_cv_lib_isode_setenv" = xyes; then :
  7314. LIBS="-lisode $LIBS"
  7315. fi
  7316. fi
  7317. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  7318. if test "x$ac_cv_func_unsetenv" = xyes; then :
  7319. $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
  7320. fi
  7321. ac_fn_c_check_func "$LINENO" "TLS_client_method" "ac_cv_func_TLS_client_method"
  7322. if test "x$ac_cv_func_TLS_client_method" = xyes; then :
  7323. $as_echo "#define HAVE_TLS_client_method 1" >>confdefs.h
  7324. ac_cv_have_tls_client_method=yes
  7325. else
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS_client_method in -lcrypt" >&5
  7327. $as_echo_n "checking for TLS_client_method in -lcrypt... " >&6; }
  7328. if ${ac_cv_lib_crypt_TLS_client_method+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. ac_check_lib_save_LIBS=$LIBS
  7332. LIBS="-lcrypt $LIBS"
  7333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7334. /* end confdefs.h. */
  7335. /* Override any GCC internal prototype to avoid an error.
  7336. Use char because int might match the return type of a GCC
  7337. builtin and then its argument prototype would still apply. */
  7338. #ifdef __cplusplus
  7339. extern "C"
  7340. #endif
  7341. char TLS_client_method ();
  7342. int
  7343. main ()
  7344. {
  7345. return TLS_client_method ();
  7346. ;
  7347. return 0;
  7348. }
  7349. _ACEOF
  7350. if ac_fn_c_try_link "$LINENO"; then :
  7351. ac_cv_lib_crypt_TLS_client_method=yes
  7352. else
  7353. ac_cv_lib_crypt_TLS_client_method=no
  7354. fi
  7355. rm -f core conftest.err conftest.$ac_objext \
  7356. conftest$ac_exeext conftest.$ac_ext
  7357. LIBS=$ac_check_lib_save_LIBS
  7358. fi
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLS_client_method" >&5
  7360. $as_echo "$ac_cv_lib_crypt_TLS_client_method" >&6; }
  7361. if test "x$ac_cv_lib_crypt_TLS_client_method" = xyes; then :
  7362. LIBS=-lcrypt $LIBS
  7363. fi
  7364. fi
  7365. ac_fn_c_check_func "$LINENO" "TLS_server_method" "ac_cv_func_TLS_server_method"
  7366. if test "x$ac_cv_func_TLS_server_method" = xyes; then :
  7367. $as_echo "#define HAVE_TLS_server_method 1" >>confdefs.h
  7368. ac_cv_have_tls_server_method=yes
  7369. else
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS_server_method in -lcrypt" >&5
  7371. $as_echo_n "checking for TLS_server_method in -lcrypt... " >&6; }
  7372. if ${ac_cv_lib_crypt_TLS_server_method+:} false; then :
  7373. $as_echo_n "(cached) " >&6
  7374. else
  7375. ac_check_lib_save_LIBS=$LIBS
  7376. LIBS="-lcrypt $LIBS"
  7377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7378. /* end confdefs.h. */
  7379. /* Override any GCC internal prototype to avoid an error.
  7380. Use char because int might match the return type of a GCC
  7381. builtin and then its argument prototype would still apply. */
  7382. #ifdef __cplusplus
  7383. extern "C"
  7384. #endif
  7385. char TLS_server_method ();
  7386. int
  7387. main ()
  7388. {
  7389. return TLS_server_method ();
  7390. ;
  7391. return 0;
  7392. }
  7393. _ACEOF
  7394. if ac_fn_c_try_link "$LINENO"; then :
  7395. ac_cv_lib_crypt_TLS_server_method=yes
  7396. else
  7397. ac_cv_lib_crypt_TLS_server_method=no
  7398. fi
  7399. rm -f core conftest.err conftest.$ac_objext \
  7400. conftest$ac_exeext conftest.$ac_ext
  7401. LIBS=$ac_check_lib_save_LIBS
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLS_server_method" >&5
  7404. $as_echo "$ac_cv_lib_crypt_TLS_server_method" >&6; }
  7405. if test "x$ac_cv_lib_crypt_TLS_server_method" = xyes; then :
  7406. LIBS=-lcrypt $LIBS
  7407. fi
  7408. fi
  7409. if test -n "$WITH_OPENSSL_METHOD" -o -z "$ac_cv_have_tls_client_method" -o -z "$ac_cv_have_tls_server_method" ; then
  7410. ac_fn_c_check_func "$LINENO" "SSLv2_client_method" "ac_cv_func_SSLv2_client_method"
  7411. if test "x$ac_cv_func_SSLv2_client_method" = xyes; then :
  7412. $as_echo "#define HAVE_SSLv2_client_method 1" >>confdefs.h
  7413. else
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv2_client_method in -lcrypt" >&5
  7415. $as_echo_n "checking for SSLv2_client_method in -lcrypt... " >&6; }
  7416. if ${ac_cv_lib_crypt_SSLv2_client_method+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. ac_check_lib_save_LIBS=$LIBS
  7420. LIBS="-lcrypt $LIBS"
  7421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7422. /* end confdefs.h. */
  7423. /* Override any GCC internal prototype to avoid an error.
  7424. Use char because int might match the return type of a GCC
  7425. builtin and then its argument prototype would still apply. */
  7426. #ifdef __cplusplus
  7427. extern "C"
  7428. #endif
  7429. char SSLv2_client_method ();
  7430. int
  7431. main ()
  7432. {
  7433. return SSLv2_client_method ();
  7434. ;
  7435. return 0;
  7436. }
  7437. _ACEOF
  7438. if ac_fn_c_try_link "$LINENO"; then :
  7439. ac_cv_lib_crypt_SSLv2_client_method=yes
  7440. else
  7441. ac_cv_lib_crypt_SSLv2_client_method=no
  7442. fi
  7443. rm -f core conftest.err conftest.$ac_objext \
  7444. conftest$ac_exeext conftest.$ac_ext
  7445. LIBS=$ac_check_lib_save_LIBS
  7446. fi
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_SSLv2_client_method" >&5
  7448. $as_echo "$ac_cv_lib_crypt_SSLv2_client_method" >&6; }
  7449. if test "x$ac_cv_lib_crypt_SSLv2_client_method" = xyes; then :
  7450. LIBS=-lcrypt $LIBS
  7451. fi
  7452. fi
  7453. ac_fn_c_check_func "$LINENO" "SSLv2_server_method" "ac_cv_func_SSLv2_server_method"
  7454. if test "x$ac_cv_func_SSLv2_server_method" = xyes; then :
  7455. $as_echo "#define HAVE_SSLv2_server_method 1" >>confdefs.h
  7456. else
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv2_server_method in -lcrypt" >&5
  7458. $as_echo_n "checking for SSLv2_server_method in -lcrypt... " >&6; }
  7459. if ${ac_cv_lib_crypt_SSLv2_server_method+:} false; then :
  7460. $as_echo_n "(cached) " >&6
  7461. else
  7462. ac_check_lib_save_LIBS=$LIBS
  7463. LIBS="-lcrypt $LIBS"
  7464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7465. /* end confdefs.h. */
  7466. /* Override any GCC internal prototype to avoid an error.
  7467. Use char because int might match the return type of a GCC
  7468. builtin and then its argument prototype would still apply. */
  7469. #ifdef __cplusplus
  7470. extern "C"
  7471. #endif
  7472. char SSLv2_server_method ();
  7473. int
  7474. main ()
  7475. {
  7476. return SSLv2_server_method ();
  7477. ;
  7478. return 0;
  7479. }
  7480. _ACEOF
  7481. if ac_fn_c_try_link "$LINENO"; then :
  7482. ac_cv_lib_crypt_SSLv2_server_method=yes
  7483. else
  7484. ac_cv_lib_crypt_SSLv2_server_method=no
  7485. fi
  7486. rm -f core conftest.err conftest.$ac_objext \
  7487. conftest$ac_exeext conftest.$ac_ext
  7488. LIBS=$ac_check_lib_save_LIBS
  7489. fi
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_SSLv2_server_method" >&5
  7491. $as_echo "$ac_cv_lib_crypt_SSLv2_server_method" >&6; }
  7492. if test "x$ac_cv_lib_crypt_SSLv2_server_method" = xyes; then :
  7493. LIBS=-lcrypt $LIBS
  7494. fi
  7495. fi
  7496. ac_fn_c_check_func "$LINENO" "SSLv3_client_method" "ac_cv_func_SSLv3_client_method"
  7497. if test "x$ac_cv_func_SSLv3_client_method" = xyes; then :
  7498. $as_echo "#define HAVE_SSLv3_client_method 1" >>confdefs.h
  7499. else
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv3_client_method in -lcrypt" >&5
  7501. $as_echo_n "checking for SSLv3_client_method in -lcrypt... " >&6; }
  7502. if ${ac_cv_lib_crypt_SSLv3_client_method+:} false; then :
  7503. $as_echo_n "(cached) " >&6
  7504. else
  7505. ac_check_lib_save_LIBS=$LIBS
  7506. LIBS="-lcrypt $LIBS"
  7507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7508. /* end confdefs.h. */
  7509. /* Override any GCC internal prototype to avoid an error.
  7510. Use char because int might match the return type of a GCC
  7511. builtin and then its argument prototype would still apply. */
  7512. #ifdef __cplusplus
  7513. extern "C"
  7514. #endif
  7515. char SSLv3_client_method ();
  7516. int
  7517. main ()
  7518. {
  7519. return SSLv3_client_method ();
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. if ac_fn_c_try_link "$LINENO"; then :
  7525. ac_cv_lib_crypt_SSLv3_client_method=yes
  7526. else
  7527. ac_cv_lib_crypt_SSLv3_client_method=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext \
  7530. conftest$ac_exeext conftest.$ac_ext
  7531. LIBS=$ac_check_lib_save_LIBS
  7532. fi
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_SSLv3_client_method" >&5
  7534. $as_echo "$ac_cv_lib_crypt_SSLv3_client_method" >&6; }
  7535. if test "x$ac_cv_lib_crypt_SSLv3_client_method" = xyes; then :
  7536. LIBS=-lcrypt $LIBS
  7537. fi
  7538. fi
  7539. ac_fn_c_check_func "$LINENO" "SSLv3_server_method" "ac_cv_func_SSLv3_server_method"
  7540. if test "x$ac_cv_func_SSLv3_server_method" = xyes; then :
  7541. $as_echo "#define HAVE_SSLv3_server_method 1" >>confdefs.h
  7542. else
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv3_server_method in -lcrypt" >&5
  7544. $as_echo_n "checking for SSLv3_server_method in -lcrypt... " >&6; }
  7545. if ${ac_cv_lib_crypt_SSLv3_server_method+:} false; then :
  7546. $as_echo_n "(cached) " >&6
  7547. else
  7548. ac_check_lib_save_LIBS=$LIBS
  7549. LIBS="-lcrypt $LIBS"
  7550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7551. /* end confdefs.h. */
  7552. /* Override any GCC internal prototype to avoid an error.
  7553. Use char because int might match the return type of a GCC
  7554. builtin and then its argument prototype would still apply. */
  7555. #ifdef __cplusplus
  7556. extern "C"
  7557. #endif
  7558. char SSLv3_server_method ();
  7559. int
  7560. main ()
  7561. {
  7562. return SSLv3_server_method ();
  7563. ;
  7564. return 0;
  7565. }
  7566. _ACEOF
  7567. if ac_fn_c_try_link "$LINENO"; then :
  7568. ac_cv_lib_crypt_SSLv3_server_method=yes
  7569. else
  7570. ac_cv_lib_crypt_SSLv3_server_method=no
  7571. fi
  7572. rm -f core conftest.err conftest.$ac_objext \
  7573. conftest$ac_exeext conftest.$ac_ext
  7574. LIBS=$ac_check_lib_save_LIBS
  7575. fi
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_SSLv3_server_method" >&5
  7577. $as_echo "$ac_cv_lib_crypt_SSLv3_server_method" >&6; }
  7578. if test "x$ac_cv_lib_crypt_SSLv3_server_method" = xyes; then :
  7579. LIBS=-lcrypt $LIBS
  7580. fi
  7581. fi
  7582. ac_fn_c_check_func "$LINENO" "SSLv23_client_method" "ac_cv_func_SSLv23_client_method"
  7583. if test "x$ac_cv_func_SSLv23_client_method" = xyes; then :
  7584. $as_echo "#define HAVE_SSLv23_client_method 1" >>confdefs.h
  7585. else
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv23_client_method in -lcrypt" >&5
  7587. $as_echo_n "checking for SSLv23_client_method in -lcrypt... " >&6; }
  7588. if ${ac_cv_lib_crypt_SSLv23_client_method+:} false; then :
  7589. $as_echo_n "(cached) " >&6
  7590. else
  7591. ac_check_lib_save_LIBS=$LIBS
  7592. LIBS="-lcrypt $LIBS"
  7593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7594. /* end confdefs.h. */
  7595. /* Override any GCC internal prototype to avoid an error.
  7596. Use char because int might match the return type of a GCC
  7597. builtin and then its argument prototype would still apply. */
  7598. #ifdef __cplusplus
  7599. extern "C"
  7600. #endif
  7601. char SSLv23_client_method ();
  7602. int
  7603. main ()
  7604. {
  7605. return SSLv23_client_method ();
  7606. ;
  7607. return 0;
  7608. }
  7609. _ACEOF
  7610. if ac_fn_c_try_link "$LINENO"; then :
  7611. ac_cv_lib_crypt_SSLv23_client_method=yes
  7612. else
  7613. ac_cv_lib_crypt_SSLv23_client_method=no
  7614. fi
  7615. rm -f core conftest.err conftest.$ac_objext \
  7616. conftest$ac_exeext conftest.$ac_ext
  7617. LIBS=$ac_check_lib_save_LIBS
  7618. fi
  7619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_SSLv23_client_method" >&5
  7620. $as_echo "$ac_cv_lib_crypt_SSLv23_client_method" >&6; }
  7621. if test "x$ac_cv_lib_crypt_SSLv23_client_method" = xyes; then :
  7622. LIBS=-lcrypt $LIBS
  7623. fi
  7624. fi
  7625. ac_fn_c_check_func "$LINENO" "SSLv23_server_method" "ac_cv_func_SSLv23_server_method"
  7626. if test "x$ac_cv_func_SSLv23_server_method" = xyes; then :
  7627. $as_echo "#define HAVE_SSLv23_server_method 1" >>confdefs.h
  7628. else
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLv23_server_method in -lcrypt" >&5
  7630. $as_echo_n "checking for SSLv23_server_method in -lcrypt... " >&6; }
  7631. if ${ac_cv_lib_crypt_SSLv23_server_method+:} false; then :
  7632. $as_echo_n "(cached) " >&6
  7633. else
  7634. ac_check_lib_save_LIBS=$LIBS
  7635. LIBS="-lcrypt $LIBS"
  7636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7637. /* end confdefs.h. */
  7638. /* Override any GCC internal prototype to avoid an error.
  7639. Use char because int might match the return type of a GCC
  7640. builtin and then its argument prototype would still apply. */
  7641. #ifdef __cplusplus
  7642. extern "C"
  7643. #endif
  7644. char SSLv23_server_method ();
  7645. int
  7646. main ()
  7647. {
  7648. return SSLv23_server_method ();
  7649. ;
  7650. return 0;
  7651. }
  7652. _ACEOF
  7653. if ac_fn_c_try_link "$LINENO"; then :
  7654. ac_cv_lib_crypt_SSLv23_server_method=yes
  7655. else
  7656. ac_cv_lib_crypt_SSLv23_server_method=no
  7657. fi
  7658. rm -f core conftest.err conftest.$ac_objext \
  7659. conftest$ac_exeext conftest.$ac_ext
  7660. LIBS=$ac_check_lib_save_LIBS
  7661. fi
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_SSLv23_server_method" >&5
  7663. $as_echo "$ac_cv_lib_crypt_SSLv23_server_method" >&6; }
  7664. if test "x$ac_cv_lib_crypt_SSLv23_server_method" = xyes; then :
  7665. LIBS=-lcrypt $LIBS
  7666. fi
  7667. fi
  7668. ac_fn_c_check_func "$LINENO" "TLSv1_client_method" "ac_cv_func_TLSv1_client_method"
  7669. if test "x$ac_cv_func_TLSv1_client_method" = xyes; then :
  7670. $as_echo "#define HAVE_TLSv1_client_method 1" >>confdefs.h
  7671. else
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_client_method in -lcrypt" >&5
  7673. $as_echo_n "checking for TLSv1_client_method in -lcrypt... " >&6; }
  7674. if ${ac_cv_lib_crypt_TLSv1_client_method+:} false; then :
  7675. $as_echo_n "(cached) " >&6
  7676. else
  7677. ac_check_lib_save_LIBS=$LIBS
  7678. LIBS="-lcrypt $LIBS"
  7679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7680. /* end confdefs.h. */
  7681. /* Override any GCC internal prototype to avoid an error.
  7682. Use char because int might match the return type of a GCC
  7683. builtin and then its argument prototype would still apply. */
  7684. #ifdef __cplusplus
  7685. extern "C"
  7686. #endif
  7687. char TLSv1_client_method ();
  7688. int
  7689. main ()
  7690. {
  7691. return TLSv1_client_method ();
  7692. ;
  7693. return 0;
  7694. }
  7695. _ACEOF
  7696. if ac_fn_c_try_link "$LINENO"; then :
  7697. ac_cv_lib_crypt_TLSv1_client_method=yes
  7698. else
  7699. ac_cv_lib_crypt_TLSv1_client_method=no
  7700. fi
  7701. rm -f core conftest.err conftest.$ac_objext \
  7702. conftest$ac_exeext conftest.$ac_ext
  7703. LIBS=$ac_check_lib_save_LIBS
  7704. fi
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLSv1_client_method" >&5
  7706. $as_echo "$ac_cv_lib_crypt_TLSv1_client_method" >&6; }
  7707. if test "x$ac_cv_lib_crypt_TLSv1_client_method" = xyes; then :
  7708. LIBS=-lcrypt $LIBS
  7709. fi
  7710. fi
  7711. ac_fn_c_check_func "$LINENO" "TLSv1_server_method" "ac_cv_func_TLSv1_server_method"
  7712. if test "x$ac_cv_func_TLSv1_server_method" = xyes; then :
  7713. $as_echo "#define HAVE_TLSv1_server_method 1" >>confdefs.h
  7714. else
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_server_method in -lcrypt" >&5
  7716. $as_echo_n "checking for TLSv1_server_method in -lcrypt... " >&6; }
  7717. if ${ac_cv_lib_crypt_TLSv1_server_method+:} false; then :
  7718. $as_echo_n "(cached) " >&6
  7719. else
  7720. ac_check_lib_save_LIBS=$LIBS
  7721. LIBS="-lcrypt $LIBS"
  7722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7723. /* end confdefs.h. */
  7724. /* Override any GCC internal prototype to avoid an error.
  7725. Use char because int might match the return type of a GCC
  7726. builtin and then its argument prototype would still apply. */
  7727. #ifdef __cplusplus
  7728. extern "C"
  7729. #endif
  7730. char TLSv1_server_method ();
  7731. int
  7732. main ()
  7733. {
  7734. return TLSv1_server_method ();
  7735. ;
  7736. return 0;
  7737. }
  7738. _ACEOF
  7739. if ac_fn_c_try_link "$LINENO"; then :
  7740. ac_cv_lib_crypt_TLSv1_server_method=yes
  7741. else
  7742. ac_cv_lib_crypt_TLSv1_server_method=no
  7743. fi
  7744. rm -f core conftest.err conftest.$ac_objext \
  7745. conftest$ac_exeext conftest.$ac_ext
  7746. LIBS=$ac_check_lib_save_LIBS
  7747. fi
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLSv1_server_method" >&5
  7749. $as_echo "$ac_cv_lib_crypt_TLSv1_server_method" >&6; }
  7750. if test "x$ac_cv_lib_crypt_TLSv1_server_method" = xyes; then :
  7751. LIBS=-lcrypt $LIBS
  7752. fi
  7753. fi
  7754. ac_fn_c_check_func "$LINENO" "TLSv1_1_client_method" "ac_cv_func_TLSv1_1_client_method"
  7755. if test "x$ac_cv_func_TLSv1_1_client_method" = xyes; then :
  7756. $as_echo "#define HAVE_TLSv1_1_client_method 1" >>confdefs.h
  7757. else
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_1_client_method in -lcrypt" >&5
  7759. $as_echo_n "checking for TLSv1_1_client_method in -lcrypt... " >&6; }
  7760. if ${ac_cv_lib_crypt_TLSv1_1_client_method+:} false; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. ac_check_lib_save_LIBS=$LIBS
  7764. LIBS="-lcrypt $LIBS"
  7765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7766. /* end confdefs.h. */
  7767. /* Override any GCC internal prototype to avoid an error.
  7768. Use char because int might match the return type of a GCC
  7769. builtin and then its argument prototype would still apply. */
  7770. #ifdef __cplusplus
  7771. extern "C"
  7772. #endif
  7773. char TLSv1_1_client_method ();
  7774. int
  7775. main ()
  7776. {
  7777. return TLSv1_1_client_method ();
  7778. ;
  7779. return 0;
  7780. }
  7781. _ACEOF
  7782. if ac_fn_c_try_link "$LINENO"; then :
  7783. ac_cv_lib_crypt_TLSv1_1_client_method=yes
  7784. else
  7785. ac_cv_lib_crypt_TLSv1_1_client_method=no
  7786. fi
  7787. rm -f core conftest.err conftest.$ac_objext \
  7788. conftest$ac_exeext conftest.$ac_ext
  7789. LIBS=$ac_check_lib_save_LIBS
  7790. fi
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLSv1_1_client_method" >&5
  7792. $as_echo "$ac_cv_lib_crypt_TLSv1_1_client_method" >&6; }
  7793. if test "x$ac_cv_lib_crypt_TLSv1_1_client_method" = xyes; then :
  7794. LIBS=-lcrypt $LIBS
  7795. fi
  7796. fi
  7797. ac_fn_c_check_func "$LINENO" "TLSv1_1_server_method" "ac_cv_func_TLSv1_1_server_method"
  7798. if test "x$ac_cv_func_TLSv1_1_server_method" = xyes; then :
  7799. $as_echo "#define HAVE_TLSv1_1_server_method 1" >>confdefs.h
  7800. else
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_1_server_method in -lcrypt" >&5
  7802. $as_echo_n "checking for TLSv1_1_server_method in -lcrypt... " >&6; }
  7803. if ${ac_cv_lib_crypt_TLSv1_1_server_method+:} false; then :
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. ac_check_lib_save_LIBS=$LIBS
  7807. LIBS="-lcrypt $LIBS"
  7808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7809. /* end confdefs.h. */
  7810. /* Override any GCC internal prototype to avoid an error.
  7811. Use char because int might match the return type of a GCC
  7812. builtin and then its argument prototype would still apply. */
  7813. #ifdef __cplusplus
  7814. extern "C"
  7815. #endif
  7816. char TLSv1_1_server_method ();
  7817. int
  7818. main ()
  7819. {
  7820. return TLSv1_1_server_method ();
  7821. ;
  7822. return 0;
  7823. }
  7824. _ACEOF
  7825. if ac_fn_c_try_link "$LINENO"; then :
  7826. ac_cv_lib_crypt_TLSv1_1_server_method=yes
  7827. else
  7828. ac_cv_lib_crypt_TLSv1_1_server_method=no
  7829. fi
  7830. rm -f core conftest.err conftest.$ac_objext \
  7831. conftest$ac_exeext conftest.$ac_ext
  7832. LIBS=$ac_check_lib_save_LIBS
  7833. fi
  7834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLSv1_1_server_method" >&5
  7835. $as_echo "$ac_cv_lib_crypt_TLSv1_1_server_method" >&6; }
  7836. if test "x$ac_cv_lib_crypt_TLSv1_1_server_method" = xyes; then :
  7837. LIBS=-lcrypt $LIBS
  7838. fi
  7839. fi
  7840. ac_fn_c_check_func "$LINENO" "TLSv1_2_client_method" "ac_cv_func_TLSv1_2_client_method"
  7841. if test "x$ac_cv_func_TLSv1_2_client_method" = xyes; then :
  7842. $as_echo "#define HAVE_TLSv1_2_client_method 1" >>confdefs.h
  7843. else
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_2_client_method in -lcrypt" >&5
  7845. $as_echo_n "checking for TLSv1_2_client_method in -lcrypt... " >&6; }
  7846. if ${ac_cv_lib_crypt_TLSv1_2_client_method+:} false; then :
  7847. $as_echo_n "(cached) " >&6
  7848. else
  7849. ac_check_lib_save_LIBS=$LIBS
  7850. LIBS="-lcrypt $LIBS"
  7851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7852. /* end confdefs.h. */
  7853. /* Override any GCC internal prototype to avoid an error.
  7854. Use char because int might match the return type of a GCC
  7855. builtin and then its argument prototype would still apply. */
  7856. #ifdef __cplusplus
  7857. extern "C"
  7858. #endif
  7859. char TLSv1_2_client_method ();
  7860. int
  7861. main ()
  7862. {
  7863. return TLSv1_2_client_method ();
  7864. ;
  7865. return 0;
  7866. }
  7867. _ACEOF
  7868. if ac_fn_c_try_link "$LINENO"; then :
  7869. ac_cv_lib_crypt_TLSv1_2_client_method=yes
  7870. else
  7871. ac_cv_lib_crypt_TLSv1_2_client_method=no
  7872. fi
  7873. rm -f core conftest.err conftest.$ac_objext \
  7874. conftest$ac_exeext conftest.$ac_ext
  7875. LIBS=$ac_check_lib_save_LIBS
  7876. fi
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLSv1_2_client_method" >&5
  7878. $as_echo "$ac_cv_lib_crypt_TLSv1_2_client_method" >&6; }
  7879. if test "x$ac_cv_lib_crypt_TLSv1_2_client_method" = xyes; then :
  7880. LIBS=-lcrypt $LIBS
  7881. fi
  7882. fi
  7883. ac_fn_c_check_func "$LINENO" "TLSv1_2_server_method" "ac_cv_func_TLSv1_2_server_method"
  7884. if test "x$ac_cv_func_TLSv1_2_server_method" = xyes; then :
  7885. $as_echo "#define HAVE_TLSv1_2_server_method 1" >>confdefs.h
  7886. else
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_2_server_method in -lcrypt" >&5
  7888. $as_echo_n "checking for TLSv1_2_server_method in -lcrypt... " >&6; }
  7889. if ${ac_cv_lib_crypt_TLSv1_2_server_method+:} false; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. ac_check_lib_save_LIBS=$LIBS
  7893. LIBS="-lcrypt $LIBS"
  7894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7895. /* end confdefs.h. */
  7896. /* Override any GCC internal prototype to avoid an error.
  7897. Use char because int might match the return type of a GCC
  7898. builtin and then its argument prototype would still apply. */
  7899. #ifdef __cplusplus
  7900. extern "C"
  7901. #endif
  7902. char TLSv1_2_server_method ();
  7903. int
  7904. main ()
  7905. {
  7906. return TLSv1_2_server_method ();
  7907. ;
  7908. return 0;
  7909. }
  7910. _ACEOF
  7911. if ac_fn_c_try_link "$LINENO"; then :
  7912. ac_cv_lib_crypt_TLSv1_2_server_method=yes
  7913. else
  7914. ac_cv_lib_crypt_TLSv1_2_server_method=no
  7915. fi
  7916. rm -f core conftest.err conftest.$ac_objext \
  7917. conftest$ac_exeext conftest.$ac_ext
  7918. LIBS=$ac_check_lib_save_LIBS
  7919. fi
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_TLSv1_2_server_method" >&5
  7921. $as_echo "$ac_cv_lib_crypt_TLSv1_2_server_method" >&6; }
  7922. if test "x$ac_cv_lib_crypt_TLSv1_2_server_method" = xyes; then :
  7923. LIBS=-lcrypt $LIBS
  7924. fi
  7925. fi
  7926. ac_fn_c_check_func "$LINENO" "DTLSv1_client_method" "ac_cv_func_DTLSv1_client_method"
  7927. if test "x$ac_cv_func_DTLSv1_client_method" = xyes; then :
  7928. $as_echo "#define HAVE_DTLSv1_client_method 1" >>confdefs.h
  7929. else
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTLSv1_client_method in -lcrypt" >&5
  7931. $as_echo_n "checking for DTLSv1_client_method in -lcrypt... " >&6; }
  7932. if ${ac_cv_lib_crypt_DTLSv1_client_method+:} false; then :
  7933. $as_echo_n "(cached) " >&6
  7934. else
  7935. ac_check_lib_save_LIBS=$LIBS
  7936. LIBS="-lcrypt $LIBS"
  7937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7938. /* end confdefs.h. */
  7939. /* Override any GCC internal prototype to avoid an error.
  7940. Use char because int might match the return type of a GCC
  7941. builtin and then its argument prototype would still apply. */
  7942. #ifdef __cplusplus
  7943. extern "C"
  7944. #endif
  7945. char DTLSv1_client_method ();
  7946. int
  7947. main ()
  7948. {
  7949. return DTLSv1_client_method ();
  7950. ;
  7951. return 0;
  7952. }
  7953. _ACEOF
  7954. if ac_fn_c_try_link "$LINENO"; then :
  7955. ac_cv_lib_crypt_DTLSv1_client_method=yes
  7956. else
  7957. ac_cv_lib_crypt_DTLSv1_client_method=no
  7958. fi
  7959. rm -f core conftest.err conftest.$ac_objext \
  7960. conftest$ac_exeext conftest.$ac_ext
  7961. LIBS=$ac_check_lib_save_LIBS
  7962. fi
  7963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_DTLSv1_client_method" >&5
  7964. $as_echo "$ac_cv_lib_crypt_DTLSv1_client_method" >&6; }
  7965. if test "x$ac_cv_lib_crypt_DTLSv1_client_method" = xyes; then :
  7966. LIBS=-lcrypt $LIBS
  7967. fi
  7968. fi
  7969. ac_fn_c_check_func "$LINENO" "DTLSv1_server_method" "ac_cv_func_DTLSv1_server_method"
  7970. if test "x$ac_cv_func_DTLSv1_server_method" = xyes; then :
  7971. $as_echo "#define HAVE_DTLSv1_server_method 1" >>confdefs.h
  7972. else
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTLSv1_server_method in -lcrypt" >&5
  7974. $as_echo_n "checking for DTLSv1_server_method in -lcrypt... " >&6; }
  7975. if ${ac_cv_lib_crypt_DTLSv1_server_method+:} false; then :
  7976. $as_echo_n "(cached) " >&6
  7977. else
  7978. ac_check_lib_save_LIBS=$LIBS
  7979. LIBS="-lcrypt $LIBS"
  7980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7981. /* end confdefs.h. */
  7982. /* Override any GCC internal prototype to avoid an error.
  7983. Use char because int might match the return type of a GCC
  7984. builtin and then its argument prototype would still apply. */
  7985. #ifdef __cplusplus
  7986. extern "C"
  7987. #endif
  7988. char DTLSv1_server_method ();
  7989. int
  7990. main ()
  7991. {
  7992. return DTLSv1_server_method ();
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. if ac_fn_c_try_link "$LINENO"; then :
  7998. ac_cv_lib_crypt_DTLSv1_server_method=yes
  7999. else
  8000. ac_cv_lib_crypt_DTLSv1_server_method=no
  8001. fi
  8002. rm -f core conftest.err conftest.$ac_objext \
  8003. conftest$ac_exeext conftest.$ac_ext
  8004. LIBS=$ac_check_lib_save_LIBS
  8005. fi
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_DTLSv1_server_method" >&5
  8007. $as_echo "$ac_cv_lib_crypt_DTLSv1_server_method" >&6; }
  8008. if test "x$ac_cv_lib_crypt_DTLSv1_server_method" = xyes; then :
  8009. LIBS=-lcrypt $LIBS
  8010. fi
  8011. fi
  8012. fi # $WITH_OPENSSL_METHOD
  8013. ac_fn_c_check_func "$LINENO" "SSL_CTX_set_default_verify_paths" "ac_cv_func_SSL_CTX_set_default_verify_paths"
  8014. if test "x$ac_cv_func_SSL_CTX_set_default_verify_paths" = xyes; then :
  8015. $as_echo "#define HAVE_SSL_CTX_set_default_verify_paths 1" >>confdefs.h
  8016. fi
  8017. ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
  8018. if test "x$ac_cv_func_RAND_egd" = xyes; then :
  8019. $as_echo "#define HAVE_RAND_egd 1" >>confdefs.h
  8020. else
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypt" >&5
  8022. $as_echo_n "checking for RAND_egd in -lcrypt... " >&6; }
  8023. if ${ac_cv_lib_crypt_RAND_egd+:} false; then :
  8024. $as_echo_n "(cached) " >&6
  8025. else
  8026. ac_check_lib_save_LIBS=$LIBS
  8027. LIBS="-lcrypt $LIBS"
  8028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8029. /* end confdefs.h. */
  8030. /* Override any GCC internal prototype to avoid an error.
  8031. Use char because int might match the return type of a GCC
  8032. builtin and then its argument prototype would still apply. */
  8033. #ifdef __cplusplus
  8034. extern "C"
  8035. #endif
  8036. char RAND_egd ();
  8037. int
  8038. main ()
  8039. {
  8040. return RAND_egd ();
  8041. ;
  8042. return 0;
  8043. }
  8044. _ACEOF
  8045. if ac_fn_c_try_link "$LINENO"; then :
  8046. ac_cv_lib_crypt_RAND_egd=yes
  8047. else
  8048. ac_cv_lib_crypt_RAND_egd=no
  8049. fi
  8050. rm -f core conftest.err conftest.$ac_objext \
  8051. conftest$ac_exeext conftest.$ac_ext
  8052. LIBS=$ac_check_lib_save_LIBS
  8053. fi
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_RAND_egd" >&5
  8055. $as_echo "$ac_cv_lib_crypt_RAND_egd" >&6; }
  8056. if test "x$ac_cv_lib_crypt_RAND_egd" = xyes; then :
  8057. LIBS=-lcrypt $LIBS
  8058. fi
  8059. fi
  8060. ac_fn_c_check_func "$LINENO" "DH_set0_pqg" "ac_cv_func_DH_set0_pqg"
  8061. if test "x$ac_cv_func_DH_set0_pqg" = xyes; then :
  8062. $as_echo "#define HAVE_DH_set0_pqg 1" >>confdefs.h
  8063. else
  8064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_set0_pqg in -lcrypt" >&5
  8065. $as_echo_n "checking for DH_set0_pqg in -lcrypt... " >&6; }
  8066. if ${ac_cv_lib_crypt_DH_set0_pqg+:} false; then :
  8067. $as_echo_n "(cached) " >&6
  8068. else
  8069. ac_check_lib_save_LIBS=$LIBS
  8070. LIBS="-lcrypt $LIBS"
  8071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8072. /* end confdefs.h. */
  8073. /* Override any GCC internal prototype to avoid an error.
  8074. Use char because int might match the return type of a GCC
  8075. builtin and then its argument prototype would still apply. */
  8076. #ifdef __cplusplus
  8077. extern "C"
  8078. #endif
  8079. char DH_set0_pqg ();
  8080. int
  8081. main ()
  8082. {
  8083. return DH_set0_pqg ();
  8084. ;
  8085. return 0;
  8086. }
  8087. _ACEOF
  8088. if ac_fn_c_try_link "$LINENO"; then :
  8089. ac_cv_lib_crypt_DH_set0_pqg=yes
  8090. else
  8091. ac_cv_lib_crypt_DH_set0_pqg=no
  8092. fi
  8093. rm -f core conftest.err conftest.$ac_objext \
  8094. conftest$ac_exeext conftest.$ac_ext
  8095. LIBS=$ac_check_lib_save_LIBS
  8096. fi
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_DH_set0_pqg" >&5
  8098. $as_echo "$ac_cv_lib_crypt_DH_set0_pqg" >&6; }
  8099. if test "x$ac_cv_lib_crypt_DH_set0_pqg" = xyes; then :
  8100. LIBS=-lcrypt $LIBS
  8101. fi
  8102. fi
  8103. ac_fn_c_check_func "$LINENO" "ASN1_STRING_get0_data" "ac_cv_func_ASN1_STRING_get0_data"
  8104. if test "x$ac_cv_func_ASN1_STRING_get0_data" = xyes; then :
  8105. $as_echo "#define HAVE_ASN1_STRING_get0_data 1" >>confdefs.h
  8106. else
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ASN1_STRING_get0_data in -lcrypt" >&5
  8108. $as_echo_n "checking for ASN1_STRING_get0_data in -lcrypt... " >&6; }
  8109. if ${ac_cv_lib_crypt_ASN1_STRING_get0_data+:} false; then :
  8110. $as_echo_n "(cached) " >&6
  8111. else
  8112. ac_check_lib_save_LIBS=$LIBS
  8113. LIBS="-lcrypt $LIBS"
  8114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8115. /* end confdefs.h. */
  8116. /* Override any GCC internal prototype to avoid an error.
  8117. Use char because int might match the return type of a GCC
  8118. builtin and then its argument prototype would still apply. */
  8119. #ifdef __cplusplus
  8120. extern "C"
  8121. #endif
  8122. char ASN1_STRING_get0_data ();
  8123. int
  8124. main ()
  8125. {
  8126. return ASN1_STRING_get0_data ();
  8127. ;
  8128. return 0;
  8129. }
  8130. _ACEOF
  8131. if ac_fn_c_try_link "$LINENO"; then :
  8132. ac_cv_lib_crypt_ASN1_STRING_get0_data=yes
  8133. else
  8134. ac_cv_lib_crypt_ASN1_STRING_get0_data=no
  8135. fi
  8136. rm -f core conftest.err conftest.$ac_objext \
  8137. conftest$ac_exeext conftest.$ac_ext
  8138. LIBS=$ac_check_lib_save_LIBS
  8139. fi
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_ASN1_STRING_get0_data" >&5
  8141. $as_echo "$ac_cv_lib_crypt_ASN1_STRING_get0_data" >&6; }
  8142. if test "x$ac_cv_lib_crypt_ASN1_STRING_get0_data" = xyes; then :
  8143. LIBS=-lcrypt $LIBS
  8144. fi
  8145. fi
  8146. ac_fn_c_check_func "$LINENO" "RAND_status" "ac_cv_func_RAND_status"
  8147. if test "x$ac_cv_func_RAND_status" = xyes; then :
  8148. $as_echo "#define HAVE_RAND_status 1" >>confdefs.h
  8149. fi
  8150. ac_fn_c_check_func "$LINENO" "SSL_CTX_clear_mode" "ac_cv_func_SSL_CTX_clear_mode"
  8151. if test "x$ac_cv_func_SSL_CTX_clear_mode" = xyes; then :
  8152. $as_echo "#define HAVE_SSL_CTX_clear_mode 1" >>confdefs.h
  8153. fi
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type EC_KEY" >&5
  8155. $as_echo_n "checking for type EC_KEY... " >&6; }
  8156. if ${sc_cv_type_EC_TYPE+:} false; then :
  8157. $as_echo_n "(cached) " >&6
  8158. else
  8159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8160. /* end confdefs.h. */
  8161. #include <openssl/ec.h>
  8162. int
  8163. main ()
  8164. {
  8165. EC_KEY *s;
  8166. ;
  8167. return 0;
  8168. }
  8169. _ACEOF
  8170. if ac_fn_c_try_compile "$LINENO"; then :
  8171. sc_cv_type_EC_KEY=yes
  8172. else
  8173. sc_cv_type_EC_KEY=no
  8174. fi
  8175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8176. fi
  8177. if test $sc_cv_type_EC_KEY = yes; then
  8178. $as_echo "#define HAVE_TYPE_EC_KEY 1" >>confdefs.h
  8179. fi
  8180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_EC_KEY" >&5
  8181. $as_echo "$sc_cv_type_EC_KEY" >&6; }
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf conforms to C99" >&5
  8183. $as_echo_n "checking if snprintf conforms to C99... " >&6; }
  8184. if ${ac_cv_have_c99_snprintf+:} false; then :
  8185. $as_echo_n "(cached) " >&6
  8186. else
  8187. if test "$cross_compiling" = yes; then :
  8188. ac_cv_have_c99_snprintf=no
  8189. else
  8190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8191. /* end confdefs.h. */
  8192. #include <stdio.h>
  8193. #include <stdlib.h>
  8194. int main(void){
  8195. char s[2];
  8196. exit(snprintf(s,2,"ab")!=2);
  8197. }
  8198. _ACEOF
  8199. if ac_fn_c_try_run "$LINENO"; then :
  8200. ac_cv_have_c99_snprintf=yes
  8201. else
  8202. ac_cv_have_c99_snprintf=no
  8203. fi
  8204. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8205. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8206. fi
  8207. fi
  8208. if test $ac_cv_have_c99_snprintf = yes; then
  8209. $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
  8210. fi
  8211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_c99_snprintf" >&5
  8212. $as_echo "$ac_cv_have_c99_snprintf" >&6; }
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has Z modifier" >&5
  8214. $as_echo_n "checking if printf has Z modifier... " >&6; }
  8215. if ${ac_cv_have_z_modifier+:} false; then :
  8216. $as_echo_n "(cached) " >&6
  8217. else
  8218. if test "$cc" = gcc; then
  8219. if test "$cross_compiling" = yes; then :
  8220. ac_cv_have_z_modifier=no
  8221. else
  8222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8223. /* end confdefs.h. */
  8224. #include <stdlib.h>
  8225. #include <stdio.h>
  8226. int main(void){
  8227. char s[16];
  8228. sprintf(s,"%Zu",1);
  8229. exit(strcmp(s,"1"));
  8230. }
  8231. _ACEOF
  8232. if ac_fn_c_try_run "$LINENO"; then :
  8233. ac_cv_have_z_modifier=yes
  8234. else
  8235. ac_cv_have_z_modifier=no
  8236. fi
  8237. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8238. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8239. fi
  8240. else ac_cv_have_z_modifier=no
  8241. fi
  8242. fi
  8243. if test $ac_cv_have_z_modifier = yes; then
  8244. $as_echo "#define HAVE_FORMAT_Z 1" >>confdefs.h
  8245. fi
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_z_modifier" >&5
  8247. $as_echo "$ac_cv_have_z_modifier" >&6; }
  8248. ## NOTE: some platforms only need one '\' to escape '"' in string constant
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking shift offset of CRDLY" >&5
  8250. $as_echo_n "checking shift offset of CRDLY... " >&6; }
  8251. if ${sc_cv_sys_crdly_shift+:} false; then :
  8252. $as_echo_n "(cached) " >&6
  8253. else
  8254. LIBS1="$LIBS"; LIBS="" # avoid libwrap allow_severity undefined
  8255. conftestoffset="conftestoffset.out"
  8256. if test "$cross_compiling" = yes; then :
  8257. sc_cv_sys_crdly_shift=-1
  8258. else
  8259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8260. /* end confdefs.h. */
  8261. #include <errno.h>
  8262. #include <stdlib.h>
  8263. #include <stdio.h>
  8264. #include <termios.h>
  8265. #include <string.h>
  8266. int main(){
  8267. unsigned int i,n=CRDLY;
  8268. FILE *f;
  8269. if ((f=fopen("$conftestoffset","w"))==NULL){
  8270. fprintf(stderr,"\\"$conftestoffset\\": %s\n",strerror(errno)); exit(-1);
  8271. }
  8272. if (n==0) {fprintf(stderr,"CRDLY is 0 (impossible!)\n"); exit(1);}
  8273. i=0; while (!(n&1)) {
  8274. n>>=1; ++i; }
  8275. if (3<<i == CRDLY) {
  8276. fprintf(f, "%u", i);
  8277. } else {
  8278. fprintf(f, "-1"); /* anticipate result of xioinitialize assert */
  8279. }
  8280. exit(0);
  8281. }
  8282. _ACEOF
  8283. if ac_fn_c_try_run "$LINENO"; then :
  8284. sc_cv_sys_crdly_shift=`cat $conftestoffset`
  8285. else
  8286. sc_cv_sys_crdly_shift=-1
  8287. fi
  8288. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8289. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8290. fi
  8291. LIBS="$LIBS1"
  8292. fi
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_sys_crdly_shift" >&5
  8294. $as_echo "$sc_cv_sys_crdly_shift" >&6; }
  8295. cat >>confdefs.h <<_ACEOF
  8296. #define CRDLY_SHIFT ${sc_cv_sys_crdly_shift}
  8297. _ACEOF
  8298. if test "sc_cv_sys_crdly_shift" = -1; then
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please determine CRDLY_SHIFT manually" >&5
  8300. $as_echo "$as_me: WARNING: please determine CRDLY_SHIFT manually" >&2;}
  8301. fi
  8302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking shift offset of TABDLY" >&5
  8303. $as_echo_n "checking shift offset of TABDLY... " >&6; }
  8304. if ${sc_cv_sys_tabdly_shift+:} false; then :
  8305. $as_echo_n "(cached) " >&6
  8306. else
  8307. LIBS1="$LIBS"; LIBS="" # avoid libwrap allow_severity undefined
  8308. conftestoffset="conftestoffset.out"
  8309. if test "$cross_compiling" = yes; then :
  8310. sc_cv_sys_tabdly_shift=-1
  8311. else
  8312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8313. /* end confdefs.h. */
  8314. #include <errno.h>
  8315. #include <stdlib.h>
  8316. #include <stdio.h>
  8317. #include <termios.h>
  8318. #include <string.h>
  8319. int main(){
  8320. unsigned int i,n=TABDLY;
  8321. FILE *f;
  8322. if ((f=fopen("$conftestoffset","w"))==NULL){
  8323. fprintf(stderr,"\\"$conftestoffset\\": %s\n",strerror(errno)); exit(-1);
  8324. }
  8325. if (n==0) {fprintf(stderr,"TABDLY is 0 (impossible!)\n"); exit(1);}
  8326. i=0; while (!(n&1)) {
  8327. n>>=1; ++i; }
  8328. if (3<<i == TABDLY) {
  8329. fprintf(f, "%u", i);
  8330. } else {
  8331. fprintf(f, "-1"); /* anticipate result of xioinitialize assert */
  8332. }
  8333. exit(0);
  8334. }
  8335. _ACEOF
  8336. if ac_fn_c_try_run "$LINENO"; then :
  8337. sc_cv_sys_tabdly_shift=`cat $conftestoffset`
  8338. else
  8339. sc_cv_sys_tabdly_shift=-1
  8340. fi
  8341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8342. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8343. fi
  8344. LIBS="$LIBS1"
  8345. fi
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_sys_tabdly_shift" >&5
  8347. $as_echo "$sc_cv_sys_tabdly_shift" >&6; }
  8348. cat >>confdefs.h <<_ACEOF
  8349. #define TABDLY_SHIFT ${sc_cv_sys_tabdly_shift}
  8350. _ACEOF
  8351. if test "sc_cv_sys_tabdly_shift" = -1; then
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please determine TABDLY_SHIFT manually" >&5
  8353. $as_echo "$as_me: WARNING: please determine TABDLY_SHIFT manually" >&2;}
  8354. fi
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking shift offset of CSIZE" >&5
  8356. $as_echo_n "checking shift offset of CSIZE... " >&6; }
  8357. if ${sc_cv_sys_csize_shift+:} false; then :
  8358. $as_echo_n "(cached) " >&6
  8359. else
  8360. LIBS1="$LIBS"; LIBS="" # avoid libwrap allow_severity undefined
  8361. conftestoffset="conftestoffset.out"
  8362. if test "$cross_compiling" = yes; then :
  8363. sc_cv_sys_csize_shift=-1
  8364. else
  8365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8366. /* end confdefs.h. */
  8367. #include <errno.h>
  8368. #include <stdlib.h>
  8369. #include <stdio.h>
  8370. #include <termios.h>
  8371. #include <string.h>
  8372. int main(){
  8373. unsigned int i,n=CSIZE;
  8374. FILE *f;
  8375. if ((f=fopen("$conftestoffset","w"))==NULL){
  8376. fprintf(stderr,"\\"$conftestoffset\\": %s\n",strerror(errno)); exit(-1);
  8377. }
  8378. if (n==0) {fprintf(stderr,"CSIZE is 0 (impossible!)\n"); exit(1);}
  8379. i=0; while (!(n&1)) {
  8380. n>>=1; ++i; }
  8381. if (3<<i == CSIZE) {
  8382. fprintf(f, "%u", i);
  8383. } else {
  8384. fprintf(f, "-1"); /* anticipate result of xioinitialize assert */
  8385. }
  8386. exit(0);
  8387. }
  8388. _ACEOF
  8389. if ac_fn_c_try_run "$LINENO"; then :
  8390. sc_cv_sys_csize_shift=`cat $conftestoffset`
  8391. else
  8392. sc_cv_sys_csize_shift=-1
  8393. fi
  8394. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8395. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8396. fi
  8397. LIBS="$LIBS1"
  8398. fi
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_sys_csize_shift" >&5
  8400. $as_echo "$sc_cv_sys_csize_shift" >&6; }
  8401. cat >>confdefs.h <<_ACEOF
  8402. #define CSIZE_SHIFT ${sc_cv_sys_csize_shift}
  8403. _ACEOF
  8404. if test "sc_cv_sys_csize_shift" = -1; then
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please determine CSIZE_SHIFT manually" >&5
  8406. $as_echo "$as_me: WARNING: please determine CSIZE_SHIFT manually" >&2;}
  8407. fi
  8408. CHANCE_TO_TYPECHECK=1
  8409. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  8410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8411. /* end confdefs.h. */
  8412. #include <stdlib.h>
  8413. int
  8414. main ()
  8415. {
  8416. int u; int v; exit(&u==&v);
  8417. ;
  8418. return 0;
  8419. }
  8420. _ACEOF
  8421. if ac_fn_c_try_compile "$LINENO"; then :
  8422. else
  8423. CHANCE_TO_TYPECHECK=0
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8426. CFLAGS="$CFLAGS1"
  8427. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  8428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8429. /* end confdefs.h. */
  8430. #include <stdlib.h>
  8431. int
  8432. main ()
  8433. {
  8434. int u; unsigned int v; exit(&u==&v);
  8435. ;
  8436. return 0;
  8437. }
  8438. _ACEOF
  8439. if ac_fn_c_try_compile "$LINENO"; then :
  8440. else
  8441. CHANCE_TO_TYPECHECK=0
  8442. fi
  8443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8444. fi
  8445. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  8446. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  8447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8448. /* end confdefs.h. */
  8449. #include <stdlib.h>
  8450. int
  8451. main ()
  8452. {
  8453. int u; unsigned int v; exit(&u==&v);
  8454. ;
  8455. return 0;
  8456. }
  8457. _ACEOF
  8458. if ac_fn_c_try_compile "$LINENO"; then :
  8459. CHANCE_TO_TYPECHECK=0
  8460. fi
  8461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8462. CFLAGS="$CFLAGS1"
  8463. fi
  8464. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: using compile -Werror method to find basic types" >&5
  8466. $as_echo "$as_me: using compile -Werror method to find basic types" >&6;}
  8467. else
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: using code run method to find basic types" >&5
  8469. $as_echo "$as_me: using code run method to find basic types" >&6;}
  8470. fi
  8471. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  8472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of size_t" >&5
  8473. $as_echo_n "checking for equivalent simple type of size_t... " >&6; }
  8474. if ${sc_cv_type_sizet_basic+:} false; then :
  8475. $as_echo_n "(cached) " >&6
  8476. else
  8477. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  8478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8479. /* end confdefs.h. */
  8480. #include <stdlib.h>
  8481. int
  8482. main ()
  8483. {
  8484. size_t u; short v; return(&u==&v);
  8485. ;
  8486. return 0;
  8487. }
  8488. _ACEOF
  8489. if ac_fn_c_try_compile "$LINENO"; then :
  8490. sc_cv_type_sizet_basic="1 /* short */"
  8491. else
  8492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8493. /* end confdefs.h. */
  8494. #include <stdlib.h>
  8495. int
  8496. main ()
  8497. {
  8498. size_t u; unsigned short v; return(&u==&v);
  8499. ;
  8500. return 0;
  8501. }
  8502. _ACEOF
  8503. if ac_fn_c_try_compile "$LINENO"; then :
  8504. sc_cv_type_sizet_basic="2 /* unsigned short */"
  8505. else
  8506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8507. /* end confdefs.h. */
  8508. #include <stdlib.h>
  8509. int
  8510. main ()
  8511. {
  8512. size_t u; int v; return(&u==&v);
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. if ac_fn_c_try_compile "$LINENO"; then :
  8518. sc_cv_type_sizet_basic="3 /* int */"
  8519. else
  8520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8521. /* end confdefs.h. */
  8522. #include <stdlib.h>
  8523. int
  8524. main ()
  8525. {
  8526. size_t u; unsigned int v; return(&u==&v);
  8527. ;
  8528. return 0;
  8529. }
  8530. _ACEOF
  8531. if ac_fn_c_try_compile "$LINENO"; then :
  8532. sc_cv_type_sizet_basic="4 /* unsigned int */"
  8533. else
  8534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8535. /* end confdefs.h. */
  8536. #include <stdlib.h>
  8537. int
  8538. main ()
  8539. {
  8540. size_t u; long v; return(&u==&v);
  8541. ;
  8542. return 0;
  8543. }
  8544. _ACEOF
  8545. if ac_fn_c_try_compile "$LINENO"; then :
  8546. sc_cv_type_sizet_basic="5 /* long */"
  8547. else
  8548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8549. /* end confdefs.h. */
  8550. #include <stdlib.h>
  8551. int
  8552. main ()
  8553. {
  8554. size_t u; unsigned long v; return(&u==&v);
  8555. ;
  8556. return 0;
  8557. }
  8558. _ACEOF
  8559. if ac_fn_c_try_compile "$LINENO"; then :
  8560. sc_cv_type_sizet_basic="6 /* unsigned long */"
  8561. else
  8562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8563. /* end confdefs.h. */
  8564. #include <stdlib.h>
  8565. int
  8566. main ()
  8567. {
  8568. size_t u; long long v; return(&u==&v);
  8569. ;
  8570. return 0;
  8571. }
  8572. _ACEOF
  8573. if ac_fn_c_try_compile "$LINENO"; then :
  8574. sc_cv_type_sizet_basic="7 /* long long */"
  8575. else
  8576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8577. /* end confdefs.h. */
  8578. #include <stdlib.h>
  8579. int
  8580. main ()
  8581. {
  8582. size_t u; unsigned long long v; return(&u==&v);
  8583. ;
  8584. return 0;
  8585. }
  8586. _ACEOF
  8587. if ac_fn_c_try_compile "$LINENO"; then :
  8588. sc_cv_type_sizet_basic="8 /* unsigned long long */"
  8589. else
  8590. sc_cv_type_sizet_basic="0 /* unknown, taking default */"
  8591. fi
  8592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8593. fi
  8594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8595. fi
  8596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8597. fi
  8598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8599. fi
  8600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8603. fi
  8604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8605. fi
  8606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8607. CFLAGS="$CFLAGS1"
  8608. fi
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_sizet_basic" >&5
  8610. $as_echo "$sc_cv_type_sizet_basic" >&6; }
  8611. cat >>confdefs.h <<_ACEOF
  8612. #define HAVE_BASIC_SIZE_T ${sc_cv_type_sizet_basic}
  8613. _ACEOF
  8614. else
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of size_t" >&5
  8616. $as_echo_n "checking for equivalent simple type of size_t... " >&6; }
  8617. if ${sc_cv_type_sizet_basic+:} false; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. if test "$cross_compiling" = yes; then :
  8621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8623. as_fn_error $? "cannot run test program while cross compiling
  8624. See \`config.log' for more details" "$LINENO" 5; }
  8625. else
  8626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8627. /* end confdefs.h. */
  8628. #include <stdlib.h>
  8629. int main() { return!(sizeof(size_t)==sizeof(short));}
  8630. _ACEOF
  8631. if ac_fn_c_try_run "$LINENO"; then :
  8632. # same length as short
  8633. if test "$cross_compiling" = yes; then :
  8634. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8635. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8636. as_fn_error $? "cannot run test program while cross compiling
  8637. See \`config.log' for more details" "$LINENO" 5; }
  8638. else
  8639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8640. /* end confdefs.h. */
  8641. #include <stdlib.h>
  8642. int main() { size_t x=-1; return !(x<0);}
  8643. _ACEOF
  8644. if ac_fn_c_try_run "$LINENO"; then :
  8645. sc_cv_type_sizet_basic="1 /* short */"
  8646. else
  8647. sc_cv_type_sizet_basic="2 /* unsigned short */"
  8648. fi
  8649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8651. fi
  8652. else
  8653. # length differs from short, try others
  8654. if test "$cross_compiling" = yes; then :
  8655. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8657. as_fn_error $? "cannot run test program while cross compiling
  8658. See \`config.log' for more details" "$LINENO" 5; }
  8659. else
  8660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8661. /* end confdefs.h. */
  8662. #include <stdlib.h>
  8663. int main() { return!(sizeof(size_t)==sizeof(int));}
  8664. _ACEOF
  8665. if ac_fn_c_try_run "$LINENO"; then :
  8666. # same length as int
  8667. if test "$cross_compiling" = yes; then :
  8668. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8669. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8670. as_fn_error $? "cannot run test program while cross compiling
  8671. See \`config.log' for more details" "$LINENO" 5; }
  8672. else
  8673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8674. /* end confdefs.h. */
  8675. #include <stdlib.h>
  8676. int main() { size_t x=-1; return !(x<0);}
  8677. _ACEOF
  8678. if ac_fn_c_try_run "$LINENO"; then :
  8679. sc_cv_type_sizet_basic="3 /* int */"
  8680. else
  8681. sc_cv_type_sizet_basic="4 /* unsigned int */"
  8682. fi
  8683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8685. fi
  8686. else
  8687. # length differs from int, try others
  8688. if test "$cross_compiling" = yes; then :
  8689. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8691. as_fn_error $? "cannot run test program while cross compiling
  8692. See \`config.log' for more details" "$LINENO" 5; }
  8693. else
  8694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8695. /* end confdefs.h. */
  8696. #include <stdlib.h>
  8697. int main() { return !(sizeof(size_t)==sizeof(long));}
  8698. _ACEOF
  8699. if ac_fn_c_try_run "$LINENO"; then :
  8700. # same length as long
  8701. if test "$cross_compiling" = yes; then :
  8702. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8703. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8704. as_fn_error $? "cannot run test program while cross compiling
  8705. See \`config.log' for more details" "$LINENO" 5; }
  8706. else
  8707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8708. /* end confdefs.h. */
  8709. #include <stdlib.h>
  8710. int main() { size_t x=-1; return !(x<0);}
  8711. _ACEOF
  8712. if ac_fn_c_try_run "$LINENO"; then :
  8713. sc_cv_type_sizet_basic="5 /* long */"
  8714. else
  8715. sc_cv_type_sizet_basic="6 /* unsigned long */"
  8716. fi
  8717. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8718. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8719. fi
  8720. else
  8721. # length differs from long, try others
  8722. if test "$cross_compiling" = yes; then :
  8723. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8725. as_fn_error $? "cannot run test program while cross compiling
  8726. See \`config.log' for more details" "$LINENO" 5; }
  8727. else
  8728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8729. /* end confdefs.h. */
  8730. #include <stdlib.h>
  8731. int main() { return !(sizeof(size_t)==sizeof(long long));}
  8732. _ACEOF
  8733. if ac_fn_c_try_run "$LINENO"; then :
  8734. # same length as long long
  8735. if test "$cross_compiling" = yes; then :
  8736. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8737. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8738. as_fn_error $? "cannot run test program while cross compiling
  8739. See \`config.log' for more details" "$LINENO" 5; }
  8740. else
  8741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8742. /* end confdefs.h. */
  8743. #include <stdlib.h>
  8744. int main() { size_t x=-1; return !(x<0);}
  8745. _ACEOF
  8746. if ac_fn_c_try_run "$LINENO"; then :
  8747. sc_cv_type_sizet_basic="7 /* long long */"
  8748. else
  8749. sc_cv_type_sizet_basic="8 /* unsigned long long */"
  8750. fi
  8751. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8752. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8753. fi
  8754. else
  8755. sc_cv_type_sizet_basic="0 /* unknown */"
  8756. fi
  8757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8758. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8759. fi
  8760. fi
  8761. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8762. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8763. fi
  8764. fi
  8765. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8766. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8767. fi
  8768. fi
  8769. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8770. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8771. fi
  8772. fi
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_sizet_basic" >&5
  8774. $as_echo "$sc_cv_type_sizet_basic" >&6; }
  8775. cat >>confdefs.h <<_ACEOF
  8776. #define HAVE_BASIC_SIZE_T ${sc_cv_type_sizet_basic}
  8777. _ACEOF
  8778. fi
  8779. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of mode_t" >&5
  8781. $as_echo_n "checking for equivalent simple type of mode_t... " >&6; }
  8782. if ${sc_cv_type_modet_basic+:} false; then :
  8783. $as_echo_n "(cached) " >&6
  8784. else
  8785. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  8786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8787. /* end confdefs.h. */
  8788. #include <sys/types.h>
  8789. #include <sys/stat.h>
  8790. #include <unistd.h>
  8791. int
  8792. main ()
  8793. {
  8794. mode_t u; short v; return(&u==&v);
  8795. ;
  8796. return 0;
  8797. }
  8798. _ACEOF
  8799. if ac_fn_c_try_compile "$LINENO"; then :
  8800. sc_cv_type_modet_basic="1 /* short */"
  8801. else
  8802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8803. /* end confdefs.h. */
  8804. #include <sys/types.h>
  8805. #include <sys/stat.h>
  8806. #include <unistd.h>
  8807. int
  8808. main ()
  8809. {
  8810. mode_t u; unsigned short v; return(&u==&v);
  8811. ;
  8812. return 0;
  8813. }
  8814. _ACEOF
  8815. if ac_fn_c_try_compile "$LINENO"; then :
  8816. sc_cv_type_modet_basic="2 /* unsigned short */"
  8817. else
  8818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8819. /* end confdefs.h. */
  8820. #include <sys/types.h>
  8821. #include <sys/stat.h>
  8822. #include <unistd.h>
  8823. int
  8824. main ()
  8825. {
  8826. mode_t u; int v; return(&u==&v);
  8827. ;
  8828. return 0;
  8829. }
  8830. _ACEOF
  8831. if ac_fn_c_try_compile "$LINENO"; then :
  8832. sc_cv_type_modet_basic="3 /* int */"
  8833. else
  8834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8835. /* end confdefs.h. */
  8836. #include <sys/types.h>
  8837. #include <sys/stat.h>
  8838. #include <unistd.h>
  8839. int
  8840. main ()
  8841. {
  8842. mode_t u; unsigned int v; return(&u==&v);
  8843. ;
  8844. return 0;
  8845. }
  8846. _ACEOF
  8847. if ac_fn_c_try_compile "$LINENO"; then :
  8848. sc_cv_type_modet_basic="4 /* unsigned int */"
  8849. else
  8850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8851. /* end confdefs.h. */
  8852. #include <sys/types.h>
  8853. #include <sys/stat.h>
  8854. #include <unistd.h>
  8855. int
  8856. main ()
  8857. {
  8858. mode_t u; long v; return(&u==&v);
  8859. ;
  8860. return 0;
  8861. }
  8862. _ACEOF
  8863. if ac_fn_c_try_compile "$LINENO"; then :
  8864. sc_cv_type_modet_basic="5 /* long */"
  8865. else
  8866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8867. /* end confdefs.h. */
  8868. #include <sys/types.h>
  8869. #include <sys/stat.h>
  8870. #include <unistd.h>
  8871. int
  8872. main ()
  8873. {
  8874. mode_t u; unsigned long v; return(&u==&v);
  8875. ;
  8876. return 0;
  8877. }
  8878. _ACEOF
  8879. if ac_fn_c_try_compile "$LINENO"; then :
  8880. sc_cv_type_modet_basic="6 /* unsigned long */"
  8881. else
  8882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8883. /* end confdefs.h. */
  8884. #include <sys/types.h>
  8885. #include <sys/stat.h>
  8886. #include <unistd.h>
  8887. int
  8888. main ()
  8889. {
  8890. mode_t u; long long v; return(&u==&v);
  8891. ;
  8892. return 0;
  8893. }
  8894. _ACEOF
  8895. if ac_fn_c_try_compile "$LINENO"; then :
  8896. sc_cv_type_modet_basic="7 /* long long */"
  8897. else
  8898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8899. /* end confdefs.h. */
  8900. #include <sys/types.h>
  8901. #include <sys/stat.h>
  8902. #include <unistd.h>
  8903. int
  8904. main ()
  8905. {
  8906. mode_t u; unsigned long long v; return(&u==&v);
  8907. ;
  8908. return 0;
  8909. }
  8910. _ACEOF
  8911. if ac_fn_c_try_compile "$LINENO"; then :
  8912. sc_cv_type_modet_basic="8 /* unsigned long long */"
  8913. else
  8914. sc_cv_type_modet_basic="0 /* unknown, taking default */"
  8915. fi
  8916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8917. fi
  8918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8919. fi
  8920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8921. fi
  8922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8923. fi
  8924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8925. fi
  8926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8927. fi
  8928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8929. fi
  8930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8931. CFLAGS="$CFLAGS1"
  8932. fi
  8933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_modet_basic" >&5
  8934. $as_echo "$sc_cv_type_modet_basic" >&6; }
  8935. cat >>confdefs.h <<_ACEOF
  8936. #define HAVE_BASIC_MODE_T ${sc_cv_type_modet_basic}
  8937. _ACEOF
  8938. else
  8939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of mode_t" >&5
  8940. $as_echo_n "checking for equivalent simple type of mode_t... " >&6; }
  8941. if ${sc_cv_type_modet_basic+:} false; then :
  8942. $as_echo_n "(cached) " >&6
  8943. else
  8944. if test "$cross_compiling" = yes; then :
  8945. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8947. as_fn_error $? "cannot run test program while cross compiling
  8948. See \`config.log' for more details" "$LINENO" 5; }
  8949. else
  8950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8951. /* end confdefs.h. */
  8952. #include <sys/types.h>
  8953. #include <sys/stat.h>
  8954. #include <unistd.h>
  8955. int main() { return!(sizeof(mode_t)==sizeof(short));}
  8956. _ACEOF
  8957. if ac_fn_c_try_run "$LINENO"; then :
  8958. # same length as short
  8959. if test "$cross_compiling" = yes; then :
  8960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8962. as_fn_error $? "cannot run test program while cross compiling
  8963. See \`config.log' for more details" "$LINENO" 5; }
  8964. else
  8965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8966. /* end confdefs.h. */
  8967. #include <sys/types.h>
  8968. #include <sys/stat.h>
  8969. #include <unistd.h>
  8970. int main() { mode_t x=-1; return !(x<0);}
  8971. _ACEOF
  8972. if ac_fn_c_try_run "$LINENO"; then :
  8973. sc_cv_type_modet_basic="1 /* short */"
  8974. else
  8975. sc_cv_type_modet_basic="2 /* unsigned short */"
  8976. fi
  8977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8978. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8979. fi
  8980. else
  8981. # length differs from short, try others
  8982. if test "$cross_compiling" = yes; then :
  8983. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8985. as_fn_error $? "cannot run test program while cross compiling
  8986. See \`config.log' for more details" "$LINENO" 5; }
  8987. else
  8988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8989. /* end confdefs.h. */
  8990. #include <sys/types.h>
  8991. #include <sys/stat.h>
  8992. #include <unistd.h>
  8993. int main() { return!(sizeof(mode_t)==sizeof(int));}
  8994. _ACEOF
  8995. if ac_fn_c_try_run "$LINENO"; then :
  8996. # same length as int
  8997. if test "$cross_compiling" = yes; then :
  8998. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9000. as_fn_error $? "cannot run test program while cross compiling
  9001. See \`config.log' for more details" "$LINENO" 5; }
  9002. else
  9003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9004. /* end confdefs.h. */
  9005. #include <sys/types.h>
  9006. #include <sys/stat.h>
  9007. #include <unistd.h>
  9008. int main() { mode_t x=-1; return !(x<0);}
  9009. _ACEOF
  9010. if ac_fn_c_try_run "$LINENO"; then :
  9011. sc_cv_type_modet_basic="3 /* int */"
  9012. else
  9013. sc_cv_type_modet_basic="4 /* unsigned int */"
  9014. fi
  9015. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9016. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9017. fi
  9018. else
  9019. # length differs from int, try others
  9020. if test "$cross_compiling" = yes; then :
  9021. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9023. as_fn_error $? "cannot run test program while cross compiling
  9024. See \`config.log' for more details" "$LINENO" 5; }
  9025. else
  9026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9027. /* end confdefs.h. */
  9028. #include <sys/types.h>
  9029. #include <sys/stat.h>
  9030. #include <unistd.h>
  9031. int main() { return !(sizeof(mode_t)==sizeof(long));}
  9032. _ACEOF
  9033. if ac_fn_c_try_run "$LINENO"; then :
  9034. # same length as long
  9035. if test "$cross_compiling" = yes; then :
  9036. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9038. as_fn_error $? "cannot run test program while cross compiling
  9039. See \`config.log' for more details" "$LINENO" 5; }
  9040. else
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. #include <sys/types.h>
  9044. #include <sys/stat.h>
  9045. #include <unistd.h>
  9046. int main() { mode_t x=-1; return !(x<0);}
  9047. _ACEOF
  9048. if ac_fn_c_try_run "$LINENO"; then :
  9049. sc_cv_type_modet_basic="5 /* long */"
  9050. else
  9051. sc_cv_type_modet_basic="6 /* unsigned long */"
  9052. fi
  9053. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9054. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9055. fi
  9056. else
  9057. # length differs from long, try others
  9058. if test "$cross_compiling" = yes; then :
  9059. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9061. as_fn_error $? "cannot run test program while cross compiling
  9062. See \`config.log' for more details" "$LINENO" 5; }
  9063. else
  9064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9065. /* end confdefs.h. */
  9066. #include <sys/types.h>
  9067. #include <sys/stat.h>
  9068. #include <unistd.h>
  9069. int main() { return !(sizeof(mode_t)==sizeof(long long));}
  9070. _ACEOF
  9071. if ac_fn_c_try_run "$LINENO"; then :
  9072. # same length as long long
  9073. if test "$cross_compiling" = yes; then :
  9074. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9075. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9076. as_fn_error $? "cannot run test program while cross compiling
  9077. See \`config.log' for more details" "$LINENO" 5; }
  9078. else
  9079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9080. /* end confdefs.h. */
  9081. #include <sys/types.h>
  9082. #include <sys/stat.h>
  9083. #include <unistd.h>
  9084. int main() { mode_t x=-1; return !(x<0);}
  9085. _ACEOF
  9086. if ac_fn_c_try_run "$LINENO"; then :
  9087. sc_cv_type_modet_basic="7 /* long long */"
  9088. else
  9089. sc_cv_type_modet_basic="8 /* unsigned long long */"
  9090. fi
  9091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9092. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9093. fi
  9094. else
  9095. sc_cv_type_modet_basic="0 /* unknown */"
  9096. fi
  9097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9098. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9099. fi
  9100. fi
  9101. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9102. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9103. fi
  9104. fi
  9105. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9106. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9107. fi
  9108. fi
  9109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9110. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9111. fi
  9112. fi
  9113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_modet_basic" >&5
  9114. $as_echo "$sc_cv_type_modet_basic" >&6; }
  9115. cat >>confdefs.h <<_ACEOF
  9116. #define HAVE_BASIC_MODE_T ${sc_cv_type_modet_basic}
  9117. _ACEOF
  9118. fi
  9119. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  9120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of pid_t" >&5
  9121. $as_echo_n "checking for equivalent simple type of pid_t... " >&6; }
  9122. if ${sc_cv_type_pidt_basic+:} false; then :
  9123. $as_echo_n "(cached) " >&6
  9124. else
  9125. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  9126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9127. /* end confdefs.h. */
  9128. #include <sys/types.h>
  9129. #include <unistd.h>
  9130. int
  9131. main ()
  9132. {
  9133. pid_t u; short v; return(&u==&v);
  9134. ;
  9135. return 0;
  9136. }
  9137. _ACEOF
  9138. if ac_fn_c_try_compile "$LINENO"; then :
  9139. sc_cv_type_pidt_basic="1 /* short */"
  9140. else
  9141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9142. /* end confdefs.h. */
  9143. #include <sys/types.h>
  9144. #include <unistd.h>
  9145. int
  9146. main ()
  9147. {
  9148. pid_t u; unsigned short v; return(&u==&v);
  9149. ;
  9150. return 0;
  9151. }
  9152. _ACEOF
  9153. if ac_fn_c_try_compile "$LINENO"; then :
  9154. sc_cv_type_pidt_basic="2 /* unsigned short */"
  9155. else
  9156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9157. /* end confdefs.h. */
  9158. #include <sys/types.h>
  9159. #include <unistd.h>
  9160. int
  9161. main ()
  9162. {
  9163. pid_t u; int v; return(&u==&v);
  9164. ;
  9165. return 0;
  9166. }
  9167. _ACEOF
  9168. if ac_fn_c_try_compile "$LINENO"; then :
  9169. sc_cv_type_pidt_basic="3 /* int */"
  9170. else
  9171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9172. /* end confdefs.h. */
  9173. #include <sys/types.h>
  9174. #include <unistd.h>
  9175. int
  9176. main ()
  9177. {
  9178. pid_t u; unsigned int v; return(&u==&v);
  9179. ;
  9180. return 0;
  9181. }
  9182. _ACEOF
  9183. if ac_fn_c_try_compile "$LINENO"; then :
  9184. sc_cv_type_pidt_basic="4 /* unsigned int */"
  9185. else
  9186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9187. /* end confdefs.h. */
  9188. #include <sys/types.h>
  9189. #include <unistd.h>
  9190. int
  9191. main ()
  9192. {
  9193. pid_t u; long v; return(&u==&v);
  9194. ;
  9195. return 0;
  9196. }
  9197. _ACEOF
  9198. if ac_fn_c_try_compile "$LINENO"; then :
  9199. sc_cv_type_pidt_basic="5 /* long */"
  9200. else
  9201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9202. /* end confdefs.h. */
  9203. #include <sys/types.h>
  9204. #include <unistd.h>
  9205. int
  9206. main ()
  9207. {
  9208. pid_t u; unsigned long v; return(&u==&v);
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. if ac_fn_c_try_compile "$LINENO"; then :
  9214. sc_cv_type_pidt_basic="6 /* unsigned long */"
  9215. else
  9216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9217. /* end confdefs.h. */
  9218. #include <sys/types.h>
  9219. #include <unistd.h>
  9220. int
  9221. main ()
  9222. {
  9223. pid_t u; long long v; return(&u==&v);
  9224. ;
  9225. return 0;
  9226. }
  9227. _ACEOF
  9228. if ac_fn_c_try_compile "$LINENO"; then :
  9229. sc_cv_type_pidt_basic="7 /* long long */"
  9230. else
  9231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9232. /* end confdefs.h. */
  9233. #include <sys/types.h>
  9234. #include <unistd.h>
  9235. int
  9236. main ()
  9237. {
  9238. pid_t u; unsigned long long v; return(&u==&v);
  9239. ;
  9240. return 0;
  9241. }
  9242. _ACEOF
  9243. if ac_fn_c_try_compile "$LINENO"; then :
  9244. sc_cv_type_pidt_basic="8 /* unsigned long long */"
  9245. else
  9246. sc_cv_type_pidt_basic="0 /* unknown, taking default */"
  9247. fi
  9248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9249. fi
  9250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9251. fi
  9252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9253. fi
  9254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9255. fi
  9256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9257. fi
  9258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9259. fi
  9260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9261. fi
  9262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9263. CFLAGS="$CFLAGS1"
  9264. fi
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_pidt_basic" >&5
  9266. $as_echo "$sc_cv_type_pidt_basic" >&6; }
  9267. cat >>confdefs.h <<_ACEOF
  9268. #define HAVE_BASIC_PID_T ${sc_cv_type_pidt_basic}
  9269. _ACEOF
  9270. else
  9271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of pid_t" >&5
  9272. $as_echo_n "checking for equivalent simple type of pid_t... " >&6; }
  9273. if ${sc_cv_type_pidt_basic+:} false; then :
  9274. $as_echo_n "(cached) " >&6
  9275. else
  9276. if test "$cross_compiling" = yes; then :
  9277. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9278. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9279. as_fn_error $? "cannot run test program while cross compiling
  9280. See \`config.log' for more details" "$LINENO" 5; }
  9281. else
  9282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9283. /* end confdefs.h. */
  9284. #include <sys/types.h>
  9285. #include <unistd.h>
  9286. int main() { return!(sizeof(pid_t)==sizeof(short));}
  9287. _ACEOF
  9288. if ac_fn_c_try_run "$LINENO"; then :
  9289. # same length as short
  9290. if test "$cross_compiling" = yes; then :
  9291. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9292. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9293. as_fn_error $? "cannot run test program while cross compiling
  9294. See \`config.log' for more details" "$LINENO" 5; }
  9295. else
  9296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9297. /* end confdefs.h. */
  9298. #include <sys/types.h>
  9299. #include <unistd.h>
  9300. int main() { pid_t x=-1; return !(x<0);}
  9301. _ACEOF
  9302. if ac_fn_c_try_run "$LINENO"; then :
  9303. sc_cv_type_pidt_basic="1 /* short */"
  9304. else
  9305. sc_cv_type_pidt_basic="2 /* unsigned short */"
  9306. fi
  9307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9308. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9309. fi
  9310. else
  9311. # length differs from short, try others
  9312. if test "$cross_compiling" = yes; then :
  9313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9315. as_fn_error $? "cannot run test program while cross compiling
  9316. See \`config.log' for more details" "$LINENO" 5; }
  9317. else
  9318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9319. /* end confdefs.h. */
  9320. #include <sys/types.h>
  9321. #include <unistd.h>
  9322. int main() { return!(sizeof(pid_t)==sizeof(int));}
  9323. _ACEOF
  9324. if ac_fn_c_try_run "$LINENO"; then :
  9325. # same length as int
  9326. if test "$cross_compiling" = yes; then :
  9327. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9328. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9329. as_fn_error $? "cannot run test program while cross compiling
  9330. See \`config.log' for more details" "$LINENO" 5; }
  9331. else
  9332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9333. /* end confdefs.h. */
  9334. #include <sys/types.h>
  9335. #include <unistd.h>
  9336. int main() { pid_t x=-1; return !(x<0);}
  9337. _ACEOF
  9338. if ac_fn_c_try_run "$LINENO"; then :
  9339. sc_cv_type_pidt_basic="3 /* int */"
  9340. else
  9341. sc_cv_type_pidt_basic="4 /* unsigned int */"
  9342. fi
  9343. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9344. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9345. fi
  9346. else
  9347. # length differs from int, try others
  9348. if test "$cross_compiling" = yes; then :
  9349. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9350. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9351. as_fn_error $? "cannot run test program while cross compiling
  9352. See \`config.log' for more details" "$LINENO" 5; }
  9353. else
  9354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9355. /* end confdefs.h. */
  9356. #include <sys/types.h>
  9357. #include <unistd.h>
  9358. int main() { return !(sizeof(pid_t)==sizeof(long));}
  9359. _ACEOF
  9360. if ac_fn_c_try_run "$LINENO"; then :
  9361. # same length as long
  9362. if test "$cross_compiling" = yes; then :
  9363. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9365. as_fn_error $? "cannot run test program while cross compiling
  9366. See \`config.log' for more details" "$LINENO" 5; }
  9367. else
  9368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9369. /* end confdefs.h. */
  9370. #include <sys/types.h>
  9371. #include <unistd.h>
  9372. int main() { pid_t x=-1; return !(x<0);}
  9373. _ACEOF
  9374. if ac_fn_c_try_run "$LINENO"; then :
  9375. sc_cv_type_pidt_basic="5 /* long */"
  9376. else
  9377. sc_cv_type_pidt_basic="6 /* unsigned long */"
  9378. fi
  9379. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9380. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9381. fi
  9382. else
  9383. # length differs from long, try others
  9384. if test "$cross_compiling" = yes; then :
  9385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9387. as_fn_error $? "cannot run test program while cross compiling
  9388. See \`config.log' for more details" "$LINENO" 5; }
  9389. else
  9390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9391. /* end confdefs.h. */
  9392. #include <sys/types.h>
  9393. #include <unistd.h>
  9394. int main() { return !(sizeof(pid_t)==sizeof(long long));}
  9395. _ACEOF
  9396. if ac_fn_c_try_run "$LINENO"; then :
  9397. # same length as long long
  9398. if test "$cross_compiling" = yes; then :
  9399. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9401. as_fn_error $? "cannot run test program while cross compiling
  9402. See \`config.log' for more details" "$LINENO" 5; }
  9403. else
  9404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9405. /* end confdefs.h. */
  9406. #include <sys/types.h>
  9407. #include <unistd.h>
  9408. int main() { pid_t x=-1; return !(x<0);}
  9409. _ACEOF
  9410. if ac_fn_c_try_run "$LINENO"; then :
  9411. sc_cv_type_pidt_basic="7 /* long long */"
  9412. else
  9413. sc_cv_type_pidt_basic="8 /* unsigned long long */"
  9414. fi
  9415. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9416. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9417. fi
  9418. else
  9419. sc_cv_type_pidt_basic="0 /* unknown */"
  9420. fi
  9421. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9422. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9423. fi
  9424. fi
  9425. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9426. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9427. fi
  9428. fi
  9429. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9430. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9431. fi
  9432. fi
  9433. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9434. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9435. fi
  9436. fi
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_pidt_basic" >&5
  9438. $as_echo "$sc_cv_type_pidt_basic" >&6; }
  9439. cat >>confdefs.h <<_ACEOF
  9440. #define HAVE_BASIC_PID_T ${sc_cv_type_pidt_basic}
  9441. _ACEOF
  9442. fi
  9443. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of uid_t" >&5
  9445. $as_echo_n "checking for equivalent simple type of uid_t... " >&6; }
  9446. if ${sc_cv_type_uidt_basic+:} false; then :
  9447. $as_echo_n "(cached) " >&6
  9448. else
  9449. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  9450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9451. /* end confdefs.h. */
  9452. #include <sys/types.h>
  9453. #include <unistd.h>
  9454. int
  9455. main ()
  9456. {
  9457. uid_t u; short v; return(&u==&v);
  9458. ;
  9459. return 0;
  9460. }
  9461. _ACEOF
  9462. if ac_fn_c_try_compile "$LINENO"; then :
  9463. sc_cv_type_uidt_basic="1 /* short */"
  9464. else
  9465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9466. /* end confdefs.h. */
  9467. #include <sys/types.h>
  9468. #include <unistd.h>
  9469. int
  9470. main ()
  9471. {
  9472. uid_t u; unsigned short v; return(&u==&v);
  9473. ;
  9474. return 0;
  9475. }
  9476. _ACEOF
  9477. if ac_fn_c_try_compile "$LINENO"; then :
  9478. sc_cv_type_uidt_basic="2 /* unsigned short */"
  9479. else
  9480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9481. /* end confdefs.h. */
  9482. #include <sys/types.h>
  9483. #include <unistd.h>
  9484. int
  9485. main ()
  9486. {
  9487. uid_t u; int v; return(&u==&v);
  9488. ;
  9489. return 0;
  9490. }
  9491. _ACEOF
  9492. if ac_fn_c_try_compile "$LINENO"; then :
  9493. sc_cv_type_uidt_basic="3 /* int */"
  9494. else
  9495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9496. /* end confdefs.h. */
  9497. #include <sys/types.h>
  9498. #include <unistd.h>
  9499. int
  9500. main ()
  9501. {
  9502. uid_t u; unsigned int v; return(&u==&v);
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_compile "$LINENO"; then :
  9508. sc_cv_type_uidt_basic="4 /* unsigned int */"
  9509. else
  9510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9511. /* end confdefs.h. */
  9512. #include <sys/types.h>
  9513. #include <unistd.h>
  9514. int
  9515. main ()
  9516. {
  9517. uid_t u; long v; return(&u==&v);
  9518. ;
  9519. return 0;
  9520. }
  9521. _ACEOF
  9522. if ac_fn_c_try_compile "$LINENO"; then :
  9523. sc_cv_type_uidt_basic="5 /* long */"
  9524. else
  9525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9526. /* end confdefs.h. */
  9527. #include <sys/types.h>
  9528. #include <unistd.h>
  9529. int
  9530. main ()
  9531. {
  9532. uid_t u; unsigned long v; return(&u==&v);
  9533. ;
  9534. return 0;
  9535. }
  9536. _ACEOF
  9537. if ac_fn_c_try_compile "$LINENO"; then :
  9538. sc_cv_type_uidt_basic="6 /* unsigned long */"
  9539. else
  9540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9541. /* end confdefs.h. */
  9542. #include <sys/types.h>
  9543. #include <unistd.h>
  9544. int
  9545. main ()
  9546. {
  9547. uid_t u; long long v; return(&u==&v);
  9548. ;
  9549. return 0;
  9550. }
  9551. _ACEOF
  9552. if ac_fn_c_try_compile "$LINENO"; then :
  9553. sc_cv_type_uidt_basic="7 /* long long */"
  9554. else
  9555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9556. /* end confdefs.h. */
  9557. #include <sys/types.h>
  9558. #include <unistd.h>
  9559. int
  9560. main ()
  9561. {
  9562. uid_t u; unsigned long long v; return(&u==&v);
  9563. ;
  9564. return 0;
  9565. }
  9566. _ACEOF
  9567. if ac_fn_c_try_compile "$LINENO"; then :
  9568. sc_cv_type_uidt_basic="8 /* unsigned long long */"
  9569. else
  9570. sc_cv_type_uidt_basic="0 /* unknown, taking default */"
  9571. fi
  9572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9573. fi
  9574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9575. fi
  9576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9577. fi
  9578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9579. fi
  9580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9581. fi
  9582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9583. fi
  9584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9585. fi
  9586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9587. CFLAGS="$CFLAGS1"
  9588. fi
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_uidt_basic" >&5
  9590. $as_echo "$sc_cv_type_uidt_basic" >&6; }
  9591. cat >>confdefs.h <<_ACEOF
  9592. #define HAVE_BASIC_UID_T ${sc_cv_type_uidt_basic}
  9593. _ACEOF
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of uid_t" >&5
  9596. $as_echo_n "checking for equivalent simple type of uid_t... " >&6; }
  9597. if ${sc_cv_type_uidt_basic+:} false; then :
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. if test "$cross_compiling" = yes; then :
  9601. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9603. as_fn_error $? "cannot run test program while cross compiling
  9604. See \`config.log' for more details" "$LINENO" 5; }
  9605. else
  9606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9607. /* end confdefs.h. */
  9608. #include <sys/types.h>
  9609. #include <unistd.h>
  9610. int main() { return!(sizeof(uid_t)==sizeof(short));}
  9611. _ACEOF
  9612. if ac_fn_c_try_run "$LINENO"; then :
  9613. # same length as short
  9614. if test "$cross_compiling" = yes; then :
  9615. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9616. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9617. as_fn_error $? "cannot run test program while cross compiling
  9618. See \`config.log' for more details" "$LINENO" 5; }
  9619. else
  9620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9621. /* end confdefs.h. */
  9622. #include <sys/types.h>
  9623. #include <unistd.h>
  9624. int main() { uid_t x=-1; return !(x<0);}
  9625. _ACEOF
  9626. if ac_fn_c_try_run "$LINENO"; then :
  9627. sc_cv_type_uidt_basic="1 /* short */"
  9628. else
  9629. sc_cv_type_uidt_basic="2 /* unsigned short */"
  9630. fi
  9631. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9632. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9633. fi
  9634. else
  9635. # length differs from short, try others
  9636. if test "$cross_compiling" = yes; then :
  9637. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9639. as_fn_error $? "cannot run test program while cross compiling
  9640. See \`config.log' for more details" "$LINENO" 5; }
  9641. else
  9642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9643. /* end confdefs.h. */
  9644. #include <sys/types.h>
  9645. #include <unistd.h>
  9646. int main() { return!(sizeof(uid_t)==sizeof(int));}
  9647. _ACEOF
  9648. if ac_fn_c_try_run "$LINENO"; then :
  9649. # same length as int
  9650. if test "$cross_compiling" = yes; then :
  9651. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9652. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9653. as_fn_error $? "cannot run test program while cross compiling
  9654. See \`config.log' for more details" "$LINENO" 5; }
  9655. else
  9656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9657. /* end confdefs.h. */
  9658. #include <sys/types.h>
  9659. #include <unistd.h>
  9660. int main() { uid_t x=-1; return !(x<0);}
  9661. _ACEOF
  9662. if ac_fn_c_try_run "$LINENO"; then :
  9663. sc_cv_type_uidt_basic="3 /* int */"
  9664. else
  9665. sc_cv_type_uidt_basic="4 /* unsigned int */"
  9666. fi
  9667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9669. fi
  9670. else
  9671. # length differs from int, try others
  9672. if test "$cross_compiling" = yes; then :
  9673. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9674. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9675. as_fn_error $? "cannot run test program while cross compiling
  9676. See \`config.log' for more details" "$LINENO" 5; }
  9677. else
  9678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9679. /* end confdefs.h. */
  9680. #include <sys/types.h>
  9681. #include <unistd.h>
  9682. int main() { return !(sizeof(uid_t)==sizeof(long));}
  9683. _ACEOF
  9684. if ac_fn_c_try_run "$LINENO"; then :
  9685. # same length as long
  9686. if test "$cross_compiling" = yes; then :
  9687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9689. as_fn_error $? "cannot run test program while cross compiling
  9690. See \`config.log' for more details" "$LINENO" 5; }
  9691. else
  9692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9693. /* end confdefs.h. */
  9694. #include <sys/types.h>
  9695. #include <unistd.h>
  9696. int main() { uid_t x=-1; return !(x<0);}
  9697. _ACEOF
  9698. if ac_fn_c_try_run "$LINENO"; then :
  9699. sc_cv_type_uidt_basic="5 /* long */"
  9700. else
  9701. sc_cv_type_uidt_basic="6 /* unsigned long */"
  9702. fi
  9703. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9704. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9705. fi
  9706. else
  9707. # length differs from long, try others
  9708. if test "$cross_compiling" = yes; then :
  9709. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9710. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9711. as_fn_error $? "cannot run test program while cross compiling
  9712. See \`config.log' for more details" "$LINENO" 5; }
  9713. else
  9714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9715. /* end confdefs.h. */
  9716. #include <sys/types.h>
  9717. #include <unistd.h>
  9718. int main() { return !(sizeof(uid_t)==sizeof(long long));}
  9719. _ACEOF
  9720. if ac_fn_c_try_run "$LINENO"; then :
  9721. # same length as long long
  9722. if test "$cross_compiling" = yes; then :
  9723. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9725. as_fn_error $? "cannot run test program while cross compiling
  9726. See \`config.log' for more details" "$LINENO" 5; }
  9727. else
  9728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9729. /* end confdefs.h. */
  9730. #include <sys/types.h>
  9731. #include <unistd.h>
  9732. int main() { uid_t x=-1; return !(x<0);}
  9733. _ACEOF
  9734. if ac_fn_c_try_run "$LINENO"; then :
  9735. sc_cv_type_uidt_basic="7 /* long long */"
  9736. else
  9737. sc_cv_type_uidt_basic="8 /* unsigned long long */"
  9738. fi
  9739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9740. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9741. fi
  9742. else
  9743. sc_cv_type_uidt_basic="0 /* unknown */"
  9744. fi
  9745. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9746. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9747. fi
  9748. fi
  9749. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9750. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9751. fi
  9752. fi
  9753. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9754. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9755. fi
  9756. fi
  9757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9758. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9759. fi
  9760. fi
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_uidt_basic" >&5
  9762. $as_echo "$sc_cv_type_uidt_basic" >&6; }
  9763. cat >>confdefs.h <<_ACEOF
  9764. #define HAVE_BASIC_UID_T ${sc_cv_type_uidt_basic}
  9765. _ACEOF
  9766. fi
  9767. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of gid_t" >&5
  9769. $as_echo_n "checking for equivalent simple type of gid_t... " >&6; }
  9770. if ${sc_cv_type_gidt_basic+:} false; then :
  9771. $as_echo_n "(cached) " >&6
  9772. else
  9773. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  9774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9775. /* end confdefs.h. */
  9776. #include <sys/types.h>
  9777. #include <unistd.h>
  9778. int
  9779. main ()
  9780. {
  9781. gid_t u; short v; return(&u==&v);
  9782. ;
  9783. return 0;
  9784. }
  9785. _ACEOF
  9786. if ac_fn_c_try_compile "$LINENO"; then :
  9787. sc_cv_type_gidt_basic="1 /* short */"
  9788. else
  9789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9790. /* end confdefs.h. */
  9791. #include <sys/types.h>
  9792. #include <unistd.h>
  9793. int
  9794. main ()
  9795. {
  9796. gid_t u; unsigned short v; return(&u==&v);
  9797. ;
  9798. return 0;
  9799. }
  9800. _ACEOF
  9801. if ac_fn_c_try_compile "$LINENO"; then :
  9802. sc_cv_type_gidt_basic="2 /* unsigned short */"
  9803. else
  9804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9805. /* end confdefs.h. */
  9806. #include <sys/types.h>
  9807. #include <unistd.h>
  9808. int
  9809. main ()
  9810. {
  9811. gid_t u; int v; return(&u==&v);
  9812. ;
  9813. return 0;
  9814. }
  9815. _ACEOF
  9816. if ac_fn_c_try_compile "$LINENO"; then :
  9817. sc_cv_type_gidt_basic="3 /* int */"
  9818. else
  9819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9820. /* end confdefs.h. */
  9821. #include <sys/types.h>
  9822. #include <unistd.h>
  9823. int
  9824. main ()
  9825. {
  9826. gid_t u; unsigned int v; return(&u==&v);
  9827. ;
  9828. return 0;
  9829. }
  9830. _ACEOF
  9831. if ac_fn_c_try_compile "$LINENO"; then :
  9832. sc_cv_type_gidt_basic="4 /* unsigned int */"
  9833. else
  9834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9835. /* end confdefs.h. */
  9836. #include <sys/types.h>
  9837. #include <unistd.h>
  9838. int
  9839. main ()
  9840. {
  9841. gid_t u; long v; return(&u==&v);
  9842. ;
  9843. return 0;
  9844. }
  9845. _ACEOF
  9846. if ac_fn_c_try_compile "$LINENO"; then :
  9847. sc_cv_type_gidt_basic="5 /* long */"
  9848. else
  9849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9850. /* end confdefs.h. */
  9851. #include <sys/types.h>
  9852. #include <unistd.h>
  9853. int
  9854. main ()
  9855. {
  9856. gid_t u; unsigned long v; return(&u==&v);
  9857. ;
  9858. return 0;
  9859. }
  9860. _ACEOF
  9861. if ac_fn_c_try_compile "$LINENO"; then :
  9862. sc_cv_type_gidt_basic="6 /* unsigned long */"
  9863. else
  9864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9865. /* end confdefs.h. */
  9866. #include <sys/types.h>
  9867. #include <unistd.h>
  9868. int
  9869. main ()
  9870. {
  9871. gid_t u; long long v; return(&u==&v);
  9872. ;
  9873. return 0;
  9874. }
  9875. _ACEOF
  9876. if ac_fn_c_try_compile "$LINENO"; then :
  9877. sc_cv_type_gidt_basic="7 /* long long */"
  9878. else
  9879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9880. /* end confdefs.h. */
  9881. #include <sys/types.h>
  9882. #include <unistd.h>
  9883. int
  9884. main ()
  9885. {
  9886. gid_t u; unsigned long long v; return(&u==&v);
  9887. ;
  9888. return 0;
  9889. }
  9890. _ACEOF
  9891. if ac_fn_c_try_compile "$LINENO"; then :
  9892. sc_cv_type_gidt_basic="8 /* unsigned long long */"
  9893. else
  9894. sc_cv_type_gidt_basic="0 /* unknown, taking default */"
  9895. fi
  9896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9897. fi
  9898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9899. fi
  9900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9901. fi
  9902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9903. fi
  9904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9905. fi
  9906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9907. fi
  9908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9909. fi
  9910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9911. CFLAGS="$CFLAGS1"
  9912. fi
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_gidt_basic" >&5
  9914. $as_echo "$sc_cv_type_gidt_basic" >&6; }
  9915. cat >>confdefs.h <<_ACEOF
  9916. #define HAVE_BASIC_GID_T ${sc_cv_type_gidt_basic}
  9917. _ACEOF
  9918. else
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of gid_t" >&5
  9920. $as_echo_n "checking for equivalent simple type of gid_t... " >&6; }
  9921. if ${sc_cv_type_gidt_basic+:} false; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. if test "$cross_compiling" = yes; then :
  9925. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9926. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9927. as_fn_error $? "cannot run test program while cross compiling
  9928. See \`config.log' for more details" "$LINENO" 5; }
  9929. else
  9930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9931. /* end confdefs.h. */
  9932. #include <sys/types.h>
  9933. #include <unistd.h>
  9934. int main() { return!(sizeof(gid_t)==sizeof(short));}
  9935. _ACEOF
  9936. if ac_fn_c_try_run "$LINENO"; then :
  9937. # same length as short
  9938. if test "$cross_compiling" = yes; then :
  9939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9941. as_fn_error $? "cannot run test program while cross compiling
  9942. See \`config.log' for more details" "$LINENO" 5; }
  9943. else
  9944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9945. /* end confdefs.h. */
  9946. #include <sys/types.h>
  9947. #include <unistd.h>
  9948. int main() { gid_t x=-1; return !(x<0);}
  9949. _ACEOF
  9950. if ac_fn_c_try_run "$LINENO"; then :
  9951. sc_cv_type_gidt_basic="1 /* short */"
  9952. else
  9953. sc_cv_type_gidt_basic="2 /* unsigned short */"
  9954. fi
  9955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9956. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9957. fi
  9958. else
  9959. # length differs from short, try others
  9960. if test "$cross_compiling" = yes; then :
  9961. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9962. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9963. as_fn_error $? "cannot run test program while cross compiling
  9964. See \`config.log' for more details" "$LINENO" 5; }
  9965. else
  9966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9967. /* end confdefs.h. */
  9968. #include <sys/types.h>
  9969. #include <unistd.h>
  9970. int main() { return!(sizeof(gid_t)==sizeof(int));}
  9971. _ACEOF
  9972. if ac_fn_c_try_run "$LINENO"; then :
  9973. # same length as int
  9974. if test "$cross_compiling" = yes; then :
  9975. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9977. as_fn_error $? "cannot run test program while cross compiling
  9978. See \`config.log' for more details" "$LINENO" 5; }
  9979. else
  9980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9981. /* end confdefs.h. */
  9982. #include <sys/types.h>
  9983. #include <unistd.h>
  9984. int main() { gid_t x=-1; return !(x<0);}
  9985. _ACEOF
  9986. if ac_fn_c_try_run "$LINENO"; then :
  9987. sc_cv_type_gidt_basic="3 /* int */"
  9988. else
  9989. sc_cv_type_gidt_basic="4 /* unsigned int */"
  9990. fi
  9991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9992. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9993. fi
  9994. else
  9995. # length differs from int, try others
  9996. if test "$cross_compiling" = yes; then :
  9997. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9998. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9999. as_fn_error $? "cannot run test program while cross compiling
  10000. See \`config.log' for more details" "$LINENO" 5; }
  10001. else
  10002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10003. /* end confdefs.h. */
  10004. #include <sys/types.h>
  10005. #include <unistd.h>
  10006. int main() { return !(sizeof(gid_t)==sizeof(long));}
  10007. _ACEOF
  10008. if ac_fn_c_try_run "$LINENO"; then :
  10009. # same length as long
  10010. if test "$cross_compiling" = yes; then :
  10011. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10012. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10013. as_fn_error $? "cannot run test program while cross compiling
  10014. See \`config.log' for more details" "$LINENO" 5; }
  10015. else
  10016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10017. /* end confdefs.h. */
  10018. #include <sys/types.h>
  10019. #include <unistd.h>
  10020. int main() { gid_t x=-1; return !(x<0);}
  10021. _ACEOF
  10022. if ac_fn_c_try_run "$LINENO"; then :
  10023. sc_cv_type_gidt_basic="5 /* long */"
  10024. else
  10025. sc_cv_type_gidt_basic="6 /* unsigned long */"
  10026. fi
  10027. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10028. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10029. fi
  10030. else
  10031. # length differs from long, try others
  10032. if test "$cross_compiling" = yes; then :
  10033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10035. as_fn_error $? "cannot run test program while cross compiling
  10036. See \`config.log' for more details" "$LINENO" 5; }
  10037. else
  10038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10039. /* end confdefs.h. */
  10040. #include <sys/types.h>
  10041. #include <unistd.h>
  10042. int main() { return !(sizeof(gid_t)==sizeof(long long));}
  10043. _ACEOF
  10044. if ac_fn_c_try_run "$LINENO"; then :
  10045. # same length as long long
  10046. if test "$cross_compiling" = yes; then :
  10047. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10049. as_fn_error $? "cannot run test program while cross compiling
  10050. See \`config.log' for more details" "$LINENO" 5; }
  10051. else
  10052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10053. /* end confdefs.h. */
  10054. #include <sys/types.h>
  10055. #include <unistd.h>
  10056. int main() { gid_t x=-1; return !(x<0);}
  10057. _ACEOF
  10058. if ac_fn_c_try_run "$LINENO"; then :
  10059. sc_cv_type_gidt_basic="7 /* long long */"
  10060. else
  10061. sc_cv_type_gidt_basic="8 /* unsigned long long */"
  10062. fi
  10063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10064. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10065. fi
  10066. else
  10067. sc_cv_type_gidt_basic="0 /* unknown */"
  10068. fi
  10069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10070. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10071. fi
  10072. fi
  10073. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10074. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10075. fi
  10076. fi
  10077. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10078. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10079. fi
  10080. fi
  10081. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10082. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10083. fi
  10084. fi
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_gidt_basic" >&5
  10086. $as_echo "$sc_cv_type_gidt_basic" >&6; }
  10087. cat >>confdefs.h <<_ACEOF
  10088. #define HAVE_BASIC_GID_T ${sc_cv_type_gidt_basic}
  10089. _ACEOF
  10090. fi
  10091. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of time_t" >&5
  10093. $as_echo_n "checking for equivalent simple type of time_t... " >&6; }
  10094. if ${sc_cv_type_timet_basic+:} false; then :
  10095. $as_echo_n "(cached) " >&6
  10096. else
  10097. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  10098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10099. /* end confdefs.h. */
  10100. #include <time.h>
  10101. int
  10102. main ()
  10103. {
  10104. time_t u; short v; return(&u==&v);
  10105. ;
  10106. return 0;
  10107. }
  10108. _ACEOF
  10109. if ac_fn_c_try_compile "$LINENO"; then :
  10110. sc_cv_type_timet_basic="1 /* short */"
  10111. else
  10112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10113. /* end confdefs.h. */
  10114. #include <time.h>
  10115. int
  10116. main ()
  10117. {
  10118. time_t u; unsigned short v; return(&u==&v);
  10119. ;
  10120. return 0;
  10121. }
  10122. _ACEOF
  10123. if ac_fn_c_try_compile "$LINENO"; then :
  10124. sc_cv_type_timet_basic="2 /* unsigned short */"
  10125. else
  10126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10127. /* end confdefs.h. */
  10128. #include <time.h>
  10129. int
  10130. main ()
  10131. {
  10132. time_t u; int v; return(&u==&v);
  10133. ;
  10134. return 0;
  10135. }
  10136. _ACEOF
  10137. if ac_fn_c_try_compile "$LINENO"; then :
  10138. sc_cv_type_timet_basic="3 /* int */"
  10139. else
  10140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10141. /* end confdefs.h. */
  10142. #include <time.h>
  10143. int
  10144. main ()
  10145. {
  10146. time_t u; unsigned int v; return(&u==&v);
  10147. ;
  10148. return 0;
  10149. }
  10150. _ACEOF
  10151. if ac_fn_c_try_compile "$LINENO"; then :
  10152. sc_cv_type_timet_basic="4 /* unsigned int */"
  10153. else
  10154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10155. /* end confdefs.h. */
  10156. #include <time.h>
  10157. int
  10158. main ()
  10159. {
  10160. time_t u; long v; return(&u==&v);
  10161. ;
  10162. return 0;
  10163. }
  10164. _ACEOF
  10165. if ac_fn_c_try_compile "$LINENO"; then :
  10166. sc_cv_type_timet_basic="5 /* long */"
  10167. else
  10168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10169. /* end confdefs.h. */
  10170. #include <time.h>
  10171. int
  10172. main ()
  10173. {
  10174. time_t u; unsigned long v; return(&u==&v);
  10175. ;
  10176. return 0;
  10177. }
  10178. _ACEOF
  10179. if ac_fn_c_try_compile "$LINENO"; then :
  10180. sc_cv_type_timet_basic="6 /* unsigned long */"
  10181. else
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. #include <time.h>
  10185. int
  10186. main ()
  10187. {
  10188. time_t u; long long v; return(&u==&v);
  10189. ;
  10190. return 0;
  10191. }
  10192. _ACEOF
  10193. if ac_fn_c_try_compile "$LINENO"; then :
  10194. sc_cv_type_timet_basic="7 /* long long */"
  10195. else
  10196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10197. /* end confdefs.h. */
  10198. #include <time.h>
  10199. int
  10200. main ()
  10201. {
  10202. time_t u; unsigned long long v; return(&u==&v);
  10203. ;
  10204. return 0;
  10205. }
  10206. _ACEOF
  10207. if ac_fn_c_try_compile "$LINENO"; then :
  10208. sc_cv_type_timet_basic="8 /* unsigned long long */"
  10209. else
  10210. sc_cv_type_timet_basic="0 /* unknown, taking default */"
  10211. fi
  10212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10213. fi
  10214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10215. fi
  10216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10217. fi
  10218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10219. fi
  10220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10221. fi
  10222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10223. fi
  10224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10225. fi
  10226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10227. CFLAGS="$CFLAGS1"
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_timet_basic" >&5
  10230. $as_echo "$sc_cv_type_timet_basic" >&6; }
  10231. cat >>confdefs.h <<_ACEOF
  10232. #define HAVE_BASIC_TIME_T ${sc_cv_type_timet_basic}
  10233. _ACEOF
  10234. else
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of time_t" >&5
  10236. $as_echo_n "checking for equivalent simple type of time_t... " >&6; }
  10237. if ${sc_cv_type_timet_basic+:} false; then :
  10238. $as_echo_n "(cached) " >&6
  10239. else
  10240. if test "$cross_compiling" = yes; then :
  10241. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10243. as_fn_error $? "cannot run test program while cross compiling
  10244. See \`config.log' for more details" "$LINENO" 5; }
  10245. else
  10246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10247. /* end confdefs.h. */
  10248. #include <time.h>
  10249. int main() { return!(sizeof(time_t)==sizeof(short));}
  10250. _ACEOF
  10251. if ac_fn_c_try_run "$LINENO"; then :
  10252. # same length as short
  10253. if test "$cross_compiling" = yes; then :
  10254. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10255. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10256. as_fn_error $? "cannot run test program while cross compiling
  10257. See \`config.log' for more details" "$LINENO" 5; }
  10258. else
  10259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10260. /* end confdefs.h. */
  10261. #include <time.h>
  10262. int main() { time_t x=-1; return !(x<0);}
  10263. _ACEOF
  10264. if ac_fn_c_try_run "$LINENO"; then :
  10265. sc_cv_type_timet_basic="1 /* short */"
  10266. else
  10267. sc_cv_type_timet_basic="2 /* unsigned short */"
  10268. fi
  10269. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10270. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10271. fi
  10272. else
  10273. # length differs from short, try others
  10274. if test "$cross_compiling" = yes; then :
  10275. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10276. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10277. as_fn_error $? "cannot run test program while cross compiling
  10278. See \`config.log' for more details" "$LINENO" 5; }
  10279. else
  10280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h. */
  10282. #include <time.h>
  10283. int main() { return!(sizeof(time_t)==sizeof(int));}
  10284. _ACEOF
  10285. if ac_fn_c_try_run "$LINENO"; then :
  10286. # same length as int
  10287. if test "$cross_compiling" = yes; then :
  10288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10290. as_fn_error $? "cannot run test program while cross compiling
  10291. See \`config.log' for more details" "$LINENO" 5; }
  10292. else
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. #include <time.h>
  10296. int main() { time_t x=-1; return !(x<0);}
  10297. _ACEOF
  10298. if ac_fn_c_try_run "$LINENO"; then :
  10299. sc_cv_type_timet_basic="3 /* int */"
  10300. else
  10301. sc_cv_type_timet_basic="4 /* unsigned int */"
  10302. fi
  10303. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10304. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10305. fi
  10306. else
  10307. # length differs from int, try others
  10308. if test "$cross_compiling" = yes; then :
  10309. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10310. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10311. as_fn_error $? "cannot run test program while cross compiling
  10312. See \`config.log' for more details" "$LINENO" 5; }
  10313. else
  10314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10315. /* end confdefs.h. */
  10316. #include <time.h>
  10317. int main() { return !(sizeof(time_t)==sizeof(long));}
  10318. _ACEOF
  10319. if ac_fn_c_try_run "$LINENO"; then :
  10320. # same length as long
  10321. if test "$cross_compiling" = yes; then :
  10322. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10324. as_fn_error $? "cannot run test program while cross compiling
  10325. See \`config.log' for more details" "$LINENO" 5; }
  10326. else
  10327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10328. /* end confdefs.h. */
  10329. #include <time.h>
  10330. int main() { time_t x=-1; return !(x<0);}
  10331. _ACEOF
  10332. if ac_fn_c_try_run "$LINENO"; then :
  10333. sc_cv_type_timet_basic="5 /* long */"
  10334. else
  10335. sc_cv_type_timet_basic="6 /* unsigned long */"
  10336. fi
  10337. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10338. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10339. fi
  10340. else
  10341. # length differs from long, try others
  10342. if test "$cross_compiling" = yes; then :
  10343. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10345. as_fn_error $? "cannot run test program while cross compiling
  10346. See \`config.log' for more details" "$LINENO" 5; }
  10347. else
  10348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10349. /* end confdefs.h. */
  10350. #include <time.h>
  10351. int main() { return !(sizeof(time_t)==sizeof(long long));}
  10352. _ACEOF
  10353. if ac_fn_c_try_run "$LINENO"; then :
  10354. # same length as long long
  10355. if test "$cross_compiling" = yes; then :
  10356. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10357. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10358. as_fn_error $? "cannot run test program while cross compiling
  10359. See \`config.log' for more details" "$LINENO" 5; }
  10360. else
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. #include <time.h>
  10364. int main() { time_t x=-1; return !(x<0);}
  10365. _ACEOF
  10366. if ac_fn_c_try_run "$LINENO"; then :
  10367. sc_cv_type_timet_basic="7 /* long long */"
  10368. else
  10369. sc_cv_type_timet_basic="8 /* unsigned long long */"
  10370. fi
  10371. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10372. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10373. fi
  10374. else
  10375. sc_cv_type_timet_basic="0 /* unknown */"
  10376. fi
  10377. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10378. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10379. fi
  10380. fi
  10381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10382. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10383. fi
  10384. fi
  10385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10386. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10387. fi
  10388. fi
  10389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10390. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10391. fi
  10392. fi
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_timet_basic" >&5
  10394. $as_echo "$sc_cv_type_timet_basic" >&6; }
  10395. cat >>confdefs.h <<_ACEOF
  10396. #define HAVE_BASIC_TIME_T ${sc_cv_type_timet_basic}
  10397. _ACEOF
  10398. fi
  10399. # this is questionable, might fail on some systems
  10400. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of socklen_t" >&5
  10402. $as_echo_n "checking for equivalent simple type of socklen_t... " >&6; }
  10403. if ${sc_cv_type_socklent_basic+:} false; then :
  10404. $as_echo_n "(cached) " >&6
  10405. else
  10406. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. #include <sys/types.h>
  10410. #include <sys/socket.h>
  10411. #include <unistd.h>
  10412. int
  10413. main ()
  10414. {
  10415. socklen_t u; short v; return(&u==&v);
  10416. ;
  10417. return 0;
  10418. }
  10419. _ACEOF
  10420. if ac_fn_c_try_compile "$LINENO"; then :
  10421. sc_cv_type_socklent_basic="1 /* short */"
  10422. else
  10423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10424. /* end confdefs.h. */
  10425. #include <sys/types.h>
  10426. #include <sys/socket.h>
  10427. #include <unistd.h>
  10428. int
  10429. main ()
  10430. {
  10431. socklen_t u; unsigned short v; return(&u==&v);
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. if ac_fn_c_try_compile "$LINENO"; then :
  10437. sc_cv_type_socklent_basic="2 /* unsigned short */"
  10438. else
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. #include <sys/types.h>
  10442. #include <sys/socket.h>
  10443. #include <unistd.h>
  10444. int
  10445. main ()
  10446. {
  10447. socklen_t u; int v; return(&u==&v);
  10448. ;
  10449. return 0;
  10450. }
  10451. _ACEOF
  10452. if ac_fn_c_try_compile "$LINENO"; then :
  10453. sc_cv_type_socklent_basic="3 /* int */"
  10454. else
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. #include <sys/types.h>
  10458. #include <sys/socket.h>
  10459. #include <unistd.h>
  10460. int
  10461. main ()
  10462. {
  10463. socklen_t u; unsigned int v; return(&u==&v);
  10464. ;
  10465. return 0;
  10466. }
  10467. _ACEOF
  10468. if ac_fn_c_try_compile "$LINENO"; then :
  10469. sc_cv_type_socklent_basic="4 /* unsigned int */"
  10470. else
  10471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10472. /* end confdefs.h. */
  10473. #include <sys/types.h>
  10474. #include <sys/socket.h>
  10475. #include <unistd.h>
  10476. int
  10477. main ()
  10478. {
  10479. socklen_t u; long v; return(&u==&v);
  10480. ;
  10481. return 0;
  10482. }
  10483. _ACEOF
  10484. if ac_fn_c_try_compile "$LINENO"; then :
  10485. sc_cv_type_socklent_basic="5 /* long */"
  10486. else
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. #include <sys/types.h>
  10490. #include <sys/socket.h>
  10491. #include <unistd.h>
  10492. int
  10493. main ()
  10494. {
  10495. socklen_t u; unsigned long v; return(&u==&v);
  10496. ;
  10497. return 0;
  10498. }
  10499. _ACEOF
  10500. if ac_fn_c_try_compile "$LINENO"; then :
  10501. sc_cv_type_socklent_basic="6 /* unsigned long */"
  10502. else
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. #include <sys/types.h>
  10506. #include <sys/socket.h>
  10507. #include <unistd.h>
  10508. int
  10509. main ()
  10510. {
  10511. socklen_t u; long long v; return(&u==&v);
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. if ac_fn_c_try_compile "$LINENO"; then :
  10517. sc_cv_type_socklent_basic="7 /* long long */"
  10518. else
  10519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10520. /* end confdefs.h. */
  10521. #include <sys/types.h>
  10522. #include <sys/socket.h>
  10523. #include <unistd.h>
  10524. int
  10525. main ()
  10526. {
  10527. socklen_t u; unsigned long long v; return(&u==&v);
  10528. ;
  10529. return 0;
  10530. }
  10531. _ACEOF
  10532. if ac_fn_c_try_compile "$LINENO"; then :
  10533. sc_cv_type_socklent_basic="8 /* unsigned long long */"
  10534. else
  10535. sc_cv_type_socklent_basic="0 /* unknown, taking default */"
  10536. fi
  10537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10538. fi
  10539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10540. fi
  10541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10542. fi
  10543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10544. fi
  10545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10546. fi
  10547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10548. fi
  10549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10550. fi
  10551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10552. CFLAGS="$CFLAGS1"
  10553. fi
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_socklent_basic" >&5
  10555. $as_echo "$sc_cv_type_socklent_basic" >&6; }
  10556. cat >>confdefs.h <<_ACEOF
  10557. #define HAVE_BASIC_SOCKLEN_T ${sc_cv_type_socklent_basic}
  10558. _ACEOF
  10559. else
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of socklen_t" >&5
  10561. $as_echo_n "checking for equivalent simple type of socklen_t... " >&6; }
  10562. if ${sc_cv_type_socklent_basic+:} false; then :
  10563. $as_echo_n "(cached) " >&6
  10564. else
  10565. if test "$cross_compiling" = yes; then :
  10566. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10567. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10568. as_fn_error $? "cannot run test program while cross compiling
  10569. See \`config.log' for more details" "$LINENO" 5; }
  10570. else
  10571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10572. /* end confdefs.h. */
  10573. #include <sys/types.h>
  10574. #include <sys/socket.h>
  10575. #include <unistd.h>
  10576. int main() { return!(sizeof(socklen_t)==sizeof(short));}
  10577. _ACEOF
  10578. if ac_fn_c_try_run "$LINENO"; then :
  10579. # same length as short
  10580. if test "$cross_compiling" = yes; then :
  10581. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10583. as_fn_error $? "cannot run test program while cross compiling
  10584. See \`config.log' for more details" "$LINENO" 5; }
  10585. else
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. #include <sys/types.h>
  10589. #include <sys/socket.h>
  10590. #include <unistd.h>
  10591. int main() { socklen_t x=-1; return !(x<0);}
  10592. _ACEOF
  10593. if ac_fn_c_try_run "$LINENO"; then :
  10594. sc_cv_type_socklent_basic="1 /* short */"
  10595. else
  10596. sc_cv_type_socklent_basic="2 /* unsigned short */"
  10597. fi
  10598. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10599. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10600. fi
  10601. else
  10602. # length differs from short, try others
  10603. if test "$cross_compiling" = yes; then :
  10604. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10605. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10606. as_fn_error $? "cannot run test program while cross compiling
  10607. See \`config.log' for more details" "$LINENO" 5; }
  10608. else
  10609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10610. /* end confdefs.h. */
  10611. #include <sys/types.h>
  10612. #include <sys/socket.h>
  10613. #include <unistd.h>
  10614. int main() { return!(sizeof(socklen_t)==sizeof(int));}
  10615. _ACEOF
  10616. if ac_fn_c_try_run "$LINENO"; then :
  10617. # same length as int
  10618. if test "$cross_compiling" = yes; then :
  10619. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10621. as_fn_error $? "cannot run test program while cross compiling
  10622. See \`config.log' for more details" "$LINENO" 5; }
  10623. else
  10624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10625. /* end confdefs.h. */
  10626. #include <sys/types.h>
  10627. #include <sys/socket.h>
  10628. #include <unistd.h>
  10629. int main() { socklen_t x=-1; return !(x<0);}
  10630. _ACEOF
  10631. if ac_fn_c_try_run "$LINENO"; then :
  10632. sc_cv_type_socklent_basic="3 /* int */"
  10633. else
  10634. sc_cv_type_socklent_basic="4 /* unsigned int */"
  10635. fi
  10636. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10637. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10638. fi
  10639. else
  10640. # length differs from int, try others
  10641. if test "$cross_compiling" = yes; then :
  10642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10644. as_fn_error $? "cannot run test program while cross compiling
  10645. See \`config.log' for more details" "$LINENO" 5; }
  10646. else
  10647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10648. /* end confdefs.h. */
  10649. #include <sys/types.h>
  10650. #include <sys/socket.h>
  10651. #include <unistd.h>
  10652. int main() { return !(sizeof(socklen_t)==sizeof(long));}
  10653. _ACEOF
  10654. if ac_fn_c_try_run "$LINENO"; then :
  10655. # same length as long
  10656. if test "$cross_compiling" = yes; then :
  10657. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10658. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10659. as_fn_error $? "cannot run test program while cross compiling
  10660. See \`config.log' for more details" "$LINENO" 5; }
  10661. else
  10662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10663. /* end confdefs.h. */
  10664. #include <sys/types.h>
  10665. #include <sys/socket.h>
  10666. #include <unistd.h>
  10667. int main() { socklen_t x=-1; return !(x<0);}
  10668. _ACEOF
  10669. if ac_fn_c_try_run "$LINENO"; then :
  10670. sc_cv_type_socklent_basic="5 /* long */"
  10671. else
  10672. sc_cv_type_socklent_basic="6 /* unsigned long */"
  10673. fi
  10674. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10675. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10676. fi
  10677. else
  10678. # length differs from long, try others
  10679. if test "$cross_compiling" = yes; then :
  10680. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10681. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10682. as_fn_error $? "cannot run test program while cross compiling
  10683. See \`config.log' for more details" "$LINENO" 5; }
  10684. else
  10685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10686. /* end confdefs.h. */
  10687. #include <sys/types.h>
  10688. #include <sys/socket.h>
  10689. #include <unistd.h>
  10690. int main() { return !(sizeof(socklen_t)==sizeof(long long));}
  10691. _ACEOF
  10692. if ac_fn_c_try_run "$LINENO"; then :
  10693. # same length as long long
  10694. if test "$cross_compiling" = yes; then :
  10695. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10697. as_fn_error $? "cannot run test program while cross compiling
  10698. See \`config.log' for more details" "$LINENO" 5; }
  10699. else
  10700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10701. /* end confdefs.h. */
  10702. #include <sys/types.h>
  10703. #include <sys/socket.h>
  10704. #include <unistd.h>
  10705. int main() { socklen_t x=-1; return !(x<0);}
  10706. _ACEOF
  10707. if ac_fn_c_try_run "$LINENO"; then :
  10708. sc_cv_type_socklent_basic="7 /* long long */"
  10709. else
  10710. sc_cv_type_socklent_basic="8 /* unsigned long long */"
  10711. fi
  10712. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10713. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10714. fi
  10715. else
  10716. sc_cv_type_socklent_basic="0 /* unknown */"
  10717. fi
  10718. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10719. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10720. fi
  10721. fi
  10722. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10723. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10724. fi
  10725. fi
  10726. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10727. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10728. fi
  10729. fi
  10730. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10731. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10732. fi
  10733. fi
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_socklent_basic" >&5
  10735. $as_echo "$sc_cv_type_socklent_basic" >&6; }
  10736. cat >>confdefs.h <<_ACEOF
  10737. #define HAVE_BASIC_SOCKLEN_T ${sc_cv_type_socklent_basic}
  10738. _ACEOF
  10739. fi
  10740. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of off_t" >&5
  10742. $as_echo_n "checking for equivalent simple type of off_t... " >&6; }
  10743. if ${sc_cv_type_off_basic+:} false; then :
  10744. $as_echo_n "(cached) " >&6
  10745. else
  10746. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  10747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10748. /* end confdefs.h. */
  10749. #include <sys/types.h>
  10750. #include <unistd.h>
  10751. int
  10752. main ()
  10753. {
  10754. off_t u; short v; return(&u==&v);
  10755. ;
  10756. return 0;
  10757. }
  10758. _ACEOF
  10759. if ac_fn_c_try_compile "$LINENO"; then :
  10760. sc_cv_type_off_basic="1 /* short */"
  10761. else
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h. */
  10764. #include <sys/types.h>
  10765. #include <unistd.h>
  10766. int
  10767. main ()
  10768. {
  10769. off_t u; unsigned short v; return(&u==&v);
  10770. ;
  10771. return 0;
  10772. }
  10773. _ACEOF
  10774. if ac_fn_c_try_compile "$LINENO"; then :
  10775. sc_cv_type_off_basic="2 /* unsigned short */"
  10776. else
  10777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10778. /* end confdefs.h. */
  10779. #include <sys/types.h>
  10780. #include <unistd.h>
  10781. int
  10782. main ()
  10783. {
  10784. off_t u; int v; return(&u==&v);
  10785. ;
  10786. return 0;
  10787. }
  10788. _ACEOF
  10789. if ac_fn_c_try_compile "$LINENO"; then :
  10790. sc_cv_type_off_basic="3 /* int */"
  10791. else
  10792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10793. /* end confdefs.h. */
  10794. #include <sys/types.h>
  10795. #include <unistd.h>
  10796. int
  10797. main ()
  10798. {
  10799. off_t u; unsigned int v; return(&u==&v);
  10800. ;
  10801. return 0;
  10802. }
  10803. _ACEOF
  10804. if ac_fn_c_try_compile "$LINENO"; then :
  10805. sc_cv_type_off_basic="4 /* unsigned int */"
  10806. else
  10807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10808. /* end confdefs.h. */
  10809. #include <sys/types.h>
  10810. #include <unistd.h>
  10811. int
  10812. main ()
  10813. {
  10814. off_t u; long v; return(&u==&v);
  10815. ;
  10816. return 0;
  10817. }
  10818. _ACEOF
  10819. if ac_fn_c_try_compile "$LINENO"; then :
  10820. sc_cv_type_off_basic="5 /* long */"
  10821. else
  10822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10823. /* end confdefs.h. */
  10824. #include <sys/types.h>
  10825. #include <unistd.h>
  10826. int
  10827. main ()
  10828. {
  10829. off_t u; unsigned long v; return(&u==&v);
  10830. ;
  10831. return 0;
  10832. }
  10833. _ACEOF
  10834. if ac_fn_c_try_compile "$LINENO"; then :
  10835. sc_cv_type_off_basic="6 /* unsigned long */"
  10836. else
  10837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10838. /* end confdefs.h. */
  10839. #include <sys/types.h>
  10840. #include <unistd.h>
  10841. int
  10842. main ()
  10843. {
  10844. off_t u; long long v; return(&u==&v);
  10845. ;
  10846. return 0;
  10847. }
  10848. _ACEOF
  10849. if ac_fn_c_try_compile "$LINENO"; then :
  10850. sc_cv_type_off_basic="7 /* long long */"
  10851. else
  10852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10853. /* end confdefs.h. */
  10854. #include <sys/types.h>
  10855. #include <unistd.h>
  10856. int
  10857. main ()
  10858. {
  10859. off_t u; unsigned long long v; return(&u==&v);
  10860. ;
  10861. return 0;
  10862. }
  10863. _ACEOF
  10864. if ac_fn_c_try_compile "$LINENO"; then :
  10865. sc_cv_type_off_basic="8 /* unsigned long long */"
  10866. else
  10867. sc_cv_type_off_basic="0 /* unknown, taking default */"
  10868. fi
  10869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10870. fi
  10871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10872. fi
  10873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10874. fi
  10875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10876. fi
  10877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10878. fi
  10879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10880. fi
  10881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10882. fi
  10883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10884. CFLAGS="$CFLAGS1"
  10885. fi
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_off_basic" >&5
  10887. $as_echo "$sc_cv_type_off_basic" >&6; }
  10888. cat >>confdefs.h <<_ACEOF
  10889. #define HAVE_BASIC_OFF_T ${sc_cv_type_off_basic}
  10890. _ACEOF
  10891. else
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of off_t" >&5
  10893. $as_echo_n "checking for equivalent simple type of off_t... " >&6; }
  10894. if ${sc_cv_type_off_basic+:} false; then :
  10895. $as_echo_n "(cached) " >&6
  10896. else
  10897. if test "$cross_compiling" = yes; then :
  10898. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10900. as_fn_error $? "cannot run test program while cross compiling
  10901. See \`config.log' for more details" "$LINENO" 5; }
  10902. else
  10903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10904. /* end confdefs.h. */
  10905. #include <sys/types.h>
  10906. #include <unistd.h>
  10907. int main() { return!(sizeof(off_t)==sizeof(short));}
  10908. _ACEOF
  10909. if ac_fn_c_try_run "$LINENO"; then :
  10910. # same length as short
  10911. if test "$cross_compiling" = yes; then :
  10912. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10913. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10914. as_fn_error $? "cannot run test program while cross compiling
  10915. See \`config.log' for more details" "$LINENO" 5; }
  10916. else
  10917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10918. /* end confdefs.h. */
  10919. #include <sys/types.h>
  10920. #include <unistd.h>
  10921. int main() { off_t x=-1; return !(x<0);}
  10922. _ACEOF
  10923. if ac_fn_c_try_run "$LINENO"; then :
  10924. sc_cv_type_off_basic="1 /* short */"
  10925. else
  10926. sc_cv_type_off_basic="2 /* unsigned short */"
  10927. fi
  10928. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10929. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10930. fi
  10931. else
  10932. # length differs from short, try others
  10933. if test "$cross_compiling" = yes; then :
  10934. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10935. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10936. as_fn_error $? "cannot run test program while cross compiling
  10937. See \`config.log' for more details" "$LINENO" 5; }
  10938. else
  10939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10940. /* end confdefs.h. */
  10941. #include <sys/types.h>
  10942. #include <unistd.h>
  10943. int main() { return!(sizeof(off_t)==sizeof(int));}
  10944. _ACEOF
  10945. if ac_fn_c_try_run "$LINENO"; then :
  10946. # same length as int
  10947. if test "$cross_compiling" = yes; then :
  10948. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10950. as_fn_error $? "cannot run test program while cross compiling
  10951. See \`config.log' for more details" "$LINENO" 5; }
  10952. else
  10953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10954. /* end confdefs.h. */
  10955. #include <sys/types.h>
  10956. #include <unistd.h>
  10957. int main() { off_t x=-1; return !(x<0);}
  10958. _ACEOF
  10959. if ac_fn_c_try_run "$LINENO"; then :
  10960. sc_cv_type_off_basic="3 /* int */"
  10961. else
  10962. sc_cv_type_off_basic="4 /* unsigned int */"
  10963. fi
  10964. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10965. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10966. fi
  10967. else
  10968. # length differs from int, try others
  10969. if test "$cross_compiling" = yes; then :
  10970. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10971. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10972. as_fn_error $? "cannot run test program while cross compiling
  10973. See \`config.log' for more details" "$LINENO" 5; }
  10974. else
  10975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10976. /* end confdefs.h. */
  10977. #include <sys/types.h>
  10978. #include <unistd.h>
  10979. int main() { return !(sizeof(off_t)==sizeof(long));}
  10980. _ACEOF
  10981. if ac_fn_c_try_run "$LINENO"; then :
  10982. # same length as long
  10983. if test "$cross_compiling" = yes; then :
  10984. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10985. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10986. as_fn_error $? "cannot run test program while cross compiling
  10987. See \`config.log' for more details" "$LINENO" 5; }
  10988. else
  10989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10990. /* end confdefs.h. */
  10991. #include <sys/types.h>
  10992. #include <unistd.h>
  10993. int main() { off_t x=-1; return !(x<0);}
  10994. _ACEOF
  10995. if ac_fn_c_try_run "$LINENO"; then :
  10996. sc_cv_type_off_basic="5 /* long */"
  10997. else
  10998. sc_cv_type_off_basic="6 /* unsigned long */"
  10999. fi
  11000. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11001. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11002. fi
  11003. else
  11004. # length differs from long, try others
  11005. if test "$cross_compiling" = yes; then :
  11006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11008. as_fn_error $? "cannot run test program while cross compiling
  11009. See \`config.log' for more details" "$LINENO" 5; }
  11010. else
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. #include <sys/types.h>
  11014. #include <unistd.h>
  11015. int main() { return !(sizeof(off_t)==sizeof(long long));}
  11016. _ACEOF
  11017. if ac_fn_c_try_run "$LINENO"; then :
  11018. # same length as long long
  11019. if test "$cross_compiling" = yes; then :
  11020. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11022. as_fn_error $? "cannot run test program while cross compiling
  11023. See \`config.log' for more details" "$LINENO" 5; }
  11024. else
  11025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11026. /* end confdefs.h. */
  11027. #include <sys/types.h>
  11028. #include <unistd.h>
  11029. int main() { off_t x=-1; return !(x<0);}
  11030. _ACEOF
  11031. if ac_fn_c_try_run "$LINENO"; then :
  11032. sc_cv_type_off_basic="7 /* long long */"
  11033. else
  11034. sc_cv_type_off_basic="8 /* unsigned long long */"
  11035. fi
  11036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11037. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11038. fi
  11039. else
  11040. sc_cv_type_off_basic="0 /* unknown */"
  11041. fi
  11042. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11043. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11044. fi
  11045. fi
  11046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11048. fi
  11049. fi
  11050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11051. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11052. fi
  11053. fi
  11054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11056. fi
  11057. fi
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_off_basic" >&5
  11059. $as_echo "$sc_cv_type_off_basic" >&6; }
  11060. cat >>confdefs.h <<_ACEOF
  11061. #define HAVE_BASIC_OFF_T ${sc_cv_type_off_basic}
  11062. _ACEOF
  11063. fi
  11064. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of off64_t" >&5
  11066. $as_echo_n "checking for equivalent simple type of off64_t... " >&6; }
  11067. if ${sc_cv_type_off64_basic+:} false; then :
  11068. $as_echo_n "(cached) " >&6
  11069. else
  11070. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  11071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11072. /* end confdefs.h. */
  11073. #include <sys/types.h>
  11074. #include <unistd.h>
  11075. int
  11076. main ()
  11077. {
  11078. off64_t u; short v; return(&u==&v);
  11079. ;
  11080. return 0;
  11081. }
  11082. _ACEOF
  11083. if ac_fn_c_try_compile "$LINENO"; then :
  11084. sc_cv_type_off64_basic="1 /* short */"
  11085. else
  11086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11087. /* end confdefs.h. */
  11088. #include <sys/types.h>
  11089. #include <unistd.h>
  11090. int
  11091. main ()
  11092. {
  11093. off64_t u; unsigned short v; return(&u==&v);
  11094. ;
  11095. return 0;
  11096. }
  11097. _ACEOF
  11098. if ac_fn_c_try_compile "$LINENO"; then :
  11099. sc_cv_type_off64_basic="2 /* unsigned short */"
  11100. else
  11101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11102. /* end confdefs.h. */
  11103. #include <sys/types.h>
  11104. #include <unistd.h>
  11105. int
  11106. main ()
  11107. {
  11108. off64_t u; int v; return(&u==&v);
  11109. ;
  11110. return 0;
  11111. }
  11112. _ACEOF
  11113. if ac_fn_c_try_compile "$LINENO"; then :
  11114. sc_cv_type_off64_basic="3 /* int */"
  11115. else
  11116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11117. /* end confdefs.h. */
  11118. #include <sys/types.h>
  11119. #include <unistd.h>
  11120. int
  11121. main ()
  11122. {
  11123. off64_t u; unsigned int v; return(&u==&v);
  11124. ;
  11125. return 0;
  11126. }
  11127. _ACEOF
  11128. if ac_fn_c_try_compile "$LINENO"; then :
  11129. sc_cv_type_off64_basic="4 /* unsigned int */"
  11130. else
  11131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11132. /* end confdefs.h. */
  11133. #include <sys/types.h>
  11134. #include <unistd.h>
  11135. int
  11136. main ()
  11137. {
  11138. off64_t u; long v; return(&u==&v);
  11139. ;
  11140. return 0;
  11141. }
  11142. _ACEOF
  11143. if ac_fn_c_try_compile "$LINENO"; then :
  11144. sc_cv_type_off64_basic="5 /* long */"
  11145. else
  11146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11147. /* end confdefs.h. */
  11148. #include <sys/types.h>
  11149. #include <unistd.h>
  11150. int
  11151. main ()
  11152. {
  11153. off64_t u; unsigned long v; return(&u==&v);
  11154. ;
  11155. return 0;
  11156. }
  11157. _ACEOF
  11158. if ac_fn_c_try_compile "$LINENO"; then :
  11159. sc_cv_type_off64_basic="6 /* unsigned long */"
  11160. else
  11161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11162. /* end confdefs.h. */
  11163. #include <sys/types.h>
  11164. #include <unistd.h>
  11165. int
  11166. main ()
  11167. {
  11168. off64_t u; long long v; return(&u==&v);
  11169. ;
  11170. return 0;
  11171. }
  11172. _ACEOF
  11173. if ac_fn_c_try_compile "$LINENO"; then :
  11174. sc_cv_type_off64_basic="7 /* long long */"
  11175. else
  11176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11177. /* end confdefs.h. */
  11178. #include <sys/types.h>
  11179. #include <unistd.h>
  11180. int
  11181. main ()
  11182. {
  11183. off64_t u; unsigned long long v; return(&u==&v);
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. if ac_fn_c_try_compile "$LINENO"; then :
  11189. sc_cv_type_off64_basic="8 /* unsigned long long */"
  11190. else
  11191. sc_cv_type_off64_basic="0 /* unknown, taking default */"
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11194. fi
  11195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11196. fi
  11197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11198. fi
  11199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11200. fi
  11201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11202. fi
  11203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11206. fi
  11207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11208. CFLAGS="$CFLAGS1"
  11209. fi
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_off64_basic" >&5
  11211. $as_echo "$sc_cv_type_off64_basic" >&6; }
  11212. cat >>confdefs.h <<_ACEOF
  11213. #define HAVE_BASIC_OFF64_T ${sc_cv_type_off64_basic}
  11214. _ACEOF
  11215. else
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of off64_t" >&5
  11217. $as_echo_n "checking for equivalent simple type of off64_t... " >&6; }
  11218. if ${sc_cv_type_off64_basic+:} false; then :
  11219. $as_echo_n "(cached) " >&6
  11220. else
  11221. if test "$cross_compiling" = yes; then :
  11222. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11223. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11224. as_fn_error $? "cannot run test program while cross compiling
  11225. See \`config.log' for more details" "$LINENO" 5; }
  11226. else
  11227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11228. /* end confdefs.h. */
  11229. #include <sys/types.h>
  11230. #include <unistd.h>
  11231. int main() { return!(sizeof(off64_t)==sizeof(short));}
  11232. _ACEOF
  11233. if ac_fn_c_try_run "$LINENO"; then :
  11234. # same length as short
  11235. if test "$cross_compiling" = yes; then :
  11236. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11237. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11238. as_fn_error $? "cannot run test program while cross compiling
  11239. See \`config.log' for more details" "$LINENO" 5; }
  11240. else
  11241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11242. /* end confdefs.h. */
  11243. #include <sys/types.h>
  11244. #include <unistd.h>
  11245. int main() { off64_t x=-1; return !(x<0);}
  11246. _ACEOF
  11247. if ac_fn_c_try_run "$LINENO"; then :
  11248. sc_cv_type_off64_basic="1 /* short */"
  11249. else
  11250. sc_cv_type_off64_basic="2 /* unsigned short */"
  11251. fi
  11252. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11253. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11254. fi
  11255. else
  11256. # length differs from short, try others
  11257. if test "$cross_compiling" = yes; then :
  11258. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11259. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11260. as_fn_error $? "cannot run test program while cross compiling
  11261. See \`config.log' for more details" "$LINENO" 5; }
  11262. else
  11263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11264. /* end confdefs.h. */
  11265. #include <sys/types.h>
  11266. #include <unistd.h>
  11267. int main() { return!(sizeof(off64_t)==sizeof(int));}
  11268. _ACEOF
  11269. if ac_fn_c_try_run "$LINENO"; then :
  11270. # same length as int
  11271. if test "$cross_compiling" = yes; then :
  11272. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11274. as_fn_error $? "cannot run test program while cross compiling
  11275. See \`config.log' for more details" "$LINENO" 5; }
  11276. else
  11277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11278. /* end confdefs.h. */
  11279. #include <sys/types.h>
  11280. #include <unistd.h>
  11281. int main() { off64_t x=-1; return !(x<0);}
  11282. _ACEOF
  11283. if ac_fn_c_try_run "$LINENO"; then :
  11284. sc_cv_type_off64_basic="3 /* int */"
  11285. else
  11286. sc_cv_type_off64_basic="4 /* unsigned int */"
  11287. fi
  11288. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11289. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11290. fi
  11291. else
  11292. # length differs from int, try others
  11293. if test "$cross_compiling" = yes; then :
  11294. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11295. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11296. as_fn_error $? "cannot run test program while cross compiling
  11297. See \`config.log' for more details" "$LINENO" 5; }
  11298. else
  11299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11300. /* end confdefs.h. */
  11301. #include <sys/types.h>
  11302. #include <unistd.h>
  11303. int main() { return !(sizeof(off64_t)==sizeof(long));}
  11304. _ACEOF
  11305. if ac_fn_c_try_run "$LINENO"; then :
  11306. # same length as long
  11307. if test "$cross_compiling" = yes; then :
  11308. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11309. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11310. as_fn_error $? "cannot run test program while cross compiling
  11311. See \`config.log' for more details" "$LINENO" 5; }
  11312. else
  11313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11314. /* end confdefs.h. */
  11315. #include <sys/types.h>
  11316. #include <unistd.h>
  11317. int main() { off64_t x=-1; return !(x<0);}
  11318. _ACEOF
  11319. if ac_fn_c_try_run "$LINENO"; then :
  11320. sc_cv_type_off64_basic="5 /* long */"
  11321. else
  11322. sc_cv_type_off64_basic="6 /* unsigned long */"
  11323. fi
  11324. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11325. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11326. fi
  11327. else
  11328. # length differs from long, try others
  11329. if test "$cross_compiling" = yes; then :
  11330. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11331. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11332. as_fn_error $? "cannot run test program while cross compiling
  11333. See \`config.log' for more details" "$LINENO" 5; }
  11334. else
  11335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11336. /* end confdefs.h. */
  11337. #include <sys/types.h>
  11338. #include <unistd.h>
  11339. int main() { return !(sizeof(off64_t)==sizeof(long long));}
  11340. _ACEOF
  11341. if ac_fn_c_try_run "$LINENO"; then :
  11342. # same length as long long
  11343. if test "$cross_compiling" = yes; then :
  11344. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11346. as_fn_error $? "cannot run test program while cross compiling
  11347. See \`config.log' for more details" "$LINENO" 5; }
  11348. else
  11349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11350. /* end confdefs.h. */
  11351. #include <sys/types.h>
  11352. #include <unistd.h>
  11353. int main() { off64_t x=-1; return !(x<0);}
  11354. _ACEOF
  11355. if ac_fn_c_try_run "$LINENO"; then :
  11356. sc_cv_type_off64_basic="7 /* long long */"
  11357. else
  11358. sc_cv_type_off64_basic="8 /* unsigned long long */"
  11359. fi
  11360. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11361. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11362. fi
  11363. else
  11364. sc_cv_type_off64_basic="0 /* unknown */"
  11365. fi
  11366. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11367. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11368. fi
  11369. fi
  11370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11372. fi
  11373. fi
  11374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11376. fi
  11377. fi
  11378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11379. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11380. fi
  11381. fi
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_off64_basic" >&5
  11383. $as_echo "$sc_cv_type_off64_basic" >&6; }
  11384. cat >>confdefs.h <<_ACEOF
  11385. #define HAVE_BASIC_OFF64_T ${sc_cv_type_off64_basic}
  11386. _ACEOF
  11387. fi
  11388. # oh god, __dev_t in Linux 2.4 is struct{int[2];}, not handled here yet.
  11389. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of dev_t" >&5
  11391. $as_echo_n "checking for equivalent simple type of dev_t... " >&6; }
  11392. if ${sc_cv_type_dev_basic+:} false; then :
  11393. $as_echo_n "(cached) " >&6
  11394. else
  11395. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  11396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11397. /* end confdefs.h. */
  11398. #include <sys/stat.h>
  11399. int
  11400. main ()
  11401. {
  11402. dev_t u; short v; return(&u==&v);
  11403. ;
  11404. return 0;
  11405. }
  11406. _ACEOF
  11407. if ac_fn_c_try_compile "$LINENO"; then :
  11408. sc_cv_type_dev_basic="1 /* short */"
  11409. else
  11410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11411. /* end confdefs.h. */
  11412. #include <sys/stat.h>
  11413. int
  11414. main ()
  11415. {
  11416. dev_t u; unsigned short v; return(&u==&v);
  11417. ;
  11418. return 0;
  11419. }
  11420. _ACEOF
  11421. if ac_fn_c_try_compile "$LINENO"; then :
  11422. sc_cv_type_dev_basic="2 /* unsigned short */"
  11423. else
  11424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11425. /* end confdefs.h. */
  11426. #include <sys/stat.h>
  11427. int
  11428. main ()
  11429. {
  11430. dev_t u; int v; return(&u==&v);
  11431. ;
  11432. return 0;
  11433. }
  11434. _ACEOF
  11435. if ac_fn_c_try_compile "$LINENO"; then :
  11436. sc_cv_type_dev_basic="3 /* int */"
  11437. else
  11438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11439. /* end confdefs.h. */
  11440. #include <sys/stat.h>
  11441. int
  11442. main ()
  11443. {
  11444. dev_t u; unsigned int v; return(&u==&v);
  11445. ;
  11446. return 0;
  11447. }
  11448. _ACEOF
  11449. if ac_fn_c_try_compile "$LINENO"; then :
  11450. sc_cv_type_dev_basic="4 /* unsigned int */"
  11451. else
  11452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11453. /* end confdefs.h. */
  11454. #include <sys/stat.h>
  11455. int
  11456. main ()
  11457. {
  11458. dev_t u; long v; return(&u==&v);
  11459. ;
  11460. return 0;
  11461. }
  11462. _ACEOF
  11463. if ac_fn_c_try_compile "$LINENO"; then :
  11464. sc_cv_type_dev_basic="5 /* long */"
  11465. else
  11466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11467. /* end confdefs.h. */
  11468. #include <sys/stat.h>
  11469. int
  11470. main ()
  11471. {
  11472. dev_t u; unsigned long v; return(&u==&v);
  11473. ;
  11474. return 0;
  11475. }
  11476. _ACEOF
  11477. if ac_fn_c_try_compile "$LINENO"; then :
  11478. sc_cv_type_dev_basic="6 /* unsigned long */"
  11479. else
  11480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11481. /* end confdefs.h. */
  11482. #include <sys/stat.h>
  11483. int
  11484. main ()
  11485. {
  11486. dev_t u; long long v; return(&u==&v);
  11487. ;
  11488. return 0;
  11489. }
  11490. _ACEOF
  11491. if ac_fn_c_try_compile "$LINENO"; then :
  11492. sc_cv_type_dev_basic="7 /* long long */"
  11493. else
  11494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11495. /* end confdefs.h. */
  11496. #include <sys/stat.h>
  11497. int
  11498. main ()
  11499. {
  11500. dev_t u; unsigned long long v; return(&u==&v);
  11501. ;
  11502. return 0;
  11503. }
  11504. _ACEOF
  11505. if ac_fn_c_try_compile "$LINENO"; then :
  11506. sc_cv_type_dev_basic="8 /* unsigned long long */"
  11507. else
  11508. sc_cv_type_dev_basic="0 /* unknown, taking default */"
  11509. fi
  11510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11511. fi
  11512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11513. fi
  11514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11515. fi
  11516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11517. fi
  11518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11519. fi
  11520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11521. fi
  11522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11523. fi
  11524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11525. CFLAGS="$CFLAGS1"
  11526. fi
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_dev_basic" >&5
  11528. $as_echo "$sc_cv_type_dev_basic" >&6; }
  11529. cat >>confdefs.h <<_ACEOF
  11530. #define HAVE_BASIC_DEV_T ${sc_cv_type_dev_basic}
  11531. _ACEOF
  11532. else
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of dev_t" >&5
  11534. $as_echo_n "checking for equivalent simple type of dev_t... " >&6; }
  11535. if ${sc_cv_type_dev_basic+:} false; then :
  11536. $as_echo_n "(cached) " >&6
  11537. else
  11538. if test "$cross_compiling" = yes; then :
  11539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11541. as_fn_error $? "cannot run test program while cross compiling
  11542. See \`config.log' for more details" "$LINENO" 5; }
  11543. else
  11544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11545. /* end confdefs.h. */
  11546. #include <sys/stat.h>
  11547. int main() { return!(sizeof(dev_t)==sizeof(short));}
  11548. _ACEOF
  11549. if ac_fn_c_try_run "$LINENO"; then :
  11550. # same length as short
  11551. if test "$cross_compiling" = yes; then :
  11552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11554. as_fn_error $? "cannot run test program while cross compiling
  11555. See \`config.log' for more details" "$LINENO" 5; }
  11556. else
  11557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11558. /* end confdefs.h. */
  11559. #include <sys/stat.h>
  11560. int main() { dev_t x=-1; return !(x<0);}
  11561. _ACEOF
  11562. if ac_fn_c_try_run "$LINENO"; then :
  11563. sc_cv_type_dev_basic="1 /* short */"
  11564. else
  11565. sc_cv_type_dev_basic="2 /* unsigned short */"
  11566. fi
  11567. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11568. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11569. fi
  11570. else
  11571. # length differs from short, try others
  11572. if test "$cross_compiling" = yes; then :
  11573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11575. as_fn_error $? "cannot run test program while cross compiling
  11576. See \`config.log' for more details" "$LINENO" 5; }
  11577. else
  11578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11579. /* end confdefs.h. */
  11580. #include <sys/stat.h>
  11581. int main() { return!(sizeof(dev_t)==sizeof(int));}
  11582. _ACEOF
  11583. if ac_fn_c_try_run "$LINENO"; then :
  11584. # same length as int
  11585. if test "$cross_compiling" = yes; then :
  11586. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11588. as_fn_error $? "cannot run test program while cross compiling
  11589. See \`config.log' for more details" "$LINENO" 5; }
  11590. else
  11591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11592. /* end confdefs.h. */
  11593. #include <sys/stat.h>
  11594. int main() { dev_t x=-1; return !(x<0);}
  11595. _ACEOF
  11596. if ac_fn_c_try_run "$LINENO"; then :
  11597. sc_cv_type_dev_basic="3 /* int */"
  11598. else
  11599. sc_cv_type_dev_basic="4 /* unsigned int */"
  11600. fi
  11601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11602. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11603. fi
  11604. else
  11605. # length differs from int, try others
  11606. if test "$cross_compiling" = yes; then :
  11607. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11608. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11609. as_fn_error $? "cannot run test program while cross compiling
  11610. See \`config.log' for more details" "$LINENO" 5; }
  11611. else
  11612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11613. /* end confdefs.h. */
  11614. #include <sys/stat.h>
  11615. int main() { return !(sizeof(dev_t)==sizeof(long));}
  11616. _ACEOF
  11617. if ac_fn_c_try_run "$LINENO"; then :
  11618. # same length as long
  11619. if test "$cross_compiling" = yes; then :
  11620. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11621. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11622. as_fn_error $? "cannot run test program while cross compiling
  11623. See \`config.log' for more details" "$LINENO" 5; }
  11624. else
  11625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11626. /* end confdefs.h. */
  11627. #include <sys/stat.h>
  11628. int main() { dev_t x=-1; return !(x<0);}
  11629. _ACEOF
  11630. if ac_fn_c_try_run "$LINENO"; then :
  11631. sc_cv_type_dev_basic="5 /* long */"
  11632. else
  11633. sc_cv_type_dev_basic="6 /* unsigned long */"
  11634. fi
  11635. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11636. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11637. fi
  11638. else
  11639. # length differs from long, try others
  11640. if test "$cross_compiling" = yes; then :
  11641. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11643. as_fn_error $? "cannot run test program while cross compiling
  11644. See \`config.log' for more details" "$LINENO" 5; }
  11645. else
  11646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11647. /* end confdefs.h. */
  11648. #include <sys/stat.h>
  11649. int main() { return !(sizeof(dev_t)==sizeof(long long));}
  11650. _ACEOF
  11651. if ac_fn_c_try_run "$LINENO"; then :
  11652. # same length as long long
  11653. if test "$cross_compiling" = yes; then :
  11654. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11655. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11656. as_fn_error $? "cannot run test program while cross compiling
  11657. See \`config.log' for more details" "$LINENO" 5; }
  11658. else
  11659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11660. /* end confdefs.h. */
  11661. #include <sys/stat.h>
  11662. int main() { dev_t x=-1; return !(x<0);}
  11663. _ACEOF
  11664. if ac_fn_c_try_run "$LINENO"; then :
  11665. sc_cv_type_dev_basic="7 /* long long */"
  11666. else
  11667. sc_cv_type_dev_basic="8 /* unsigned long long */"
  11668. fi
  11669. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11670. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11671. fi
  11672. else
  11673. sc_cv_type_dev_basic="0 /* unknown */"
  11674. fi
  11675. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11676. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11677. fi
  11678. fi
  11679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11681. fi
  11682. fi
  11683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11685. fi
  11686. fi
  11687. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11688. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11689. fi
  11690. fi
  11691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_dev_basic" >&5
  11692. $as_echo "$sc_cv_type_dev_basic" >&6; }
  11693. cat >>confdefs.h <<_ACEOF
  11694. #define HAVE_BASIC_DEV_T ${sc_cv_type_dev_basic}
  11695. _ACEOF
  11696. fi
  11697. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of speed_t" >&5
  11699. $as_echo_n "checking for equivalent simple type of speed_t... " >&6; }
  11700. if ${sc_cv_type_spee_t+:} false; then :
  11701. $as_echo_n "(cached) " >&6
  11702. else
  11703. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  11704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11705. /* end confdefs.h. */
  11706. #include <unistd.h>
  11707. #include <termios.h>
  11708. int
  11709. main ()
  11710. {
  11711. speed_t u; short v; return(&u==&v);
  11712. ;
  11713. return 0;
  11714. }
  11715. _ACEOF
  11716. if ac_fn_c_try_compile "$LINENO"; then :
  11717. sc_cv_type_spee_t="1 /* short */"
  11718. else
  11719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11720. /* end confdefs.h. */
  11721. #include <unistd.h>
  11722. #include <termios.h>
  11723. int
  11724. main ()
  11725. {
  11726. speed_t u; unsigned short v; return(&u==&v);
  11727. ;
  11728. return 0;
  11729. }
  11730. _ACEOF
  11731. if ac_fn_c_try_compile "$LINENO"; then :
  11732. sc_cv_type_spee_t="2 /* unsigned short */"
  11733. else
  11734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11735. /* end confdefs.h. */
  11736. #include <unistd.h>
  11737. #include <termios.h>
  11738. int
  11739. main ()
  11740. {
  11741. speed_t u; int v; return(&u==&v);
  11742. ;
  11743. return 0;
  11744. }
  11745. _ACEOF
  11746. if ac_fn_c_try_compile "$LINENO"; then :
  11747. sc_cv_type_spee_t="3 /* int */"
  11748. else
  11749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11750. /* end confdefs.h. */
  11751. #include <unistd.h>
  11752. #include <termios.h>
  11753. int
  11754. main ()
  11755. {
  11756. speed_t u; unsigned int v; return(&u==&v);
  11757. ;
  11758. return 0;
  11759. }
  11760. _ACEOF
  11761. if ac_fn_c_try_compile "$LINENO"; then :
  11762. sc_cv_type_spee_t="4 /* unsigned int */"
  11763. else
  11764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11765. /* end confdefs.h. */
  11766. #include <unistd.h>
  11767. #include <termios.h>
  11768. int
  11769. main ()
  11770. {
  11771. speed_t u; long v; return(&u==&v);
  11772. ;
  11773. return 0;
  11774. }
  11775. _ACEOF
  11776. if ac_fn_c_try_compile "$LINENO"; then :
  11777. sc_cv_type_spee_t="5 /* long */"
  11778. else
  11779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11780. /* end confdefs.h. */
  11781. #include <unistd.h>
  11782. #include <termios.h>
  11783. int
  11784. main ()
  11785. {
  11786. speed_t u; unsigned long v; return(&u==&v);
  11787. ;
  11788. return 0;
  11789. }
  11790. _ACEOF
  11791. if ac_fn_c_try_compile "$LINENO"; then :
  11792. sc_cv_type_spee_t="6 /* unsigned long */"
  11793. else
  11794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11795. /* end confdefs.h. */
  11796. #include <unistd.h>
  11797. #include <termios.h>
  11798. int
  11799. main ()
  11800. {
  11801. speed_t u; long long v; return(&u==&v);
  11802. ;
  11803. return 0;
  11804. }
  11805. _ACEOF
  11806. if ac_fn_c_try_compile "$LINENO"; then :
  11807. sc_cv_type_spee_t="7 /* long long */"
  11808. else
  11809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11810. /* end confdefs.h. */
  11811. #include <unistd.h>
  11812. #include <termios.h>
  11813. int
  11814. main ()
  11815. {
  11816. speed_t u; unsigned long long v; return(&u==&v);
  11817. ;
  11818. return 0;
  11819. }
  11820. _ACEOF
  11821. if ac_fn_c_try_compile "$LINENO"; then :
  11822. sc_cv_type_spee_t="8 /* unsigned long long */"
  11823. else
  11824. sc_cv_type_spee_t="0 /* unknown, taking default */"
  11825. fi
  11826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11827. fi
  11828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11829. fi
  11830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11831. fi
  11832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11833. fi
  11834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11835. fi
  11836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11837. fi
  11838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11839. fi
  11840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11841. CFLAGS="$CFLAGS1"
  11842. fi
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_spee_t" >&5
  11844. $as_echo "$sc_cv_type_spee_t" >&6; }
  11845. cat >>confdefs.h <<_ACEOF
  11846. #define HAVE_BASIC_SPEED_T ${sc_cv_type_spee_t}
  11847. _ACEOF
  11848. else
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for equivalent simple type of speed_t" >&5
  11850. $as_echo_n "checking for equivalent simple type of speed_t... " >&6; }
  11851. if ${sc_cv_type_spee_t+:} false; then :
  11852. $as_echo_n "(cached) " >&6
  11853. else
  11854. if test "$cross_compiling" = yes; then :
  11855. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11856. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11857. as_fn_error $? "cannot run test program while cross compiling
  11858. See \`config.log' for more details" "$LINENO" 5; }
  11859. else
  11860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11861. /* end confdefs.h. */
  11862. #include <unistd.h>
  11863. #include <termios.h>
  11864. int main() { return!(sizeof(speed_t)==sizeof(short));}
  11865. _ACEOF
  11866. if ac_fn_c_try_run "$LINENO"; then :
  11867. # same length as short
  11868. if test "$cross_compiling" = yes; then :
  11869. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11870. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11871. as_fn_error $? "cannot run test program while cross compiling
  11872. See \`config.log' for more details" "$LINENO" 5; }
  11873. else
  11874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11875. /* end confdefs.h. */
  11876. #include <unistd.h>
  11877. #include <termios.h>
  11878. int main() { speed_t x=-1; return !(x<0);}
  11879. _ACEOF
  11880. if ac_fn_c_try_run "$LINENO"; then :
  11881. sc_cv_type_spee_t="1 /* short */"
  11882. else
  11883. sc_cv_type_spee_t="2 /* unsigned short */"
  11884. fi
  11885. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11886. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11887. fi
  11888. else
  11889. # length differs from short, try others
  11890. if test "$cross_compiling" = yes; then :
  11891. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11892. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11893. as_fn_error $? "cannot run test program while cross compiling
  11894. See \`config.log' for more details" "$LINENO" 5; }
  11895. else
  11896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11897. /* end confdefs.h. */
  11898. #include <unistd.h>
  11899. #include <termios.h>
  11900. int main() { return!(sizeof(speed_t)==sizeof(int));}
  11901. _ACEOF
  11902. if ac_fn_c_try_run "$LINENO"; then :
  11903. # same length as int
  11904. if test "$cross_compiling" = yes; then :
  11905. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11906. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11907. as_fn_error $? "cannot run test program while cross compiling
  11908. See \`config.log' for more details" "$LINENO" 5; }
  11909. else
  11910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11911. /* end confdefs.h. */
  11912. #include <unistd.h>
  11913. #include <termios.h>
  11914. int main() { speed_t x=-1; return !(x<0);}
  11915. _ACEOF
  11916. if ac_fn_c_try_run "$LINENO"; then :
  11917. sc_cv_type_spee_t="3 /* int */"
  11918. else
  11919. sc_cv_type_spee_t="4 /* unsigned int */"
  11920. fi
  11921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11922. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11923. fi
  11924. else
  11925. # length differs from int, try others
  11926. if test "$cross_compiling" = yes; then :
  11927. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11929. as_fn_error $? "cannot run test program while cross compiling
  11930. See \`config.log' for more details" "$LINENO" 5; }
  11931. else
  11932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11933. /* end confdefs.h. */
  11934. #include <unistd.h>
  11935. #include <termios.h>
  11936. int main() { return !(sizeof(speed_t)==sizeof(long));}
  11937. _ACEOF
  11938. if ac_fn_c_try_run "$LINENO"; then :
  11939. # same length as long
  11940. if test "$cross_compiling" = yes; then :
  11941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11943. as_fn_error $? "cannot run test program while cross compiling
  11944. See \`config.log' for more details" "$LINENO" 5; }
  11945. else
  11946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11947. /* end confdefs.h. */
  11948. #include <unistd.h>
  11949. #include <termios.h>
  11950. int main() { speed_t x=-1; return !(x<0);}
  11951. _ACEOF
  11952. if ac_fn_c_try_run "$LINENO"; then :
  11953. sc_cv_type_spee_t="5 /* long */"
  11954. else
  11955. sc_cv_type_spee_t="6 /* unsigned long */"
  11956. fi
  11957. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11958. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11959. fi
  11960. else
  11961. # length differs from long, try others
  11962. if test "$cross_compiling" = yes; then :
  11963. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11964. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11965. as_fn_error $? "cannot run test program while cross compiling
  11966. See \`config.log' for more details" "$LINENO" 5; }
  11967. else
  11968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11969. /* end confdefs.h. */
  11970. #include <unistd.h>
  11971. #include <termios.h>
  11972. int main() { return !(sizeof(speed_t)==sizeof(long long));}
  11973. _ACEOF
  11974. if ac_fn_c_try_run "$LINENO"; then :
  11975. # same length as long long
  11976. if test "$cross_compiling" = yes; then :
  11977. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11979. as_fn_error $? "cannot run test program while cross compiling
  11980. See \`config.log' for more details" "$LINENO" 5; }
  11981. else
  11982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11983. /* end confdefs.h. */
  11984. #include <unistd.h>
  11985. #include <termios.h>
  11986. int main() { speed_t x=-1; return !(x<0);}
  11987. _ACEOF
  11988. if ac_fn_c_try_run "$LINENO"; then :
  11989. sc_cv_type_spee_t="7 /* long long */"
  11990. else
  11991. sc_cv_type_spee_t="8 /* unsigned long long */"
  11992. fi
  11993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11994. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11995. fi
  11996. else
  11997. sc_cv_type_spee_t="0 /* unknown */"
  11998. fi
  11999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12000. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12001. fi
  12002. fi
  12003. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12004. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12005. fi
  12006. fi
  12007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12009. fi
  12010. fi
  12011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12012. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12013. fi
  12014. fi
  12015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_spee_t" >&5
  12016. $as_echo "$sc_cv_type_spee_t" >&6; }
  12017. cat >>confdefs.h <<_ACEOF
  12018. #define HAVE_BASIC_SPEED_T ${sc_cv_type_spee_t}
  12019. _ACEOF
  12020. fi
  12021. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  12022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_ino" >&5
  12023. $as_echo_n "checking for basic type of struct stat.st_ino... " >&6; }
  12024. if ${sc_cv_type_stat_stino_basic+:} false; then :
  12025. $as_echo_n "(cached) " >&6
  12026. else
  12027. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  12028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12029. /* end confdefs.h. */
  12030. #include <sys/stat.h>
  12031. int
  12032. main ()
  12033. {
  12034. struct stat u;short v; return(&u.st_ino==&v);
  12035. ;
  12036. return 0;
  12037. }
  12038. _ACEOF
  12039. if ac_fn_c_try_compile "$LINENO"; then :
  12040. sc_cv_type_stat_stino_basic="1 /* short */"
  12041. else
  12042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12043. /* end confdefs.h. */
  12044. #include <sys/stat.h>
  12045. int
  12046. main ()
  12047. {
  12048. struct stat u; unsigned short v; return(&u.st_ino==&v);
  12049. ;
  12050. return 0;
  12051. }
  12052. _ACEOF
  12053. if ac_fn_c_try_compile "$LINENO"; then :
  12054. sc_cv_type_stat_stino_basic="2 /* unsigned short */"
  12055. else
  12056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12057. /* end confdefs.h. */
  12058. #include <sys/stat.h>
  12059. int
  12060. main ()
  12061. {
  12062. struct stat u; int v; return(&u.st_ino==&v);
  12063. ;
  12064. return 0;
  12065. }
  12066. _ACEOF
  12067. if ac_fn_c_try_compile "$LINENO"; then :
  12068. sc_cv_type_stat_stino_basic="3 /* int */"
  12069. else
  12070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12071. /* end confdefs.h. */
  12072. #include <sys/stat.h>
  12073. int
  12074. main ()
  12075. {
  12076. struct stat u; unsigned int v; return(&u.st_ino==&v);
  12077. ;
  12078. return 0;
  12079. }
  12080. _ACEOF
  12081. if ac_fn_c_try_compile "$LINENO"; then :
  12082. sc_cv_type_stat_stino_basic="4 /* unsigned int */"
  12083. else
  12084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12085. /* end confdefs.h. */
  12086. #include <sys/stat.h>
  12087. int
  12088. main ()
  12089. {
  12090. struct stat u; long v; return(&u.st_ino==&v);
  12091. ;
  12092. return 0;
  12093. }
  12094. _ACEOF
  12095. if ac_fn_c_try_compile "$LINENO"; then :
  12096. sc_cv_type_stat_stino_basic="5 /* long */"
  12097. else
  12098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12099. /* end confdefs.h. */
  12100. #include <sys/stat.h>
  12101. int
  12102. main ()
  12103. {
  12104. struct stat u; unsigned long v; return(&u.st_ino==&v);
  12105. ;
  12106. return 0;
  12107. }
  12108. _ACEOF
  12109. if ac_fn_c_try_compile "$LINENO"; then :
  12110. sc_cv_type_stat_stino_basic="6 /* unsigned long */"
  12111. else
  12112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12113. /* end confdefs.h. */
  12114. #include <sys/stat.h>
  12115. int
  12116. main ()
  12117. {
  12118. struct stat u; long long v; return(&u.st_ino==&v);
  12119. ;
  12120. return 0;
  12121. }
  12122. _ACEOF
  12123. if ac_fn_c_try_compile "$LINENO"; then :
  12124. sc_cv_type_stat_stino_basic="7 /* long long */"
  12125. else
  12126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12127. /* end confdefs.h. */
  12128. #include <sys/stat.h>
  12129. int
  12130. main ()
  12131. {
  12132. struct stat u; unsigned long long v; return(&u.st_ino==&v);
  12133. ;
  12134. return 0;
  12135. }
  12136. _ACEOF
  12137. if ac_fn_c_try_compile "$LINENO"; then :
  12138. sc_cv_type_stat_stino_basic="8 /* unsigned long long */"
  12139. else
  12140. sc_cv_type_stat_stino_basic="0 /* unknown, taking default */"
  12141. fi
  12142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12143. fi
  12144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12145. fi
  12146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12147. fi
  12148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12149. fi
  12150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12151. fi
  12152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12153. fi
  12154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12155. fi
  12156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12157. CFLAGS="$CFLAGS1"
  12158. fi
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stino_basic" >&5
  12160. $as_echo "$sc_cv_type_stat_stino_basic" >&6; }
  12161. cat >>confdefs.h <<_ACEOF
  12162. #define HAVE_TYPEOF_ST_INO ${sc_cv_type_stat_stino_basic}
  12163. _ACEOF
  12164. else
  12165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_ino" >&5
  12166. $as_echo_n "checking for basic type of struct stat.st_ino... " >&6; }
  12167. if ${sc_cv_type_stat_stino_basic+:} false; then :
  12168. $as_echo_n "(cached) " >&6
  12169. else
  12170. if test "$cross_compiling" = yes; then :
  12171. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12173. as_fn_error $? "cannot run test program while cross compiling
  12174. See \`config.log' for more details" "$LINENO" 5; }
  12175. else
  12176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12177. /* end confdefs.h. */
  12178. #include <sys/stat.h>
  12179. int main() { struct stat x; return!(sizeof(x.st_ino)==sizeof(short));}
  12180. _ACEOF
  12181. if ac_fn_c_try_run "$LINENO"; then :
  12182. # same length as short
  12183. if test "$cross_compiling" = yes; then :
  12184. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12186. as_fn_error $? "cannot run test program while cross compiling
  12187. See \`config.log' for more details" "$LINENO" 5; }
  12188. else
  12189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12190. /* end confdefs.h. */
  12191. #include <sys/stat.h>
  12192. int main() { struct stat x; x.st_ino=-1; return !(x.st_ino<0);}
  12193. _ACEOF
  12194. if ac_fn_c_try_run "$LINENO"; then :
  12195. sc_cv_type_stat_stino_basic="1 /* short */"
  12196. else
  12197. sc_cv_type_stat_stino_basic="2 /* unsigned short */"
  12198. fi
  12199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12200. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12201. fi
  12202. else
  12203. # length differs from short, try others
  12204. if test "$cross_compiling" = yes; then :
  12205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12207. as_fn_error $? "cannot run test program while cross compiling
  12208. See \`config.log' for more details" "$LINENO" 5; }
  12209. else
  12210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12211. /* end confdefs.h. */
  12212. #include <sys/stat.h>
  12213. int main() { struct stat x; return!(sizeof(x.st_ino)==sizeof(int));}
  12214. _ACEOF
  12215. if ac_fn_c_try_run "$LINENO"; then :
  12216. # same length as int
  12217. if test "$cross_compiling" = yes; then :
  12218. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12220. as_fn_error $? "cannot run test program while cross compiling
  12221. See \`config.log' for more details" "$LINENO" 5; }
  12222. else
  12223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12224. /* end confdefs.h. */
  12225. #include <sys/stat.h>
  12226. int main() { struct stat x; x.st_ino=-1; return !(x.st_ino<0);}
  12227. _ACEOF
  12228. if ac_fn_c_try_run "$LINENO"; then :
  12229. sc_cv_type_stat_stino_basic="3 /* int */"
  12230. else
  12231. sc_cv_type_stat_stino_basic="4 /* unsigned int */"
  12232. fi
  12233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12234. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12235. fi
  12236. else
  12237. # length differs from int, try others
  12238. if test "$cross_compiling" = yes; then :
  12239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12241. as_fn_error $? "cannot run test program while cross compiling
  12242. See \`config.log' for more details" "$LINENO" 5; }
  12243. else
  12244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12245. /* end confdefs.h. */
  12246. #include <sys/stat.h>
  12247. int main() { struct stat x; return !(sizeof(x.st_ino)==sizeof(long));}
  12248. _ACEOF
  12249. if ac_fn_c_try_run "$LINENO"; then :
  12250. # same length as long
  12251. if test "$cross_compiling" = yes; then :
  12252. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12253. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12254. as_fn_error $? "cannot run test program while cross compiling
  12255. See \`config.log' for more details" "$LINENO" 5; }
  12256. else
  12257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12258. /* end confdefs.h. */
  12259. #include <sys/stat.h>
  12260. int main() { struct stat x; x.st_ino=-1; return !(x.st_ino<0);}
  12261. _ACEOF
  12262. if ac_fn_c_try_run "$LINENO"; then :
  12263. sc_cv_type_stat_stino_basic="5 /* long */"
  12264. else
  12265. sc_cv_type_stat_stino_basic="6 /* unsigned long */"
  12266. fi
  12267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12269. fi
  12270. else
  12271. # length differs from long, try others
  12272. if test "$cross_compiling" = yes; then :
  12273. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12274. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12275. as_fn_error $? "cannot run test program while cross compiling
  12276. See \`config.log' for more details" "$LINENO" 5; }
  12277. else
  12278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12279. /* end confdefs.h. */
  12280. #include <sys/stat.h>
  12281. int main() { struct stat x; return !(sizeof(x.st_ino)==sizeof(long long));}
  12282. _ACEOF
  12283. if ac_fn_c_try_run "$LINENO"; then :
  12284. # same length as long long
  12285. if test "$cross_compiling" = yes; then :
  12286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12288. as_fn_error $? "cannot run test program while cross compiling
  12289. See \`config.log' for more details" "$LINENO" 5; }
  12290. else
  12291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12292. /* end confdefs.h. */
  12293. #include <sys/stat.h>
  12294. int main() { x struct stat; x.st_ino=-1; return !(x.st_ino<0);}
  12295. _ACEOF
  12296. if ac_fn_c_try_run "$LINENO"; then :
  12297. sc_cv_type_stat_stino_basic="7 /* long long */"
  12298. else
  12299. sc_cv_type_stat_stino_basic="8 /* unsigned long long */"
  12300. fi
  12301. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12302. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12303. fi
  12304. else
  12305. sc_cv_type_stat_stino_basic="0 /* unknown */"
  12306. fi
  12307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12308. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12309. fi
  12310. fi
  12311. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12312. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12313. fi
  12314. fi
  12315. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12316. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12317. fi
  12318. fi
  12319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12320. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12321. fi
  12322. fi
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stino_basic" >&5
  12324. $as_echo "$sc_cv_type_stat_stino_basic" >&6; }
  12325. cat >>confdefs.h <<_ACEOF
  12326. #define HAVE_TYPEOF_ST_INO ${sc_cv_type_stat_stino_basic}
  12327. _ACEOF
  12328. fi
  12329. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_nlink" >&5
  12331. $as_echo_n "checking for basic type of struct stat.st_nlink... " >&6; }
  12332. if ${sc_cv_type_stat_stnlink_basic+:} false; then :
  12333. $as_echo_n "(cached) " >&6
  12334. else
  12335. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  12336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12337. /* end confdefs.h. */
  12338. #include <sys/stat.h>
  12339. int
  12340. main ()
  12341. {
  12342. struct stat u;short v; return(&u.st_nlink==&v);
  12343. ;
  12344. return 0;
  12345. }
  12346. _ACEOF
  12347. if ac_fn_c_try_compile "$LINENO"; then :
  12348. sc_cv_type_stat_stnlink_basic="1 /* short */"
  12349. else
  12350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12351. /* end confdefs.h. */
  12352. #include <sys/stat.h>
  12353. int
  12354. main ()
  12355. {
  12356. struct stat u; unsigned short v; return(&u.st_nlink==&v);
  12357. ;
  12358. return 0;
  12359. }
  12360. _ACEOF
  12361. if ac_fn_c_try_compile "$LINENO"; then :
  12362. sc_cv_type_stat_stnlink_basic="2 /* unsigned short */"
  12363. else
  12364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12365. /* end confdefs.h. */
  12366. #include <sys/stat.h>
  12367. int
  12368. main ()
  12369. {
  12370. struct stat u; int v; return(&u.st_nlink==&v);
  12371. ;
  12372. return 0;
  12373. }
  12374. _ACEOF
  12375. if ac_fn_c_try_compile "$LINENO"; then :
  12376. sc_cv_type_stat_stnlink_basic="3 /* int */"
  12377. else
  12378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12379. /* end confdefs.h. */
  12380. #include <sys/stat.h>
  12381. int
  12382. main ()
  12383. {
  12384. struct stat u; unsigned int v; return(&u.st_nlink==&v);
  12385. ;
  12386. return 0;
  12387. }
  12388. _ACEOF
  12389. if ac_fn_c_try_compile "$LINENO"; then :
  12390. sc_cv_type_stat_stnlink_basic="4 /* unsigned int */"
  12391. else
  12392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12393. /* end confdefs.h. */
  12394. #include <sys/stat.h>
  12395. int
  12396. main ()
  12397. {
  12398. struct stat u; long v; return(&u.st_nlink==&v);
  12399. ;
  12400. return 0;
  12401. }
  12402. _ACEOF
  12403. if ac_fn_c_try_compile "$LINENO"; then :
  12404. sc_cv_type_stat_stnlink_basic="5 /* long */"
  12405. else
  12406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12407. /* end confdefs.h. */
  12408. #include <sys/stat.h>
  12409. int
  12410. main ()
  12411. {
  12412. struct stat u; unsigned long v; return(&u.st_nlink==&v);
  12413. ;
  12414. return 0;
  12415. }
  12416. _ACEOF
  12417. if ac_fn_c_try_compile "$LINENO"; then :
  12418. sc_cv_type_stat_stnlink_basic="6 /* unsigned long */"
  12419. else
  12420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12421. /* end confdefs.h. */
  12422. #include <sys/stat.h>
  12423. int
  12424. main ()
  12425. {
  12426. struct stat u; long long v; return(&u.st_nlink==&v);
  12427. ;
  12428. return 0;
  12429. }
  12430. _ACEOF
  12431. if ac_fn_c_try_compile "$LINENO"; then :
  12432. sc_cv_type_stat_stnlink_basic="7 /* long long */"
  12433. else
  12434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12435. /* end confdefs.h. */
  12436. #include <sys/stat.h>
  12437. int
  12438. main ()
  12439. {
  12440. struct stat u; unsigned long long v; return(&u.st_nlink==&v);
  12441. ;
  12442. return 0;
  12443. }
  12444. _ACEOF
  12445. if ac_fn_c_try_compile "$LINENO"; then :
  12446. sc_cv_type_stat_stnlink_basic="8 /* unsigned long long */"
  12447. else
  12448. sc_cv_type_stat_stnlink_basic="0 /* unknown, taking default */"
  12449. fi
  12450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12451. fi
  12452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12453. fi
  12454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12455. fi
  12456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12457. fi
  12458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12459. fi
  12460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12461. fi
  12462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12463. fi
  12464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12465. CFLAGS="$CFLAGS1"
  12466. fi
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stnlink_basic" >&5
  12468. $as_echo "$sc_cv_type_stat_stnlink_basic" >&6; }
  12469. cat >>confdefs.h <<_ACEOF
  12470. #define HAVE_TYPEOF_ST_NLINK ${sc_cv_type_stat_stnlink_basic}
  12471. _ACEOF
  12472. else
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_nlink" >&5
  12474. $as_echo_n "checking for basic type of struct stat.st_nlink... " >&6; }
  12475. if ${sc_cv_type_stat_stnlink_basic+:} false; then :
  12476. $as_echo_n "(cached) " >&6
  12477. else
  12478. if test "$cross_compiling" = yes; then :
  12479. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12481. as_fn_error $? "cannot run test program while cross compiling
  12482. See \`config.log' for more details" "$LINENO" 5; }
  12483. else
  12484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12485. /* end confdefs.h. */
  12486. #include <sys/stat.h>
  12487. int main() { struct stat x; return!(sizeof(x.st_nlink)==sizeof(short));}
  12488. _ACEOF
  12489. if ac_fn_c_try_run "$LINENO"; then :
  12490. # same length as short
  12491. if test "$cross_compiling" = yes; then :
  12492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12494. as_fn_error $? "cannot run test program while cross compiling
  12495. See \`config.log' for more details" "$LINENO" 5; }
  12496. else
  12497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12498. /* end confdefs.h. */
  12499. #include <sys/stat.h>
  12500. int main() { struct stat x; x.st_nlink=-1; return !(x.st_nlink<0);}
  12501. _ACEOF
  12502. if ac_fn_c_try_run "$LINENO"; then :
  12503. sc_cv_type_stat_stnlink_basic="1 /* short */"
  12504. else
  12505. sc_cv_type_stat_stnlink_basic="2 /* unsigned short */"
  12506. fi
  12507. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12508. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12509. fi
  12510. else
  12511. # length differs from short, try others
  12512. if test "$cross_compiling" = yes; then :
  12513. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12514. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12515. as_fn_error $? "cannot run test program while cross compiling
  12516. See \`config.log' for more details" "$LINENO" 5; }
  12517. else
  12518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12519. /* end confdefs.h. */
  12520. #include <sys/stat.h>
  12521. int main() { struct stat x; return!(sizeof(x.st_nlink)==sizeof(int));}
  12522. _ACEOF
  12523. if ac_fn_c_try_run "$LINENO"; then :
  12524. # same length as int
  12525. if test "$cross_compiling" = yes; then :
  12526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12528. as_fn_error $? "cannot run test program while cross compiling
  12529. See \`config.log' for more details" "$LINENO" 5; }
  12530. else
  12531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12532. /* end confdefs.h. */
  12533. #include <sys/stat.h>
  12534. int main() { struct stat x; x.st_nlink=-1; return !(x.st_nlink<0);}
  12535. _ACEOF
  12536. if ac_fn_c_try_run "$LINENO"; then :
  12537. sc_cv_type_stat_stnlink_basic="3 /* int */"
  12538. else
  12539. sc_cv_type_stat_stnlink_basic="4 /* unsigned int */"
  12540. fi
  12541. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12542. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12543. fi
  12544. else
  12545. # length differs from int, try others
  12546. if test "$cross_compiling" = yes; then :
  12547. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12548. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12549. as_fn_error $? "cannot run test program while cross compiling
  12550. See \`config.log' for more details" "$LINENO" 5; }
  12551. else
  12552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12553. /* end confdefs.h. */
  12554. #include <sys/stat.h>
  12555. int main() { struct stat x; return !(sizeof(x.st_nlink)==sizeof(long));}
  12556. _ACEOF
  12557. if ac_fn_c_try_run "$LINENO"; then :
  12558. # same length as long
  12559. if test "$cross_compiling" = yes; then :
  12560. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12561. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12562. as_fn_error $? "cannot run test program while cross compiling
  12563. See \`config.log' for more details" "$LINENO" 5; }
  12564. else
  12565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12566. /* end confdefs.h. */
  12567. #include <sys/stat.h>
  12568. int main() { struct stat x; x.st_nlink=-1; return !(x.st_nlink<0);}
  12569. _ACEOF
  12570. if ac_fn_c_try_run "$LINENO"; then :
  12571. sc_cv_type_stat_stnlink_basic="5 /* long */"
  12572. else
  12573. sc_cv_type_stat_stnlink_basic="6 /* unsigned long */"
  12574. fi
  12575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12577. fi
  12578. else
  12579. # length differs from long, try others
  12580. if test "$cross_compiling" = yes; then :
  12581. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12583. as_fn_error $? "cannot run test program while cross compiling
  12584. See \`config.log' for more details" "$LINENO" 5; }
  12585. else
  12586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12587. /* end confdefs.h. */
  12588. #include <sys/stat.h>
  12589. int main() { struct stat x; return !(sizeof(x.st_nlink)==sizeof(long long));}
  12590. _ACEOF
  12591. if ac_fn_c_try_run "$LINENO"; then :
  12592. # same length as long long
  12593. if test "$cross_compiling" = yes; then :
  12594. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12595. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12596. as_fn_error $? "cannot run test program while cross compiling
  12597. See \`config.log' for more details" "$LINENO" 5; }
  12598. else
  12599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12600. /* end confdefs.h. */
  12601. #include <sys/stat.h>
  12602. int main() { x struct stat; x.st_nlink=-1; return !(x.st_nlink<0);}
  12603. _ACEOF
  12604. if ac_fn_c_try_run "$LINENO"; then :
  12605. sc_cv_type_stat_stnlink_basic="7 /* long long */"
  12606. else
  12607. sc_cv_type_stat_stnlink_basic="8 /* unsigned long long */"
  12608. fi
  12609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12610. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12611. fi
  12612. else
  12613. sc_cv_type_stat_stnlink_basic="0 /* unknown */"
  12614. fi
  12615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12616. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12617. fi
  12618. fi
  12619. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12620. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12621. fi
  12622. fi
  12623. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12624. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12625. fi
  12626. fi
  12627. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12628. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12629. fi
  12630. fi
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stnlink_basic" >&5
  12632. $as_echo "$sc_cv_type_stat_stnlink_basic" >&6; }
  12633. cat >>confdefs.h <<_ACEOF
  12634. #define HAVE_TYPEOF_ST_NLINK ${sc_cv_type_stat_stnlink_basic}
  12635. _ACEOF
  12636. fi
  12637. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_size" >&5
  12639. $as_echo_n "checking for basic type of struct stat.st_size... " >&6; }
  12640. if ${sc_cv_type_stat_stsize_basic+:} false; then :
  12641. $as_echo_n "(cached) " >&6
  12642. else
  12643. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  12644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12645. /* end confdefs.h. */
  12646. #include <sys/stat.h>
  12647. int
  12648. main ()
  12649. {
  12650. struct stat u;short v; return(&u.st_size==&v);
  12651. ;
  12652. return 0;
  12653. }
  12654. _ACEOF
  12655. if ac_fn_c_try_compile "$LINENO"; then :
  12656. sc_cv_type_stat_stsize_basic="1 /* short */"
  12657. else
  12658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12659. /* end confdefs.h. */
  12660. #include <sys/stat.h>
  12661. int
  12662. main ()
  12663. {
  12664. struct stat u; unsigned short v; return(&u.st_size==&v);
  12665. ;
  12666. return 0;
  12667. }
  12668. _ACEOF
  12669. if ac_fn_c_try_compile "$LINENO"; then :
  12670. sc_cv_type_stat_stsize_basic="2 /* unsigned short */"
  12671. else
  12672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12673. /* end confdefs.h. */
  12674. #include <sys/stat.h>
  12675. int
  12676. main ()
  12677. {
  12678. struct stat u; int v; return(&u.st_size==&v);
  12679. ;
  12680. return 0;
  12681. }
  12682. _ACEOF
  12683. if ac_fn_c_try_compile "$LINENO"; then :
  12684. sc_cv_type_stat_stsize_basic="3 /* int */"
  12685. else
  12686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12687. /* end confdefs.h. */
  12688. #include <sys/stat.h>
  12689. int
  12690. main ()
  12691. {
  12692. struct stat u; unsigned int v; return(&u.st_size==&v);
  12693. ;
  12694. return 0;
  12695. }
  12696. _ACEOF
  12697. if ac_fn_c_try_compile "$LINENO"; then :
  12698. sc_cv_type_stat_stsize_basic="4 /* unsigned int */"
  12699. else
  12700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12701. /* end confdefs.h. */
  12702. #include <sys/stat.h>
  12703. int
  12704. main ()
  12705. {
  12706. struct stat u; long v; return(&u.st_size==&v);
  12707. ;
  12708. return 0;
  12709. }
  12710. _ACEOF
  12711. if ac_fn_c_try_compile "$LINENO"; then :
  12712. sc_cv_type_stat_stsize_basic="5 /* long */"
  12713. else
  12714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12715. /* end confdefs.h. */
  12716. #include <sys/stat.h>
  12717. int
  12718. main ()
  12719. {
  12720. struct stat u; unsigned long v; return(&u.st_size==&v);
  12721. ;
  12722. return 0;
  12723. }
  12724. _ACEOF
  12725. if ac_fn_c_try_compile "$LINENO"; then :
  12726. sc_cv_type_stat_stsize_basic="6 /* unsigned long */"
  12727. else
  12728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12729. /* end confdefs.h. */
  12730. #include <sys/stat.h>
  12731. int
  12732. main ()
  12733. {
  12734. struct stat u; long long v; return(&u.st_size==&v);
  12735. ;
  12736. return 0;
  12737. }
  12738. _ACEOF
  12739. if ac_fn_c_try_compile "$LINENO"; then :
  12740. sc_cv_type_stat_stsize_basic="7 /* long long */"
  12741. else
  12742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12743. /* end confdefs.h. */
  12744. #include <sys/stat.h>
  12745. int
  12746. main ()
  12747. {
  12748. struct stat u; unsigned long long v; return(&u.st_size==&v);
  12749. ;
  12750. return 0;
  12751. }
  12752. _ACEOF
  12753. if ac_fn_c_try_compile "$LINENO"; then :
  12754. sc_cv_type_stat_stsize_basic="8 /* unsigned long long */"
  12755. else
  12756. sc_cv_type_stat_stsize_basic="0 /* unknown, taking default */"
  12757. fi
  12758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12759. fi
  12760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12761. fi
  12762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12763. fi
  12764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12765. fi
  12766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12767. fi
  12768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12769. fi
  12770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12771. fi
  12772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12773. CFLAGS="$CFLAGS1"
  12774. fi
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stsize_basic" >&5
  12776. $as_echo "$sc_cv_type_stat_stsize_basic" >&6; }
  12777. cat >>confdefs.h <<_ACEOF
  12778. #define HAVE_TYPEOF_ST_SIZE ${sc_cv_type_stat_stsize_basic}
  12779. _ACEOF
  12780. else
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_size" >&5
  12782. $as_echo_n "checking for basic type of struct stat.st_size... " >&6; }
  12783. if ${sc_cv_type_stat_stsize_basic+:} false; then :
  12784. $as_echo_n "(cached) " >&6
  12785. else
  12786. if test "$cross_compiling" = yes; then :
  12787. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12789. as_fn_error $? "cannot run test program while cross compiling
  12790. See \`config.log' for more details" "$LINENO" 5; }
  12791. else
  12792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12793. /* end confdefs.h. */
  12794. #include <sys/stat.h>
  12795. int main() { struct stat x; return!(sizeof(x.st_size)==sizeof(short));}
  12796. _ACEOF
  12797. if ac_fn_c_try_run "$LINENO"; then :
  12798. # same length as short
  12799. if test "$cross_compiling" = yes; then :
  12800. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12802. as_fn_error $? "cannot run test program while cross compiling
  12803. See \`config.log' for more details" "$LINENO" 5; }
  12804. else
  12805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12806. /* end confdefs.h. */
  12807. #include <sys/stat.h>
  12808. int main() { struct stat x; x.st_size=-1; return !(x.st_size<0);}
  12809. _ACEOF
  12810. if ac_fn_c_try_run "$LINENO"; then :
  12811. sc_cv_type_stat_stsize_basic="1 /* short */"
  12812. else
  12813. sc_cv_type_stat_stsize_basic="2 /* unsigned short */"
  12814. fi
  12815. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12816. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12817. fi
  12818. else
  12819. # length differs from short, try others
  12820. if test "$cross_compiling" = yes; then :
  12821. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12822. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12823. as_fn_error $? "cannot run test program while cross compiling
  12824. See \`config.log' for more details" "$LINENO" 5; }
  12825. else
  12826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12827. /* end confdefs.h. */
  12828. #include <sys/stat.h>
  12829. int main() { struct stat x; return!(sizeof(x.st_size)==sizeof(int));}
  12830. _ACEOF
  12831. if ac_fn_c_try_run "$LINENO"; then :
  12832. # same length as int
  12833. if test "$cross_compiling" = yes; then :
  12834. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12835. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12836. as_fn_error $? "cannot run test program while cross compiling
  12837. See \`config.log' for more details" "$LINENO" 5; }
  12838. else
  12839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12840. /* end confdefs.h. */
  12841. #include <sys/stat.h>
  12842. int main() { struct stat x; x.st_size=-1; return !(x.st_size<0);}
  12843. _ACEOF
  12844. if ac_fn_c_try_run "$LINENO"; then :
  12845. sc_cv_type_stat_stsize_basic="3 /* int */"
  12846. else
  12847. sc_cv_type_stat_stsize_basic="4 /* unsigned int */"
  12848. fi
  12849. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12850. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12851. fi
  12852. else
  12853. # length differs from int, try others
  12854. if test "$cross_compiling" = yes; then :
  12855. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12856. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12857. as_fn_error $? "cannot run test program while cross compiling
  12858. See \`config.log' for more details" "$LINENO" 5; }
  12859. else
  12860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12861. /* end confdefs.h. */
  12862. #include <sys/stat.h>
  12863. int main() { struct stat x; return !(sizeof(x.st_size)==sizeof(long));}
  12864. _ACEOF
  12865. if ac_fn_c_try_run "$LINENO"; then :
  12866. # same length as long
  12867. if test "$cross_compiling" = yes; then :
  12868. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12869. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12870. as_fn_error $? "cannot run test program while cross compiling
  12871. See \`config.log' for more details" "$LINENO" 5; }
  12872. else
  12873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12874. /* end confdefs.h. */
  12875. #include <sys/stat.h>
  12876. int main() { struct stat x; x.st_size=-1; return !(x.st_size<0);}
  12877. _ACEOF
  12878. if ac_fn_c_try_run "$LINENO"; then :
  12879. sc_cv_type_stat_stsize_basic="5 /* long */"
  12880. else
  12881. sc_cv_type_stat_stsize_basic="6 /* unsigned long */"
  12882. fi
  12883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12884. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12885. fi
  12886. else
  12887. # length differs from long, try others
  12888. if test "$cross_compiling" = yes; then :
  12889. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12890. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12891. as_fn_error $? "cannot run test program while cross compiling
  12892. See \`config.log' for more details" "$LINENO" 5; }
  12893. else
  12894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12895. /* end confdefs.h. */
  12896. #include <sys/stat.h>
  12897. int main() { struct stat x; return !(sizeof(x.st_size)==sizeof(long long));}
  12898. _ACEOF
  12899. if ac_fn_c_try_run "$LINENO"; then :
  12900. # same length as long long
  12901. if test "$cross_compiling" = yes; then :
  12902. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12904. as_fn_error $? "cannot run test program while cross compiling
  12905. See \`config.log' for more details" "$LINENO" 5; }
  12906. else
  12907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12908. /* end confdefs.h. */
  12909. #include <sys/stat.h>
  12910. int main() { x struct stat; x.st_size=-1; return !(x.st_size<0);}
  12911. _ACEOF
  12912. if ac_fn_c_try_run "$LINENO"; then :
  12913. sc_cv_type_stat_stsize_basic="7 /* long long */"
  12914. else
  12915. sc_cv_type_stat_stsize_basic="8 /* unsigned long long */"
  12916. fi
  12917. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12918. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12919. fi
  12920. else
  12921. sc_cv_type_stat_stsize_basic="0 /* unknown */"
  12922. fi
  12923. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12924. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12925. fi
  12926. fi
  12927. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12928. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12929. fi
  12930. fi
  12931. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12932. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12933. fi
  12934. fi
  12935. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12936. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12937. fi
  12938. fi
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stsize_basic" >&5
  12940. $as_echo "$sc_cv_type_stat_stsize_basic" >&6; }
  12941. cat >>confdefs.h <<_ACEOF
  12942. #define HAVE_TYPEOF_ST_SIZE ${sc_cv_type_stat_stsize_basic}
  12943. _ACEOF
  12944. fi
  12945. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_blksize" >&5
  12947. $as_echo_n "checking for basic type of struct stat.st_blksize... " >&6; }
  12948. if ${sc_cv_type_stat_stblksize_basic+:} false; then :
  12949. $as_echo_n "(cached) " >&6
  12950. else
  12951. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  12952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12953. /* end confdefs.h. */
  12954. #include <sys/stat.h>
  12955. int
  12956. main ()
  12957. {
  12958. struct stat u;short v; return(&u.st_blksize==&v);
  12959. ;
  12960. return 0;
  12961. }
  12962. _ACEOF
  12963. if ac_fn_c_try_compile "$LINENO"; then :
  12964. sc_cv_type_stat_stblksize_basic="1 /* short */"
  12965. else
  12966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12967. /* end confdefs.h. */
  12968. #include <sys/stat.h>
  12969. int
  12970. main ()
  12971. {
  12972. struct stat u; unsigned short v; return(&u.st_blksize==&v);
  12973. ;
  12974. return 0;
  12975. }
  12976. _ACEOF
  12977. if ac_fn_c_try_compile "$LINENO"; then :
  12978. sc_cv_type_stat_stblksize_basic="2 /* unsigned short */"
  12979. else
  12980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12981. /* end confdefs.h. */
  12982. #include <sys/stat.h>
  12983. int
  12984. main ()
  12985. {
  12986. struct stat u; int v; return(&u.st_blksize==&v);
  12987. ;
  12988. return 0;
  12989. }
  12990. _ACEOF
  12991. if ac_fn_c_try_compile "$LINENO"; then :
  12992. sc_cv_type_stat_stblksize_basic="3 /* int */"
  12993. else
  12994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12995. /* end confdefs.h. */
  12996. #include <sys/stat.h>
  12997. int
  12998. main ()
  12999. {
  13000. struct stat u; unsigned int v; return(&u.st_blksize==&v);
  13001. ;
  13002. return 0;
  13003. }
  13004. _ACEOF
  13005. if ac_fn_c_try_compile "$LINENO"; then :
  13006. sc_cv_type_stat_stblksize_basic="4 /* unsigned int */"
  13007. else
  13008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13009. /* end confdefs.h. */
  13010. #include <sys/stat.h>
  13011. int
  13012. main ()
  13013. {
  13014. struct stat u; long v; return(&u.st_blksize==&v);
  13015. ;
  13016. return 0;
  13017. }
  13018. _ACEOF
  13019. if ac_fn_c_try_compile "$LINENO"; then :
  13020. sc_cv_type_stat_stblksize_basic="5 /* long */"
  13021. else
  13022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13023. /* end confdefs.h. */
  13024. #include <sys/stat.h>
  13025. int
  13026. main ()
  13027. {
  13028. struct stat u; unsigned long v; return(&u.st_blksize==&v);
  13029. ;
  13030. return 0;
  13031. }
  13032. _ACEOF
  13033. if ac_fn_c_try_compile "$LINENO"; then :
  13034. sc_cv_type_stat_stblksize_basic="6 /* unsigned long */"
  13035. else
  13036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13037. /* end confdefs.h. */
  13038. #include <sys/stat.h>
  13039. int
  13040. main ()
  13041. {
  13042. struct stat u; long long v; return(&u.st_blksize==&v);
  13043. ;
  13044. return 0;
  13045. }
  13046. _ACEOF
  13047. if ac_fn_c_try_compile "$LINENO"; then :
  13048. sc_cv_type_stat_stblksize_basic="7 /* long long */"
  13049. else
  13050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13051. /* end confdefs.h. */
  13052. #include <sys/stat.h>
  13053. int
  13054. main ()
  13055. {
  13056. struct stat u; unsigned long long v; return(&u.st_blksize==&v);
  13057. ;
  13058. return 0;
  13059. }
  13060. _ACEOF
  13061. if ac_fn_c_try_compile "$LINENO"; then :
  13062. sc_cv_type_stat_stblksize_basic="8 /* unsigned long long */"
  13063. else
  13064. sc_cv_type_stat_stblksize_basic="0 /* unknown, taking default */"
  13065. fi
  13066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13067. fi
  13068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13069. fi
  13070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13071. fi
  13072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13073. fi
  13074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13075. fi
  13076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13077. fi
  13078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13079. fi
  13080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13081. CFLAGS="$CFLAGS1"
  13082. fi
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stblksize_basic" >&5
  13084. $as_echo "$sc_cv_type_stat_stblksize_basic" >&6; }
  13085. cat >>confdefs.h <<_ACEOF
  13086. #define HAVE_TYPEOF_ST_BLKSIZE ${sc_cv_type_stat_stblksize_basic}
  13087. _ACEOF
  13088. else
  13089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_blksize" >&5
  13090. $as_echo_n "checking for basic type of struct stat.st_blksize... " >&6; }
  13091. if ${sc_cv_type_stat_stblksize_basic+:} false; then :
  13092. $as_echo_n "(cached) " >&6
  13093. else
  13094. if test "$cross_compiling" = yes; then :
  13095. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13097. as_fn_error $? "cannot run test program while cross compiling
  13098. See \`config.log' for more details" "$LINENO" 5; }
  13099. else
  13100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13101. /* end confdefs.h. */
  13102. #include <sys/stat.h>
  13103. int main() { struct stat x; return!(sizeof(x.st_blksize)==sizeof(short));}
  13104. _ACEOF
  13105. if ac_fn_c_try_run "$LINENO"; then :
  13106. # same length as short
  13107. if test "$cross_compiling" = yes; then :
  13108. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13110. as_fn_error $? "cannot run test program while cross compiling
  13111. See \`config.log' for more details" "$LINENO" 5; }
  13112. else
  13113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13114. /* end confdefs.h. */
  13115. #include <sys/stat.h>
  13116. int main() { struct stat x; x.st_blksize=-1; return !(x.st_blksize<0);}
  13117. _ACEOF
  13118. if ac_fn_c_try_run "$LINENO"; then :
  13119. sc_cv_type_stat_stblksize_basic="1 /* short */"
  13120. else
  13121. sc_cv_type_stat_stblksize_basic="2 /* unsigned short */"
  13122. fi
  13123. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13124. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13125. fi
  13126. else
  13127. # length differs from short, try others
  13128. if test "$cross_compiling" = yes; then :
  13129. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13131. as_fn_error $? "cannot run test program while cross compiling
  13132. See \`config.log' for more details" "$LINENO" 5; }
  13133. else
  13134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13135. /* end confdefs.h. */
  13136. #include <sys/stat.h>
  13137. int main() { struct stat x; return!(sizeof(x.st_blksize)==sizeof(int));}
  13138. _ACEOF
  13139. if ac_fn_c_try_run "$LINENO"; then :
  13140. # same length as int
  13141. if test "$cross_compiling" = yes; then :
  13142. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13143. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13144. as_fn_error $? "cannot run test program while cross compiling
  13145. See \`config.log' for more details" "$LINENO" 5; }
  13146. else
  13147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13148. /* end confdefs.h. */
  13149. #include <sys/stat.h>
  13150. int main() { struct stat x; x.st_blksize=-1; return !(x.st_blksize<0);}
  13151. _ACEOF
  13152. if ac_fn_c_try_run "$LINENO"; then :
  13153. sc_cv_type_stat_stblksize_basic="3 /* int */"
  13154. else
  13155. sc_cv_type_stat_stblksize_basic="4 /* unsigned int */"
  13156. fi
  13157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13158. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13159. fi
  13160. else
  13161. # length differs from int, try others
  13162. if test "$cross_compiling" = yes; then :
  13163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13165. as_fn_error $? "cannot run test program while cross compiling
  13166. See \`config.log' for more details" "$LINENO" 5; }
  13167. else
  13168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13169. /* end confdefs.h. */
  13170. #include <sys/stat.h>
  13171. int main() { struct stat x; return !(sizeof(x.st_blksize)==sizeof(long));}
  13172. _ACEOF
  13173. if ac_fn_c_try_run "$LINENO"; then :
  13174. # same length as long
  13175. if test "$cross_compiling" = yes; then :
  13176. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13178. as_fn_error $? "cannot run test program while cross compiling
  13179. See \`config.log' for more details" "$LINENO" 5; }
  13180. else
  13181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13182. /* end confdefs.h. */
  13183. #include <sys/stat.h>
  13184. int main() { struct stat x; x.st_blksize=-1; return !(x.st_blksize<0);}
  13185. _ACEOF
  13186. if ac_fn_c_try_run "$LINENO"; then :
  13187. sc_cv_type_stat_stblksize_basic="5 /* long */"
  13188. else
  13189. sc_cv_type_stat_stblksize_basic="6 /* unsigned long */"
  13190. fi
  13191. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13192. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13193. fi
  13194. else
  13195. # length differs from long, try others
  13196. if test "$cross_compiling" = yes; then :
  13197. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13199. as_fn_error $? "cannot run test program while cross compiling
  13200. See \`config.log' for more details" "$LINENO" 5; }
  13201. else
  13202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13203. /* end confdefs.h. */
  13204. #include <sys/stat.h>
  13205. int main() { struct stat x; return !(sizeof(x.st_blksize)==sizeof(long long));}
  13206. _ACEOF
  13207. if ac_fn_c_try_run "$LINENO"; then :
  13208. # same length as long long
  13209. if test "$cross_compiling" = yes; then :
  13210. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13212. as_fn_error $? "cannot run test program while cross compiling
  13213. See \`config.log' for more details" "$LINENO" 5; }
  13214. else
  13215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13216. /* end confdefs.h. */
  13217. #include <sys/stat.h>
  13218. int main() { x struct stat; x.st_blksize=-1; return !(x.st_blksize<0);}
  13219. _ACEOF
  13220. if ac_fn_c_try_run "$LINENO"; then :
  13221. sc_cv_type_stat_stblksize_basic="7 /* long long */"
  13222. else
  13223. sc_cv_type_stat_stblksize_basic="8 /* unsigned long long */"
  13224. fi
  13225. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13226. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13227. fi
  13228. else
  13229. sc_cv_type_stat_stblksize_basic="0 /* unknown */"
  13230. fi
  13231. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13232. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13233. fi
  13234. fi
  13235. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13236. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13237. fi
  13238. fi
  13239. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13240. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13241. fi
  13242. fi
  13243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13244. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13245. fi
  13246. fi
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stblksize_basic" >&5
  13248. $as_echo "$sc_cv_type_stat_stblksize_basic" >&6; }
  13249. cat >>confdefs.h <<_ACEOF
  13250. #define HAVE_TYPEOF_ST_BLKSIZE ${sc_cv_type_stat_stblksize_basic}
  13251. _ACEOF
  13252. fi
  13253. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  13254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_blocks" >&5
  13255. $as_echo_n "checking for basic type of struct stat.st_blocks... " >&6; }
  13256. if ${sc_cv_type_stat_stblocks_basic+:} false; then :
  13257. $as_echo_n "(cached) " >&6
  13258. else
  13259. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  13260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13261. /* end confdefs.h. */
  13262. #include <sys/stat.h>
  13263. int
  13264. main ()
  13265. {
  13266. struct stat u;short v; return(&u.st_blocks==&v);
  13267. ;
  13268. return 0;
  13269. }
  13270. _ACEOF
  13271. if ac_fn_c_try_compile "$LINENO"; then :
  13272. sc_cv_type_stat_stblocks_basic="1 /* short */"
  13273. else
  13274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13275. /* end confdefs.h. */
  13276. #include <sys/stat.h>
  13277. int
  13278. main ()
  13279. {
  13280. struct stat u; unsigned short v; return(&u.st_blocks==&v);
  13281. ;
  13282. return 0;
  13283. }
  13284. _ACEOF
  13285. if ac_fn_c_try_compile "$LINENO"; then :
  13286. sc_cv_type_stat_stblocks_basic="2 /* unsigned short */"
  13287. else
  13288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13289. /* end confdefs.h. */
  13290. #include <sys/stat.h>
  13291. int
  13292. main ()
  13293. {
  13294. struct stat u; int v; return(&u.st_blocks==&v);
  13295. ;
  13296. return 0;
  13297. }
  13298. _ACEOF
  13299. if ac_fn_c_try_compile "$LINENO"; then :
  13300. sc_cv_type_stat_stblocks_basic="3 /* int */"
  13301. else
  13302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13303. /* end confdefs.h. */
  13304. #include <sys/stat.h>
  13305. int
  13306. main ()
  13307. {
  13308. struct stat u; unsigned int v; return(&u.st_blocks==&v);
  13309. ;
  13310. return 0;
  13311. }
  13312. _ACEOF
  13313. if ac_fn_c_try_compile "$LINENO"; then :
  13314. sc_cv_type_stat_stblocks_basic="4 /* unsigned int */"
  13315. else
  13316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13317. /* end confdefs.h. */
  13318. #include <sys/stat.h>
  13319. int
  13320. main ()
  13321. {
  13322. struct stat u; long v; return(&u.st_blocks==&v);
  13323. ;
  13324. return 0;
  13325. }
  13326. _ACEOF
  13327. if ac_fn_c_try_compile "$LINENO"; then :
  13328. sc_cv_type_stat_stblocks_basic="5 /* long */"
  13329. else
  13330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13331. /* end confdefs.h. */
  13332. #include <sys/stat.h>
  13333. int
  13334. main ()
  13335. {
  13336. struct stat u; unsigned long v; return(&u.st_blocks==&v);
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. if ac_fn_c_try_compile "$LINENO"; then :
  13342. sc_cv_type_stat_stblocks_basic="6 /* unsigned long */"
  13343. else
  13344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13345. /* end confdefs.h. */
  13346. #include <sys/stat.h>
  13347. int
  13348. main ()
  13349. {
  13350. struct stat u; long long v; return(&u.st_blocks==&v);
  13351. ;
  13352. return 0;
  13353. }
  13354. _ACEOF
  13355. if ac_fn_c_try_compile "$LINENO"; then :
  13356. sc_cv_type_stat_stblocks_basic="7 /* long long */"
  13357. else
  13358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13359. /* end confdefs.h. */
  13360. #include <sys/stat.h>
  13361. int
  13362. main ()
  13363. {
  13364. struct stat u; unsigned long long v; return(&u.st_blocks==&v);
  13365. ;
  13366. return 0;
  13367. }
  13368. _ACEOF
  13369. if ac_fn_c_try_compile "$LINENO"; then :
  13370. sc_cv_type_stat_stblocks_basic="8 /* unsigned long long */"
  13371. else
  13372. sc_cv_type_stat_stblocks_basic="0 /* unknown, taking default */"
  13373. fi
  13374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13375. fi
  13376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13377. fi
  13378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13379. fi
  13380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13381. fi
  13382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13383. fi
  13384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13385. fi
  13386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13387. fi
  13388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13389. CFLAGS="$CFLAGS1"
  13390. fi
  13391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stblocks_basic" >&5
  13392. $as_echo "$sc_cv_type_stat_stblocks_basic" >&6; }
  13393. cat >>confdefs.h <<_ACEOF
  13394. #define HAVE_TYPEOF_ST_BLOCKS ${sc_cv_type_stat_stblocks_basic}
  13395. _ACEOF
  13396. else
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat.st_blocks" >&5
  13398. $as_echo_n "checking for basic type of struct stat.st_blocks... " >&6; }
  13399. if ${sc_cv_type_stat_stblocks_basic+:} false; then :
  13400. $as_echo_n "(cached) " >&6
  13401. else
  13402. if test "$cross_compiling" = yes; then :
  13403. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13405. as_fn_error $? "cannot run test program while cross compiling
  13406. See \`config.log' for more details" "$LINENO" 5; }
  13407. else
  13408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13409. /* end confdefs.h. */
  13410. #include <sys/stat.h>
  13411. int main() { struct stat x; return!(sizeof(x.st_blocks)==sizeof(short));}
  13412. _ACEOF
  13413. if ac_fn_c_try_run "$LINENO"; then :
  13414. # same length as short
  13415. if test "$cross_compiling" = yes; then :
  13416. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13417. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13418. as_fn_error $? "cannot run test program while cross compiling
  13419. See \`config.log' for more details" "$LINENO" 5; }
  13420. else
  13421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13422. /* end confdefs.h. */
  13423. #include <sys/stat.h>
  13424. int main() { struct stat x; x.st_blocks=-1; return !(x.st_blocks<0);}
  13425. _ACEOF
  13426. if ac_fn_c_try_run "$LINENO"; then :
  13427. sc_cv_type_stat_stblocks_basic="1 /* short */"
  13428. else
  13429. sc_cv_type_stat_stblocks_basic="2 /* unsigned short */"
  13430. fi
  13431. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13432. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13433. fi
  13434. else
  13435. # length differs from short, try others
  13436. if test "$cross_compiling" = yes; then :
  13437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13439. as_fn_error $? "cannot run test program while cross compiling
  13440. See \`config.log' for more details" "$LINENO" 5; }
  13441. else
  13442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13443. /* end confdefs.h. */
  13444. #include <sys/stat.h>
  13445. int main() { struct stat x; return!(sizeof(x.st_blocks)==sizeof(int));}
  13446. _ACEOF
  13447. if ac_fn_c_try_run "$LINENO"; then :
  13448. # same length as int
  13449. if test "$cross_compiling" = yes; then :
  13450. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13451. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13452. as_fn_error $? "cannot run test program while cross compiling
  13453. See \`config.log' for more details" "$LINENO" 5; }
  13454. else
  13455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13456. /* end confdefs.h. */
  13457. #include <sys/stat.h>
  13458. int main() { struct stat x; x.st_blocks=-1; return !(x.st_blocks<0);}
  13459. _ACEOF
  13460. if ac_fn_c_try_run "$LINENO"; then :
  13461. sc_cv_type_stat_stblocks_basic="3 /* int */"
  13462. else
  13463. sc_cv_type_stat_stblocks_basic="4 /* unsigned int */"
  13464. fi
  13465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13467. fi
  13468. else
  13469. # length differs from int, try others
  13470. if test "$cross_compiling" = yes; then :
  13471. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13472. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13473. as_fn_error $? "cannot run test program while cross compiling
  13474. See \`config.log' for more details" "$LINENO" 5; }
  13475. else
  13476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13477. /* end confdefs.h. */
  13478. #include <sys/stat.h>
  13479. int main() { struct stat x; return !(sizeof(x.st_blocks)==sizeof(long));}
  13480. _ACEOF
  13481. if ac_fn_c_try_run "$LINENO"; then :
  13482. # same length as long
  13483. if test "$cross_compiling" = yes; then :
  13484. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13486. as_fn_error $? "cannot run test program while cross compiling
  13487. See \`config.log' for more details" "$LINENO" 5; }
  13488. else
  13489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13490. /* end confdefs.h. */
  13491. #include <sys/stat.h>
  13492. int main() { struct stat x; x.st_blocks=-1; return !(x.st_blocks<0);}
  13493. _ACEOF
  13494. if ac_fn_c_try_run "$LINENO"; then :
  13495. sc_cv_type_stat_stblocks_basic="5 /* long */"
  13496. else
  13497. sc_cv_type_stat_stblocks_basic="6 /* unsigned long */"
  13498. fi
  13499. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13500. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13501. fi
  13502. else
  13503. # length differs from long, try others
  13504. if test "$cross_compiling" = yes; then :
  13505. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13506. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13507. as_fn_error $? "cannot run test program while cross compiling
  13508. See \`config.log' for more details" "$LINENO" 5; }
  13509. else
  13510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13511. /* end confdefs.h. */
  13512. #include <sys/stat.h>
  13513. int main() { struct stat x; return !(sizeof(x.st_blocks)==sizeof(long long));}
  13514. _ACEOF
  13515. if ac_fn_c_try_run "$LINENO"; then :
  13516. # same length as long long
  13517. if test "$cross_compiling" = yes; then :
  13518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13520. as_fn_error $? "cannot run test program while cross compiling
  13521. See \`config.log' for more details" "$LINENO" 5; }
  13522. else
  13523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13524. /* end confdefs.h. */
  13525. #include <sys/stat.h>
  13526. int main() { x struct stat; x.st_blocks=-1; return !(x.st_blocks<0);}
  13527. _ACEOF
  13528. if ac_fn_c_try_run "$LINENO"; then :
  13529. sc_cv_type_stat_stblocks_basic="7 /* long long */"
  13530. else
  13531. sc_cv_type_stat_stblocks_basic="8 /* unsigned long long */"
  13532. fi
  13533. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13534. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13535. fi
  13536. else
  13537. sc_cv_type_stat_stblocks_basic="0 /* unknown */"
  13538. fi
  13539. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13540. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13541. fi
  13542. fi
  13543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13544. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13545. fi
  13546. fi
  13547. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13548. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13549. fi
  13550. fi
  13551. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13552. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13553. fi
  13554. fi
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat_stblocks_basic" >&5
  13556. $as_echo "$sc_cv_type_stat_stblocks_basic" >&6; }
  13557. cat >>confdefs.h <<_ACEOF
  13558. #define HAVE_TYPEOF_ST_BLOCKS ${sc_cv_type_stat_stblocks_basic}
  13559. _ACEOF
  13560. fi
  13561. #
  13562. if test "$ac_cv_func_stat64" = yes; then
  13563. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_dev" >&5
  13565. $as_echo_n "checking for basic type of struct stat64.st_dev... " >&6; }
  13566. if ${sc_cv_type_stat64_stdev_basic+:} false; then :
  13567. $as_echo_n "(cached) " >&6
  13568. else
  13569. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  13570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13571. /* end confdefs.h. */
  13572. #include <sys/stat.h>
  13573. int
  13574. main ()
  13575. {
  13576. struct stat64 u;short v; return(&u.st_dev==&v);
  13577. ;
  13578. return 0;
  13579. }
  13580. _ACEOF
  13581. if ac_fn_c_try_compile "$LINENO"; then :
  13582. sc_cv_type_stat64_stdev_basic="1 /* short */"
  13583. else
  13584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13585. /* end confdefs.h. */
  13586. #include <sys/stat.h>
  13587. int
  13588. main ()
  13589. {
  13590. struct stat64 u; unsigned short v; return(&u.st_dev==&v);
  13591. ;
  13592. return 0;
  13593. }
  13594. _ACEOF
  13595. if ac_fn_c_try_compile "$LINENO"; then :
  13596. sc_cv_type_stat64_stdev_basic="2 /* unsigned short */"
  13597. else
  13598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13599. /* end confdefs.h. */
  13600. #include <sys/stat.h>
  13601. int
  13602. main ()
  13603. {
  13604. struct stat64 u; int v; return(&u.st_dev==&v);
  13605. ;
  13606. return 0;
  13607. }
  13608. _ACEOF
  13609. if ac_fn_c_try_compile "$LINENO"; then :
  13610. sc_cv_type_stat64_stdev_basic="3 /* int */"
  13611. else
  13612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13613. /* end confdefs.h. */
  13614. #include <sys/stat.h>
  13615. int
  13616. main ()
  13617. {
  13618. struct stat64 u; unsigned int v; return(&u.st_dev==&v);
  13619. ;
  13620. return 0;
  13621. }
  13622. _ACEOF
  13623. if ac_fn_c_try_compile "$LINENO"; then :
  13624. sc_cv_type_stat64_stdev_basic="4 /* unsigned int */"
  13625. else
  13626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13627. /* end confdefs.h. */
  13628. #include <sys/stat.h>
  13629. int
  13630. main ()
  13631. {
  13632. struct stat64 u; long v; return(&u.st_dev==&v);
  13633. ;
  13634. return 0;
  13635. }
  13636. _ACEOF
  13637. if ac_fn_c_try_compile "$LINENO"; then :
  13638. sc_cv_type_stat64_stdev_basic="5 /* long */"
  13639. else
  13640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13641. /* end confdefs.h. */
  13642. #include <sys/stat.h>
  13643. int
  13644. main ()
  13645. {
  13646. struct stat64 u; unsigned long v; return(&u.st_dev==&v);
  13647. ;
  13648. return 0;
  13649. }
  13650. _ACEOF
  13651. if ac_fn_c_try_compile "$LINENO"; then :
  13652. sc_cv_type_stat64_stdev_basic="6 /* unsigned long */"
  13653. else
  13654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13655. /* end confdefs.h. */
  13656. #include <sys/stat.h>
  13657. int
  13658. main ()
  13659. {
  13660. struct stat64 u; long long v; return(&u.st_dev==&v);
  13661. ;
  13662. return 0;
  13663. }
  13664. _ACEOF
  13665. if ac_fn_c_try_compile "$LINENO"; then :
  13666. sc_cv_type_stat64_stdev_basic="7 /* long long */"
  13667. else
  13668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13669. /* end confdefs.h. */
  13670. #include <sys/stat.h>
  13671. int
  13672. main ()
  13673. {
  13674. struct stat64 u; unsigned long long v; return(&u.st_dev==&v);
  13675. ;
  13676. return 0;
  13677. }
  13678. _ACEOF
  13679. if ac_fn_c_try_compile "$LINENO"; then :
  13680. sc_cv_type_stat64_stdev_basic="8 /* unsigned long long */"
  13681. else
  13682. sc_cv_type_stat64_stdev_basic="0 /* unknown, taking default */"
  13683. fi
  13684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13685. fi
  13686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13687. fi
  13688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13689. fi
  13690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13691. fi
  13692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13693. fi
  13694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13695. fi
  13696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13697. fi
  13698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13699. CFLAGS="$CFLAGS1"
  13700. fi
  13701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stdev_basic" >&5
  13702. $as_echo "$sc_cv_type_stat64_stdev_basic" >&6; }
  13703. cat >>confdefs.h <<_ACEOF
  13704. #define HAVE_TYPEOF_ST64_DEV ${sc_cv_type_stat64_stdev_basic}
  13705. _ACEOF
  13706. else
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_dev" >&5
  13708. $as_echo_n "checking for basic type of struct stat64.st_dev... " >&6; }
  13709. if ${sc_cv_type_stat64_stdev_basic+:} false; then :
  13710. $as_echo_n "(cached) " >&6
  13711. else
  13712. if test "$cross_compiling" = yes; then :
  13713. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13715. as_fn_error $? "cannot run test program while cross compiling
  13716. See \`config.log' for more details" "$LINENO" 5; }
  13717. else
  13718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13719. /* end confdefs.h. */
  13720. #include <sys/stat.h>
  13721. int main() { struct stat64 x; return!(sizeof(x.st_dev)==sizeof(short));}
  13722. _ACEOF
  13723. if ac_fn_c_try_run "$LINENO"; then :
  13724. # same length as short
  13725. if test "$cross_compiling" = yes; then :
  13726. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13728. as_fn_error $? "cannot run test program while cross compiling
  13729. See \`config.log' for more details" "$LINENO" 5; }
  13730. else
  13731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13732. /* end confdefs.h. */
  13733. #include <sys/stat.h>
  13734. int main() { struct stat64 x; x.st_dev=-1; return !(x.st_dev<0);}
  13735. _ACEOF
  13736. if ac_fn_c_try_run "$LINENO"; then :
  13737. sc_cv_type_stat64_stdev_basic="1 /* short */"
  13738. else
  13739. sc_cv_type_stat64_stdev_basic="2 /* unsigned short */"
  13740. fi
  13741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13742. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13743. fi
  13744. else
  13745. # length differs from short, try others
  13746. if test "$cross_compiling" = yes; then :
  13747. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13748. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13749. as_fn_error $? "cannot run test program while cross compiling
  13750. See \`config.log' for more details" "$LINENO" 5; }
  13751. else
  13752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13753. /* end confdefs.h. */
  13754. #include <sys/stat.h>
  13755. int main() { struct stat64 x; return!(sizeof(x.st_dev)==sizeof(int));}
  13756. _ACEOF
  13757. if ac_fn_c_try_run "$LINENO"; then :
  13758. # same length as int
  13759. if test "$cross_compiling" = yes; then :
  13760. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13762. as_fn_error $? "cannot run test program while cross compiling
  13763. See \`config.log' for more details" "$LINENO" 5; }
  13764. else
  13765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13766. /* end confdefs.h. */
  13767. #include <sys/stat.h>
  13768. int main() { struct stat64 x; x.st_dev=-1; return !(x.st_dev<0);}
  13769. _ACEOF
  13770. if ac_fn_c_try_run "$LINENO"; then :
  13771. sc_cv_type_stat64_stdev_basic="3 /* int */"
  13772. else
  13773. sc_cv_type_stat64_stdev_basic="4 /* unsigned int */"
  13774. fi
  13775. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13776. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13777. fi
  13778. else
  13779. # length differs from int, try others
  13780. if test "$cross_compiling" = yes; then :
  13781. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13782. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13783. as_fn_error $? "cannot run test program while cross compiling
  13784. See \`config.log' for more details" "$LINENO" 5; }
  13785. else
  13786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13787. /* end confdefs.h. */
  13788. #include <sys/stat.h>
  13789. int main() { struct stat64 x; return !(sizeof(x.st_dev)==sizeof(long));}
  13790. _ACEOF
  13791. if ac_fn_c_try_run "$LINENO"; then :
  13792. # same length as long
  13793. if test "$cross_compiling" = yes; then :
  13794. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13795. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13796. as_fn_error $? "cannot run test program while cross compiling
  13797. See \`config.log' for more details" "$LINENO" 5; }
  13798. else
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. #include <sys/stat.h>
  13802. int main() { struct stat64 x; x.st_dev=-1; return !(x.st_dev<0);}
  13803. _ACEOF
  13804. if ac_fn_c_try_run "$LINENO"; then :
  13805. sc_cv_type_stat64_stdev_basic="5 /* long */"
  13806. else
  13807. sc_cv_type_stat64_stdev_basic="6 /* unsigned long */"
  13808. fi
  13809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13810. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13811. fi
  13812. else
  13813. # length differs from long, try others
  13814. if test "$cross_compiling" = yes; then :
  13815. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13817. as_fn_error $? "cannot run test program while cross compiling
  13818. See \`config.log' for more details" "$LINENO" 5; }
  13819. else
  13820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13821. /* end confdefs.h. */
  13822. #include <sys/stat.h>
  13823. int main() { struct stat64 x; return !(sizeof(x.st_dev)==sizeof(long long));}
  13824. _ACEOF
  13825. if ac_fn_c_try_run "$LINENO"; then :
  13826. # same length as long long
  13827. if test "$cross_compiling" = yes; then :
  13828. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13830. as_fn_error $? "cannot run test program while cross compiling
  13831. See \`config.log' for more details" "$LINENO" 5; }
  13832. else
  13833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13834. /* end confdefs.h. */
  13835. #include <sys/stat.h>
  13836. int main() { x struct stat64; x.st_dev=-1; return !(x.st_dev<0);}
  13837. _ACEOF
  13838. if ac_fn_c_try_run "$LINENO"; then :
  13839. sc_cv_type_stat64_stdev_basic="7 /* long long */"
  13840. else
  13841. sc_cv_type_stat64_stdev_basic="8 /* unsigned long long */"
  13842. fi
  13843. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13844. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13845. fi
  13846. else
  13847. sc_cv_type_stat64_stdev_basic="0 /* unknown */"
  13848. fi
  13849. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13850. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13851. fi
  13852. fi
  13853. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13854. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13855. fi
  13856. fi
  13857. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13858. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13859. fi
  13860. fi
  13861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13862. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13863. fi
  13864. fi
  13865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stdev_basic" >&5
  13866. $as_echo "$sc_cv_type_stat64_stdev_basic" >&6; }
  13867. cat >>confdefs.h <<_ACEOF
  13868. #define HAVE_TYPEOF_ST64_DEV ${sc_cv_type_stat64_stdev_basic}
  13869. _ACEOF
  13870. fi
  13871. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_ino" >&5
  13873. $as_echo_n "checking for basic type of struct stat64.st_ino... " >&6; }
  13874. if ${sc_cv_type_stat64_stino_basic+:} false; then :
  13875. $as_echo_n "(cached) " >&6
  13876. else
  13877. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  13878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13879. /* end confdefs.h. */
  13880. #include <sys/stat.h>
  13881. int
  13882. main ()
  13883. {
  13884. struct stat64 u;short v; return(&u.st_ino==&v);
  13885. ;
  13886. return 0;
  13887. }
  13888. _ACEOF
  13889. if ac_fn_c_try_compile "$LINENO"; then :
  13890. sc_cv_type_stat64_stino_basic="1 /* short */"
  13891. else
  13892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13893. /* end confdefs.h. */
  13894. #include <sys/stat.h>
  13895. int
  13896. main ()
  13897. {
  13898. struct stat64 u; unsigned short v; return(&u.st_ino==&v);
  13899. ;
  13900. return 0;
  13901. }
  13902. _ACEOF
  13903. if ac_fn_c_try_compile "$LINENO"; then :
  13904. sc_cv_type_stat64_stino_basic="2 /* unsigned short */"
  13905. else
  13906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13907. /* end confdefs.h. */
  13908. #include <sys/stat.h>
  13909. int
  13910. main ()
  13911. {
  13912. struct stat64 u; int v; return(&u.st_ino==&v);
  13913. ;
  13914. return 0;
  13915. }
  13916. _ACEOF
  13917. if ac_fn_c_try_compile "$LINENO"; then :
  13918. sc_cv_type_stat64_stino_basic="3 /* int */"
  13919. else
  13920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13921. /* end confdefs.h. */
  13922. #include <sys/stat.h>
  13923. int
  13924. main ()
  13925. {
  13926. struct stat64 u; unsigned int v; return(&u.st_ino==&v);
  13927. ;
  13928. return 0;
  13929. }
  13930. _ACEOF
  13931. if ac_fn_c_try_compile "$LINENO"; then :
  13932. sc_cv_type_stat64_stino_basic="4 /* unsigned int */"
  13933. else
  13934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13935. /* end confdefs.h. */
  13936. #include <sys/stat.h>
  13937. int
  13938. main ()
  13939. {
  13940. struct stat64 u; long v; return(&u.st_ino==&v);
  13941. ;
  13942. return 0;
  13943. }
  13944. _ACEOF
  13945. if ac_fn_c_try_compile "$LINENO"; then :
  13946. sc_cv_type_stat64_stino_basic="5 /* long */"
  13947. else
  13948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13949. /* end confdefs.h. */
  13950. #include <sys/stat.h>
  13951. int
  13952. main ()
  13953. {
  13954. struct stat64 u; unsigned long v; return(&u.st_ino==&v);
  13955. ;
  13956. return 0;
  13957. }
  13958. _ACEOF
  13959. if ac_fn_c_try_compile "$LINENO"; then :
  13960. sc_cv_type_stat64_stino_basic="6 /* unsigned long */"
  13961. else
  13962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13963. /* end confdefs.h. */
  13964. #include <sys/stat.h>
  13965. int
  13966. main ()
  13967. {
  13968. struct stat64 u; long long v; return(&u.st_ino==&v);
  13969. ;
  13970. return 0;
  13971. }
  13972. _ACEOF
  13973. if ac_fn_c_try_compile "$LINENO"; then :
  13974. sc_cv_type_stat64_stino_basic="7 /* long long */"
  13975. else
  13976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13977. /* end confdefs.h. */
  13978. #include <sys/stat.h>
  13979. int
  13980. main ()
  13981. {
  13982. struct stat64 u; unsigned long long v; return(&u.st_ino==&v);
  13983. ;
  13984. return 0;
  13985. }
  13986. _ACEOF
  13987. if ac_fn_c_try_compile "$LINENO"; then :
  13988. sc_cv_type_stat64_stino_basic="8 /* unsigned long long */"
  13989. else
  13990. sc_cv_type_stat64_stino_basic="0 /* unknown, taking default */"
  13991. fi
  13992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13997. fi
  13998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13999. fi
  14000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14001. fi
  14002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14003. fi
  14004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14005. fi
  14006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14007. CFLAGS="$CFLAGS1"
  14008. fi
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stino_basic" >&5
  14010. $as_echo "$sc_cv_type_stat64_stino_basic" >&6; }
  14011. cat >>confdefs.h <<_ACEOF
  14012. #define HAVE_TYPEOF_ST64_INO ${sc_cv_type_stat64_stino_basic}
  14013. _ACEOF
  14014. else
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_ino" >&5
  14016. $as_echo_n "checking for basic type of struct stat64.st_ino... " >&6; }
  14017. if ${sc_cv_type_stat64_stino_basic+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. if test "$cross_compiling" = yes; then :
  14021. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14023. as_fn_error $? "cannot run test program while cross compiling
  14024. See \`config.log' for more details" "$LINENO" 5; }
  14025. else
  14026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14027. /* end confdefs.h. */
  14028. #include <sys/stat.h>
  14029. int main() { struct stat64 x; return!(sizeof(x.st_ino)==sizeof(short));}
  14030. _ACEOF
  14031. if ac_fn_c_try_run "$LINENO"; then :
  14032. # same length as short
  14033. if test "$cross_compiling" = yes; then :
  14034. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14035. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14036. as_fn_error $? "cannot run test program while cross compiling
  14037. See \`config.log' for more details" "$LINENO" 5; }
  14038. else
  14039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14040. /* end confdefs.h. */
  14041. #include <sys/stat.h>
  14042. int main() { struct stat64 x; x.st_ino=-1; return !(x.st_ino<0);}
  14043. _ACEOF
  14044. if ac_fn_c_try_run "$LINENO"; then :
  14045. sc_cv_type_stat64_stino_basic="1 /* short */"
  14046. else
  14047. sc_cv_type_stat64_stino_basic="2 /* unsigned short */"
  14048. fi
  14049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14051. fi
  14052. else
  14053. # length differs from short, try others
  14054. if test "$cross_compiling" = yes; then :
  14055. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14057. as_fn_error $? "cannot run test program while cross compiling
  14058. See \`config.log' for more details" "$LINENO" 5; }
  14059. else
  14060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14061. /* end confdefs.h. */
  14062. #include <sys/stat.h>
  14063. int main() { struct stat64 x; return!(sizeof(x.st_ino)==sizeof(int));}
  14064. _ACEOF
  14065. if ac_fn_c_try_run "$LINENO"; then :
  14066. # same length as int
  14067. if test "$cross_compiling" = yes; then :
  14068. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14070. as_fn_error $? "cannot run test program while cross compiling
  14071. See \`config.log' for more details" "$LINENO" 5; }
  14072. else
  14073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14074. /* end confdefs.h. */
  14075. #include <sys/stat.h>
  14076. int main() { struct stat64 x; x.st_ino=-1; return !(x.st_ino<0);}
  14077. _ACEOF
  14078. if ac_fn_c_try_run "$LINENO"; then :
  14079. sc_cv_type_stat64_stino_basic="3 /* int */"
  14080. else
  14081. sc_cv_type_stat64_stino_basic="4 /* unsigned int */"
  14082. fi
  14083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14084. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14085. fi
  14086. else
  14087. # length differs from int, try others
  14088. if test "$cross_compiling" = yes; then :
  14089. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14091. as_fn_error $? "cannot run test program while cross compiling
  14092. See \`config.log' for more details" "$LINENO" 5; }
  14093. else
  14094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14095. /* end confdefs.h. */
  14096. #include <sys/stat.h>
  14097. int main() { struct stat64 x; return !(sizeof(x.st_ino)==sizeof(long));}
  14098. _ACEOF
  14099. if ac_fn_c_try_run "$LINENO"; then :
  14100. # same length as long
  14101. if test "$cross_compiling" = yes; then :
  14102. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14104. as_fn_error $? "cannot run test program while cross compiling
  14105. See \`config.log' for more details" "$LINENO" 5; }
  14106. else
  14107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14108. /* end confdefs.h. */
  14109. #include <sys/stat.h>
  14110. int main() { struct stat64 x; x.st_ino=-1; return !(x.st_ino<0);}
  14111. _ACEOF
  14112. if ac_fn_c_try_run "$LINENO"; then :
  14113. sc_cv_type_stat64_stino_basic="5 /* long */"
  14114. else
  14115. sc_cv_type_stat64_stino_basic="6 /* unsigned long */"
  14116. fi
  14117. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14118. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14119. fi
  14120. else
  14121. # length differs from long, try others
  14122. if test "$cross_compiling" = yes; then :
  14123. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14125. as_fn_error $? "cannot run test program while cross compiling
  14126. See \`config.log' for more details" "$LINENO" 5; }
  14127. else
  14128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14129. /* end confdefs.h. */
  14130. #include <sys/stat.h>
  14131. int main() { struct stat64 x; return !(sizeof(x.st_ino)==sizeof(long long));}
  14132. _ACEOF
  14133. if ac_fn_c_try_run "$LINENO"; then :
  14134. # same length as long long
  14135. if test "$cross_compiling" = yes; then :
  14136. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14138. as_fn_error $? "cannot run test program while cross compiling
  14139. See \`config.log' for more details" "$LINENO" 5; }
  14140. else
  14141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14142. /* end confdefs.h. */
  14143. #include <sys/stat.h>
  14144. int main() { x struct stat64; x.st_ino=-1; return !(x.st_ino<0);}
  14145. _ACEOF
  14146. if ac_fn_c_try_run "$LINENO"; then :
  14147. sc_cv_type_stat64_stino_basic="7 /* long long */"
  14148. else
  14149. sc_cv_type_stat64_stino_basic="8 /* unsigned long long */"
  14150. fi
  14151. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14152. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14153. fi
  14154. else
  14155. sc_cv_type_stat64_stino_basic="0 /* unknown */"
  14156. fi
  14157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14158. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14159. fi
  14160. fi
  14161. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14162. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14163. fi
  14164. fi
  14165. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14166. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14167. fi
  14168. fi
  14169. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14170. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14171. fi
  14172. fi
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stino_basic" >&5
  14174. $as_echo "$sc_cv_type_stat64_stino_basic" >&6; }
  14175. cat >>confdefs.h <<_ACEOF
  14176. #define HAVE_TYPEOF_ST64_INO ${sc_cv_type_stat64_stino_basic}
  14177. _ACEOF
  14178. fi
  14179. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_nlink" >&5
  14181. $as_echo_n "checking for basic type of struct stat64.st_nlink... " >&6; }
  14182. if ${sc_cv_type_stat64_stnlink_basic+:} false; then :
  14183. $as_echo_n "(cached) " >&6
  14184. else
  14185. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  14186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14187. /* end confdefs.h. */
  14188. #include <sys/stat.h>
  14189. int
  14190. main ()
  14191. {
  14192. struct stat64 u;short v; return(&u.st_nlink==&v);
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. if ac_fn_c_try_compile "$LINENO"; then :
  14198. sc_cv_type_stat64_stnlink_basic="1 /* short */"
  14199. else
  14200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14201. /* end confdefs.h. */
  14202. #include <sys/stat.h>
  14203. int
  14204. main ()
  14205. {
  14206. struct stat64 u; unsigned short v; return(&u.st_nlink==&v);
  14207. ;
  14208. return 0;
  14209. }
  14210. _ACEOF
  14211. if ac_fn_c_try_compile "$LINENO"; then :
  14212. sc_cv_type_stat64_stnlink_basic="2 /* unsigned short */"
  14213. else
  14214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14215. /* end confdefs.h. */
  14216. #include <sys/stat.h>
  14217. int
  14218. main ()
  14219. {
  14220. struct stat64 u; int v; return(&u.st_nlink==&v);
  14221. ;
  14222. return 0;
  14223. }
  14224. _ACEOF
  14225. if ac_fn_c_try_compile "$LINENO"; then :
  14226. sc_cv_type_stat64_stnlink_basic="3 /* int */"
  14227. else
  14228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14229. /* end confdefs.h. */
  14230. #include <sys/stat.h>
  14231. int
  14232. main ()
  14233. {
  14234. struct stat64 u; unsigned int v; return(&u.st_nlink==&v);
  14235. ;
  14236. return 0;
  14237. }
  14238. _ACEOF
  14239. if ac_fn_c_try_compile "$LINENO"; then :
  14240. sc_cv_type_stat64_stnlink_basic="4 /* unsigned int */"
  14241. else
  14242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14243. /* end confdefs.h. */
  14244. #include <sys/stat.h>
  14245. int
  14246. main ()
  14247. {
  14248. struct stat64 u; long v; return(&u.st_nlink==&v);
  14249. ;
  14250. return 0;
  14251. }
  14252. _ACEOF
  14253. if ac_fn_c_try_compile "$LINENO"; then :
  14254. sc_cv_type_stat64_stnlink_basic="5 /* long */"
  14255. else
  14256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14257. /* end confdefs.h. */
  14258. #include <sys/stat.h>
  14259. int
  14260. main ()
  14261. {
  14262. struct stat64 u; unsigned long v; return(&u.st_nlink==&v);
  14263. ;
  14264. return 0;
  14265. }
  14266. _ACEOF
  14267. if ac_fn_c_try_compile "$LINENO"; then :
  14268. sc_cv_type_stat64_stnlink_basic="6 /* unsigned long */"
  14269. else
  14270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14271. /* end confdefs.h. */
  14272. #include <sys/stat.h>
  14273. int
  14274. main ()
  14275. {
  14276. struct stat64 u; long long v; return(&u.st_nlink==&v);
  14277. ;
  14278. return 0;
  14279. }
  14280. _ACEOF
  14281. if ac_fn_c_try_compile "$LINENO"; then :
  14282. sc_cv_type_stat64_stnlink_basic="7 /* long long */"
  14283. else
  14284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14285. /* end confdefs.h. */
  14286. #include <sys/stat.h>
  14287. int
  14288. main ()
  14289. {
  14290. struct stat64 u; unsigned long long v; return(&u.st_nlink==&v);
  14291. ;
  14292. return 0;
  14293. }
  14294. _ACEOF
  14295. if ac_fn_c_try_compile "$LINENO"; then :
  14296. sc_cv_type_stat64_stnlink_basic="8 /* unsigned long long */"
  14297. else
  14298. sc_cv_type_stat64_stnlink_basic="0 /* unknown, taking default */"
  14299. fi
  14300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14301. fi
  14302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14303. fi
  14304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14305. fi
  14306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14307. fi
  14308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14309. fi
  14310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14313. fi
  14314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14315. CFLAGS="$CFLAGS1"
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stnlink_basic" >&5
  14318. $as_echo "$sc_cv_type_stat64_stnlink_basic" >&6; }
  14319. cat >>confdefs.h <<_ACEOF
  14320. #define HAVE_TYPEOF_ST64_NLINK ${sc_cv_type_stat64_stnlink_basic}
  14321. _ACEOF
  14322. else
  14323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_nlink" >&5
  14324. $as_echo_n "checking for basic type of struct stat64.st_nlink... " >&6; }
  14325. if ${sc_cv_type_stat64_stnlink_basic+:} false; then :
  14326. $as_echo_n "(cached) " >&6
  14327. else
  14328. if test "$cross_compiling" = yes; then :
  14329. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14331. as_fn_error $? "cannot run test program while cross compiling
  14332. See \`config.log' for more details" "$LINENO" 5; }
  14333. else
  14334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14335. /* end confdefs.h. */
  14336. #include <sys/stat.h>
  14337. int main() { struct stat64 x; return!(sizeof(x.st_nlink)==sizeof(short));}
  14338. _ACEOF
  14339. if ac_fn_c_try_run "$LINENO"; then :
  14340. # same length as short
  14341. if test "$cross_compiling" = yes; then :
  14342. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14343. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14344. as_fn_error $? "cannot run test program while cross compiling
  14345. See \`config.log' for more details" "$LINENO" 5; }
  14346. else
  14347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14348. /* end confdefs.h. */
  14349. #include <sys/stat.h>
  14350. int main() { struct stat64 x; x.st_nlink=-1; return !(x.st_nlink<0);}
  14351. _ACEOF
  14352. if ac_fn_c_try_run "$LINENO"; then :
  14353. sc_cv_type_stat64_stnlink_basic="1 /* short */"
  14354. else
  14355. sc_cv_type_stat64_stnlink_basic="2 /* unsigned short */"
  14356. fi
  14357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14358. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14359. fi
  14360. else
  14361. # length differs from short, try others
  14362. if test "$cross_compiling" = yes; then :
  14363. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14365. as_fn_error $? "cannot run test program while cross compiling
  14366. See \`config.log' for more details" "$LINENO" 5; }
  14367. else
  14368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14369. /* end confdefs.h. */
  14370. #include <sys/stat.h>
  14371. int main() { struct stat64 x; return!(sizeof(x.st_nlink)==sizeof(int));}
  14372. _ACEOF
  14373. if ac_fn_c_try_run "$LINENO"; then :
  14374. # same length as int
  14375. if test "$cross_compiling" = yes; then :
  14376. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14377. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14378. as_fn_error $? "cannot run test program while cross compiling
  14379. See \`config.log' for more details" "$LINENO" 5; }
  14380. else
  14381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14382. /* end confdefs.h. */
  14383. #include <sys/stat.h>
  14384. int main() { struct stat64 x; x.st_nlink=-1; return !(x.st_nlink<0);}
  14385. _ACEOF
  14386. if ac_fn_c_try_run "$LINENO"; then :
  14387. sc_cv_type_stat64_stnlink_basic="3 /* int */"
  14388. else
  14389. sc_cv_type_stat64_stnlink_basic="4 /* unsigned int */"
  14390. fi
  14391. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14392. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14393. fi
  14394. else
  14395. # length differs from int, try others
  14396. if test "$cross_compiling" = yes; then :
  14397. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14398. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14399. as_fn_error $? "cannot run test program while cross compiling
  14400. See \`config.log' for more details" "$LINENO" 5; }
  14401. else
  14402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14403. /* end confdefs.h. */
  14404. #include <sys/stat.h>
  14405. int main() { struct stat64 x; return !(sizeof(x.st_nlink)==sizeof(long));}
  14406. _ACEOF
  14407. if ac_fn_c_try_run "$LINENO"; then :
  14408. # same length as long
  14409. if test "$cross_compiling" = yes; then :
  14410. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14411. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14412. as_fn_error $? "cannot run test program while cross compiling
  14413. See \`config.log' for more details" "$LINENO" 5; }
  14414. else
  14415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14416. /* end confdefs.h. */
  14417. #include <sys/stat.h>
  14418. int main() { struct stat64 x; x.st_nlink=-1; return !(x.st_nlink<0);}
  14419. _ACEOF
  14420. if ac_fn_c_try_run "$LINENO"; then :
  14421. sc_cv_type_stat64_stnlink_basic="5 /* long */"
  14422. else
  14423. sc_cv_type_stat64_stnlink_basic="6 /* unsigned long */"
  14424. fi
  14425. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14426. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14427. fi
  14428. else
  14429. # length differs from long, try others
  14430. if test "$cross_compiling" = yes; then :
  14431. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14432. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14433. as_fn_error $? "cannot run test program while cross compiling
  14434. See \`config.log' for more details" "$LINENO" 5; }
  14435. else
  14436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14437. /* end confdefs.h. */
  14438. #include <sys/stat.h>
  14439. int main() { struct stat64 x; return !(sizeof(x.st_nlink)==sizeof(long long));}
  14440. _ACEOF
  14441. if ac_fn_c_try_run "$LINENO"; then :
  14442. # same length as long long
  14443. if test "$cross_compiling" = yes; then :
  14444. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14445. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14446. as_fn_error $? "cannot run test program while cross compiling
  14447. See \`config.log' for more details" "$LINENO" 5; }
  14448. else
  14449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14450. /* end confdefs.h. */
  14451. #include <sys/stat.h>
  14452. int main() { x struct stat64; x.st_nlink=-1; return !(x.st_nlink<0);}
  14453. _ACEOF
  14454. if ac_fn_c_try_run "$LINENO"; then :
  14455. sc_cv_type_stat64_stnlink_basic="7 /* long long */"
  14456. else
  14457. sc_cv_type_stat64_stnlink_basic="8 /* unsigned long long */"
  14458. fi
  14459. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14460. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14461. fi
  14462. else
  14463. sc_cv_type_stat64_stnlink_basic="0 /* unknown */"
  14464. fi
  14465. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14466. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14467. fi
  14468. fi
  14469. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14470. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14471. fi
  14472. fi
  14473. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14474. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14475. fi
  14476. fi
  14477. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14478. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14479. fi
  14480. fi
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stnlink_basic" >&5
  14482. $as_echo "$sc_cv_type_stat64_stnlink_basic" >&6; }
  14483. cat >>confdefs.h <<_ACEOF
  14484. #define HAVE_TYPEOF_ST64_NLINK ${sc_cv_type_stat64_stnlink_basic}
  14485. _ACEOF
  14486. fi
  14487. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_size" >&5
  14489. $as_echo_n "checking for basic type of struct stat64.st_size... " >&6; }
  14490. if ${sc_cv_type_stat64_stsize_basic+:} false; then :
  14491. $as_echo_n "(cached) " >&6
  14492. else
  14493. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  14494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14495. /* end confdefs.h. */
  14496. #include <sys/stat.h>
  14497. int
  14498. main ()
  14499. {
  14500. struct stat64 u;short v; return(&u.st_size==&v);
  14501. ;
  14502. return 0;
  14503. }
  14504. _ACEOF
  14505. if ac_fn_c_try_compile "$LINENO"; then :
  14506. sc_cv_type_stat64_stsize_basic="1 /* short */"
  14507. else
  14508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14509. /* end confdefs.h. */
  14510. #include <sys/stat.h>
  14511. int
  14512. main ()
  14513. {
  14514. struct stat64 u; unsigned short v; return(&u.st_size==&v);
  14515. ;
  14516. return 0;
  14517. }
  14518. _ACEOF
  14519. if ac_fn_c_try_compile "$LINENO"; then :
  14520. sc_cv_type_stat64_stsize_basic="2 /* unsigned short */"
  14521. else
  14522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14523. /* end confdefs.h. */
  14524. #include <sys/stat.h>
  14525. int
  14526. main ()
  14527. {
  14528. struct stat64 u; int v; return(&u.st_size==&v);
  14529. ;
  14530. return 0;
  14531. }
  14532. _ACEOF
  14533. if ac_fn_c_try_compile "$LINENO"; then :
  14534. sc_cv_type_stat64_stsize_basic="3 /* int */"
  14535. else
  14536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14537. /* end confdefs.h. */
  14538. #include <sys/stat.h>
  14539. int
  14540. main ()
  14541. {
  14542. struct stat64 u; unsigned int v; return(&u.st_size==&v);
  14543. ;
  14544. return 0;
  14545. }
  14546. _ACEOF
  14547. if ac_fn_c_try_compile "$LINENO"; then :
  14548. sc_cv_type_stat64_stsize_basic="4 /* unsigned int */"
  14549. else
  14550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14551. /* end confdefs.h. */
  14552. #include <sys/stat.h>
  14553. int
  14554. main ()
  14555. {
  14556. struct stat64 u; long v; return(&u.st_size==&v);
  14557. ;
  14558. return 0;
  14559. }
  14560. _ACEOF
  14561. if ac_fn_c_try_compile "$LINENO"; then :
  14562. sc_cv_type_stat64_stsize_basic="5 /* long */"
  14563. else
  14564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14565. /* end confdefs.h. */
  14566. #include <sys/stat.h>
  14567. int
  14568. main ()
  14569. {
  14570. struct stat64 u; unsigned long v; return(&u.st_size==&v);
  14571. ;
  14572. return 0;
  14573. }
  14574. _ACEOF
  14575. if ac_fn_c_try_compile "$LINENO"; then :
  14576. sc_cv_type_stat64_stsize_basic="6 /* unsigned long */"
  14577. else
  14578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14579. /* end confdefs.h. */
  14580. #include <sys/stat.h>
  14581. int
  14582. main ()
  14583. {
  14584. struct stat64 u; long long v; return(&u.st_size==&v);
  14585. ;
  14586. return 0;
  14587. }
  14588. _ACEOF
  14589. if ac_fn_c_try_compile "$LINENO"; then :
  14590. sc_cv_type_stat64_stsize_basic="7 /* long long */"
  14591. else
  14592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14593. /* end confdefs.h. */
  14594. #include <sys/stat.h>
  14595. int
  14596. main ()
  14597. {
  14598. struct stat64 u; unsigned long long v; return(&u.st_size==&v);
  14599. ;
  14600. return 0;
  14601. }
  14602. _ACEOF
  14603. if ac_fn_c_try_compile "$LINENO"; then :
  14604. sc_cv_type_stat64_stsize_basic="8 /* unsigned long long */"
  14605. else
  14606. sc_cv_type_stat64_stsize_basic="0 /* unknown, taking default */"
  14607. fi
  14608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14609. fi
  14610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14611. fi
  14612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14613. fi
  14614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14615. fi
  14616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14617. fi
  14618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14619. fi
  14620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14621. fi
  14622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14623. CFLAGS="$CFLAGS1"
  14624. fi
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stsize_basic" >&5
  14626. $as_echo "$sc_cv_type_stat64_stsize_basic" >&6; }
  14627. cat >>confdefs.h <<_ACEOF
  14628. #define HAVE_TYPEOF_ST64_SIZE ${sc_cv_type_stat64_stsize_basic}
  14629. _ACEOF
  14630. else
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_size" >&5
  14632. $as_echo_n "checking for basic type of struct stat64.st_size... " >&6; }
  14633. if ${sc_cv_type_stat64_stsize_basic+:} false; then :
  14634. $as_echo_n "(cached) " >&6
  14635. else
  14636. if test "$cross_compiling" = yes; then :
  14637. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14639. as_fn_error $? "cannot run test program while cross compiling
  14640. See \`config.log' for more details" "$LINENO" 5; }
  14641. else
  14642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14643. /* end confdefs.h. */
  14644. #include <sys/stat.h>
  14645. int main() { struct stat64 x; return!(sizeof(x.st_size)==sizeof(short));}
  14646. _ACEOF
  14647. if ac_fn_c_try_run "$LINENO"; then :
  14648. # same length as short
  14649. if test "$cross_compiling" = yes; then :
  14650. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14651. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14652. as_fn_error $? "cannot run test program while cross compiling
  14653. See \`config.log' for more details" "$LINENO" 5; }
  14654. else
  14655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14656. /* end confdefs.h. */
  14657. #include <sys/stat.h>
  14658. int main() { struct stat64 x; x.st_size=-1; return !(x.st_size<0);}
  14659. _ACEOF
  14660. if ac_fn_c_try_run "$LINENO"; then :
  14661. sc_cv_type_stat64_stsize_basic="1 /* short */"
  14662. else
  14663. sc_cv_type_stat64_stsize_basic="2 /* unsigned short */"
  14664. fi
  14665. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14666. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14667. fi
  14668. else
  14669. # length differs from short, try others
  14670. if test "$cross_compiling" = yes; then :
  14671. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14672. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14673. as_fn_error $? "cannot run test program while cross compiling
  14674. See \`config.log' for more details" "$LINENO" 5; }
  14675. else
  14676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14677. /* end confdefs.h. */
  14678. #include <sys/stat.h>
  14679. int main() { struct stat64 x; return!(sizeof(x.st_size)==sizeof(int));}
  14680. _ACEOF
  14681. if ac_fn_c_try_run "$LINENO"; then :
  14682. # same length as int
  14683. if test "$cross_compiling" = yes; then :
  14684. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14685. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14686. as_fn_error $? "cannot run test program while cross compiling
  14687. See \`config.log' for more details" "$LINENO" 5; }
  14688. else
  14689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14690. /* end confdefs.h. */
  14691. #include <sys/stat.h>
  14692. int main() { struct stat64 x; x.st_size=-1; return !(x.st_size<0);}
  14693. _ACEOF
  14694. if ac_fn_c_try_run "$LINENO"; then :
  14695. sc_cv_type_stat64_stsize_basic="3 /* int */"
  14696. else
  14697. sc_cv_type_stat64_stsize_basic="4 /* unsigned int */"
  14698. fi
  14699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14700. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14701. fi
  14702. else
  14703. # length differs from int, try others
  14704. if test "$cross_compiling" = yes; then :
  14705. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14707. as_fn_error $? "cannot run test program while cross compiling
  14708. See \`config.log' for more details" "$LINENO" 5; }
  14709. else
  14710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14711. /* end confdefs.h. */
  14712. #include <sys/stat.h>
  14713. int main() { struct stat64 x; return !(sizeof(x.st_size)==sizeof(long));}
  14714. _ACEOF
  14715. if ac_fn_c_try_run "$LINENO"; then :
  14716. # same length as long
  14717. if test "$cross_compiling" = yes; then :
  14718. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14719. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14720. as_fn_error $? "cannot run test program while cross compiling
  14721. See \`config.log' for more details" "$LINENO" 5; }
  14722. else
  14723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14724. /* end confdefs.h. */
  14725. #include <sys/stat.h>
  14726. int main() { struct stat64 x; x.st_size=-1; return !(x.st_size<0);}
  14727. _ACEOF
  14728. if ac_fn_c_try_run "$LINENO"; then :
  14729. sc_cv_type_stat64_stsize_basic="5 /* long */"
  14730. else
  14731. sc_cv_type_stat64_stsize_basic="6 /* unsigned long */"
  14732. fi
  14733. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14734. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14735. fi
  14736. else
  14737. # length differs from long, try others
  14738. if test "$cross_compiling" = yes; then :
  14739. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14741. as_fn_error $? "cannot run test program while cross compiling
  14742. See \`config.log' for more details" "$LINENO" 5; }
  14743. else
  14744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14745. /* end confdefs.h. */
  14746. #include <sys/stat.h>
  14747. int main() { struct stat64 x; return !(sizeof(x.st_size)==sizeof(long long));}
  14748. _ACEOF
  14749. if ac_fn_c_try_run "$LINENO"; then :
  14750. # same length as long long
  14751. if test "$cross_compiling" = yes; then :
  14752. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14754. as_fn_error $? "cannot run test program while cross compiling
  14755. See \`config.log' for more details" "$LINENO" 5; }
  14756. else
  14757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14758. /* end confdefs.h. */
  14759. #include <sys/stat.h>
  14760. int main() { x struct stat64; x.st_size=-1; return !(x.st_size<0);}
  14761. _ACEOF
  14762. if ac_fn_c_try_run "$LINENO"; then :
  14763. sc_cv_type_stat64_stsize_basic="7 /* long long */"
  14764. else
  14765. sc_cv_type_stat64_stsize_basic="8 /* unsigned long long */"
  14766. fi
  14767. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14768. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14769. fi
  14770. else
  14771. sc_cv_type_stat64_stsize_basic="0 /* unknown */"
  14772. fi
  14773. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14774. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14775. fi
  14776. fi
  14777. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14778. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14779. fi
  14780. fi
  14781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14782. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14783. fi
  14784. fi
  14785. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14786. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14787. fi
  14788. fi
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stsize_basic" >&5
  14790. $as_echo "$sc_cv_type_stat64_stsize_basic" >&6; }
  14791. cat >>confdefs.h <<_ACEOF
  14792. #define HAVE_TYPEOF_ST64_SIZE ${sc_cv_type_stat64_stsize_basic}
  14793. _ACEOF
  14794. fi
  14795. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_blksize" >&5
  14797. $as_echo_n "checking for basic type of struct stat64.st_blksize... " >&6; }
  14798. if ${sc_cv_type_stat64_stblksize_basic+:} false; then :
  14799. $as_echo_n "(cached) " >&6
  14800. else
  14801. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  14802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14803. /* end confdefs.h. */
  14804. #include <sys/stat.h>
  14805. int
  14806. main ()
  14807. {
  14808. struct stat64 u;short v; return(&u.st_blksize==&v);
  14809. ;
  14810. return 0;
  14811. }
  14812. _ACEOF
  14813. if ac_fn_c_try_compile "$LINENO"; then :
  14814. sc_cv_type_stat64_stblksize_basic="1 /* short */"
  14815. else
  14816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14817. /* end confdefs.h. */
  14818. #include <sys/stat.h>
  14819. int
  14820. main ()
  14821. {
  14822. struct stat64 u; unsigned short v; return(&u.st_blksize==&v);
  14823. ;
  14824. return 0;
  14825. }
  14826. _ACEOF
  14827. if ac_fn_c_try_compile "$LINENO"; then :
  14828. sc_cv_type_stat64_stblksize_basic="2 /* unsigned short */"
  14829. else
  14830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14831. /* end confdefs.h. */
  14832. #include <sys/stat.h>
  14833. int
  14834. main ()
  14835. {
  14836. struct stat64 u; int v; return(&u.st_blksize==&v);
  14837. ;
  14838. return 0;
  14839. }
  14840. _ACEOF
  14841. if ac_fn_c_try_compile "$LINENO"; then :
  14842. sc_cv_type_stat64_stblksize_basic="3 /* int */"
  14843. else
  14844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14845. /* end confdefs.h. */
  14846. #include <sys/stat.h>
  14847. int
  14848. main ()
  14849. {
  14850. struct stat64 u; unsigned int v; return(&u.st_blksize==&v);
  14851. ;
  14852. return 0;
  14853. }
  14854. _ACEOF
  14855. if ac_fn_c_try_compile "$LINENO"; then :
  14856. sc_cv_type_stat64_stblksize_basic="4 /* unsigned int */"
  14857. else
  14858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14859. /* end confdefs.h. */
  14860. #include <sys/stat.h>
  14861. int
  14862. main ()
  14863. {
  14864. struct stat64 u; long v; return(&u.st_blksize==&v);
  14865. ;
  14866. return 0;
  14867. }
  14868. _ACEOF
  14869. if ac_fn_c_try_compile "$LINENO"; then :
  14870. sc_cv_type_stat64_stblksize_basic="5 /* long */"
  14871. else
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. #include <sys/stat.h>
  14875. int
  14876. main ()
  14877. {
  14878. struct stat64 u; unsigned long v; return(&u.st_blksize==&v);
  14879. ;
  14880. return 0;
  14881. }
  14882. _ACEOF
  14883. if ac_fn_c_try_compile "$LINENO"; then :
  14884. sc_cv_type_stat64_stblksize_basic="6 /* unsigned long */"
  14885. else
  14886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14887. /* end confdefs.h. */
  14888. #include <sys/stat.h>
  14889. int
  14890. main ()
  14891. {
  14892. struct stat64 u; long long v; return(&u.st_blksize==&v);
  14893. ;
  14894. return 0;
  14895. }
  14896. _ACEOF
  14897. if ac_fn_c_try_compile "$LINENO"; then :
  14898. sc_cv_type_stat64_stblksize_basic="7 /* long long */"
  14899. else
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. #include <sys/stat.h>
  14903. int
  14904. main ()
  14905. {
  14906. struct stat64 u; unsigned long long v; return(&u.st_blksize==&v);
  14907. ;
  14908. return 0;
  14909. }
  14910. _ACEOF
  14911. if ac_fn_c_try_compile "$LINENO"; then :
  14912. sc_cv_type_stat64_stblksize_basic="8 /* unsigned long long */"
  14913. else
  14914. sc_cv_type_stat64_stblksize_basic="0 /* unknown, taking default */"
  14915. fi
  14916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14917. fi
  14918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14921. fi
  14922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14923. fi
  14924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14925. fi
  14926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14927. fi
  14928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14929. fi
  14930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14931. CFLAGS="$CFLAGS1"
  14932. fi
  14933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stblksize_basic" >&5
  14934. $as_echo "$sc_cv_type_stat64_stblksize_basic" >&6; }
  14935. cat >>confdefs.h <<_ACEOF
  14936. #define HAVE_TYPEOF_ST64_BLKSIZE ${sc_cv_type_stat64_stblksize_basic}
  14937. _ACEOF
  14938. else
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_blksize" >&5
  14940. $as_echo_n "checking for basic type of struct stat64.st_blksize... " >&6; }
  14941. if ${sc_cv_type_stat64_stblksize_basic+:} false; then :
  14942. $as_echo_n "(cached) " >&6
  14943. else
  14944. if test "$cross_compiling" = yes; then :
  14945. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14947. as_fn_error $? "cannot run test program while cross compiling
  14948. See \`config.log' for more details" "$LINENO" 5; }
  14949. else
  14950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14951. /* end confdefs.h. */
  14952. #include <sys/stat.h>
  14953. int main() { struct stat64 x; return!(sizeof(x.st_blksize)==sizeof(short));}
  14954. _ACEOF
  14955. if ac_fn_c_try_run "$LINENO"; then :
  14956. # same length as short
  14957. if test "$cross_compiling" = yes; then :
  14958. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14960. as_fn_error $? "cannot run test program while cross compiling
  14961. See \`config.log' for more details" "$LINENO" 5; }
  14962. else
  14963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14964. /* end confdefs.h. */
  14965. #include <sys/stat.h>
  14966. int main() { struct stat64 x; x.st_blksize=-1; return !(x.st_blksize<0);}
  14967. _ACEOF
  14968. if ac_fn_c_try_run "$LINENO"; then :
  14969. sc_cv_type_stat64_stblksize_basic="1 /* short */"
  14970. else
  14971. sc_cv_type_stat64_stblksize_basic="2 /* unsigned short */"
  14972. fi
  14973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14974. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14975. fi
  14976. else
  14977. # length differs from short, try others
  14978. if test "$cross_compiling" = yes; then :
  14979. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14981. as_fn_error $? "cannot run test program while cross compiling
  14982. See \`config.log' for more details" "$LINENO" 5; }
  14983. else
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. #include <sys/stat.h>
  14987. int main() { struct stat64 x; return!(sizeof(x.st_blksize)==sizeof(int));}
  14988. _ACEOF
  14989. if ac_fn_c_try_run "$LINENO"; then :
  14990. # same length as int
  14991. if test "$cross_compiling" = yes; then :
  14992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14994. as_fn_error $? "cannot run test program while cross compiling
  14995. See \`config.log' for more details" "$LINENO" 5; }
  14996. else
  14997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14998. /* end confdefs.h. */
  14999. #include <sys/stat.h>
  15000. int main() { struct stat64 x; x.st_blksize=-1; return !(x.st_blksize<0);}
  15001. _ACEOF
  15002. if ac_fn_c_try_run "$LINENO"; then :
  15003. sc_cv_type_stat64_stblksize_basic="3 /* int */"
  15004. else
  15005. sc_cv_type_stat64_stblksize_basic="4 /* unsigned int */"
  15006. fi
  15007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15009. fi
  15010. else
  15011. # length differs from int, try others
  15012. if test "$cross_compiling" = yes; then :
  15013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15015. as_fn_error $? "cannot run test program while cross compiling
  15016. See \`config.log' for more details" "$LINENO" 5; }
  15017. else
  15018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15019. /* end confdefs.h. */
  15020. #include <sys/stat.h>
  15021. int main() { struct stat64 x; return !(sizeof(x.st_blksize)==sizeof(long));}
  15022. _ACEOF
  15023. if ac_fn_c_try_run "$LINENO"; then :
  15024. # same length as long
  15025. if test "$cross_compiling" = yes; then :
  15026. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15027. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15028. as_fn_error $? "cannot run test program while cross compiling
  15029. See \`config.log' for more details" "$LINENO" 5; }
  15030. else
  15031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15032. /* end confdefs.h. */
  15033. #include <sys/stat.h>
  15034. int main() { struct stat64 x; x.st_blksize=-1; return !(x.st_blksize<0);}
  15035. _ACEOF
  15036. if ac_fn_c_try_run "$LINENO"; then :
  15037. sc_cv_type_stat64_stblksize_basic="5 /* long */"
  15038. else
  15039. sc_cv_type_stat64_stblksize_basic="6 /* unsigned long */"
  15040. fi
  15041. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15042. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15043. fi
  15044. else
  15045. # length differs from long, try others
  15046. if test "$cross_compiling" = yes; then :
  15047. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15049. as_fn_error $? "cannot run test program while cross compiling
  15050. See \`config.log' for more details" "$LINENO" 5; }
  15051. else
  15052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15053. /* end confdefs.h. */
  15054. #include <sys/stat.h>
  15055. int main() { struct stat64 x; return !(sizeof(x.st_blksize)==sizeof(long long));}
  15056. _ACEOF
  15057. if ac_fn_c_try_run "$LINENO"; then :
  15058. # same length as long long
  15059. if test "$cross_compiling" = yes; then :
  15060. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15062. as_fn_error $? "cannot run test program while cross compiling
  15063. See \`config.log' for more details" "$LINENO" 5; }
  15064. else
  15065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15066. /* end confdefs.h. */
  15067. #include <sys/stat.h>
  15068. int main() { x struct stat64; x.st_blksize=-1; return !(x.st_blksize<0);}
  15069. _ACEOF
  15070. if ac_fn_c_try_run "$LINENO"; then :
  15071. sc_cv_type_stat64_stblksize_basic="7 /* long long */"
  15072. else
  15073. sc_cv_type_stat64_stblksize_basic="8 /* unsigned long long */"
  15074. fi
  15075. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15076. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15077. fi
  15078. else
  15079. sc_cv_type_stat64_stblksize_basic="0 /* unknown */"
  15080. fi
  15081. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15082. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15083. fi
  15084. fi
  15085. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15086. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15087. fi
  15088. fi
  15089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15091. fi
  15092. fi
  15093. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15094. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15095. fi
  15096. fi
  15097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stblksize_basic" >&5
  15098. $as_echo "$sc_cv_type_stat64_stblksize_basic" >&6; }
  15099. cat >>confdefs.h <<_ACEOF
  15100. #define HAVE_TYPEOF_ST64_BLKSIZE ${sc_cv_type_stat64_stblksize_basic}
  15101. _ACEOF
  15102. fi
  15103. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  15104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_blocks" >&5
  15105. $as_echo_n "checking for basic type of struct stat64.st_blocks... " >&6; }
  15106. if ${sc_cv_type_stat64_stblocks_basic+:} false; then :
  15107. $as_echo_n "(cached) " >&6
  15108. else
  15109. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  15110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15111. /* end confdefs.h. */
  15112. #include <sys/stat.h>
  15113. int
  15114. main ()
  15115. {
  15116. struct stat64 u;short v; return(&u.st_blocks==&v);
  15117. ;
  15118. return 0;
  15119. }
  15120. _ACEOF
  15121. if ac_fn_c_try_compile "$LINENO"; then :
  15122. sc_cv_type_stat64_stblocks_basic="1 /* short */"
  15123. else
  15124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15125. /* end confdefs.h. */
  15126. #include <sys/stat.h>
  15127. int
  15128. main ()
  15129. {
  15130. struct stat64 u; unsigned short v; return(&u.st_blocks==&v);
  15131. ;
  15132. return 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_compile "$LINENO"; then :
  15136. sc_cv_type_stat64_stblocks_basic="2 /* unsigned short */"
  15137. else
  15138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15139. /* end confdefs.h. */
  15140. #include <sys/stat.h>
  15141. int
  15142. main ()
  15143. {
  15144. struct stat64 u; int v; return(&u.st_blocks==&v);
  15145. ;
  15146. return 0;
  15147. }
  15148. _ACEOF
  15149. if ac_fn_c_try_compile "$LINENO"; then :
  15150. sc_cv_type_stat64_stblocks_basic="3 /* int */"
  15151. else
  15152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15153. /* end confdefs.h. */
  15154. #include <sys/stat.h>
  15155. int
  15156. main ()
  15157. {
  15158. struct stat64 u; unsigned int v; return(&u.st_blocks==&v);
  15159. ;
  15160. return 0;
  15161. }
  15162. _ACEOF
  15163. if ac_fn_c_try_compile "$LINENO"; then :
  15164. sc_cv_type_stat64_stblocks_basic="4 /* unsigned int */"
  15165. else
  15166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15167. /* end confdefs.h. */
  15168. #include <sys/stat.h>
  15169. int
  15170. main ()
  15171. {
  15172. struct stat64 u; long v; return(&u.st_blocks==&v);
  15173. ;
  15174. return 0;
  15175. }
  15176. _ACEOF
  15177. if ac_fn_c_try_compile "$LINENO"; then :
  15178. sc_cv_type_stat64_stblocks_basic="5 /* long */"
  15179. else
  15180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15181. /* end confdefs.h. */
  15182. #include <sys/stat.h>
  15183. int
  15184. main ()
  15185. {
  15186. struct stat64 u; unsigned long v; return(&u.st_blocks==&v);
  15187. ;
  15188. return 0;
  15189. }
  15190. _ACEOF
  15191. if ac_fn_c_try_compile "$LINENO"; then :
  15192. sc_cv_type_stat64_stblocks_basic="6 /* unsigned long */"
  15193. else
  15194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15195. /* end confdefs.h. */
  15196. #include <sys/stat.h>
  15197. int
  15198. main ()
  15199. {
  15200. struct stat64 u; long long v; return(&u.st_blocks==&v);
  15201. ;
  15202. return 0;
  15203. }
  15204. _ACEOF
  15205. if ac_fn_c_try_compile "$LINENO"; then :
  15206. sc_cv_type_stat64_stblocks_basic="7 /* long long */"
  15207. else
  15208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15209. /* end confdefs.h. */
  15210. #include <sys/stat.h>
  15211. int
  15212. main ()
  15213. {
  15214. struct stat64 u; unsigned long long v; return(&u.st_blocks==&v);
  15215. ;
  15216. return 0;
  15217. }
  15218. _ACEOF
  15219. if ac_fn_c_try_compile "$LINENO"; then :
  15220. sc_cv_type_stat64_stblocks_basic="8 /* unsigned long long */"
  15221. else
  15222. sc_cv_type_stat64_stblocks_basic="0 /* unknown, taking default */"
  15223. fi
  15224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15225. fi
  15226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15227. fi
  15228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15229. fi
  15230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15231. fi
  15232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15233. fi
  15234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15235. fi
  15236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15237. fi
  15238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15239. CFLAGS="$CFLAGS1"
  15240. fi
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stblocks_basic" >&5
  15242. $as_echo "$sc_cv_type_stat64_stblocks_basic" >&6; }
  15243. cat >>confdefs.h <<_ACEOF
  15244. #define HAVE_TYPEOF_ST64_BLOCKS ${sc_cv_type_stat64_stblocks_basic}
  15245. _ACEOF
  15246. else
  15247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct stat64.st_blocks" >&5
  15248. $as_echo_n "checking for basic type of struct stat64.st_blocks... " >&6; }
  15249. if ${sc_cv_type_stat64_stblocks_basic+:} false; then :
  15250. $as_echo_n "(cached) " >&6
  15251. else
  15252. if test "$cross_compiling" = yes; then :
  15253. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15254. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15255. as_fn_error $? "cannot run test program while cross compiling
  15256. See \`config.log' for more details" "$LINENO" 5; }
  15257. else
  15258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15259. /* end confdefs.h. */
  15260. #include <sys/stat.h>
  15261. int main() { struct stat64 x; return!(sizeof(x.st_blocks)==sizeof(short));}
  15262. _ACEOF
  15263. if ac_fn_c_try_run "$LINENO"; then :
  15264. # same length as short
  15265. if test "$cross_compiling" = yes; then :
  15266. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15267. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15268. as_fn_error $? "cannot run test program while cross compiling
  15269. See \`config.log' for more details" "$LINENO" 5; }
  15270. else
  15271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15272. /* end confdefs.h. */
  15273. #include <sys/stat.h>
  15274. int main() { struct stat64 x; x.st_blocks=-1; return !(x.st_blocks<0);}
  15275. _ACEOF
  15276. if ac_fn_c_try_run "$LINENO"; then :
  15277. sc_cv_type_stat64_stblocks_basic="1 /* short */"
  15278. else
  15279. sc_cv_type_stat64_stblocks_basic="2 /* unsigned short */"
  15280. fi
  15281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15283. fi
  15284. else
  15285. # length differs from short, try others
  15286. if test "$cross_compiling" = yes; then :
  15287. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15289. as_fn_error $? "cannot run test program while cross compiling
  15290. See \`config.log' for more details" "$LINENO" 5; }
  15291. else
  15292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15293. /* end confdefs.h. */
  15294. #include <sys/stat.h>
  15295. int main() { struct stat64 x; return!(sizeof(x.st_blocks)==sizeof(int));}
  15296. _ACEOF
  15297. if ac_fn_c_try_run "$LINENO"; then :
  15298. # same length as int
  15299. if test "$cross_compiling" = yes; then :
  15300. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15301. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15302. as_fn_error $? "cannot run test program while cross compiling
  15303. See \`config.log' for more details" "$LINENO" 5; }
  15304. else
  15305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15306. /* end confdefs.h. */
  15307. #include <sys/stat.h>
  15308. int main() { struct stat64 x; x.st_blocks=-1; return !(x.st_blocks<0);}
  15309. _ACEOF
  15310. if ac_fn_c_try_run "$LINENO"; then :
  15311. sc_cv_type_stat64_stblocks_basic="3 /* int */"
  15312. else
  15313. sc_cv_type_stat64_stblocks_basic="4 /* unsigned int */"
  15314. fi
  15315. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15316. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15317. fi
  15318. else
  15319. # length differs from int, try others
  15320. if test "$cross_compiling" = yes; then :
  15321. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15323. as_fn_error $? "cannot run test program while cross compiling
  15324. See \`config.log' for more details" "$LINENO" 5; }
  15325. else
  15326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15327. /* end confdefs.h. */
  15328. #include <sys/stat.h>
  15329. int main() { struct stat64 x; return !(sizeof(x.st_blocks)==sizeof(long));}
  15330. _ACEOF
  15331. if ac_fn_c_try_run "$LINENO"; then :
  15332. # same length as long
  15333. if test "$cross_compiling" = yes; then :
  15334. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15336. as_fn_error $? "cannot run test program while cross compiling
  15337. See \`config.log' for more details" "$LINENO" 5; }
  15338. else
  15339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15340. /* end confdefs.h. */
  15341. #include <sys/stat.h>
  15342. int main() { struct stat64 x; x.st_blocks=-1; return !(x.st_blocks<0);}
  15343. _ACEOF
  15344. if ac_fn_c_try_run "$LINENO"; then :
  15345. sc_cv_type_stat64_stblocks_basic="5 /* long */"
  15346. else
  15347. sc_cv_type_stat64_stblocks_basic="6 /* unsigned long */"
  15348. fi
  15349. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15350. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15351. fi
  15352. else
  15353. # length differs from long, try others
  15354. if test "$cross_compiling" = yes; then :
  15355. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15356. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15357. as_fn_error $? "cannot run test program while cross compiling
  15358. See \`config.log' for more details" "$LINENO" 5; }
  15359. else
  15360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15361. /* end confdefs.h. */
  15362. #include <sys/stat.h>
  15363. int main() { struct stat64 x; return !(sizeof(x.st_blocks)==sizeof(long long));}
  15364. _ACEOF
  15365. if ac_fn_c_try_run "$LINENO"; then :
  15366. # same length as long long
  15367. if test "$cross_compiling" = yes; then :
  15368. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15370. as_fn_error $? "cannot run test program while cross compiling
  15371. See \`config.log' for more details" "$LINENO" 5; }
  15372. else
  15373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15374. /* end confdefs.h. */
  15375. #include <sys/stat.h>
  15376. int main() { x struct stat64; x.st_blocks=-1; return !(x.st_blocks<0);}
  15377. _ACEOF
  15378. if ac_fn_c_try_run "$LINENO"; then :
  15379. sc_cv_type_stat64_stblocks_basic="7 /* long long */"
  15380. else
  15381. sc_cv_type_stat64_stblocks_basic="8 /* unsigned long long */"
  15382. fi
  15383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15384. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15385. fi
  15386. else
  15387. sc_cv_type_stat64_stblocks_basic="0 /* unknown */"
  15388. fi
  15389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15390. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15391. fi
  15392. fi
  15393. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15394. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15395. fi
  15396. fi
  15397. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15398. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15399. fi
  15400. fi
  15401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15402. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15403. fi
  15404. fi
  15405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_stat64_stblocks_basic" >&5
  15406. $as_echo "$sc_cv_type_stat64_stblocks_basic" >&6; }
  15407. cat >>confdefs.h <<_ACEOF
  15408. #define HAVE_TYPEOF_ST64_BLOCKS ${sc_cv_type_stat64_stblocks_basic}
  15409. _ACEOF
  15410. fi
  15411. fi
  15412. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct timeval.tv_usec" >&5
  15414. $as_echo_n "checking for basic type of struct timeval.tv_usec... " >&6; }
  15415. if ${sc_cv_type_struct_timeval_tv_usec+:} false; then :
  15416. $as_echo_n "(cached) " >&6
  15417. else
  15418. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  15419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15420. /* end confdefs.h. */
  15421. #include <sys/time.h>
  15422. int
  15423. main ()
  15424. {
  15425. struct timeval u;short v; return(&u.tv_usec==&v);
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. if ac_fn_c_try_compile "$LINENO"; then :
  15431. sc_cv_type_struct_timeval_tv_usec="1 /* short */"
  15432. else
  15433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15434. /* end confdefs.h. */
  15435. #include <sys/time.h>
  15436. int
  15437. main ()
  15438. {
  15439. struct timeval u; unsigned short v; return(&u.tv_usec==&v);
  15440. ;
  15441. return 0;
  15442. }
  15443. _ACEOF
  15444. if ac_fn_c_try_compile "$LINENO"; then :
  15445. sc_cv_type_struct_timeval_tv_usec="2 /* unsigned short */"
  15446. else
  15447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15448. /* end confdefs.h. */
  15449. #include <sys/time.h>
  15450. int
  15451. main ()
  15452. {
  15453. struct timeval u; int v; return(&u.tv_usec==&v);
  15454. ;
  15455. return 0;
  15456. }
  15457. _ACEOF
  15458. if ac_fn_c_try_compile "$LINENO"; then :
  15459. sc_cv_type_struct_timeval_tv_usec="3 /* int */"
  15460. else
  15461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15462. /* end confdefs.h. */
  15463. #include <sys/time.h>
  15464. int
  15465. main ()
  15466. {
  15467. struct timeval u; unsigned int v; return(&u.tv_usec==&v);
  15468. ;
  15469. return 0;
  15470. }
  15471. _ACEOF
  15472. if ac_fn_c_try_compile "$LINENO"; then :
  15473. sc_cv_type_struct_timeval_tv_usec="4 /* unsigned int */"
  15474. else
  15475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15476. /* end confdefs.h. */
  15477. #include <sys/time.h>
  15478. int
  15479. main ()
  15480. {
  15481. struct timeval u; long v; return(&u.tv_usec==&v);
  15482. ;
  15483. return 0;
  15484. }
  15485. _ACEOF
  15486. if ac_fn_c_try_compile "$LINENO"; then :
  15487. sc_cv_type_struct_timeval_tv_usec="5 /* long */"
  15488. else
  15489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15490. /* end confdefs.h. */
  15491. #include <sys/time.h>
  15492. int
  15493. main ()
  15494. {
  15495. struct timeval u; unsigned long v; return(&u.tv_usec==&v);
  15496. ;
  15497. return 0;
  15498. }
  15499. _ACEOF
  15500. if ac_fn_c_try_compile "$LINENO"; then :
  15501. sc_cv_type_struct_timeval_tv_usec="6 /* unsigned long */"
  15502. else
  15503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15504. /* end confdefs.h. */
  15505. #include <sys/time.h>
  15506. int
  15507. main ()
  15508. {
  15509. struct timeval u; long long v; return(&u.tv_usec==&v);
  15510. ;
  15511. return 0;
  15512. }
  15513. _ACEOF
  15514. if ac_fn_c_try_compile "$LINENO"; then :
  15515. sc_cv_type_struct_timeval_tv_usec="7 /* long long */"
  15516. else
  15517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15518. /* end confdefs.h. */
  15519. #include <sys/time.h>
  15520. int
  15521. main ()
  15522. {
  15523. struct timeval u; unsigned long long v; return(&u.tv_usec==&v);
  15524. ;
  15525. return 0;
  15526. }
  15527. _ACEOF
  15528. if ac_fn_c_try_compile "$LINENO"; then :
  15529. sc_cv_type_struct_timeval_tv_usec="8 /* unsigned long long */"
  15530. else
  15531. sc_cv_type_struct_timeval_tv_usec="0 /* unknown, taking default */"
  15532. fi
  15533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15534. fi
  15535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15536. fi
  15537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15538. fi
  15539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15540. fi
  15541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15542. fi
  15543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15544. fi
  15545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15546. fi
  15547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15548. CFLAGS="$CFLAGS1"
  15549. fi
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_struct_timeval_tv_usec" >&5
  15551. $as_echo "$sc_cv_type_struct_timeval_tv_usec" >&6; }
  15552. cat >>confdefs.h <<_ACEOF
  15553. #define HAVE_TYPEOF_STRUCT_TIMEVAL_TV_USEC ${sc_cv_type_struct_timeval_tv_usec}
  15554. _ACEOF
  15555. else
  15556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct timeval.tv_usec" >&5
  15557. $as_echo_n "checking for basic type of struct timeval.tv_usec... " >&6; }
  15558. if ${sc_cv_type_struct_timeval_tv_usec+:} false; then :
  15559. $as_echo_n "(cached) " >&6
  15560. else
  15561. if test "$cross_compiling" = yes; then :
  15562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15564. as_fn_error $? "cannot run test program while cross compiling
  15565. See \`config.log' for more details" "$LINENO" 5; }
  15566. else
  15567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15568. /* end confdefs.h. */
  15569. #include <sys/time.h>
  15570. int main() { struct timeval x; return!(sizeof(x.tv_usec)==sizeof(short));}
  15571. _ACEOF
  15572. if ac_fn_c_try_run "$LINENO"; then :
  15573. # same length as short
  15574. if test "$cross_compiling" = yes; then :
  15575. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15577. as_fn_error $? "cannot run test program while cross compiling
  15578. See \`config.log' for more details" "$LINENO" 5; }
  15579. else
  15580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15581. /* end confdefs.h. */
  15582. #include <sys/time.h>
  15583. int main() { struct timeval x; x.tv_usec=-1; return !(x.tv_usec<0);}
  15584. _ACEOF
  15585. if ac_fn_c_try_run "$LINENO"; then :
  15586. sc_cv_type_struct_timeval_tv_usec="1 /* short */"
  15587. else
  15588. sc_cv_type_struct_timeval_tv_usec="2 /* unsigned short */"
  15589. fi
  15590. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15591. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15592. fi
  15593. else
  15594. # length differs from short, try others
  15595. if test "$cross_compiling" = yes; then :
  15596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15598. as_fn_error $? "cannot run test program while cross compiling
  15599. See \`config.log' for more details" "$LINENO" 5; }
  15600. else
  15601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15602. /* end confdefs.h. */
  15603. #include <sys/time.h>
  15604. int main() { struct timeval x; return!(sizeof(x.tv_usec)==sizeof(int));}
  15605. _ACEOF
  15606. if ac_fn_c_try_run "$LINENO"; then :
  15607. # same length as int
  15608. if test "$cross_compiling" = yes; then :
  15609. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15610. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15611. as_fn_error $? "cannot run test program while cross compiling
  15612. See \`config.log' for more details" "$LINENO" 5; }
  15613. else
  15614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15615. /* end confdefs.h. */
  15616. #include <sys/time.h>
  15617. int main() { struct timeval x; x.tv_usec=-1; return !(x.tv_usec<0);}
  15618. _ACEOF
  15619. if ac_fn_c_try_run "$LINENO"; then :
  15620. sc_cv_type_struct_timeval_tv_usec="3 /* int */"
  15621. else
  15622. sc_cv_type_struct_timeval_tv_usec="4 /* unsigned int */"
  15623. fi
  15624. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15625. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15626. fi
  15627. else
  15628. # length differs from int, try others
  15629. if test "$cross_compiling" = yes; then :
  15630. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15631. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15632. as_fn_error $? "cannot run test program while cross compiling
  15633. See \`config.log' for more details" "$LINENO" 5; }
  15634. else
  15635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15636. /* end confdefs.h. */
  15637. #include <sys/time.h>
  15638. int main() { struct timeval x; return !(sizeof(x.tv_usec)==sizeof(long));}
  15639. _ACEOF
  15640. if ac_fn_c_try_run "$LINENO"; then :
  15641. # same length as long
  15642. if test "$cross_compiling" = yes; then :
  15643. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15644. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15645. as_fn_error $? "cannot run test program while cross compiling
  15646. See \`config.log' for more details" "$LINENO" 5; }
  15647. else
  15648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15649. /* end confdefs.h. */
  15650. #include <sys/time.h>
  15651. int main() { struct timeval x; x.tv_usec=-1; return !(x.tv_usec<0);}
  15652. _ACEOF
  15653. if ac_fn_c_try_run "$LINENO"; then :
  15654. sc_cv_type_struct_timeval_tv_usec="5 /* long */"
  15655. else
  15656. sc_cv_type_struct_timeval_tv_usec="6 /* unsigned long */"
  15657. fi
  15658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15659. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15660. fi
  15661. else
  15662. # length differs from long, try others
  15663. if test "$cross_compiling" = yes; then :
  15664. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15665. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15666. as_fn_error $? "cannot run test program while cross compiling
  15667. See \`config.log' for more details" "$LINENO" 5; }
  15668. else
  15669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15670. /* end confdefs.h. */
  15671. #include <sys/time.h>
  15672. int main() { struct timeval x; return !(sizeof(x.tv_usec)==sizeof(long long));}
  15673. _ACEOF
  15674. if ac_fn_c_try_run "$LINENO"; then :
  15675. # same length as long long
  15676. if test "$cross_compiling" = yes; then :
  15677. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15678. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15679. as_fn_error $? "cannot run test program while cross compiling
  15680. See \`config.log' for more details" "$LINENO" 5; }
  15681. else
  15682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15683. /* end confdefs.h. */
  15684. #include <sys/time.h>
  15685. int main() { x struct timeval; x.tv_usec=-1; return !(x.tv_usec<0);}
  15686. _ACEOF
  15687. if ac_fn_c_try_run "$LINENO"; then :
  15688. sc_cv_type_struct_timeval_tv_usec="7 /* long long */"
  15689. else
  15690. sc_cv_type_struct_timeval_tv_usec="8 /* unsigned long long */"
  15691. fi
  15692. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15693. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15694. fi
  15695. else
  15696. sc_cv_type_struct_timeval_tv_usec="0 /* unknown */"
  15697. fi
  15698. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15699. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15700. fi
  15701. fi
  15702. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15703. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15704. fi
  15705. fi
  15706. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15707. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15708. fi
  15709. fi
  15710. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15711. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15712. fi
  15713. fi
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_struct_timeval_tv_usec" >&5
  15715. $as_echo "$sc_cv_type_struct_timeval_tv_usec" >&6; }
  15716. cat >>confdefs.h <<_ACEOF
  15717. #define HAVE_TYPEOF_STRUCT_TIMEVAL_TV_USEC ${sc_cv_type_struct_timeval_tv_usec}
  15718. _ACEOF
  15719. fi
  15720. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct rlimit.rlim_max" >&5
  15722. $as_echo_n "checking for basic type of struct rlimit.rlim_max... " >&6; }
  15723. if ${sc_cv_type_rlimit_rlimmax_basic+:} false; then :
  15724. $as_echo_n "(cached) " >&6
  15725. else
  15726. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  15727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15728. /* end confdefs.h. */
  15729. #include <sys/types.h>
  15730. #include <sys/time.h>
  15731. #include <sys/resource.h>
  15732. int
  15733. main ()
  15734. {
  15735. struct rlimit u;short v; return(&u.rlim_max==&v);
  15736. ;
  15737. return 0;
  15738. }
  15739. _ACEOF
  15740. if ac_fn_c_try_compile "$LINENO"; then :
  15741. sc_cv_type_rlimit_rlimmax_basic="1 /* short */"
  15742. else
  15743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15744. /* end confdefs.h. */
  15745. #include <sys/types.h>
  15746. #include <sys/time.h>
  15747. #include <sys/resource.h>
  15748. int
  15749. main ()
  15750. {
  15751. struct rlimit u; unsigned short v; return(&u.rlim_max==&v);
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. if ac_fn_c_try_compile "$LINENO"; then :
  15757. sc_cv_type_rlimit_rlimmax_basic="2 /* unsigned short */"
  15758. else
  15759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15760. /* end confdefs.h. */
  15761. #include <sys/types.h>
  15762. #include <sys/time.h>
  15763. #include <sys/resource.h>
  15764. int
  15765. main ()
  15766. {
  15767. struct rlimit u; int v; return(&u.rlim_max==&v);
  15768. ;
  15769. return 0;
  15770. }
  15771. _ACEOF
  15772. if ac_fn_c_try_compile "$LINENO"; then :
  15773. sc_cv_type_rlimit_rlimmax_basic="3 /* int */"
  15774. else
  15775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15776. /* end confdefs.h. */
  15777. #include <sys/types.h>
  15778. #include <sys/time.h>
  15779. #include <sys/resource.h>
  15780. int
  15781. main ()
  15782. {
  15783. struct rlimit u; unsigned int v; return(&u.rlim_max==&v);
  15784. ;
  15785. return 0;
  15786. }
  15787. _ACEOF
  15788. if ac_fn_c_try_compile "$LINENO"; then :
  15789. sc_cv_type_rlimit_rlimmax_basic="4 /* unsigned int */"
  15790. else
  15791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15792. /* end confdefs.h. */
  15793. #include <sys/types.h>
  15794. #include <sys/time.h>
  15795. #include <sys/resource.h>
  15796. int
  15797. main ()
  15798. {
  15799. struct rlimit u; long v; return(&u.rlim_max==&v);
  15800. ;
  15801. return 0;
  15802. }
  15803. _ACEOF
  15804. if ac_fn_c_try_compile "$LINENO"; then :
  15805. sc_cv_type_rlimit_rlimmax_basic="5 /* long */"
  15806. else
  15807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15808. /* end confdefs.h. */
  15809. #include <sys/types.h>
  15810. #include <sys/time.h>
  15811. #include <sys/resource.h>
  15812. int
  15813. main ()
  15814. {
  15815. struct rlimit u; unsigned long v; return(&u.rlim_max==&v);
  15816. ;
  15817. return 0;
  15818. }
  15819. _ACEOF
  15820. if ac_fn_c_try_compile "$LINENO"; then :
  15821. sc_cv_type_rlimit_rlimmax_basic="6 /* unsigned long */"
  15822. else
  15823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15824. /* end confdefs.h. */
  15825. #include <sys/types.h>
  15826. #include <sys/time.h>
  15827. #include <sys/resource.h>
  15828. int
  15829. main ()
  15830. {
  15831. struct rlimit u; long long v; return(&u.rlim_max==&v);
  15832. ;
  15833. return 0;
  15834. }
  15835. _ACEOF
  15836. if ac_fn_c_try_compile "$LINENO"; then :
  15837. sc_cv_type_rlimit_rlimmax_basic="7 /* long long */"
  15838. else
  15839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15840. /* end confdefs.h. */
  15841. #include <sys/types.h>
  15842. #include <sys/time.h>
  15843. #include <sys/resource.h>
  15844. int
  15845. main ()
  15846. {
  15847. struct rlimit u; unsigned long long v; return(&u.rlim_max==&v);
  15848. ;
  15849. return 0;
  15850. }
  15851. _ACEOF
  15852. if ac_fn_c_try_compile "$LINENO"; then :
  15853. sc_cv_type_rlimit_rlimmax_basic="8 /* unsigned long long */"
  15854. else
  15855. sc_cv_type_rlimit_rlimmax_basic="0 /* unknown, taking default */"
  15856. fi
  15857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15858. fi
  15859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15860. fi
  15861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15862. fi
  15863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15864. fi
  15865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15866. fi
  15867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15868. fi
  15869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15870. fi
  15871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15872. CFLAGS="$CFLAGS1"
  15873. fi
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_rlimit_rlimmax_basic" >&5
  15875. $as_echo "$sc_cv_type_rlimit_rlimmax_basic" >&6; }
  15876. cat >>confdefs.h <<_ACEOF
  15877. #define HAVE_TYPEOF_RLIM_MAX ${sc_cv_type_rlimit_rlimmax_basic}
  15878. _ACEOF
  15879. else
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct rlimit.rlim_max" >&5
  15881. $as_echo_n "checking for basic type of struct rlimit.rlim_max... " >&6; }
  15882. if ${sc_cv_type_rlimit_rlimmax_basic+:} false; then :
  15883. $as_echo_n "(cached) " >&6
  15884. else
  15885. if test "$cross_compiling" = yes; then :
  15886. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15887. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15888. as_fn_error $? "cannot run test program while cross compiling
  15889. See \`config.log' for more details" "$LINENO" 5; }
  15890. else
  15891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15892. /* end confdefs.h. */
  15893. #include <sys/types.h>
  15894. #include <sys/time.h>
  15895. #include <sys/resource.h>
  15896. int main() { struct rlimit x; return!(sizeof(x.rlim_max)==sizeof(short));}
  15897. _ACEOF
  15898. if ac_fn_c_try_run "$LINENO"; then :
  15899. # same length as short
  15900. if test "$cross_compiling" = yes; then :
  15901. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15903. as_fn_error $? "cannot run test program while cross compiling
  15904. See \`config.log' for more details" "$LINENO" 5; }
  15905. else
  15906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15907. /* end confdefs.h. */
  15908. #include <sys/types.h>
  15909. #include <sys/time.h>
  15910. #include <sys/resource.h>
  15911. int main() { struct rlimit x; x.rlim_max=-1; return !(x.rlim_max<0);}
  15912. _ACEOF
  15913. if ac_fn_c_try_run "$LINENO"; then :
  15914. sc_cv_type_rlimit_rlimmax_basic="1 /* short */"
  15915. else
  15916. sc_cv_type_rlimit_rlimmax_basic="2 /* unsigned short */"
  15917. fi
  15918. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15919. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15920. fi
  15921. else
  15922. # length differs from short, try others
  15923. if test "$cross_compiling" = yes; then :
  15924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15926. as_fn_error $? "cannot run test program while cross compiling
  15927. See \`config.log' for more details" "$LINENO" 5; }
  15928. else
  15929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15930. /* end confdefs.h. */
  15931. #include <sys/types.h>
  15932. #include <sys/time.h>
  15933. #include <sys/resource.h>
  15934. int main() { struct rlimit x; return!(sizeof(x.rlim_max)==sizeof(int));}
  15935. _ACEOF
  15936. if ac_fn_c_try_run "$LINENO"; then :
  15937. # same length as int
  15938. if test "$cross_compiling" = yes; then :
  15939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15941. as_fn_error $? "cannot run test program while cross compiling
  15942. See \`config.log' for more details" "$LINENO" 5; }
  15943. else
  15944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15945. /* end confdefs.h. */
  15946. #include <sys/types.h>
  15947. #include <sys/time.h>
  15948. #include <sys/resource.h>
  15949. int main() { struct rlimit x; x.rlim_max=-1; return !(x.rlim_max<0);}
  15950. _ACEOF
  15951. if ac_fn_c_try_run "$LINENO"; then :
  15952. sc_cv_type_rlimit_rlimmax_basic="3 /* int */"
  15953. else
  15954. sc_cv_type_rlimit_rlimmax_basic="4 /* unsigned int */"
  15955. fi
  15956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15957. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15958. fi
  15959. else
  15960. # length differs from int, try others
  15961. if test "$cross_compiling" = yes; then :
  15962. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15964. as_fn_error $? "cannot run test program while cross compiling
  15965. See \`config.log' for more details" "$LINENO" 5; }
  15966. else
  15967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15968. /* end confdefs.h. */
  15969. #include <sys/types.h>
  15970. #include <sys/time.h>
  15971. #include <sys/resource.h>
  15972. int main() { struct rlimit x; return !(sizeof(x.rlim_max)==sizeof(long));}
  15973. _ACEOF
  15974. if ac_fn_c_try_run "$LINENO"; then :
  15975. # same length as long
  15976. if test "$cross_compiling" = yes; then :
  15977. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15979. as_fn_error $? "cannot run test program while cross compiling
  15980. See \`config.log' for more details" "$LINENO" 5; }
  15981. else
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. #include <sys/types.h>
  15985. #include <sys/time.h>
  15986. #include <sys/resource.h>
  15987. int main() { struct rlimit x; x.rlim_max=-1; return !(x.rlim_max<0);}
  15988. _ACEOF
  15989. if ac_fn_c_try_run "$LINENO"; then :
  15990. sc_cv_type_rlimit_rlimmax_basic="5 /* long */"
  15991. else
  15992. sc_cv_type_rlimit_rlimmax_basic="6 /* unsigned long */"
  15993. fi
  15994. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15995. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15996. fi
  15997. else
  15998. # length differs from long, try others
  15999. if test "$cross_compiling" = yes; then :
  16000. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16002. as_fn_error $? "cannot run test program while cross compiling
  16003. See \`config.log' for more details" "$LINENO" 5; }
  16004. else
  16005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16006. /* end confdefs.h. */
  16007. #include <sys/types.h>
  16008. #include <sys/time.h>
  16009. #include <sys/resource.h>
  16010. int main() { struct rlimit x; return !(sizeof(x.rlim_max)==sizeof(long long));}
  16011. _ACEOF
  16012. if ac_fn_c_try_run "$LINENO"; then :
  16013. # same length as long long
  16014. if test "$cross_compiling" = yes; then :
  16015. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16016. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16017. as_fn_error $? "cannot run test program while cross compiling
  16018. See \`config.log' for more details" "$LINENO" 5; }
  16019. else
  16020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16021. /* end confdefs.h. */
  16022. #include <sys/types.h>
  16023. #include <sys/time.h>
  16024. #include <sys/resource.h>
  16025. int main() { x struct rlimit; x.rlim_max=-1; return !(x.rlim_max<0);}
  16026. _ACEOF
  16027. if ac_fn_c_try_run "$LINENO"; then :
  16028. sc_cv_type_rlimit_rlimmax_basic="7 /* long long */"
  16029. else
  16030. sc_cv_type_rlimit_rlimmax_basic="8 /* unsigned long long */"
  16031. fi
  16032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16033. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16034. fi
  16035. else
  16036. sc_cv_type_rlimit_rlimmax_basic="0 /* unknown */"
  16037. fi
  16038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16039. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16040. fi
  16041. fi
  16042. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16043. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16044. fi
  16045. fi
  16046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16048. fi
  16049. fi
  16050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16051. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16052. fi
  16053. fi
  16054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_type_rlimit_rlimmax_basic" >&5
  16055. $as_echo "$sc_cv_type_rlimit_rlimmax_basic" >&6; }
  16056. cat >>confdefs.h <<_ACEOF
  16057. #define HAVE_TYPEOF_RLIM_MAX ${sc_cv_type_rlimit_rlimmax_basic}
  16058. _ACEOF
  16059. fi
  16060. # Fedora-19 doc says it is socklen_t which is equivalent to unsigned int, but it is equivalent to size_t (x86_64)
  16061. if test "$CHANCE_TO_TYPECHECK" -ne 0; then
  16062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct cmsghdr.cmsg_len" >&5
  16063. $as_echo_n "checking for basic type of struct cmsghdr.cmsg_len... " >&6; }
  16064. if ${sc_cv_typeof_struct_cmsghdr_cmsg_len+:} false; then :
  16065. $as_echo_n "(cached) " >&6
  16066. else
  16067. CFLAGS1="$CFLAGS"; CFLAGS="$ERRONWARN $(echo "$CFLAGS1" | sed -e 's@-Wall@@g')"
  16068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16069. /* end confdefs.h. */
  16070. #include "sysincludes.h"
  16071. int
  16072. main ()
  16073. {
  16074. struct cmsghdr u;short v; return(&u.cmsg_len==&v);
  16075. ;
  16076. return 0;
  16077. }
  16078. _ACEOF
  16079. if ac_fn_c_try_compile "$LINENO"; then :
  16080. sc_cv_typeof_struct_cmsghdr_cmsg_len="1 /* short */"
  16081. else
  16082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16083. /* end confdefs.h. */
  16084. #include "sysincludes.h"
  16085. int
  16086. main ()
  16087. {
  16088. struct cmsghdr u; unsigned short v; return(&u.cmsg_len==&v);
  16089. ;
  16090. return 0;
  16091. }
  16092. _ACEOF
  16093. if ac_fn_c_try_compile "$LINENO"; then :
  16094. sc_cv_typeof_struct_cmsghdr_cmsg_len="2 /* unsigned short */"
  16095. else
  16096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16097. /* end confdefs.h. */
  16098. #include "sysincludes.h"
  16099. int
  16100. main ()
  16101. {
  16102. struct cmsghdr u; int v; return(&u.cmsg_len==&v);
  16103. ;
  16104. return 0;
  16105. }
  16106. _ACEOF
  16107. if ac_fn_c_try_compile "$LINENO"; then :
  16108. sc_cv_typeof_struct_cmsghdr_cmsg_len="3 /* int */"
  16109. else
  16110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16111. /* end confdefs.h. */
  16112. #include "sysincludes.h"
  16113. int
  16114. main ()
  16115. {
  16116. struct cmsghdr u; unsigned int v; return(&u.cmsg_len==&v);
  16117. ;
  16118. return 0;
  16119. }
  16120. _ACEOF
  16121. if ac_fn_c_try_compile "$LINENO"; then :
  16122. sc_cv_typeof_struct_cmsghdr_cmsg_len="4 /* unsigned int */"
  16123. else
  16124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16125. /* end confdefs.h. */
  16126. #include "sysincludes.h"
  16127. int
  16128. main ()
  16129. {
  16130. struct cmsghdr u; long v; return(&u.cmsg_len==&v);
  16131. ;
  16132. return 0;
  16133. }
  16134. _ACEOF
  16135. if ac_fn_c_try_compile "$LINENO"; then :
  16136. sc_cv_typeof_struct_cmsghdr_cmsg_len="5 /* long */"
  16137. else
  16138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16139. /* end confdefs.h. */
  16140. #include "sysincludes.h"
  16141. int
  16142. main ()
  16143. {
  16144. struct cmsghdr u; unsigned long v; return(&u.cmsg_len==&v);
  16145. ;
  16146. return 0;
  16147. }
  16148. _ACEOF
  16149. if ac_fn_c_try_compile "$LINENO"; then :
  16150. sc_cv_typeof_struct_cmsghdr_cmsg_len="6 /* unsigned long */"
  16151. else
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. #include "sysincludes.h"
  16155. int
  16156. main ()
  16157. {
  16158. struct cmsghdr u; long long v; return(&u.cmsg_len==&v);
  16159. ;
  16160. return 0;
  16161. }
  16162. _ACEOF
  16163. if ac_fn_c_try_compile "$LINENO"; then :
  16164. sc_cv_typeof_struct_cmsghdr_cmsg_len="7 /* long long */"
  16165. else
  16166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16167. /* end confdefs.h. */
  16168. #include "sysincludes.h"
  16169. int
  16170. main ()
  16171. {
  16172. struct cmsghdr u; unsigned long long v; return(&u.cmsg_len==&v);
  16173. ;
  16174. return 0;
  16175. }
  16176. _ACEOF
  16177. if ac_fn_c_try_compile "$LINENO"; then :
  16178. sc_cv_typeof_struct_cmsghdr_cmsg_len="8 /* unsigned long long */"
  16179. else
  16180. sc_cv_typeof_struct_cmsghdr_cmsg_len="0 /* unknown, taking default */"
  16181. fi
  16182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16183. fi
  16184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16185. fi
  16186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16187. fi
  16188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16189. fi
  16190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16191. fi
  16192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16193. fi
  16194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16195. fi
  16196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16197. CFLAGS="$CFLAGS1"
  16198. fi
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_typeof_struct_cmsghdr_cmsg_len" >&5
  16200. $as_echo "$sc_cv_typeof_struct_cmsghdr_cmsg_len" >&6; }
  16201. cat >>confdefs.h <<_ACEOF
  16202. #define HAVE_TYPEOF_STRUCT_CMSGHDR_CMSG_LEN ${sc_cv_typeof_struct_cmsghdr_cmsg_len}
  16203. _ACEOF
  16204. else
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic type of struct cmsghdr.cmsg_len" >&5
  16206. $as_echo_n "checking for basic type of struct cmsghdr.cmsg_len... " >&6; }
  16207. if ${sc_cv_typeof_struct_cmsghdr_cmsg_len+:} false; then :
  16208. $as_echo_n "(cached) " >&6
  16209. else
  16210. if test "$cross_compiling" = yes; then :
  16211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16213. as_fn_error $? "cannot run test program while cross compiling
  16214. See \`config.log' for more details" "$LINENO" 5; }
  16215. else
  16216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16217. /* end confdefs.h. */
  16218. #include "sysincludes.h"
  16219. int main() { struct cmsghdr x; return!(sizeof(x.cmsg_len)==sizeof(short));}
  16220. _ACEOF
  16221. if ac_fn_c_try_run "$LINENO"; then :
  16222. # same length as short
  16223. if test "$cross_compiling" = yes; then :
  16224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16226. as_fn_error $? "cannot run test program while cross compiling
  16227. See \`config.log' for more details" "$LINENO" 5; }
  16228. else
  16229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16230. /* end confdefs.h. */
  16231. #include "sysincludes.h"
  16232. int main() { struct cmsghdr x; x.cmsg_len=-1; return !(x.cmsg_len<0);}
  16233. _ACEOF
  16234. if ac_fn_c_try_run "$LINENO"; then :
  16235. sc_cv_typeof_struct_cmsghdr_cmsg_len="1 /* short */"
  16236. else
  16237. sc_cv_typeof_struct_cmsghdr_cmsg_len="2 /* unsigned short */"
  16238. fi
  16239. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16240. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16241. fi
  16242. else
  16243. # length differs from short, try others
  16244. if test "$cross_compiling" = yes; then :
  16245. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16247. as_fn_error $? "cannot run test program while cross compiling
  16248. See \`config.log' for more details" "$LINENO" 5; }
  16249. else
  16250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16251. /* end confdefs.h. */
  16252. #include "sysincludes.h"
  16253. int main() { struct cmsghdr x; return!(sizeof(x.cmsg_len)==sizeof(int));}
  16254. _ACEOF
  16255. if ac_fn_c_try_run "$LINENO"; then :
  16256. # same length as int
  16257. if test "$cross_compiling" = yes; then :
  16258. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16259. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16260. as_fn_error $? "cannot run test program while cross compiling
  16261. See \`config.log' for more details" "$LINENO" 5; }
  16262. else
  16263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16264. /* end confdefs.h. */
  16265. #include "sysincludes.h"
  16266. int main() { struct cmsghdr x; x.cmsg_len=-1; return !(x.cmsg_len<0);}
  16267. _ACEOF
  16268. if ac_fn_c_try_run "$LINENO"; then :
  16269. sc_cv_typeof_struct_cmsghdr_cmsg_len="3 /* int */"
  16270. else
  16271. sc_cv_typeof_struct_cmsghdr_cmsg_len="4 /* unsigned int */"
  16272. fi
  16273. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16274. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16275. fi
  16276. else
  16277. # length differs from int, try others
  16278. if test "$cross_compiling" = yes; then :
  16279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16281. as_fn_error $? "cannot run test program while cross compiling
  16282. See \`config.log' for more details" "$LINENO" 5; }
  16283. else
  16284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16285. /* end confdefs.h. */
  16286. #include "sysincludes.h"
  16287. int main() { struct cmsghdr x; return !(sizeof(x.cmsg_len)==sizeof(long));}
  16288. _ACEOF
  16289. if ac_fn_c_try_run "$LINENO"; then :
  16290. # same length as long
  16291. if test "$cross_compiling" = yes; then :
  16292. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16294. as_fn_error $? "cannot run test program while cross compiling
  16295. See \`config.log' for more details" "$LINENO" 5; }
  16296. else
  16297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16298. /* end confdefs.h. */
  16299. #include "sysincludes.h"
  16300. int main() { struct cmsghdr x; x.cmsg_len=-1; return !(x.cmsg_len<0);}
  16301. _ACEOF
  16302. if ac_fn_c_try_run "$LINENO"; then :
  16303. sc_cv_typeof_struct_cmsghdr_cmsg_len="5 /* long */"
  16304. else
  16305. sc_cv_typeof_struct_cmsghdr_cmsg_len="6 /* unsigned long */"
  16306. fi
  16307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16308. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16309. fi
  16310. else
  16311. # length differs from long, try others
  16312. if test "$cross_compiling" = yes; then :
  16313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16315. as_fn_error $? "cannot run test program while cross compiling
  16316. See \`config.log' for more details" "$LINENO" 5; }
  16317. else
  16318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16319. /* end confdefs.h. */
  16320. #include "sysincludes.h"
  16321. int main() { struct cmsghdr x; return !(sizeof(x.cmsg_len)==sizeof(long long));}
  16322. _ACEOF
  16323. if ac_fn_c_try_run "$LINENO"; then :
  16324. # same length as long long
  16325. if test "$cross_compiling" = yes; then :
  16326. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16327. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16328. as_fn_error $? "cannot run test program while cross compiling
  16329. See \`config.log' for more details" "$LINENO" 5; }
  16330. else
  16331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16332. /* end confdefs.h. */
  16333. #include "sysincludes.h"
  16334. int main() { x struct cmsghdr; x.cmsg_len=-1; return !(x.cmsg_len<0);}
  16335. _ACEOF
  16336. if ac_fn_c_try_run "$LINENO"; then :
  16337. sc_cv_typeof_struct_cmsghdr_cmsg_len="7 /* long long */"
  16338. else
  16339. sc_cv_typeof_struct_cmsghdr_cmsg_len="8 /* unsigned long long */"
  16340. fi
  16341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16342. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16343. fi
  16344. else
  16345. sc_cv_typeof_struct_cmsghdr_cmsg_len="0 /* unknown */"
  16346. fi
  16347. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16348. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16349. fi
  16350. fi
  16351. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16352. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16353. fi
  16354. fi
  16355. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16356. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16357. fi
  16358. fi
  16359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16360. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16361. fi
  16362. fi
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_typeof_struct_cmsghdr_cmsg_len" >&5
  16364. $as_echo "$sc_cv_typeof_struct_cmsghdr_cmsg_len" >&6; }
  16365. cat >>confdefs.h <<_ACEOF
  16366. #define HAVE_TYPEOF_STRUCT_CMSGHDR_CMSG_LEN ${sc_cv_typeof_struct_cmsghdr_cmsg_len}
  16367. _ACEOF
  16368. fi
  16369. ### snprintf, vsnprintf
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
  16371. $as_echo_n "checking for /dev/ptmx... " >&6; }
  16372. if test -c /dev/ptmx; then
  16373. $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16375. $as_echo "yes" >&6; }
  16376. else
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16378. $as_echo "no" >&6; }
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
  16380. $as_echo_n "checking for /dev/ptc... " >&6; }
  16381. if test -c /dev/ptc; then
  16382. $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16384. $as_echo "yes" >&6; }
  16385. else
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16387. $as_echo "no" >&6; }
  16388. fi
  16389. fi
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc" >&5
  16391. $as_echo_n "checking for /proc... " >&6; }
  16392. if test -d /proc; then
  16393. $as_echo "#define HAVE_PROC_DIR 1" >>confdefs.h
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16395. $as_echo "yes" >&6; }
  16396. else
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16398. $as_echo "no" >&6; }
  16399. fi
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/*/fd" >&5
  16401. $as_echo_n "checking for /proc/*/fd... " >&6; }
  16402. if test -d /proc/$$/fd; then
  16403. $as_echo "#define HAVE_PROC_DIR_FD 1" >>confdefs.h
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16405. $as_echo "yes" >&6; }
  16406. else
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16408. $as_echo "no" >&6; }
  16409. fi
  16410. # on some platforms, raw linking with libwrap fails because allow_severity and
  16411. # deny_severity are not explicitely defined. Thus we put the libwrap part to
  16412. # the end
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include libwrap support" >&5
  16414. $as_echo_n "checking whether to include libwrap support... " >&6; }
  16415. # Check whether --enable-libwrap was given.
  16416. if test "${enable_libwrap+set}" = set; then :
  16417. enableval=$enable_libwrap; case "$enableval" in
  16418. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16419. $as_echo "no" >&6; }; WITH_LIBWRAP= ;;
  16420. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16421. $as_echo "yes" >&6; }; WITH_LIBWRAP=1 ;;
  16422. esac
  16423. else
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16425. $as_echo "yes" >&6; }; WITH_LIBWRAP=1
  16426. fi
  16427. #
  16428. # check if we find the components of libwrap ("tcpd" "tcpwrappers")
  16429. if test -n "$WITH_LIBWRAP"; then
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for components of libwrap" >&5
  16431. $as_echo_n "checking for components of libwrap... " >&6; }
  16432. # first, we need to find the include file <tcpd.h>
  16433. if ${sc_cv_have_tcpd_h+:} false; then :
  16434. $as_echo_n "(cached) " >&6
  16435. else
  16436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16437. /* end confdefs.h. */
  16438. #include <sys/types.h>
  16439. #include <tcpd.h>
  16440. int
  16441. main ()
  16442. {
  16443. ;
  16444. ;
  16445. return 0;
  16446. }
  16447. _ACEOF
  16448. if ac_fn_c_try_compile "$LINENO"; then :
  16449. sc_cv_have_tcpd_h=yes; LIBWRAP_ROOT=""
  16450. else
  16451. sc_cv_have_tcpd_h=no
  16452. for D in "/sw" "/usr/local" "/opt/freeware" "/usr/sfw"; do
  16453. I="$D/include"
  16454. i="$I/tcpd.h"
  16455. if test -r "$i"; then
  16456. #V_INCL="$V_INCL -I$I"
  16457. CPPFLAGS="$CPPFLAGS -I$I"
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: found $i" >&5
  16459. $as_echo "$as_me: found $i" >&6;}
  16460. sc_cv_have_tcpd_h=yes; LIBWRAP_ROOT="$D"
  16461. break;
  16462. fi
  16463. done
  16464. fi
  16465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16466. fi
  16467. if test "$sc_cv_have_tcpd_h" = "yes"; then
  16468. $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
  16469. fi
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: checked for tcpd.h... $sc_cv_have_tcpd_h" >&5
  16471. $as_echo "$as_me: checked for tcpd.h... $sc_cv_have_tcpd_h" >&6;}
  16472. fi # end checking for tcpd.h
  16473. if test -n "$WITH_LIBWRAP" -a "$sc_cv_have_tcpd_h" = yes; then
  16474. # next, we search for the wrap library (libwrap.*)
  16475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
  16476. $as_echo_n "checking for libwrap... " >&6; }
  16477. if ${sc_cv_have_libwrap+:} false; then :
  16478. $as_echo_n "(cached) " >&6
  16479. else
  16480. LIBS0="$LIBS"
  16481. if test -n "$LIBWRAP_ROOT"; then
  16482. L="$LIBWRAP_ROOT/lib"; LIBS="-L$L -lwrap $LIBS"
  16483. else
  16484. LIBS="-lwrap $LIBS"
  16485. fi
  16486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16487. /* end confdefs.h. */
  16488. #include <sys/types.h>
  16489. #include <tcpd.h>
  16490. int allow_severity,deny_severity;
  16491. int
  16492. main ()
  16493. {
  16494. hosts_access(0)
  16495. ;
  16496. return 0;
  16497. }
  16498. _ACEOF
  16499. if ac_fn_c_try_link "$LINENO"; then :
  16500. sc_cv_have_libwrap='yes'
  16501. else
  16502. sc_cv_have_libwrap='no'
  16503. LIBS="$LIBS -lnsl" # RedHat73
  16504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16505. /* end confdefs.h. */
  16506. #include <sys/types.h>
  16507. #include <tcpd.h>
  16508. int allow_severity,deny_severity;
  16509. int
  16510. main ()
  16511. {
  16512. hosts_access(0)
  16513. ;
  16514. return 0;
  16515. }
  16516. _ACEOF
  16517. if ac_fn_c_try_link "$LINENO"; then :
  16518. sc_cv_have_libwrap='yes'
  16519. else
  16520. sc_cv_have_libwrap='no'
  16521. fi
  16522. rm -f core conftest.err conftest.$ac_objext \
  16523. conftest$ac_exeext conftest.$ac_ext
  16524. fi
  16525. rm -f core conftest.err conftest.$ac_objext \
  16526. conftest$ac_exeext conftest.$ac_ext
  16527. if test "$sc_cv_have_libwrap" != 'yes'; then
  16528. LIBS="$LIBS0"
  16529. fi
  16530. fi
  16531. if test "$sc_cv_have_libwrap" = 'yes'; then
  16532. $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
  16533. fi
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_libwrap" >&5
  16535. $as_echo "$sc_cv_have_libwrap" >&6; }
  16536. fi
  16537. #
  16538. if test -n "$WITH_LIBWRAP"; then
  16539. if test "$sc_cv_have_tcpd_h" = "yes" -a "$sc_cv_have_libwrap" = "yes"; then
  16540. $as_echo "#define WITH_LIBWRAP 1" >>confdefs.h
  16541. else
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not all components of tcp wrappers found, disabling it" >&5
  16543. $as_echo "$as_me: WARNING: not all components of tcp wrappers found, disabling it" >&2;};
  16544. fi
  16545. fi
  16546. # check of hosts_allow_table
  16547. if test -n "$WITH_LIBWRAP"; then
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_allow_table" >&5
  16549. $as_echo_n "checking for hosts_allow_table... " >&6; }
  16550. if ${sc_cv_have_hosts_allow_table+:} false; then :
  16551. $as_echo_n "(cached) " >&6
  16552. else
  16553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16554. /* end confdefs.h. */
  16555. #include <sys/types.h>
  16556. #include <tcpd.h>
  16557. int
  16558. main ()
  16559. {
  16560. hosts_allow_table="";
  16561. ;
  16562. return 0;
  16563. }
  16564. _ACEOF
  16565. if ac_fn_c_try_compile "$LINENO"; then :
  16566. sc_cv_have_hosts_allow_table=yes
  16567. else
  16568. sc_cv_have_hosts_allow_table=no
  16569. fi
  16570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16571. fi
  16572. if test $sc_cv_have_hosts_allow_table = yes; then
  16573. $as_echo "#define HAVE_HOSTS_ALLOW_TABLE 1" >>confdefs.h
  16574. fi
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_have_hosts_allow_table" >&5
  16576. $as_echo "$sc_cv_have_hosts_allow_table" >&6; }
  16577. fi # test -n "$WITH_LIBWRAP"
  16578. if test "$GCC" = yes; then
  16579. CFLAGS="$CFLAGS"
  16580. fi
  16581. # FIPS support requires compiling with fipsld.
  16582. # fipsld requires the FIPSLD_CC variable to be set to the original CC.
  16583. # This check must be done after all other checks that require compiling
  16584. # so that fipsld is not used by the configure script itself.
  16585. if test -n "$WITH_FIPS"; then
  16586. if test "$sc_cv_have_openssl_fips_h" = 'yes' -a "$sc_cv_have_libcrypto" = 'yes'; then
  16587. FIPSLD_CC=$CC
  16588. if test "${FIPSLD+set}" != set ; then
  16589. FIPSLD=fipsld
  16590. fi
  16591. CC="FIPSLD_CC=$CC $FIPSLD"
  16592. fi
  16593. fi
  16594. # autoconf does not seem to provide AC_CHECK_VAR or so
  16595. # thus we have to check by foot
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of environ" >&5
  16597. $as_echo_n "checking for declaration of environ... " >&6; }
  16598. if ${sc_cv_decl_environ+:} false; then :
  16599. $as_echo_n "(cached) " >&6
  16600. else
  16601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16602. /* end confdefs.h. */
  16603. #include <unistd.h>
  16604. int
  16605. main ()
  16606. {
  16607. char **s = environ;
  16608. ;
  16609. return 0;
  16610. }
  16611. _ACEOF
  16612. if ac_fn_c_try_compile "$LINENO"; then :
  16613. sc_cv_decl_environ=yes
  16614. else
  16615. sc_cv_decl_environ=no
  16616. fi
  16617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16618. fi
  16619. if test $sc_cv_decl_environ = yes; then
  16620. $as_echo "#define HAVE_DECL_ENVIRON 1" >>confdefs.h
  16621. fi
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_decl_environ" >&5
  16623. $as_echo "$sc_cv_decl_environ" >&6; }
  16624. # on some systems environ exists but not the declaration
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for var environ" >&5
  16626. $as_echo_n "checking for var environ... " >&6; }
  16627. if ${sc_cv_var_environ+:} false; then :
  16628. $as_echo_n "(cached) " >&6
  16629. else
  16630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16631. /* end confdefs.h. */
  16632. int
  16633. main ()
  16634. {
  16635. extern char **environ; char **s = environ;
  16636. ;
  16637. return 0;
  16638. }
  16639. _ACEOF
  16640. if ac_fn_c_try_compile "$LINENO"; then :
  16641. sc_cv_var_environ=yes
  16642. else
  16643. sc_cv_var_environ=no
  16644. fi
  16645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16646. fi
  16647. if test $sc_cv_var_environ = yes; then
  16648. $as_echo "#define HAVE_VAR_ENVIRON 1" >>confdefs.h
  16649. fi
  16650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_var_environ" >&5
  16651. $as_echo "$sc_cv_var_environ" >&6; }
  16652. # allow BUILD_DATE to be externally set for build reproducibility
  16653. if test "$BUILD_DATE"; then
  16654. cat >>confdefs.h <<_ACEOF
  16655. #define BUILD_DATE "$BUILD_DATE"
  16656. _ACEOF
  16657. else
  16658. $as_echo "#define BUILD_DATE __DATE__\" \"__TIME__" >>confdefs.h
  16659. fi
  16660. ac_config_files="$ac_config_files Makefile"
  16661. cat >confcache <<\_ACEOF
  16662. # This file is a shell script that caches the results of configure
  16663. # tests run on this system so they can be shared between configure
  16664. # scripts and configure runs, see configure's option --config-cache.
  16665. # It is not useful on other systems. If it contains results you don't
  16666. # want to keep, you may remove or edit it.
  16667. #
  16668. # config.status only pays attention to the cache file if you give it
  16669. # the --recheck option to rerun configure.
  16670. #
  16671. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16672. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16673. # following values.
  16674. _ACEOF
  16675. # The following way of writing the cache mishandles newlines in values,
  16676. # but we know of no workaround that is simple, portable, and efficient.
  16677. # So, we kill variables containing newlines.
  16678. # Ultrix sh set writes to stderr and can't be redirected directly,
  16679. # and sets the high bit in the cache file unless we assign to the vars.
  16680. (
  16681. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16682. eval ac_val=\$$ac_var
  16683. case $ac_val in #(
  16684. *${as_nl}*)
  16685. case $ac_var in #(
  16686. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16687. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16688. esac
  16689. case $ac_var in #(
  16690. _ | IFS | as_nl) ;; #(
  16691. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16692. *) { eval $ac_var=; unset $ac_var;} ;;
  16693. esac ;;
  16694. esac
  16695. done
  16696. (set) 2>&1 |
  16697. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16698. *${as_nl}ac_space=\ *)
  16699. # `set' does not quote correctly, so add quotes: double-quote
  16700. # substitution turns \\\\ into \\, and sed turns \\ into \.
  16701. sed -n \
  16702. "s/'/'\\\\''/g;
  16703. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16704. ;; #(
  16705. *)
  16706. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16707. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16708. ;;
  16709. esac |
  16710. sort
  16711. ) |
  16712. sed '
  16713. /^ac_cv_env_/b end
  16714. t clear
  16715. :clear
  16716. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16717. t end
  16718. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16719. :end' >>confcache
  16720. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16721. if test -w "$cache_file"; then
  16722. if test "x$cache_file" != "x/dev/null"; then
  16723. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16724. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16725. if test ! -f "$cache_file" || test -h "$cache_file"; then
  16726. cat confcache >"$cache_file"
  16727. else
  16728. case $cache_file in #(
  16729. */* | ?:*)
  16730. mv -f confcache "$cache_file"$$ &&
  16731. mv -f "$cache_file"$$ "$cache_file" ;; #(
  16732. *)
  16733. mv -f confcache "$cache_file" ;;
  16734. esac
  16735. fi
  16736. fi
  16737. else
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16739. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16740. fi
  16741. fi
  16742. rm -f confcache
  16743. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16744. # Let make expand exec_prefix.
  16745. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16746. DEFS=-DHAVE_CONFIG_H
  16747. ac_libobjs=
  16748. ac_ltlibobjs=
  16749. U=
  16750. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16751. # 1. Remove the extension, and $U if already installed.
  16752. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16753. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16754. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16755. # will be set to the directory where LIBOBJS objects are built.
  16756. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16757. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16758. done
  16759. LIBOBJS=$ac_libobjs
  16760. LTLIBOBJS=$ac_ltlibobjs
  16761. : "${CONFIG_STATUS=./config.status}"
  16762. ac_write_fail=0
  16763. ac_clean_files_save=$ac_clean_files
  16764. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16765. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16766. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16767. as_write_fail=0
  16768. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16769. #! $SHELL
  16770. # Generated by $as_me.
  16771. # Run this file to recreate the current configuration.
  16772. # Compiler output produced by configure, useful for debugging
  16773. # configure, is in config.log if it exists.
  16774. debug=false
  16775. ac_cs_recheck=false
  16776. ac_cs_silent=false
  16777. SHELL=\${CONFIG_SHELL-$SHELL}
  16778. export SHELL
  16779. _ASEOF
  16780. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16781. ## -------------------- ##
  16782. ## M4sh Initialization. ##
  16783. ## -------------------- ##
  16784. # Be more Bourne compatible
  16785. DUALCASE=1; export DUALCASE # for MKS sh
  16786. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16787. emulate sh
  16788. NULLCMD=:
  16789. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16790. # is contrary to our usage. Disable this feature.
  16791. alias -g '${1+"$@"}'='"$@"'
  16792. setopt NO_GLOB_SUBST
  16793. else
  16794. case `(set -o) 2>/dev/null` in #(
  16795. *posix*) :
  16796. set -o posix ;; #(
  16797. *) :
  16798. ;;
  16799. esac
  16800. fi
  16801. as_nl='
  16802. '
  16803. export as_nl
  16804. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16805. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16806. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16807. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16808. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16809. # but without wasting forks for bash or zsh.
  16810. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16811. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16812. as_echo='print -r --'
  16813. as_echo_n='print -rn --'
  16814. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16815. as_echo='printf %s\n'
  16816. as_echo_n='printf %s'
  16817. else
  16818. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16819. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16820. as_echo_n='/usr/ucb/echo -n'
  16821. else
  16822. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16823. as_echo_n_body='eval
  16824. arg=$1;
  16825. case $arg in #(
  16826. *"$as_nl"*)
  16827. expr "X$arg" : "X\\(.*\\)$as_nl";
  16828. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16829. esac;
  16830. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16831. '
  16832. export as_echo_n_body
  16833. as_echo_n='sh -c $as_echo_n_body as_echo'
  16834. fi
  16835. export as_echo_body
  16836. as_echo='sh -c $as_echo_body as_echo'
  16837. fi
  16838. # The user is always right.
  16839. if test "${PATH_SEPARATOR+set}" != set; then
  16840. PATH_SEPARATOR=:
  16841. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16842. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16843. PATH_SEPARATOR=';'
  16844. }
  16845. fi
  16846. # IFS
  16847. # We need space, tab and new line, in precisely that order. Quoting is
  16848. # there to prevent editors from complaining about space-tab.
  16849. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16850. # splitting by setting IFS to empty value.)
  16851. IFS=" "" $as_nl"
  16852. # Find who we are. Look in the path if we contain no directory separator.
  16853. as_myself=
  16854. case $0 in #((
  16855. *[\\/]* ) as_myself=$0 ;;
  16856. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16857. for as_dir in $PATH
  16858. do
  16859. IFS=$as_save_IFS
  16860. test -z "$as_dir" && as_dir=.
  16861. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16862. done
  16863. IFS=$as_save_IFS
  16864. ;;
  16865. esac
  16866. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16867. # in which case we are not to be found in the path.
  16868. if test "x$as_myself" = x; then
  16869. as_myself=$0
  16870. fi
  16871. if test ! -f "$as_myself"; then
  16872. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16873. exit 1
  16874. fi
  16875. # Unset variables that we do not need and which cause bugs (e.g. in
  16876. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16877. # suppresses any "Segmentation fault" message there. '((' could
  16878. # trigger a bug in pdksh 5.2.14.
  16879. for as_var in BASH_ENV ENV MAIL MAILPATH
  16880. do eval test x\${$as_var+set} = xset \
  16881. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16882. done
  16883. PS1='$ '
  16884. PS2='> '
  16885. PS4='+ '
  16886. # NLS nuisances.
  16887. LC_ALL=C
  16888. export LC_ALL
  16889. LANGUAGE=C
  16890. export LANGUAGE
  16891. # CDPATH.
  16892. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16893. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16894. # ----------------------------------------
  16895. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16896. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16897. # script with STATUS, using 1 if that was 0.
  16898. as_fn_error ()
  16899. {
  16900. as_status=$1; test $as_status -eq 0 && as_status=1
  16901. if test "$4"; then
  16902. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16903. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16904. fi
  16905. $as_echo "$as_me: error: $2" >&2
  16906. as_fn_exit $as_status
  16907. } # as_fn_error
  16908. # as_fn_set_status STATUS
  16909. # -----------------------
  16910. # Set $? to STATUS, without forking.
  16911. as_fn_set_status ()
  16912. {
  16913. return $1
  16914. } # as_fn_set_status
  16915. # as_fn_exit STATUS
  16916. # -----------------
  16917. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16918. as_fn_exit ()
  16919. {
  16920. set +e
  16921. as_fn_set_status $1
  16922. exit $1
  16923. } # as_fn_exit
  16924. # as_fn_unset VAR
  16925. # ---------------
  16926. # Portably unset VAR.
  16927. as_fn_unset ()
  16928. {
  16929. { eval $1=; unset $1;}
  16930. }
  16931. as_unset=as_fn_unset
  16932. # as_fn_append VAR VALUE
  16933. # ----------------------
  16934. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16935. # advantage of any shell optimizations that allow amortized linear growth over
  16936. # repeated appends, instead of the typical quadratic growth present in naive
  16937. # implementations.
  16938. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16939. eval 'as_fn_append ()
  16940. {
  16941. eval $1+=\$2
  16942. }'
  16943. else
  16944. as_fn_append ()
  16945. {
  16946. eval $1=\$$1\$2
  16947. }
  16948. fi # as_fn_append
  16949. # as_fn_arith ARG...
  16950. # ------------------
  16951. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16952. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16953. # must be portable across $(()) and expr.
  16954. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16955. eval 'as_fn_arith ()
  16956. {
  16957. as_val=$(( $* ))
  16958. }'
  16959. else
  16960. as_fn_arith ()
  16961. {
  16962. as_val=`expr "$@" || test $? -eq 1`
  16963. }
  16964. fi # as_fn_arith
  16965. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16966. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16967. as_expr=expr
  16968. else
  16969. as_expr=false
  16970. fi
  16971. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16972. as_basename=basename
  16973. else
  16974. as_basename=false
  16975. fi
  16976. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16977. as_dirname=dirname
  16978. else
  16979. as_dirname=false
  16980. fi
  16981. as_me=`$as_basename -- "$0" ||
  16982. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16983. X"$0" : 'X\(//\)$' \| \
  16984. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16985. $as_echo X/"$0" |
  16986. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16987. s//\1/
  16988. q
  16989. }
  16990. /^X\/\(\/\/\)$/{
  16991. s//\1/
  16992. q
  16993. }
  16994. /^X\/\(\/\).*/{
  16995. s//\1/
  16996. q
  16997. }
  16998. s/.*/./; q'`
  16999. # Avoid depending upon Character Ranges.
  17000. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17001. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17002. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17003. as_cr_digits='0123456789'
  17004. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17005. ECHO_C= ECHO_N= ECHO_T=
  17006. case `echo -n x` in #(((((
  17007. -n*)
  17008. case `echo 'xy\c'` in
  17009. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17010. xy) ECHO_C='\c';;
  17011. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17012. ECHO_T=' ';;
  17013. esac;;
  17014. *)
  17015. ECHO_N='-n';;
  17016. esac
  17017. rm -f conf$$ conf$$.exe conf$$.file
  17018. if test -d conf$$.dir; then
  17019. rm -f conf$$.dir/conf$$.file
  17020. else
  17021. rm -f conf$$.dir
  17022. mkdir conf$$.dir 2>/dev/null
  17023. fi
  17024. if (echo >conf$$.file) 2>/dev/null; then
  17025. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17026. as_ln_s='ln -s'
  17027. # ... but there are two gotchas:
  17028. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17029. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17030. # In both cases, we have to default to `cp -pR'.
  17031. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17032. as_ln_s='cp -pR'
  17033. elif ln conf$$.file conf$$ 2>/dev/null; then
  17034. as_ln_s=ln
  17035. else
  17036. as_ln_s='cp -pR'
  17037. fi
  17038. else
  17039. as_ln_s='cp -pR'
  17040. fi
  17041. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17042. rmdir conf$$.dir 2>/dev/null
  17043. # as_fn_mkdir_p
  17044. # -------------
  17045. # Create "$as_dir" as a directory, including parents if necessary.
  17046. as_fn_mkdir_p ()
  17047. {
  17048. case $as_dir in #(
  17049. -*) as_dir=./$as_dir;;
  17050. esac
  17051. test -d "$as_dir" || eval $as_mkdir_p || {
  17052. as_dirs=
  17053. while :; do
  17054. case $as_dir in #(
  17055. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17056. *) as_qdir=$as_dir;;
  17057. esac
  17058. as_dirs="'$as_qdir' $as_dirs"
  17059. as_dir=`$as_dirname -- "$as_dir" ||
  17060. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17061. X"$as_dir" : 'X\(//\)[^/]' \| \
  17062. X"$as_dir" : 'X\(//\)$' \| \
  17063. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17064. $as_echo X"$as_dir" |
  17065. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17066. s//\1/
  17067. q
  17068. }
  17069. /^X\(\/\/\)[^/].*/{
  17070. s//\1/
  17071. q
  17072. }
  17073. /^X\(\/\/\)$/{
  17074. s//\1/
  17075. q
  17076. }
  17077. /^X\(\/\).*/{
  17078. s//\1/
  17079. q
  17080. }
  17081. s/.*/./; q'`
  17082. test -d "$as_dir" && break
  17083. done
  17084. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17085. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17086. } # as_fn_mkdir_p
  17087. if mkdir -p . 2>/dev/null; then
  17088. as_mkdir_p='mkdir -p "$as_dir"'
  17089. else
  17090. test -d ./-p && rmdir ./-p
  17091. as_mkdir_p=false
  17092. fi
  17093. # as_fn_executable_p FILE
  17094. # -----------------------
  17095. # Test if FILE is an executable regular file.
  17096. as_fn_executable_p ()
  17097. {
  17098. test -f "$1" && test -x "$1"
  17099. } # as_fn_executable_p
  17100. as_test_x='test -x'
  17101. as_executable_p=as_fn_executable_p
  17102. # Sed expression to map a string onto a valid CPP name.
  17103. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17104. # Sed expression to map a string onto a valid variable name.
  17105. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17106. exec 6>&1
  17107. ## ----------------------------------- ##
  17108. ## Main body of $CONFIG_STATUS script. ##
  17109. ## ----------------------------------- ##
  17110. _ASEOF
  17111. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17113. # Save the log message, to keep $0 and so on meaningful, and to
  17114. # report actual input values of CONFIG_FILES etc. instead of their
  17115. # values after options handling.
  17116. ac_log="
  17117. This file was extended by $as_me, which was
  17118. generated by GNU Autoconf 2.69. Invocation command line was
  17119. CONFIG_FILES = $CONFIG_FILES
  17120. CONFIG_HEADERS = $CONFIG_HEADERS
  17121. CONFIG_LINKS = $CONFIG_LINKS
  17122. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17123. $ $0 $@
  17124. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17125. "
  17126. _ACEOF
  17127. case $ac_config_files in *"
  17128. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17129. esac
  17130. case $ac_config_headers in *"
  17131. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17132. esac
  17133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17134. # Files that config.status was made for.
  17135. config_files="$ac_config_files"
  17136. config_headers="$ac_config_headers"
  17137. _ACEOF
  17138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17139. ac_cs_usage="\
  17140. \`$as_me' instantiates files and other configuration actions
  17141. from templates according to the current configuration. Unless the files
  17142. and actions are specified as TAGs, all are instantiated by default.
  17143. Usage: $0 [OPTION]... [TAG]...
  17144. -h, --help print this help, then exit
  17145. -V, --version print version number and configuration settings, then exit
  17146. --config print configuration, then exit
  17147. -q, --quiet, --silent
  17148. do not print progress messages
  17149. -d, --debug don't remove temporary files
  17150. --recheck update $as_me by reconfiguring in the same conditions
  17151. --file=FILE[:TEMPLATE]
  17152. instantiate the configuration file FILE
  17153. --header=FILE[:TEMPLATE]
  17154. instantiate the configuration header FILE
  17155. Configuration files:
  17156. $config_files
  17157. Configuration headers:
  17158. $config_headers
  17159. Report bugs to the package provider."
  17160. _ACEOF
  17161. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17162. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17163. ac_cs_version="\\
  17164. config.status
  17165. configured by $0, generated by GNU Autoconf 2.69,
  17166. with options \\"\$ac_cs_config\\"
  17167. Copyright (C) 2012 Free Software Foundation, Inc.
  17168. This config.status script is free software; the Free Software Foundation
  17169. gives unlimited permission to copy, distribute and modify it."
  17170. ac_pwd='$ac_pwd'
  17171. srcdir='$srcdir'
  17172. INSTALL='$INSTALL'
  17173. test -n "\$AWK" || AWK=awk
  17174. _ACEOF
  17175. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17176. # The default lists apply if the user does not specify any file.
  17177. ac_need_defaults=:
  17178. while test $# != 0
  17179. do
  17180. case $1 in
  17181. --*=?*)
  17182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17183. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17184. ac_shift=:
  17185. ;;
  17186. --*=)
  17187. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17188. ac_optarg=
  17189. ac_shift=:
  17190. ;;
  17191. *)
  17192. ac_option=$1
  17193. ac_optarg=$2
  17194. ac_shift=shift
  17195. ;;
  17196. esac
  17197. case $ac_option in
  17198. # Handling of the options.
  17199. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17200. ac_cs_recheck=: ;;
  17201. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17202. $as_echo "$ac_cs_version"; exit ;;
  17203. --config | --confi | --conf | --con | --co | --c )
  17204. $as_echo "$ac_cs_config"; exit ;;
  17205. --debug | --debu | --deb | --de | --d | -d )
  17206. debug=: ;;
  17207. --file | --fil | --fi | --f )
  17208. $ac_shift
  17209. case $ac_optarg in
  17210. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17211. '') as_fn_error $? "missing file argument" ;;
  17212. esac
  17213. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17214. ac_need_defaults=false;;
  17215. --header | --heade | --head | --hea )
  17216. $ac_shift
  17217. case $ac_optarg in
  17218. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17219. esac
  17220. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17221. ac_need_defaults=false;;
  17222. --he | --h)
  17223. # Conflict between --help and --header
  17224. as_fn_error $? "ambiguous option: \`$1'
  17225. Try \`$0 --help' for more information.";;
  17226. --help | --hel | -h )
  17227. $as_echo "$ac_cs_usage"; exit ;;
  17228. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17229. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17230. ac_cs_silent=: ;;
  17231. # This is an error.
  17232. -*) as_fn_error $? "unrecognized option: \`$1'
  17233. Try \`$0 --help' for more information." ;;
  17234. *) as_fn_append ac_config_targets " $1"
  17235. ac_need_defaults=false ;;
  17236. esac
  17237. shift
  17238. done
  17239. ac_configure_extra_args=
  17240. if $ac_cs_silent; then
  17241. exec 6>/dev/null
  17242. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17243. fi
  17244. _ACEOF
  17245. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17246. if \$ac_cs_recheck; then
  17247. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17248. shift
  17249. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  17250. CONFIG_SHELL='$SHELL'
  17251. export CONFIG_SHELL
  17252. exec "\$@"
  17253. fi
  17254. _ACEOF
  17255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17256. exec 5>>config.log
  17257. {
  17258. echo
  17259. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17260. ## Running $as_me. ##
  17261. _ASBOX
  17262. $as_echo "$ac_log"
  17263. } >&5
  17264. _ACEOF
  17265. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17266. _ACEOF
  17267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17268. # Handling of arguments.
  17269. for ac_config_target in $ac_config_targets
  17270. do
  17271. case $ac_config_target in
  17272. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  17273. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17274. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  17275. esac
  17276. done
  17277. # If the user did not use the arguments to specify the items to instantiate,
  17278. # then the envvar interface is used. Set only those that are not.
  17279. # We use the long form for the default assignment because of an extremely
  17280. # bizarre bug on SunOS 4.1.3.
  17281. if $ac_need_defaults; then
  17282. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17283. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17284. fi
  17285. # Have a temporary directory for convenience. Make it in the build tree
  17286. # simply because there is no reason against having it here, and in addition,
  17287. # creating and moving files from /tmp can sometimes cause problems.
  17288. # Hook for its removal unless debugging.
  17289. # Note that there is a small window in which the directory will not be cleaned:
  17290. # after its creation but before its name has been assigned to `$tmp'.
  17291. $debug ||
  17292. {
  17293. tmp= ac_tmp=
  17294. trap 'exit_status=$?
  17295. : "${ac_tmp:=$tmp}"
  17296. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  17297. ' 0
  17298. trap 'as_fn_exit 1' 1 2 13 15
  17299. }
  17300. # Create a (secure) tmp directory for tmp files.
  17301. {
  17302. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17303. test -d "$tmp"
  17304. } ||
  17305. {
  17306. tmp=./conf$$-$RANDOM
  17307. (umask 077 && mkdir "$tmp")
  17308. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  17309. ac_tmp=$tmp
  17310. # Set up the scripts for CONFIG_FILES section.
  17311. # No need to generate them if there are no CONFIG_FILES.
  17312. # This happens for instance with `./config.status config.h'.
  17313. if test -n "$CONFIG_FILES"; then
  17314. ac_cr=`echo X | tr X '\015'`
  17315. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17316. # But we know of no other shell where ac_cr would be empty at this
  17317. # point, so we can use a bashism as a fallback.
  17318. if test "x$ac_cr" = x; then
  17319. eval ac_cr=\$\'\\r\'
  17320. fi
  17321. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17322. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17323. ac_cs_awk_cr='\\r'
  17324. else
  17325. ac_cs_awk_cr=$ac_cr
  17326. fi
  17327. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  17328. _ACEOF
  17329. {
  17330. echo "cat >conf$$subs.awk <<_ACEOF" &&
  17331. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17332. echo "_ACEOF"
  17333. } >conf$$subs.sh ||
  17334. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17335. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  17336. ac_delim='%!_!# '
  17337. for ac_last_try in false false false false false :; do
  17338. . ./conf$$subs.sh ||
  17339. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17340. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17341. if test $ac_delim_n = $ac_delim_num; then
  17342. break
  17343. elif $ac_last_try; then
  17344. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17345. else
  17346. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17347. fi
  17348. done
  17349. rm -f conf$$subs.sh
  17350. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17351. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  17352. _ACEOF
  17353. sed -n '
  17354. h
  17355. s/^/S["/; s/!.*/"]=/
  17356. p
  17357. g
  17358. s/^[^!]*!//
  17359. :repl
  17360. t repl
  17361. s/'"$ac_delim"'$//
  17362. t delim
  17363. :nl
  17364. h
  17365. s/\(.\{148\}\)..*/\1/
  17366. t more1
  17367. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17368. p
  17369. n
  17370. b repl
  17371. :more1
  17372. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17373. p
  17374. g
  17375. s/.\{148\}//
  17376. t nl
  17377. :delim
  17378. h
  17379. s/\(.\{148\}\)..*/\1/
  17380. t more2
  17381. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17382. p
  17383. b
  17384. :more2
  17385. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17386. p
  17387. g
  17388. s/.\{148\}//
  17389. t delim
  17390. ' <conf$$subs.awk | sed '
  17391. /^[^""]/{
  17392. N
  17393. s/\n//
  17394. }
  17395. ' >>$CONFIG_STATUS || ac_write_fail=1
  17396. rm -f conf$$subs.awk
  17397. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17398. _ACAWK
  17399. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  17400. for (key in S) S_is_set[key] = 1
  17401. FS = ""
  17402. }
  17403. {
  17404. line = $ 0
  17405. nfields = split(line, field, "@")
  17406. substed = 0
  17407. len = length(field[1])
  17408. for (i = 2; i < nfields; i++) {
  17409. key = field[i]
  17410. keylen = length(key)
  17411. if (S_is_set[key]) {
  17412. value = S[key]
  17413. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17414. len += length(value) + length(field[++i])
  17415. substed = 1
  17416. } else
  17417. len += 1 + keylen
  17418. }
  17419. print line
  17420. }
  17421. _ACAWK
  17422. _ACEOF
  17423. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17424. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17425. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17426. else
  17427. cat
  17428. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17429. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17430. _ACEOF
  17431. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17432. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17433. # trailing colons and then remove the whole line if VPATH becomes empty
  17434. # (actually we leave an empty line to preserve line numbers).
  17435. if test "x$srcdir" = x.; then
  17436. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17437. h
  17438. s///
  17439. s/^/:/
  17440. s/[ ]*$/:/
  17441. s/:\$(srcdir):/:/g
  17442. s/:\${srcdir}:/:/g
  17443. s/:@srcdir@:/:/g
  17444. s/^:*//
  17445. s/:*$//
  17446. x
  17447. s/\(=[ ]*\).*/\1/
  17448. G
  17449. s/\n//
  17450. s/^[^=]*=[ ]*$//
  17451. }'
  17452. fi
  17453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17454. fi # test -n "$CONFIG_FILES"
  17455. # Set up the scripts for CONFIG_HEADERS section.
  17456. # No need to generate them if there are no CONFIG_HEADERS.
  17457. # This happens for instance with `./config.status Makefile'.
  17458. if test -n "$CONFIG_HEADERS"; then
  17459. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  17460. BEGIN {
  17461. _ACEOF
  17462. # Transform confdefs.h into an awk script `defines.awk', embedded as
  17463. # here-document in config.status, that substitutes the proper values into
  17464. # config.h.in to produce config.h.
  17465. # Create a delimiter string that does not exist in confdefs.h, to ease
  17466. # handling of long lines.
  17467. ac_delim='%!_!# '
  17468. for ac_last_try in false false :; do
  17469. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  17470. if test -z "$ac_tt"; then
  17471. break
  17472. elif $ac_last_try; then
  17473. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  17474. else
  17475. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17476. fi
  17477. done
  17478. # For the awk script, D is an array of macro values keyed by name,
  17479. # likewise P contains macro parameters if any. Preserve backslash
  17480. # newline sequences.
  17481. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17482. sed -n '
  17483. s/.\{148\}/&'"$ac_delim"'/g
  17484. t rset
  17485. :rset
  17486. s/^[ ]*#[ ]*define[ ][ ]*/ /
  17487. t def
  17488. d
  17489. :def
  17490. s/\\$//
  17491. t bsnl
  17492. s/["\\]/\\&/g
  17493. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17494. D["\1"]=" \3"/p
  17495. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  17496. d
  17497. :bsnl
  17498. s/["\\]/\\&/g
  17499. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17500. D["\1"]=" \3\\\\\\n"\\/p
  17501. t cont
  17502. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  17503. t cont
  17504. d
  17505. :cont
  17506. n
  17507. s/.\{148\}/&'"$ac_delim"'/g
  17508. t clear
  17509. :clear
  17510. s/\\$//
  17511. t bsnlc
  17512. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  17513. d
  17514. :bsnlc
  17515. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  17516. b cont
  17517. ' <confdefs.h | sed '
  17518. s/'"$ac_delim"'/"\\\
  17519. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  17520. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17521. for (key in D) D_is_set[key] = 1
  17522. FS = ""
  17523. }
  17524. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  17525. line = \$ 0
  17526. split(line, arg, " ")
  17527. if (arg[1] == "#") {
  17528. defundef = arg[2]
  17529. mac1 = arg[3]
  17530. } else {
  17531. defundef = substr(arg[1], 2)
  17532. mac1 = arg[2]
  17533. }
  17534. split(mac1, mac2, "(") #)
  17535. macro = mac2[1]
  17536. prefix = substr(line, 1, index(line, defundef) - 1)
  17537. if (D_is_set[macro]) {
  17538. # Preserve the white space surrounding the "#".
  17539. print prefix "define", macro P[macro] D[macro]
  17540. next
  17541. } else {
  17542. # Replace #undef with comments. This is necessary, for example,
  17543. # in the case of _POSIX_SOURCE, which is predefined and required
  17544. # on some systems where configure will not decide to define it.
  17545. if (defundef == "undef") {
  17546. print "/*", prefix defundef, macro, "*/"
  17547. next
  17548. }
  17549. }
  17550. }
  17551. { print }
  17552. _ACAWK
  17553. _ACEOF
  17554. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17555. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  17556. fi # test -n "$CONFIG_HEADERS"
  17557. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  17558. shift
  17559. for ac_tag
  17560. do
  17561. case $ac_tag in
  17562. :[FHLC]) ac_mode=$ac_tag; continue;;
  17563. esac
  17564. case $ac_mode$ac_tag in
  17565. :[FHL]*:*);;
  17566. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17567. :[FH]-) ac_tag=-:-;;
  17568. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17569. esac
  17570. ac_save_IFS=$IFS
  17571. IFS=:
  17572. set x $ac_tag
  17573. IFS=$ac_save_IFS
  17574. shift
  17575. ac_file=$1
  17576. shift
  17577. case $ac_mode in
  17578. :L) ac_source=$1;;
  17579. :[FH])
  17580. ac_file_inputs=
  17581. for ac_f
  17582. do
  17583. case $ac_f in
  17584. -) ac_f="$ac_tmp/stdin";;
  17585. *) # Look for the file first in the build tree, then in the source tree
  17586. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17587. # because $ac_f cannot contain `:'.
  17588. test -f "$ac_f" ||
  17589. case $ac_f in
  17590. [\\/$]*) false;;
  17591. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17592. esac ||
  17593. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17594. esac
  17595. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17596. as_fn_append ac_file_inputs " '$ac_f'"
  17597. done
  17598. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17599. # use $as_me), people would be surprised to read:
  17600. # /* config.h. Generated by config.status. */
  17601. configure_input='Generated from '`
  17602. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17603. `' by configure.'
  17604. if test x"$ac_file" != x-; then
  17605. configure_input="$ac_file. $configure_input"
  17606. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17607. $as_echo "$as_me: creating $ac_file" >&6;}
  17608. fi
  17609. # Neutralize special characters interpreted by sed in replacement strings.
  17610. case $configure_input in #(
  17611. *\&* | *\|* | *\\* )
  17612. ac_sed_conf_input=`$as_echo "$configure_input" |
  17613. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17614. *) ac_sed_conf_input=$configure_input;;
  17615. esac
  17616. case $ac_tag in
  17617. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17618. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17619. esac
  17620. ;;
  17621. esac
  17622. ac_dir=`$as_dirname -- "$ac_file" ||
  17623. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17624. X"$ac_file" : 'X\(//\)[^/]' \| \
  17625. X"$ac_file" : 'X\(//\)$' \| \
  17626. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17627. $as_echo X"$ac_file" |
  17628. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17629. s//\1/
  17630. q
  17631. }
  17632. /^X\(\/\/\)[^/].*/{
  17633. s//\1/
  17634. q
  17635. }
  17636. /^X\(\/\/\)$/{
  17637. s//\1/
  17638. q
  17639. }
  17640. /^X\(\/\).*/{
  17641. s//\1/
  17642. q
  17643. }
  17644. s/.*/./; q'`
  17645. as_dir="$ac_dir"; as_fn_mkdir_p
  17646. ac_builddir=.
  17647. case "$ac_dir" in
  17648. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17649. *)
  17650. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17651. # A ".." for each directory in $ac_dir_suffix.
  17652. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17653. case $ac_top_builddir_sub in
  17654. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17655. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17656. esac ;;
  17657. esac
  17658. ac_abs_top_builddir=$ac_pwd
  17659. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17660. # for backward compatibility:
  17661. ac_top_builddir=$ac_top_build_prefix
  17662. case $srcdir in
  17663. .) # We are building in place.
  17664. ac_srcdir=.
  17665. ac_top_srcdir=$ac_top_builddir_sub
  17666. ac_abs_top_srcdir=$ac_pwd ;;
  17667. [\\/]* | ?:[\\/]* ) # Absolute name.
  17668. ac_srcdir=$srcdir$ac_dir_suffix;
  17669. ac_top_srcdir=$srcdir
  17670. ac_abs_top_srcdir=$srcdir ;;
  17671. *) # Relative name.
  17672. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17673. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17674. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17675. esac
  17676. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17677. case $ac_mode in
  17678. :F)
  17679. #
  17680. # CONFIG_FILE
  17681. #
  17682. case $INSTALL in
  17683. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17684. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17685. esac
  17686. _ACEOF
  17687. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17688. # If the template does not know about datarootdir, expand it.
  17689. # FIXME: This hack should be removed a few years after 2.60.
  17690. ac_datarootdir_hack=; ac_datarootdir_seen=
  17691. ac_sed_dataroot='
  17692. /datarootdir/ {
  17693. p
  17694. q
  17695. }
  17696. /@datadir@/p
  17697. /@docdir@/p
  17698. /@infodir@/p
  17699. /@localedir@/p
  17700. /@mandir@/p'
  17701. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17702. *datarootdir*) ac_datarootdir_seen=yes;;
  17703. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17705. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17706. _ACEOF
  17707. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17708. ac_datarootdir_hack='
  17709. s&@datadir@&$datadir&g
  17710. s&@docdir@&$docdir&g
  17711. s&@infodir@&$infodir&g
  17712. s&@localedir@&$localedir&g
  17713. s&@mandir@&$mandir&g
  17714. s&\\\${datarootdir}&$datarootdir&g' ;;
  17715. esac
  17716. _ACEOF
  17717. # Neutralize VPATH when `$srcdir' = `.'.
  17718. # Shell code in configure.ac might set extrasub.
  17719. # FIXME: do we really want to maintain this feature?
  17720. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17721. ac_sed_extra="$ac_vpsub
  17722. $extrasub
  17723. _ACEOF
  17724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17725. :t
  17726. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17727. s|@configure_input@|$ac_sed_conf_input|;t t
  17728. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17729. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17730. s&@srcdir@&$ac_srcdir&;t t
  17731. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17732. s&@top_srcdir@&$ac_top_srcdir&;t t
  17733. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17734. s&@builddir@&$ac_builddir&;t t
  17735. s&@abs_builddir@&$ac_abs_builddir&;t t
  17736. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17737. s&@INSTALL@&$ac_INSTALL&;t t
  17738. $ac_datarootdir_hack
  17739. "
  17740. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17741. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17742. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17743. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17744. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17745. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17747. which seems to be undefined. Please make sure it is defined" >&5
  17748. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17749. which seems to be undefined. Please make sure it is defined" >&2;}
  17750. rm -f "$ac_tmp/stdin"
  17751. case $ac_file in
  17752. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17753. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17754. esac \
  17755. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17756. ;;
  17757. :H)
  17758. #
  17759. # CONFIG_HEADER
  17760. #
  17761. if test x"$ac_file" != x-; then
  17762. {
  17763. $as_echo "/* $configure_input */" \
  17764. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17765. } >"$ac_tmp/config.h" \
  17766. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17767. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17769. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17770. else
  17771. rm -f "$ac_file"
  17772. mv "$ac_tmp/config.h" "$ac_file" \
  17773. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17774. fi
  17775. else
  17776. $as_echo "/* $configure_input */" \
  17777. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17778. || as_fn_error $? "could not create -" "$LINENO" 5
  17779. fi
  17780. ;;
  17781. esac
  17782. done # for ac_tag
  17783. as_fn_exit 0
  17784. _ACEOF
  17785. ac_clean_files=$ac_clean_files_save
  17786. test $ac_write_fail = 0 ||
  17787. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17788. # configure is writing to config.log, and then calls config.status.
  17789. # config.status does its own redirection, appending to config.log.
  17790. # Unfortunately, on DOS this fails, as config.log is still kept open
  17791. # by configure, so config.status won't be able to write to it; its
  17792. # output is simply discarded. So we exec the FD to /dev/null,
  17793. # effectively closing config.log, so it can be properly (re)opened and
  17794. # appended to by config.status. When coming back to configure, we
  17795. # need to make the FD available again.
  17796. if test "$no_create" != yes; then
  17797. ac_cs_success=:
  17798. ac_config_status_args=
  17799. test "$silent" = yes &&
  17800. ac_config_status_args="$ac_config_status_args --quiet"
  17801. exec 5>/dev/null
  17802. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17803. exec 5>>config.log
  17804. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17805. # would make configure fail if this is the last instruction.
  17806. $ac_cs_success || as_fn_exit 1
  17807. fi
  17808. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17810. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17811. fi