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.

24380 lines
767 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.59e for csoap 1.1.0.
  4. @%:@
  5. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. @%:@ This configure script is free software; the Free Software Foundation
  8. @%:@ gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. setopt NO_GLOB_SUBST
  20. else
  21. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  22. fi
  23. BIN_SH=xpg4; export BIN_SH # for Tru64
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # PATH needs CR
  26. # Avoid depending upon Character Ranges.
  27. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  29. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  30. as_cr_digits='0123456789'
  31. as_cr_alnum=$as_cr_Letters$as_cr_digits
  32. # The user is always right.
  33. if test "${PATH_SEPARATOR+set}" != set; then
  34. echo "#! /bin/sh" >conf$$.sh
  35. echo "exit 0" >>conf$$.sh
  36. chmod +x conf$$.sh
  37. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  38. PATH_SEPARATOR=';'
  39. else
  40. PATH_SEPARATOR=:
  41. fi
  42. rm -f conf$$.sh
  43. fi
  44. # Support unset when possible.
  45. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  46. as_unset=unset
  47. else
  48. as_unset=false
  49. fi
  50. # IFS
  51. # We need space, tab and new line, in precisely that order. Quoting is
  52. # there to prevent editors from complaining about space-tab.
  53. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  54. # splitting by setting IFS to empty value.)
  55. as_nl='
  56. '
  57. IFS=" "" $as_nl"
  58. # Find who we are. Look in the path if we contain no directory separator.
  59. case $0 in
  60. *[\\/]* ) as_myself=$0 ;;
  61. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62. for as_dir in $PATH
  63. do
  64. IFS=$as_save_IFS
  65. test -z "$as_dir" && as_dir=.
  66. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  67. done
  68. IFS=$as_save_IFS
  69. ;;
  70. esac
  71. # We did not find ourselves, most probably we were run as `sh COMMAND'
  72. # in which case we are not to be found in the path.
  73. if test "x$as_myself" = x; then
  74. as_myself=$0
  75. fi
  76. if test ! -f "$as_myself"; then
  77. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  78. { (exit 1); exit 1; }
  79. fi
  80. # Work around bugs in pre-3.0 UWIN ksh.
  81. for as_var in ENV MAIL MAILPATH
  82. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  83. done
  84. PS1='$ '
  85. PS2='> '
  86. PS4='+ '
  87. # NLS nuisances.
  88. for as_var in \
  89. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  90. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  91. LC_TELEPHONE LC_TIME
  92. do
  93. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  94. eval $as_var=C; export $as_var
  95. else
  96. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  97. fi
  98. done
  99. # Required to use basename.
  100. if expr a : '\(a\)' >/dev/null 2>&1 &&
  101. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  102. as_expr=expr
  103. else
  104. as_expr=false
  105. fi
  106. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  107. as_basename=basename
  108. else
  109. as_basename=false
  110. fi
  111. # Name of the executable.
  112. as_me=`$as_basename -- "$0" ||
  113. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  114. X"$0" : 'X\(//\)$' \| \
  115. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  116. echo X/"$0" |
  117. sed '/^.*\/\([^/][^/]*\)\/*$/{
  118. s//\1/
  119. q
  120. }
  121. /^X\/\(\/\/\)$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\).*/{
  126. s//\1/
  127. q
  128. }
  129. s/.*/./; q'`
  130. # CDPATH.
  131. $as_unset CDPATH
  132. if test "x$CONFIG_SHELL" = x; then
  133. if (eval ":") 2>/dev/null; then
  134. as_have_required=yes
  135. else
  136. as_have_required=no
  137. fi
  138. if test $as_have_required = yes && (eval ":
  139. (as_func_return () {
  140. (exit \$1)
  141. }
  142. as_func_success () {
  143. as_func_return 0
  144. }
  145. as_func_failure () {
  146. as_func_return 1
  147. }
  148. as_func_ret_success () {
  149. return 0
  150. }
  151. as_func_ret_failure () {
  152. return 1
  153. }
  154. exitcode=0
  155. if as_func_success; then
  156. :
  157. else
  158. exitcode=1
  159. echo as_func_success failed.
  160. fi
  161. if as_func_failure; then
  162. exitcode=1
  163. echo as_func_failure succeeded.
  164. fi
  165. if as_func_ret_success; then
  166. :
  167. else
  168. exitcode=1
  169. echo as_func_ret_success failed.
  170. fi
  171. if as_func_ret_failure; then
  172. exitcode=1
  173. echo as_func_ret_failure succeeded.
  174. fi
  175. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  176. :
  177. else
  178. exitcode=1
  179. echo positional parameters were not saved.
  180. fi
  181. test \$exitcode = 0) || { (exit 1); exit 1; }
  182. (
  183. as_lineno_1=\$LINENO
  184. as_lineno_2=\$LINENO
  185. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  186. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  187. ") 2> /dev/null; then
  188. :
  189. else
  190. as_candidate_shells=
  191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  192. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  193. do
  194. IFS=$as_save_IFS
  195. test -z "$as_dir" && as_dir=.
  196. case $as_dir in
  197. /*)
  198. for as_base in sh bash ksh sh5; do
  199. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  200. done;;
  201. esac
  202. done
  203. IFS=$as_save_IFS
  204. for as_shell in $as_candidate_shells $SHELL; do
  205. # Try only shells which exist, to save several forks.
  206. if test -f "$as_shell" &&
  207. { ("$as_shell") 2> /dev/null <<\_ASEOF
  208. # Be Bourne compatible
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  218. fi
  219. BIN_SH=xpg4; export BIN_SH # for Tru64
  220. DUALCASE=1; export DUALCASE # for MKS sh
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. # Be Bourne compatible
  228. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  229. emulate sh
  230. NULLCMD=:
  231. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  232. # is contrary to our usage. Disable this feature.
  233. alias -g '${1+"$@"}'='"$@"'
  234. setopt NO_GLOB_SUBST
  235. else
  236. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  237. fi
  238. BIN_SH=xpg4; export BIN_SH # for Tru64
  239. DUALCASE=1; export DUALCASE # for MKS sh
  240. :
  241. (as_func_return () {
  242. (exit $1)
  243. }
  244. as_func_success () {
  245. as_func_return 0
  246. }
  247. as_func_failure () {
  248. as_func_return 1
  249. }
  250. as_func_ret_success () {
  251. return 0
  252. }
  253. as_func_ret_failure () {
  254. return 1
  255. }
  256. exitcode=0
  257. if as_func_success; then
  258. :
  259. else
  260. exitcode=1
  261. echo as_func_success failed.
  262. fi
  263. if as_func_failure; then
  264. exitcode=1
  265. echo as_func_failure succeeded.
  266. fi
  267. if as_func_ret_success; then
  268. :
  269. else
  270. exitcode=1
  271. echo as_func_ret_success failed.
  272. fi
  273. if as_func_ret_failure; then
  274. exitcode=1
  275. echo as_func_ret_failure succeeded.
  276. fi
  277. if ( set x; as_func_ret_success y && test x = "$1" ); then
  278. :
  279. else
  280. exitcode=1
  281. echo positional parameters were not saved.
  282. fi
  283. test $exitcode = 0) || { (exit 1); exit 1; }
  284. (
  285. as_lineno_1=$LINENO
  286. as_lineno_2=$LINENO
  287. test "x$as_lineno_1" != "x$as_lineno_2" &&
  288. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  289. _ASEOF
  290. }; then
  291. break
  292. fi
  293. fi
  294. done
  295. if test "x$CONFIG_SHELL" != x; then
  296. for as_var in BASH_ENV ENV
  297. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  298. done
  299. export CONFIG_SHELL
  300. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  301. fi
  302. if test $as_have_required = no; then
  303. echo This script requires a shell more modern than all the
  304. echo shells that I found on your system. Please install a
  305. echo modern shell, or manually run the script under such a
  306. echo shell if you do have one.
  307. { (exit 1); exit 1; }
  308. fi
  309. fi
  310. fi
  311. (eval "as_func_return () {
  312. (exit \$1)
  313. }
  314. as_func_success () {
  315. as_func_return 0
  316. }
  317. as_func_failure () {
  318. as_func_return 1
  319. }
  320. as_func_ret_success () {
  321. return 0
  322. }
  323. as_func_ret_failure () {
  324. return 1
  325. }
  326. exitcode=0
  327. if as_func_success; then
  328. :
  329. else
  330. exitcode=1
  331. echo as_func_success failed.
  332. fi
  333. if as_func_failure; then
  334. exitcode=1
  335. echo as_func_failure succeeded.
  336. fi
  337. if as_func_ret_success; then
  338. :
  339. else
  340. exitcode=1
  341. echo as_func_ret_success failed.
  342. fi
  343. if as_func_ret_failure; then
  344. exitcode=1
  345. echo as_func_ret_failure succeeded.
  346. fi
  347. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  348. :
  349. else
  350. exitcode=1
  351. echo positional parameters were not saved.
  352. fi
  353. test \$exitcode = 0") || {
  354. echo No shell found that supports shell functions.
  355. echo Please tell autoconf@gnu.org about your system,
  356. echo including any error possibly output before this
  357. echo message
  358. }
  359. as_lineno_1=$LINENO
  360. as_lineno_2=$LINENO
  361. test "x$as_lineno_1" != "x$as_lineno_2" &&
  362. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  363. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  364. # uniformly replaced by the line number. The first 'sed' inserts a
  365. # line-number line after each line using $LINENO; the second 'sed'
  366. # does the real work. The second script uses 'N' to pair each
  367. # line-number line with the line containing $LINENO, and appends
  368. # trailing '-' during substitution so that $LINENO is not a special
  369. # case at line end.
  370. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  371. # scripts with optimization help from Paolo Bonzini. Blame Lee
  372. # E. McMahon (1931-1989) for sed's syntax. :-)
  373. sed -n '
  374. p
  375. /[$]LINENO/=
  376. ' <$as_myself |
  377. sed '
  378. s/[$]LINENO.*/&-/
  379. t lineno
  380. b
  381. :lineno
  382. N
  383. :loop
  384. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  385. t loop
  386. s/-\n.*//
  387. ' >$as_me.lineno &&
  388. chmod +x "$as_me.lineno" ||
  389. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  390. { (exit 1); exit 1; }; }
  391. # Don't try to exec as it changes $[0], causing all sort of problems
  392. # (the dirname of $[0] is not the place where we might find the
  393. # original and so on. Autoconf is especially sensitive to this).
  394. . "./$as_me.lineno"
  395. # Exit status is that of the last command.
  396. exit
  397. }
  398. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  399. as_dirname=dirname
  400. else
  401. as_dirname=false
  402. fi
  403. ECHO_C= ECHO_N= ECHO_T=
  404. case `echo -n x` in
  405. -n*)
  406. case `echo 'x\c'` in
  407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  408. *) ECHO_C='\c';;
  409. esac;;
  410. *)
  411. ECHO_N='-n';;
  412. esac
  413. if expr a : '\(a\)' >/dev/null 2>&1 &&
  414. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  415. as_expr=expr
  416. else
  417. as_expr=false
  418. fi
  419. rm -f conf$$ conf$$.exe conf$$.file
  420. if test -d conf$$.dir; then
  421. rm -f conf$$.dir/conf$$.file
  422. else
  423. rm -f conf$$.dir
  424. mkdir conf$$.dir
  425. fi
  426. echo >conf$$.file
  427. if ln -s conf$$.file conf$$ 2>/dev/null; then
  428. as_ln_s='ln -s'
  429. # ... but there are two gotchas:
  430. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  431. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  432. # In both cases, we have to default to `cp -p'.
  433. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  434. as_ln_s='cp -p'
  435. elif ln conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s=ln
  437. else
  438. as_ln_s='cp -p'
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  441. rmdir conf$$.dir 2>/dev/null
  442. if mkdir -p . 2>/dev/null; then
  443. as_mkdir_p=:
  444. else
  445. test -d ./-p && rmdir ./-p
  446. as_mkdir_p=false
  447. fi
  448. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  449. # systems may use methods other than mode bits to determine executability.
  450. cat >conf$$.file <<_ASEOF
  451. #! /bin/sh
  452. exit 0
  453. _ASEOF
  454. chmod +x conf$$.file
  455. if test -x conf$$.file >/dev/null 2>&1; then
  456. as_executable_p="test -x"
  457. else
  458. as_executable_p=:
  459. fi
  460. rm -f conf$$.file
  461. # Sed expression to map a string onto a valid CPP name.
  462. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  463. # Sed expression to map a string onto a valid variable name.
  464. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  465. # Check that we are running under the correct shell.
  466. SHELL=${CONFIG_SHELL-/bin/sh}
  467. case X$ECHO in
  468. X*--fallback-echo)
  469. # Remove one level of quotation (which was required for Make).
  470. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  471. ;;
  472. esac
  473. echo=${ECHO-echo}
  474. if test "X$1" = X--no-reexec; then
  475. # Discard the --no-reexec flag, and continue.
  476. shift
  477. elif test "X$1" = X--fallback-echo; then
  478. # Avoid inline document here, it may be left over
  479. :
  480. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  481. # Yippee, $echo works!
  482. :
  483. else
  484. # Restart under the correct shell.
  485. exec $SHELL "$0" --no-reexec ${1+"$@"}
  486. fi
  487. if test "X$1" = X--fallback-echo; then
  488. # used as fallback echo
  489. shift
  490. cat <<EOF
  491. $*
  492. EOF
  493. exit 0
  494. fi
  495. # The HP-UX ksh and POSIX shell print the target directory to stdout
  496. # if CDPATH is set.
  497. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  498. if test -z "$ECHO"; then
  499. if test "X${echo_test_string+set}" != Xset; then
  500. # find a string as large as possible, as long as the shell can cope with it
  501. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  502. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  503. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  504. echo_test_string=`eval $cmd` &&
  505. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  506. then
  507. break
  508. fi
  509. done
  510. fi
  511. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  512. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  513. test "X$echo_testing_string" = "X$echo_test_string"; then
  514. :
  515. else
  516. # The Solaris, AIX, and Digital Unix default echo programs unquote
  517. # backslashes. This makes it impossible to quote backslashes using
  518. # echo "$something" | sed 's/\\/\\\\/g'
  519. #
  520. # So, first we look for a working echo in the user's PATH.
  521. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  522. for dir in $PATH /usr/ucb; do
  523. IFS="$lt_save_ifs"
  524. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  525. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  526. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  527. test "X$echo_testing_string" = "X$echo_test_string"; then
  528. echo="$dir/echo"
  529. break
  530. fi
  531. done
  532. IFS="$lt_save_ifs"
  533. if test "X$echo" = Xecho; then
  534. # We didn't find a better echo, so look for alternatives.
  535. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. # This shell has a builtin print -r that does the trick.
  539. echo='print -r'
  540. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  541. test "X$CONFIG_SHELL" != X/bin/ksh; then
  542. # If we have ksh, try running configure again with it.
  543. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  544. export ORIGINAL_CONFIG_SHELL
  545. CONFIG_SHELL=/bin/ksh
  546. export CONFIG_SHELL
  547. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  548. else
  549. # Try using printf.
  550. echo='printf %s\n'
  551. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  552. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  553. test "X$echo_testing_string" = "X$echo_test_string"; then
  554. # Cool, printf works
  555. :
  556. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  557. test "X$echo_testing_string" = 'X\t' &&
  558. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  561. export CONFIG_SHELL
  562. SHELL="$CONFIG_SHELL"
  563. export SHELL
  564. echo="$CONFIG_SHELL $0 --fallback-echo"
  565. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  566. test "X$echo_testing_string" = 'X\t' &&
  567. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. echo="$CONFIG_SHELL $0 --fallback-echo"
  570. else
  571. # maybe with a smaller string...
  572. prev=:
  573. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  574. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  575. then
  576. break
  577. fi
  578. prev="$cmd"
  579. done
  580. if test "$prev" != 'sed 50q "$0"'; then
  581. echo_test_string=`eval $prev`
  582. export echo_test_string
  583. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  584. else
  585. # Oops. We lost completely, so just stick with echo.
  586. echo=echo
  587. fi
  588. fi
  589. fi
  590. fi
  591. fi
  592. fi
  593. # Copy echo and quote the copy suitably for passing to libtool from
  594. # the Makefile, instead of quoting the original, which is used later.
  595. ECHO=$echo
  596. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  597. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  598. fi
  599. tagnames=${tagnames+${tagnames},}CXX
  600. tagnames=${tagnames+${tagnames},}F77
  601. exec 7<&0 </dev/null 6>&1
  602. # Name of the host.
  603. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  604. # so uname gets run too.
  605. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  606. #
  607. # Initializations.
  608. #
  609. ac_default_prefix=/usr/local
  610. ac_clean_files=
  611. ac_config_libobj_dir=.
  612. LIB@&t@OBJS=
  613. cross_compiling=no
  614. subdirs=
  615. MFLAGS=
  616. MAKEFLAGS=
  617. SHELL=${CONFIG_SHELL-/bin/sh}
  618. # Identity of this package.
  619. PACKAGE_NAME='csoap'
  620. PACKAGE_TARNAME='csoap'
  621. PACKAGE_VERSION='1.1.0'
  622. PACKAGE_STRING='csoap 1.1.0'
  623. PACKAGE_BUGREPORT=''
  624. ac_unique_file="nanohttp/nanohttp-server.c"
  625. ac_unique_file="libcsoap/soap-server.c"
  626. # Factoring default headers for most tests.
  627. ac_includes_default="\
  628. #include <stdio.h>
  629. #if HAVE_SYS_TYPES_H
  630. # include <sys/types.h>
  631. #endif
  632. #if HAVE_SYS_STAT_H
  633. # include <sys/stat.h>
  634. #endif
  635. #if STDC_HEADERS
  636. # include <stdlib.h>
  637. # include <stddef.h>
  638. #else
  639. # if HAVE_STDLIB_H
  640. # include <stdlib.h>
  641. # endif
  642. #endif
  643. #if HAVE_STRING_H
  644. # if !STDC_HEADERS && HAVE_MEMORY_H
  645. # include <memory.h>
  646. # endif
  647. # include <string.h>
  648. #endif
  649. #if HAVE_STRINGS_H
  650. # include <strings.h>
  651. #endif
  652. #if HAVE_INTTYPES_H
  653. # include <inttypes.h>
  654. #endif
  655. #if HAVE_STDINT_H
  656. # include <stdint.h>
  657. #endif
  658. #if HAVE_UNISTD_H
  659. # include <unistd.h>
  660. #endif"
  661. ac_subst_vars='SHELL
  662. PATH_SEPARATOR
  663. PACKAGE_NAME
  664. PACKAGE_TARNAME
  665. PACKAGE_VERSION
  666. PACKAGE_STRING
  667. PACKAGE_BUGREPORT
  668. exec_prefix
  669. prefix
  670. program_transform_name
  671. bindir
  672. sbindir
  673. libexecdir
  674. datarootdir
  675. datadir
  676. sysconfdir
  677. sharedstatedir
  678. localstatedir
  679. includedir
  680. oldincludedir
  681. docdir
  682. infodir
  683. htmldir
  684. dvidir
  685. pdfdir
  686. psdir
  687. libdir
  688. localedir
  689. mandir
  690. DEFS
  691. ECHO_C
  692. ECHO_N
  693. ECHO_T
  694. LIBS
  695. build_alias
  696. host_alias
  697. target_alias
  698. INSTALL_PROGRAM
  699. INSTALL_SCRIPT
  700. INSTALL_DATA
  701. CYGPATH_W
  702. PACKAGE
  703. VERSION
  704. ACLOCAL
  705. AUTOCONF
  706. AUTOMAKE
  707. AUTOHEADER
  708. MAKEINFO
  709. install_sh
  710. STRIP
  711. INSTALL_STRIP_PROGRAM
  712. mkdir_p
  713. AWK
  714. SET_MAKE
  715. am__leading_dot
  716. AMTAR
  717. am__tar
  718. am__untar
  719. CC
  720. CFLAGS
  721. LDFLAGS
  722. CPPFLAGS
  723. ac_ct_CC
  724. EXEEXT
  725. OBJEXT
  726. DEPDIR
  727. am__include
  728. am__quote
  729. AMDEP_TRUE
  730. AMDEP_FALSE
  731. AMDEPBACKSLASH
  732. CCDEPMODE
  733. am__fastdepCC_TRUE
  734. am__fastdepCC_FALSE
  735. build
  736. build_cpu
  737. build_vendor
  738. build_os
  739. host
  740. host_cpu
  741. host_vendor
  742. host_os
  743. GREP
  744. EGREP
  745. LN_S
  746. ECHO
  747. AR
  748. RANLIB
  749. CPP
  750. CXX
  751. CXXFLAGS
  752. ac_ct_CXX
  753. CXXDEPMODE
  754. am__fastdepCXX_TRUE
  755. am__fastdepCXX_FALSE
  756. CXXCPP
  757. F77
  758. FFLAGS
  759. ac_ct_F77
  760. LIBTOOL
  761. csoap_major
  762. csoap_minor
  763. csoap_patch
  764. csoap_release
  765. csoap_version
  766. nanohttp_release
  767. nanohttp_version
  768. LIB@&t@OBJS
  769. acx_pthread_config
  770. PTHREAD_CC
  771. PTHREAD_LIBS
  772. PTHREAD_CFLAGS
  773. LIBSOCKET
  774. LIBNSL
  775. XML2_CONFIG
  776. XML_CPPFLAGS
  777. XML_LIBS
  778. LTLIBOBJS'
  779. ac_subst_files=''
  780. ac_precious_vars='build_alias
  781. host_alias
  782. target_alias
  783. CC
  784. CFLAGS
  785. LDFLAGS
  786. CPPFLAGS
  787. CPP
  788. CXX
  789. CXXFLAGS
  790. CCC
  791. CXXCPP
  792. F77
  793. FFLAGS'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. # The variables have the same names as the options, with
  798. # dashes changed to underlines.
  799. cache_file=/dev/null
  800. exec_prefix=NONE
  801. no_create=
  802. no_recursion=
  803. prefix=NONE
  804. program_prefix=NONE
  805. program_suffix=NONE
  806. program_transform_name=s,x,x,
  807. silent=
  808. site=
  809. srcdir=
  810. verbose=
  811. x_includes=NONE
  812. x_libraries=NONE
  813. # Installation directory options.
  814. # These are left unexpanded so users can "make install exec_prefix=/foo"
  815. # and all the variables that are supposed to be based on exec_prefix
  816. # by default will actually change.
  817. # Use braces instead of parens because sh, perl, etc. also accept them.
  818. # (The list follows the same order as the GNU Coding Standards.)
  819. bindir='${exec_prefix}/bin'
  820. sbindir='${exec_prefix}/sbin'
  821. libexecdir='${exec_prefix}/libexec'
  822. datarootdir='${prefix}/share'
  823. datadir='${datarootdir}'
  824. sysconfdir='${prefix}/etc'
  825. sharedstatedir='${prefix}/com'
  826. localstatedir='${prefix}/var'
  827. includedir='${prefix}/include'
  828. oldincludedir='/usr/include'
  829. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  830. infodir='${datarootdir}/info'
  831. htmldir='${docdir}'
  832. dvidir='${docdir}'
  833. pdfdir='${docdir}'
  834. psdir='${docdir}'
  835. libdir='${exec_prefix}/lib'
  836. localedir='${datarootdir}/locale'
  837. mandir='${datarootdir}/man'
  838. ac_prev=
  839. ac_dashdash=
  840. for ac_option
  841. do
  842. # If the previous option needs an argument, assign it.
  843. if test -n "$ac_prev"; then
  844. eval $ac_prev=\$ac_option
  845. ac_prev=
  846. continue
  847. fi
  848. case $ac_option in
  849. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  850. *) ac_optarg=yes ;;
  851. esac
  852. # Accept the important Cygnus configure options, so we can diagnose typos.
  853. case $ac_dashdash$ac_option in
  854. --)
  855. ac_dashdash=yes ;;
  856. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  857. ac_prev=bindir ;;
  858. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  859. bindir=$ac_optarg ;;
  860. -build | --build | --buil | --bui | --bu)
  861. ac_prev=build_alias ;;
  862. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  863. build_alias=$ac_optarg ;;
  864. -cache-file | --cache-file | --cache-fil | --cache-fi \
  865. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  866. ac_prev=cache_file ;;
  867. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  868. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  869. cache_file=$ac_optarg ;;
  870. --config-cache | -C)
  871. cache_file=config.cache ;;
  872. -datadir | --datadir | --datadi | --datad)
  873. ac_prev=datadir ;;
  874. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  875. datadir=$ac_optarg ;;
  876. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  877. | --dataroo | --dataro | --datar)
  878. ac_prev=datarootdir ;;
  879. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  880. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  881. datarootdir=$ac_optarg ;;
  882. -disable-* | --disable-*)
  883. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  886. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  887. { (exit 1); exit 1; }; }
  888. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  889. eval enable_$ac_feature=no ;;
  890. -docdir | --docdir | --docdi | --doc | --do)
  891. ac_prev=docdir ;;
  892. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  893. docdir=$ac_optarg ;;
  894. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  895. ac_prev=dvidir ;;
  896. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  897. dvidir=$ac_optarg ;;
  898. -enable-* | --enable-*)
  899. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  902. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  903. { (exit 1); exit 1; }; }
  904. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  905. eval enable_$ac_feature=\$ac_optarg ;;
  906. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  907. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  908. | --exec | --exe | --ex)
  909. ac_prev=exec_prefix ;;
  910. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  911. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  912. | --exec=* | --exe=* | --ex=*)
  913. exec_prefix=$ac_optarg ;;
  914. -gas | --gas | --ga | --g)
  915. # Obsolete; use --with-gas.
  916. with_gas=yes ;;
  917. -help | --help | --hel | --he | -h)
  918. ac_init_help=long ;;
  919. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  920. ac_init_help=recursive ;;
  921. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  922. ac_init_help=short ;;
  923. -host | --host | --hos | --ho)
  924. ac_prev=host_alias ;;
  925. -host=* | --host=* | --hos=* | --ho=*)
  926. host_alias=$ac_optarg ;;
  927. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  928. ac_prev=htmldir ;;
  929. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  930. | --ht=*)
  931. htmldir=$ac_optarg ;;
  932. -includedir | --includedir | --includedi | --included | --include \
  933. | --includ | --inclu | --incl | --inc)
  934. ac_prev=includedir ;;
  935. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  936. | --includ=* | --inclu=* | --incl=* | --inc=*)
  937. includedir=$ac_optarg ;;
  938. -infodir | --infodir | --infodi | --infod | --info | --inf)
  939. ac_prev=infodir ;;
  940. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  941. infodir=$ac_optarg ;;
  942. -libdir | --libdir | --libdi | --libd)
  943. ac_prev=libdir ;;
  944. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  945. libdir=$ac_optarg ;;
  946. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  947. | --libexe | --libex | --libe)
  948. ac_prev=libexecdir ;;
  949. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  950. | --libexe=* | --libex=* | --libe=*)
  951. libexecdir=$ac_optarg ;;
  952. -localedir | --localedir | --localedi | --localed | --locale)
  953. ac_prev=localedir ;;
  954. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  955. localedir=$ac_optarg ;;
  956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  957. | --localstate | --localstat | --localsta | --localst | --locals)
  958. ac_prev=localstatedir ;;
  959. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  960. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  961. localstatedir=$ac_optarg ;;
  962. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  963. ac_prev=mandir ;;
  964. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  965. mandir=$ac_optarg ;;
  966. -nfp | --nfp | --nf)
  967. # Obsolete; use --without-fp.
  968. with_fp=no ;;
  969. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  970. | --no-cr | --no-c | -n)
  971. no_create=yes ;;
  972. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  973. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  974. no_recursion=yes ;;
  975. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  976. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  977. | --oldin | --oldi | --old | --ol | --o)
  978. ac_prev=oldincludedir ;;
  979. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  980. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  981. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  982. oldincludedir=$ac_optarg ;;
  983. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  984. ac_prev=prefix ;;
  985. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  986. prefix=$ac_optarg ;;
  987. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  988. | --program-pre | --program-pr | --program-p)
  989. ac_prev=program_prefix ;;
  990. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  991. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  992. program_prefix=$ac_optarg ;;
  993. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  994. | --program-suf | --program-su | --program-s)
  995. ac_prev=program_suffix ;;
  996. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  997. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  998. program_suffix=$ac_optarg ;;
  999. -program-transform-name | --program-transform-name \
  1000. | --program-transform-nam | --program-transform-na \
  1001. | --program-transform-n | --program-transform- \
  1002. | --program-transform | --program-transfor \
  1003. | --program-transfo | --program-transf \
  1004. | --program-trans | --program-tran \
  1005. | --progr-tra | --program-tr | --program-t)
  1006. ac_prev=program_transform_name ;;
  1007. -program-transform-name=* | --program-transform-name=* \
  1008. | --program-transform-nam=* | --program-transform-na=* \
  1009. | --program-transform-n=* | --program-transform-=* \
  1010. | --program-transform=* | --program-transfor=* \
  1011. | --program-transfo=* | --program-transf=* \
  1012. | --program-trans=* | --program-tran=* \
  1013. | --progr-tra=* | --program-tr=* | --program-t=*)
  1014. program_transform_name=$ac_optarg ;;
  1015. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1016. ac_prev=pdfdir ;;
  1017. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1018. pdfdir=$ac_optarg ;;
  1019. -psdir | --psdir | --psdi | --psd | --ps)
  1020. ac_prev=psdir ;;
  1021. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1022. psdir=$ac_optarg ;;
  1023. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1024. | -silent | --silent | --silen | --sile | --sil)
  1025. silent=yes ;;
  1026. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1027. ac_prev=sbindir ;;
  1028. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1029. | --sbi=* | --sb=*)
  1030. sbindir=$ac_optarg ;;
  1031. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1032. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1033. | --sharedst | --shareds | --shared | --share | --shar \
  1034. | --sha | --sh)
  1035. ac_prev=sharedstatedir ;;
  1036. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1037. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1038. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1039. | --sha=* | --sh=*)
  1040. sharedstatedir=$ac_optarg ;;
  1041. -site | --site | --sit)
  1042. ac_prev=site ;;
  1043. -site=* | --site=* | --sit=*)
  1044. site=$ac_optarg ;;
  1045. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1046. ac_prev=srcdir ;;
  1047. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1048. srcdir=$ac_optarg ;;
  1049. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1050. | --syscon | --sysco | --sysc | --sys | --sy)
  1051. ac_prev=sysconfdir ;;
  1052. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1053. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1054. sysconfdir=$ac_optarg ;;
  1055. -target | --target | --targe | --targ | --tar | --ta | --t)
  1056. ac_prev=target_alias ;;
  1057. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1058. target_alias=$ac_optarg ;;
  1059. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1060. verbose=yes ;;
  1061. -version | --version | --versio | --versi | --vers | -V)
  1062. ac_init_version=: ;;
  1063. -with-* | --with-*)
  1064. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1068. { (exit 1); exit 1; }; }
  1069. ac_package=`echo $ac_package| sed 's/-/_/g'`
  1070. eval with_$ac_package=\$ac_optarg ;;
  1071. -without-* | --without-*)
  1072. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1073. # Reject names that are not valid shell variable names.
  1074. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1075. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1076. { (exit 1); exit 1; }; }
  1077. ac_package=`echo $ac_package | sed 's/-/_/g'`
  1078. eval with_$ac_package=no ;;
  1079. --x)
  1080. # Obsolete; use --with-x.
  1081. with_x=yes ;;
  1082. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1083. | --x-incl | --x-inc | --x-in | --x-i)
  1084. ac_prev=x_includes ;;
  1085. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1086. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1087. x_includes=$ac_optarg ;;
  1088. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1089. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1090. ac_prev=x_libraries ;;
  1091. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1092. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1093. x_libraries=$ac_optarg ;;
  1094. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1095. Try \`$0 --help' for more information." >&2
  1096. { (exit 1); exit 1; }; }
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1103. { (exit 1); exit 1; }; }
  1104. eval $ac_envvar=\$ac_optarg
  1105. export $ac_envvar ;;
  1106. *)
  1107. # FIXME: should be removed in autoconf 3.0.
  1108. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1109. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1111. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1112. ;;
  1113. esac
  1114. done
  1115. if test -n "$ac_prev"; then
  1116. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1117. { echo "$as_me: error: missing argument to $ac_option" >&2
  1118. { (exit 1); exit 1; }; }
  1119. fi
  1120. # Be sure to have absolute directory names.
  1121. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1122. datadir sysconfdir sharedstatedir localstatedir includedir \
  1123. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1124. libdir localedir mandir
  1125. do
  1126. eval ac_val=\$$ac_var
  1127. case $ac_val in
  1128. [\\/$]* | ?:[\\/]* ) continue;;
  1129. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1130. esac
  1131. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1132. { (exit 1); exit 1; }; }
  1133. done
  1134. # There might be people who depend on the old broken behavior: `$host'
  1135. # used to hold the argument of --host etc.
  1136. # FIXME: To remove some day.
  1137. build=$build_alias
  1138. host=$host_alias
  1139. target=$target_alias
  1140. # FIXME: To remove some day.
  1141. if test "x$host_alias" != x; then
  1142. if test "x$build_alias" = x; then
  1143. cross_compiling=maybe
  1144. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1145. If a cross compiler is detected then cross compile mode will be used." >&2
  1146. elif test "x$build_alias" != "x$host_alias"; then
  1147. cross_compiling=yes
  1148. fi
  1149. fi
  1150. ac_tool_prefix=
  1151. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1152. test "$silent" = yes && exec 6>/dev/null
  1153. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1154. ac_ls_di=`ls -di .` &&
  1155. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1156. { echo "$as_me: error: Working directory cannot be determined" >&2
  1157. { (exit 1); exit 1; }; }
  1158. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1159. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1160. { (exit 1); exit 1; }; }
  1161. # Find the source files, if location was not specified.
  1162. if test -z "$srcdir"; then
  1163. ac_srcdir_defaulted=yes
  1164. # Try the directory containing this script, then the parent directory.
  1165. ac_confdir=`$as_dirname -- "$0" ||
  1166. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1167. X"$0" : 'X\(//\)[^/]' \| \
  1168. X"$0" : 'X\(//\)$' \| \
  1169. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1170. echo X"$0" |
  1171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\/\)[^/].*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\).*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. s/.*/./; q'`
  1188. srcdir=$ac_confdir
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. srcdir=..
  1191. fi
  1192. else
  1193. ac_srcdir_defaulted=no
  1194. fi
  1195. if test ! -r "$srcdir/$ac_unique_file"; then
  1196. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1197. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1198. { (exit 1); exit 1; }; }
  1199. fi
  1200. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1201. ac_abs_confdir=`(
  1202. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1203. { (exit 1); exit 1; }; }
  1204. pwd)`
  1205. # When building in place, set srcdir=.
  1206. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1207. srcdir=.
  1208. fi
  1209. # Remove unnecessary trailing slashes from srcdir.
  1210. # Double slashes in file names in object file debugging info
  1211. # mess up M-x gdb in Emacs.
  1212. case $srcdir in
  1213. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1214. esac
  1215. for ac_var in $ac_precious_vars; do
  1216. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_env_${ac_var}_value=\$${ac_var}
  1218. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1219. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1220. done
  1221. #
  1222. # Report the --help message.
  1223. #
  1224. if test "$ac_init_help" = "long"; then
  1225. # Omit some internal or obsolete options to make the list less imposing.
  1226. # This message is too long to be a string in the A/UX 3.1 sh.
  1227. cat <<_ACEOF
  1228. \`configure' configures csoap 1.1.0 to adapt to many kinds of systems.
  1229. Usage: $0 [OPTION]... [VAR=VALUE]...
  1230. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1231. VAR=VALUE. See below for descriptions of some of the useful variables.
  1232. Defaults for the options are specified in brackets.
  1233. Configuration:
  1234. -h, --help display this help and exit
  1235. --help=short display options specific to this package
  1236. --help=recursive display the short help of all the included packages
  1237. -V, --version display version information and exit
  1238. -q, --quiet, --silent do not print \`checking...' messages
  1239. --cache-file=FILE cache test results in FILE [disabled]
  1240. -C, --config-cache alias for \`--cache-file=config.cache'
  1241. -n, --no-create do not create output files
  1242. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1243. Installation directories:
  1244. --prefix=PREFIX install architecture-independent files in PREFIX
  1245. [$ac_default_prefix]
  1246. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1247. [PREFIX]
  1248. By default, \`make install' will install all the files in
  1249. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1250. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1251. for instance \`--prefix=\$HOME'.
  1252. For better control, use the options below.
  1253. Fine tuning of the installation directories:
  1254. --bindir=DIR user executables [EPREFIX/bin]
  1255. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1256. --libexecdir=DIR program executables [EPREFIX/libexec]
  1257. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1258. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1259. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1260. --libdir=DIR object code libraries [EPREFIX/lib]
  1261. --includedir=DIR C header files [PREFIX/include]
  1262. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1263. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1264. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1265. --infodir=DIR info documentation [DATAROOTDIR/info]
  1266. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1267. --mandir=DIR man documentation [DATAROOTDIR/man]
  1268. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/csoap@:>@
  1269. --htmldir=DIR html documentation [DOCDIR]
  1270. --dvidir=DIR dvi documentation [DOCDIR]
  1271. --pdfdir=DIR pdf documentation [DOCDIR]
  1272. --psdir=DIR ps documentation [DOCDIR]
  1273. _ACEOF
  1274. cat <<\_ACEOF
  1275. Program names:
  1276. --program-prefix=PREFIX prepend PREFIX to installed program names
  1277. --program-suffix=SUFFIX append SUFFIX to installed program names
  1278. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1279. System types:
  1280. --build=BUILD configure for building on BUILD [guessed]
  1281. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1282. _ACEOF
  1283. fi
  1284. if test -n "$ac_init_help"; then
  1285. case $ac_init_help in
  1286. short | recursive ) echo "Configuration of csoap 1.1.0:";;
  1287. esac
  1288. cat <<\_ACEOF
  1289. Optional Features:
  1290. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1291. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1292. --disable-dependency-tracking speeds up one-time build
  1293. --enable-dependency-tracking do not reject slow dependency extractors
  1294. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1295. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1296. --enable-fast-install@<:@=PKGS@:>@
  1297. optimize for fast installation @<:@default=yes@:>@
  1298. --disable-libtool-lock avoid locking (might break parallel builds)
  1299. --disable-xmltest Do not try to compile and run a test LIBXML program
  1300. Optional Packages:
  1301. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1302. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1303. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1304. --with-pic try to use only PIC/non-PIC objects @<:@default=use
  1305. both@:>@
  1306. --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
  1307. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1308. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1309. --with-ssl=PFX will check PFX for ssl library
  1310. --with-ssl will check /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr for ssl library
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. CPP C preprocessor
  1319. CXX C++ compiler command
  1320. CXXFLAGS C++ compiler flags
  1321. CXXCPP C++ preprocessor
  1322. F77 Fortran 77 compiler command
  1323. FFLAGS Fortran 77 compiler flags
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" || continue
  1333. ac_builddir=.
  1334. case "$ac_dir" in
  1335. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *)
  1337. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1338. # A ".." for each directory in $ac_dir_suffix.
  1339. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1340. case $ac_top_builddir_sub in
  1341. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1343. esac ;;
  1344. esac
  1345. ac_abs_top_builddir=$ac_pwd
  1346. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1347. # for backward compatibility:
  1348. ac_top_builddir=$ac_top_build_prefix
  1349. case $srcdir in
  1350. .) # We are building in place.
  1351. ac_srcdir=.
  1352. ac_top_srcdir=$ac_top_builddir_sub
  1353. ac_abs_top_srcdir=$ac_pwd ;;
  1354. [\\/]* | ?:[\\/]* ) # Absolute name.
  1355. ac_srcdir=$srcdir$ac_dir_suffix;
  1356. ac_top_srcdir=$srcdir
  1357. ac_abs_top_srcdir=$srcdir ;;
  1358. *) # Relative name.
  1359. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1360. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1361. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1362. esac
  1363. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1364. cd "$ac_dir" || { ac_status=$?; continue; }
  1365. # Check for guested configure.
  1366. if test -f "$ac_srcdir/configure.gnu"; then
  1367. echo &&
  1368. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1369. elif test -f "$ac_srcdir/configure"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure" --help=recursive
  1372. else
  1373. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1374. fi || ac_status=$?
  1375. cd "$ac_pwd" || { ac_status=$?; break; }
  1376. done
  1377. fi
  1378. test -n "$ac_init_help" && exit $ac_status
  1379. if $ac_init_version; then
  1380. cat <<\_ACEOF
  1381. csoap configure 1.1.0
  1382. generated by GNU Autoconf 2.59e
  1383. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1384. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1385. This configure script is free software; the Free Software Foundation
  1386. gives unlimited permission to copy, distribute and modify it.
  1387. _ACEOF
  1388. exit
  1389. fi
  1390. cat >config.log <<_ACEOF
  1391. This file contains any messages produced by compilers while
  1392. running configure, to aid debugging if configure makes a mistake.
  1393. It was created by csoap $as_me 1.1.0, which was
  1394. generated by GNU Autoconf 2.59e. Invocation command line was
  1395. $ $0 $@
  1396. _ACEOF
  1397. exec 5>>config.log
  1398. {
  1399. cat <<_ASUNAME
  1400. @%:@@%:@ --------- @%:@@%:@
  1401. @%:@@%:@ Platform. @%:@@%:@
  1402. @%:@@%:@ --------- @%:@@%:@
  1403. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1404. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1405. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1406. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1407. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1408. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1409. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1410. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1411. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1412. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1413. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1414. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1415. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1416. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1417. _ASUNAME
  1418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1419. for as_dir in $PATH
  1420. do
  1421. IFS=$as_save_IFS
  1422. test -z "$as_dir" && as_dir=.
  1423. echo "PATH: $as_dir"
  1424. done
  1425. IFS=$as_save_IFS
  1426. } >&5
  1427. cat >&5 <<_ACEOF
  1428. @%:@@%:@ ----------- @%:@@%:@
  1429. @%:@@%:@ Core tests. @%:@@%:@
  1430. @%:@@%:@ ----------- @%:@@%:@
  1431. _ACEOF
  1432. # Keep a trace of the command line.
  1433. # Strip out --no-create and --no-recursion so they do not pile up.
  1434. # Strip out --silent because we don't want to record it for future runs.
  1435. # Also quote any args containing shell meta-characters.
  1436. # Make two passes to allow for proper duplicate-argument suppression.
  1437. ac_configure_args=
  1438. ac_configure_args0=
  1439. ac_configure_args1=
  1440. ac_must_keep_next=false
  1441. for ac_pass in 1 2
  1442. do
  1443. for ac_arg
  1444. do
  1445. case $ac_arg in
  1446. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1447. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1448. | -silent | --silent | --silen | --sile | --sil)
  1449. continue ;;
  1450. *\'*)
  1451. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1452. esac
  1453. case $ac_pass in
  1454. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1455. 2)
  1456. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1457. if test $ac_must_keep_next = true; then
  1458. ac_must_keep_next=false # Got value, back to normal.
  1459. else
  1460. case $ac_arg in
  1461. *=* | --config-cache | -C | -disable-* | --disable-* \
  1462. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1463. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1464. | -with-* | --with-* | -without-* | --without-* | --x)
  1465. case "$ac_configure_args0 " in
  1466. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1467. esac
  1468. ;;
  1469. -* ) ac_must_keep_next=true ;;
  1470. esac
  1471. fi
  1472. ac_configure_args="$ac_configure_args '$ac_arg'"
  1473. ;;
  1474. esac
  1475. done
  1476. done
  1477. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1478. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1479. # When interrupted or exit'd, cleanup temporary files, and complete
  1480. # config.log. We remove comments because anyway the quotes in there
  1481. # would cause problems or look ugly.
  1482. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1483. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1484. trap 'exit_status=$?
  1485. # Save into config.log some information that might help in debugging.
  1486. {
  1487. echo
  1488. cat <<\_ASBOX
  1489. @%:@@%:@ ---------------- @%:@@%:@
  1490. @%:@@%:@ Cache variables. @%:@@%:@
  1491. @%:@@%:@ ---------------- @%:@@%:@
  1492. _ASBOX
  1493. echo
  1494. # The following way of writing the cache mishandles newlines in values,
  1495. (
  1496. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1497. eval ac_val=\$$ac_var
  1498. case $ac_val in #(
  1499. *${as_nl}*)
  1500. case $ac_var in #(
  1501. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1502. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1503. esac
  1504. case $ac_var in #(
  1505. _ | IFS | as_nl) ;; #(
  1506. *) $as_unset $ac_var ;;
  1507. esac ;;
  1508. esac
  1509. done
  1510. (set) 2>&1 |
  1511. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1512. *${as_nl}ac_space=\ *)
  1513. sed -n \
  1514. "s/'\''/'\''\\\\'\'''\''/g;
  1515. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1516. ;; #(
  1517. *)
  1518. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1519. ;;
  1520. esac |
  1521. sort
  1522. )
  1523. echo
  1524. cat <<\_ASBOX
  1525. @%:@@%:@ ----------------- @%:@@%:@
  1526. @%:@@%:@ Output variables. @%:@@%:@
  1527. @%:@@%:@ ----------------- @%:@@%:@
  1528. _ASBOX
  1529. echo
  1530. for ac_var in $ac_subst_vars
  1531. do
  1532. eval ac_val=\$$ac_var
  1533. case $ac_val in
  1534. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1535. esac
  1536. echo "$ac_var='\''$ac_val'\''"
  1537. done | sort
  1538. echo
  1539. if test -n "$ac_subst_files"; then
  1540. cat <<\_ASBOX
  1541. @%:@@%:@ ------------------- @%:@@%:@
  1542. @%:@@%:@ File substitutions. @%:@@%:@
  1543. @%:@@%:@ ------------------- @%:@@%:@
  1544. _ASBOX
  1545. echo
  1546. for ac_var in $ac_subst_files
  1547. do
  1548. eval ac_val=\$$ac_var
  1549. case $ac_val in
  1550. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1551. esac
  1552. echo "$ac_var='\''$ac_val'\''"
  1553. done | sort
  1554. echo
  1555. fi
  1556. if test -s confdefs.h; then
  1557. cat <<\_ASBOX
  1558. @%:@@%:@ ----------- @%:@@%:@
  1559. @%:@@%:@ confdefs.h. @%:@@%:@
  1560. @%:@@%:@ ----------- @%:@@%:@
  1561. _ASBOX
  1562. echo
  1563. cat confdefs.h
  1564. echo
  1565. fi
  1566. test "$ac_signal" != 0 &&
  1567. echo "$as_me: caught signal $ac_signal"
  1568. echo "$as_me: exit $exit_status"
  1569. } >&5
  1570. rm -f core *.core core.conftest.* &&
  1571. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1572. exit $exit_status
  1573. ' 0
  1574. for ac_signal in 1 2 13 15; do
  1575. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1576. done
  1577. ac_signal=0
  1578. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1579. rm -f -r conftest* confdefs.h
  1580. # Predefined preprocessor variables.
  1581. cat >>confdefs.h <<_ACEOF
  1582. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1583. _ACEOF
  1584. cat >>confdefs.h <<_ACEOF
  1585. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1586. _ACEOF
  1587. cat >>confdefs.h <<_ACEOF
  1588. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1592. _ACEOF
  1593. cat >>confdefs.h <<_ACEOF
  1594. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1595. _ACEOF
  1596. # Let the site file select an alternate cache file if it wants to.
  1597. # Prefer explicitly selected file to automatically selected ones.
  1598. if test -n "$CONFIG_SITE"; then
  1599. set x "$CONFIG_SITE"
  1600. elif test "x$prefix" != xNONE; then
  1601. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1602. else
  1603. set x "$ac_default_prefix/share/config.site" \
  1604. "$ac_default_prefix/etc/config.site"
  1605. fi
  1606. shift
  1607. for ac_site_file
  1608. do
  1609. if test -r "$ac_site_file"; then
  1610. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1611. echo "$as_me: loading site script $ac_site_file" >&6;}
  1612. sed 's/^/| /' "$ac_site_file" >&5
  1613. . "$ac_site_file"
  1614. fi
  1615. done
  1616. if test -r "$cache_file"; then
  1617. # Some versions of bash will fail to source /dev/null (special
  1618. # files actually), so we avoid doing that.
  1619. if test -f "$cache_file"; then
  1620. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1621. echo "$as_me: loading cache $cache_file" >&6;}
  1622. case $cache_file in
  1623. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1624. *) . "./$cache_file";;
  1625. esac
  1626. fi
  1627. else
  1628. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1629. echo "$as_me: creating cache $cache_file" >&6;}
  1630. >$cache_file
  1631. fi
  1632. # Check that the precious variables saved in the cache have kept the same
  1633. # value.
  1634. ac_cache_corrupted=false
  1635. for ac_var in $ac_precious_vars; do
  1636. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1637. eval ac_new_set=\$ac_env_${ac_var}_set
  1638. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1639. eval ac_new_val=\$ac_env_${ac_var}_value
  1640. case $ac_old_set,$ac_new_set in
  1641. set,)
  1642. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1643. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1644. ac_cache_corrupted=: ;;
  1645. ,set)
  1646. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1647. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1648. ac_cache_corrupted=: ;;
  1649. ,);;
  1650. *)
  1651. if test "x$ac_old_val" != "x$ac_new_val"; then
  1652. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1653. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1654. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1655. echo "$as_me: former value: $ac_old_val" >&2;}
  1656. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1657. echo "$as_me: current value: $ac_new_val" >&2;}
  1658. ac_cache_corrupted=:
  1659. fi;;
  1660. esac
  1661. # Pass precious variables to config.status.
  1662. if test "$ac_new_set" = set; then
  1663. case $ac_new_val in
  1664. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1665. *) ac_arg=$ac_var=$ac_new_val ;;
  1666. esac
  1667. case " $ac_configure_args " in
  1668. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1669. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1670. esac
  1671. fi
  1672. done
  1673. if $ac_cache_corrupted; then
  1674. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1675. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1676. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1677. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1678. { (exit 1); exit 1; }; }
  1679. fi
  1680. ac_ext=c
  1681. ac_cpp='$CPP $CPPFLAGS'
  1682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1685. am__api_version="1.9"
  1686. ac_aux_dir=
  1687. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1688. if test -f "$ac_dir/install-sh"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/install-sh -c"
  1691. break
  1692. elif test -f "$ac_dir/install.sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install.sh -c"
  1695. break
  1696. elif test -f "$ac_dir/shtool"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/shtool install -c"
  1699. break
  1700. fi
  1701. done
  1702. if test -z "$ac_aux_dir"; then
  1703. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1704. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1705. { (exit 1); exit 1; }; }
  1706. fi
  1707. # These three variables are undocumented and unsupported,
  1708. # and are intended to be withdrawn in a future Autoconf release.
  1709. # They can cause serious problems if a builder's source tree is in a directory
  1710. # whose full name contains unusual characters.
  1711. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1712. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1713. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1714. # Find a good install program. We prefer a C program (faster),
  1715. # so one script is as good as another. But avoid the broken or
  1716. # incompatible versions:
  1717. # SysV /etc/install, /usr/sbin/install
  1718. # SunOS /usr/etc/install
  1719. # IRIX /sbin/install
  1720. # AIX /bin/install
  1721. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1722. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1723. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1724. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1725. # OS/2's system install, which has a completely different semantic
  1726. # ./install, which can be erroneously created by make from ./install.sh.
  1727. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1728. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1729. if test -z "$INSTALL"; then
  1730. if test "${ac_cv_path_install+set}" = set; then
  1731. echo $ECHO_N "(cached) $ECHO_C" >&6
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. # Account for people who put trailing slashes in PATH elements.
  1739. case $as_dir/ in
  1740. ./ | .// | /cC/* | \
  1741. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1742. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1743. /usr/ucb/* ) ;;
  1744. *)
  1745. # OSF1 and SCO ODT 3.0 have their own names for install.
  1746. # Don't use installbsd from OSF since it installs stuff as root
  1747. # by default.
  1748. for ac_prog in ginstall scoinst install; do
  1749. for ac_exec_ext in '' $ac_executable_extensions; do
  1750. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1751. if test $ac_prog = install &&
  1752. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1753. # AIX install. It has an incompatible calling convention.
  1754. :
  1755. elif test $ac_prog = install &&
  1756. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1757. # program-specific install script used by HP pwplus--don't use.
  1758. :
  1759. else
  1760. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1761. break 3
  1762. fi
  1763. fi
  1764. done
  1765. done
  1766. ;;
  1767. esac
  1768. done
  1769. IFS=$as_save_IFS
  1770. fi
  1771. if test "${ac_cv_path_install+set}" = set; then
  1772. INSTALL=$ac_cv_path_install
  1773. else
  1774. # As a last resort, use the slow shell script. Don't cache a
  1775. # value for INSTALL within a source directory, because that will
  1776. # break other packages using the cache if that directory is
  1777. # removed, or if the value is a relative name.
  1778. INSTALL=$ac_install_sh
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1782. echo "${ECHO_T}$INSTALL" >&6; }
  1783. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1784. # It thinks the first close brace ends the variable substitution.
  1785. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1786. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1787. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1788. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1789. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1790. # Just in case
  1791. sleep 1
  1792. echo timestamp > conftest.file
  1793. # Do `set' in a subshell so we don't clobber the current shell's
  1794. # arguments. Must try -L first in case configure is actually a
  1795. # symlink; some systems play weird games with the mod time of symlinks
  1796. # (eg FreeBSD returns the mod time of the symlink's containing
  1797. # directory).
  1798. if (
  1799. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1800. if test "$*" = "X"; then
  1801. # -L didn't work.
  1802. set X `ls -t $srcdir/configure conftest.file`
  1803. fi
  1804. rm -f conftest.file
  1805. if test "$*" != "X $srcdir/configure conftest.file" \
  1806. && test "$*" != "X conftest.file $srcdir/configure"; then
  1807. # If neither matched, then we have a broken ls. This can happen
  1808. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1809. # broken ls alias from the environment. This has actually
  1810. # happened. Such a system could not be considered "sane".
  1811. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1812. alias in your environment" >&5
  1813. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1814. alias in your environment" >&2;}
  1815. { (exit 1); exit 1; }; }
  1816. fi
  1817. test "$2" = conftest.file
  1818. )
  1819. then
  1820. # Ok.
  1821. :
  1822. else
  1823. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1824. Check your system clock" >&5
  1825. echo "$as_me: error: newly created file is older than distributed files!
  1826. Check your system clock" >&2;}
  1827. { (exit 1); exit 1; }; }
  1828. fi
  1829. { echo "$as_me:$LINENO: result: yes" >&5
  1830. echo "${ECHO_T}yes" >&6; }
  1831. test "$program_prefix" != NONE &&
  1832. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1833. # Use a double $ so make ignores it.
  1834. test "$program_suffix" != NONE &&
  1835. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1836. # Double any \ or $. echo might interpret backslashes.
  1837. # By default was `s,x,x', remove it if useless.
  1838. cat <<\_ACEOF >conftest.sed
  1839. s/[\\$]/&&/g;s/;s,x,x,$//
  1840. _ACEOF
  1841. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1842. rm -f conftest.sed
  1843. # expand $ac_aux_dir to an absolute path
  1844. am_aux_dir=`cd $ac_aux_dir && pwd`
  1845. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1846. # Use eval to expand $SHELL
  1847. if eval "$MISSING --run true"; then
  1848. am_missing_run="$MISSING --run "
  1849. else
  1850. am_missing_run=
  1851. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1852. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1853. fi
  1854. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1855. # We used to keeping the `.' as first argument, in order to
  1856. # allow $(mkdir_p) to be used without argument. As in
  1857. # $(mkdir_p) $(somedir)
  1858. # where $(somedir) is conditionally defined. However this is wrong
  1859. # for two reasons:
  1860. # 1. if the package is installed by a user who cannot write `.'
  1861. # make install will fail,
  1862. # 2. the above comment should most certainly read
  1863. # $(mkdir_p) $(DESTDIR)$(somedir)
  1864. # so it does not work when $(somedir) is undefined and
  1865. # $(DESTDIR) is not.
  1866. # To support the latter case, we have to write
  1867. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1868. # so the `.' trick is pointless.
  1869. mkdir_p='mkdir -p --'
  1870. else
  1871. # On NextStep and OpenStep, the `mkdir' command does not
  1872. # recognize any option. It will interpret all options as
  1873. # directories to create, and then abort because `.' already
  1874. # exists.
  1875. for d in ./-p ./--version;
  1876. do
  1877. test -d $d && rmdir $d
  1878. done
  1879. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1880. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1881. mkdir_p='$(mkinstalldirs)'
  1882. else
  1883. mkdir_p='$(install_sh) -d'
  1884. fi
  1885. fi
  1886. for ac_prog in gawk mawk nawk awk
  1887. do
  1888. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1889. set dummy $ac_prog; ac_word=$2
  1890. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1891. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1892. if test "${ac_cv_prog_AWK+set}" = set; then
  1893. echo $ECHO_N "(cached) $ECHO_C" >&6
  1894. else
  1895. if test -n "$AWK"; then
  1896. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1897. else
  1898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1899. for as_dir in $PATH
  1900. do
  1901. IFS=$as_save_IFS
  1902. test -z "$as_dir" && as_dir=.
  1903. for ac_exec_ext in '' $ac_executable_extensions; do
  1904. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1905. ac_cv_prog_AWK="$ac_prog"
  1906. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1907. break 2
  1908. fi
  1909. done
  1910. done
  1911. IFS=$as_save_IFS
  1912. fi
  1913. fi
  1914. AWK=$ac_cv_prog_AWK
  1915. if test -n "$AWK"; then
  1916. { echo "$as_me:$LINENO: result: $AWK" >&5
  1917. echo "${ECHO_T}$AWK" >&6; }
  1918. else
  1919. { echo "$as_me:$LINENO: result: no" >&5
  1920. echo "${ECHO_T}no" >&6; }
  1921. fi
  1922. test -n "$AWK" && break
  1923. done
  1924. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1925. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1926. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
  1927. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1928. echo $ECHO_N "(cached) $ECHO_C" >&6
  1929. else
  1930. cat >conftest.make <<\_ACEOF
  1931. SHELL = /bin/sh
  1932. all:
  1933. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1934. _ACEOF
  1935. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1936. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1937. *@@@%%%=?*=@@@%%%*)
  1938. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1939. *)
  1940. eval ac_cv_prog_make_${ac_make}_set=no;;
  1941. esac
  1942. rm -f conftest.make
  1943. fi
  1944. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1945. { echo "$as_me:$LINENO: result: yes" >&5
  1946. echo "${ECHO_T}yes" >&6; }
  1947. SET_MAKE=
  1948. else
  1949. { echo "$as_me:$LINENO: result: no" >&5
  1950. echo "${ECHO_T}no" >&6; }
  1951. SET_MAKE="MAKE=${MAKE-make}"
  1952. fi
  1953. rm -rf .tst 2>/dev/null
  1954. mkdir .tst 2>/dev/null
  1955. if test -d .tst; then
  1956. am__leading_dot=.
  1957. else
  1958. am__leading_dot=_
  1959. fi
  1960. rmdir .tst 2>/dev/null
  1961. # test to see if srcdir already configured
  1962. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1963. test -f $srcdir/config.status; then
  1964. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1965. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1966. { (exit 1); exit 1; }; }
  1967. fi
  1968. # test whether we have cygpath
  1969. if test -z "$CYGPATH_W"; then
  1970. if (cygpath --version) >/dev/null 2>/dev/null; then
  1971. CYGPATH_W='cygpath -w'
  1972. else
  1973. CYGPATH_W=echo
  1974. fi
  1975. fi
  1976. # Define the identity of the package.
  1977. PACKAGE='csoap'
  1978. VERSION='1.1.0'
  1979. cat >>confdefs.h <<_ACEOF
  1980. @%:@define PACKAGE "$PACKAGE"
  1981. _ACEOF
  1982. cat >>confdefs.h <<_ACEOF
  1983. @%:@define VERSION "$VERSION"
  1984. _ACEOF
  1985. # Some tools Automake needs.
  1986. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1987. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1988. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1989. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1990. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1991. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1992. # Installed binaries are usually stripped using `strip' when the user
  1993. # run `make install-strip'. However `strip' might not be the right
  1994. # tool to use in cross-compilation environments, therefore Automake
  1995. # will honor the `STRIP' environment variable to overrule this program.
  1996. if test "$cross_compiling" != no; then
  1997. if test -n "$ac_tool_prefix"; then
  1998. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1999. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2000. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2001. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2002. if test "${ac_cv_prog_STRIP+set}" = set; then
  2003. echo $ECHO_N "(cached) $ECHO_C" >&6
  2004. else
  2005. if test -n "$STRIP"; then
  2006. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2007. else
  2008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2009. for as_dir in $PATH
  2010. do
  2011. IFS=$as_save_IFS
  2012. test -z "$as_dir" && as_dir=.
  2013. for ac_exec_ext in '' $ac_executable_extensions; do
  2014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2015. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2016. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2017. break 2
  2018. fi
  2019. done
  2020. done
  2021. IFS=$as_save_IFS
  2022. fi
  2023. fi
  2024. STRIP=$ac_cv_prog_STRIP
  2025. if test -n "$STRIP"; then
  2026. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2027. echo "${ECHO_T}$STRIP" >&6; }
  2028. else
  2029. { echo "$as_me:$LINENO: result: no" >&5
  2030. echo "${ECHO_T}no" >&6; }
  2031. fi
  2032. fi
  2033. if test -z "$ac_cv_prog_STRIP"; then
  2034. ac_ct_STRIP=$STRIP
  2035. # Extract the first word of "strip", so it can be a program name with args.
  2036. set dummy strip; ac_word=$2
  2037. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2038. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2039. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2040. echo $ECHO_N "(cached) $ECHO_C" >&6
  2041. else
  2042. if test -n "$ac_ct_STRIP"; then
  2043. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2044. else
  2045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2046. for as_dir in $PATH
  2047. do
  2048. IFS=$as_save_IFS
  2049. test -z "$as_dir" && as_dir=.
  2050. for ac_exec_ext in '' $ac_executable_extensions; do
  2051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2052. ac_cv_prog_ac_ct_STRIP="strip"
  2053. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2054. break 2
  2055. fi
  2056. done
  2057. done
  2058. IFS=$as_save_IFS
  2059. fi
  2060. fi
  2061. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2062. if test -n "$ac_ct_STRIP"; then
  2063. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2064. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2065. else
  2066. { echo "$as_me:$LINENO: result: no" >&5
  2067. echo "${ECHO_T}no" >&6; }
  2068. fi
  2069. if test "x$ac_ct_STRIP" = x; then
  2070. STRIP=":"
  2071. else
  2072. case $cross_compiling:$ac_tool_warned in
  2073. yes:)
  2074. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2075. whose name does not start with the host triplet. If you think this
  2076. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2077. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2078. whose name does not start with the host triplet. If you think this
  2079. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2080. ac_tool_warned=yes ;;
  2081. esac
  2082. STRIP=$ac_ct_STRIP
  2083. fi
  2084. else
  2085. STRIP="$ac_cv_prog_STRIP"
  2086. fi
  2087. fi
  2088. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2089. # We need awk for the "check" target. The system "awk" is bad on
  2090. # some platforms.
  2091. # Always define AMTAR for backward compatibility.
  2092. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2093. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2094. ac_config_headers="$ac_config_headers config.h"
  2095. ac_ext=c
  2096. ac_cpp='$CPP $CPPFLAGS'
  2097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2100. ac_ext=c
  2101. ac_cpp='$CPP $CPPFLAGS'
  2102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2105. if test -n "$ac_tool_prefix"; then
  2106. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2107. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2108. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2110. if test "${ac_cv_prog_CC+set}" = set; then
  2111. echo $ECHO_N "(cached) $ECHO_C" >&6
  2112. else
  2113. if test -n "$CC"; then
  2114. ac_cv_prog_CC="$CC" # Let the user override the test.
  2115. else
  2116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2117. for as_dir in $PATH
  2118. do
  2119. IFS=$as_save_IFS
  2120. test -z "$as_dir" && as_dir=.
  2121. for ac_exec_ext in '' $ac_executable_extensions; do
  2122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2123. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2125. break 2
  2126. fi
  2127. done
  2128. done
  2129. IFS=$as_save_IFS
  2130. fi
  2131. fi
  2132. CC=$ac_cv_prog_CC
  2133. if test -n "$CC"; then
  2134. { echo "$as_me:$LINENO: result: $CC" >&5
  2135. echo "${ECHO_T}$CC" >&6; }
  2136. else
  2137. { echo "$as_me:$LINENO: result: no" >&5
  2138. echo "${ECHO_T}no" >&6; }
  2139. fi
  2140. fi
  2141. if test -z "$ac_cv_prog_CC"; then
  2142. ac_ct_CC=$CC
  2143. # Extract the first word of "gcc", so it can be a program name with args.
  2144. set dummy gcc; ac_word=$2
  2145. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2146. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2147. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2148. echo $ECHO_N "(cached) $ECHO_C" >&6
  2149. else
  2150. if test -n "$ac_ct_CC"; then
  2151. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2152. else
  2153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2154. for as_dir in $PATH
  2155. do
  2156. IFS=$as_save_IFS
  2157. test -z "$as_dir" && as_dir=.
  2158. for ac_exec_ext in '' $ac_executable_extensions; do
  2159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2160. ac_cv_prog_ac_ct_CC="gcc"
  2161. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2162. break 2
  2163. fi
  2164. done
  2165. done
  2166. IFS=$as_save_IFS
  2167. fi
  2168. fi
  2169. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2170. if test -n "$ac_ct_CC"; then
  2171. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2172. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2173. else
  2174. { echo "$as_me:$LINENO: result: no" >&5
  2175. echo "${ECHO_T}no" >&6; }
  2176. fi
  2177. if test "x$ac_ct_CC" = x; then
  2178. CC=""
  2179. else
  2180. case $cross_compiling:$ac_tool_warned in
  2181. yes:)
  2182. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2183. whose name does not start with the host triplet. If you think this
  2184. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2185. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2186. whose name does not start with the host triplet. If you think this
  2187. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2188. ac_tool_warned=yes ;;
  2189. esac
  2190. CC=$ac_ct_CC
  2191. fi
  2192. else
  2193. CC="$ac_cv_prog_CC"
  2194. fi
  2195. if test -z "$CC"; then
  2196. if test -n "$ac_tool_prefix"; then
  2197. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2198. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2199. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2200. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2201. if test "${ac_cv_prog_CC+set}" = set; then
  2202. echo $ECHO_N "(cached) $ECHO_C" >&6
  2203. else
  2204. if test -n "$CC"; then
  2205. ac_cv_prog_CC="$CC" # Let the user override the test.
  2206. else
  2207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2208. for as_dir in $PATH
  2209. do
  2210. IFS=$as_save_IFS
  2211. test -z "$as_dir" && as_dir=.
  2212. for ac_exec_ext in '' $ac_executable_extensions; do
  2213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2214. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2215. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2216. break 2
  2217. fi
  2218. done
  2219. done
  2220. IFS=$as_save_IFS
  2221. fi
  2222. fi
  2223. CC=$ac_cv_prog_CC
  2224. if test -n "$CC"; then
  2225. { echo "$as_me:$LINENO: result: $CC" >&5
  2226. echo "${ECHO_T}$CC" >&6; }
  2227. else
  2228. { echo "$as_me:$LINENO: result: no" >&5
  2229. echo "${ECHO_T}no" >&6; }
  2230. fi
  2231. fi
  2232. fi
  2233. if test -z "$CC"; then
  2234. # Extract the first word of "cc", so it can be a program name with args.
  2235. set dummy cc; ac_word=$2
  2236. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2237. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2238. if test "${ac_cv_prog_CC+set}" = set; then
  2239. echo $ECHO_N "(cached) $ECHO_C" >&6
  2240. else
  2241. if test -n "$CC"; then
  2242. ac_cv_prog_CC="$CC" # Let the user override the test.
  2243. else
  2244. ac_prog_rejected=no
  2245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2246. for as_dir in $PATH
  2247. do
  2248. IFS=$as_save_IFS
  2249. test -z "$as_dir" && as_dir=.
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2252. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2253. ac_prog_rejected=yes
  2254. continue
  2255. fi
  2256. ac_cv_prog_CC="cc"
  2257. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. if test $ac_prog_rejected = yes; then
  2264. # We found a bogon in the path, so make sure we never use it.
  2265. set dummy $ac_cv_prog_CC
  2266. shift
  2267. if test $@%:@ != 0; then
  2268. # We chose a different compiler from the bogus one.
  2269. # However, it has the same basename, so the bogon will be chosen
  2270. # first if we set CC to just the basename; use the full file name.
  2271. shift
  2272. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2273. fi
  2274. fi
  2275. fi
  2276. fi
  2277. CC=$ac_cv_prog_CC
  2278. if test -n "$CC"; then
  2279. { echo "$as_me:$LINENO: result: $CC" >&5
  2280. echo "${ECHO_T}$CC" >&6; }
  2281. else
  2282. { echo "$as_me:$LINENO: result: no" >&5
  2283. echo "${ECHO_T}no" >&6; }
  2284. fi
  2285. fi
  2286. if test -z "$CC"; then
  2287. if test -n "$ac_tool_prefix"; then
  2288. for ac_prog in cl.exe
  2289. do
  2290. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2291. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2294. if test "${ac_cv_prog_CC+set}" = set; then
  2295. echo $ECHO_N "(cached) $ECHO_C" >&6
  2296. else
  2297. if test -n "$CC"; then
  2298. ac_cv_prog_CC="$CC" # Let the user override the test.
  2299. else
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_exec_ext in '' $ac_executable_extensions; do
  2306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2307. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2309. break 2
  2310. fi
  2311. done
  2312. done
  2313. IFS=$as_save_IFS
  2314. fi
  2315. fi
  2316. CC=$ac_cv_prog_CC
  2317. if test -n "$CC"; then
  2318. { echo "$as_me:$LINENO: result: $CC" >&5
  2319. echo "${ECHO_T}$CC" >&6; }
  2320. else
  2321. { echo "$as_me:$LINENO: result: no" >&5
  2322. echo "${ECHO_T}no" >&6; }
  2323. fi
  2324. test -n "$CC" && break
  2325. done
  2326. fi
  2327. if test -z "$CC"; then
  2328. ac_ct_CC=$CC
  2329. for ac_prog in cl.exe
  2330. do
  2331. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2332. set dummy $ac_prog; ac_word=$2
  2333. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2335. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2336. echo $ECHO_N "(cached) $ECHO_C" >&6
  2337. else
  2338. if test -n "$ac_ct_CC"; then
  2339. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2340. else
  2341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2342. for as_dir in $PATH
  2343. do
  2344. IFS=$as_save_IFS
  2345. test -z "$as_dir" && as_dir=.
  2346. for ac_exec_ext in '' $ac_executable_extensions; do
  2347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2348. ac_cv_prog_ac_ct_CC="$ac_prog"
  2349. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. fi
  2357. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2358. if test -n "$ac_ct_CC"; then
  2359. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2360. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2361. else
  2362. { echo "$as_me:$LINENO: result: no" >&5
  2363. echo "${ECHO_T}no" >&6; }
  2364. fi
  2365. test -n "$ac_ct_CC" && break
  2366. done
  2367. if test "x$ac_ct_CC" = x; then
  2368. CC=""
  2369. else
  2370. case $cross_compiling:$ac_tool_warned in
  2371. yes:)
  2372. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2373. whose name does not start with the host triplet. If you think this
  2374. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2375. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2376. whose name does not start with the host triplet. If you think this
  2377. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2378. ac_tool_warned=yes ;;
  2379. esac
  2380. CC=$ac_ct_CC
  2381. fi
  2382. fi
  2383. fi
  2384. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2385. See \`config.log' for more details." >&5
  2386. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2387. See \`config.log' for more details." >&2;}
  2388. { (exit 1); exit 1; }; }
  2389. # Provide some information about the compiler.
  2390. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2391. ac_compiler=`set X $ac_compile; echo $2`
  2392. { (ac_try="$ac_compiler --version >&5"
  2393. case "(($ac_try" in
  2394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2395. *) ac_try_echo=$ac_try;;
  2396. esac
  2397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2398. (eval "$ac_compiler --version >&5") 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }
  2402. { (ac_try="$ac_compiler -v >&5"
  2403. case "(($ac_try" in
  2404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2405. *) ac_try_echo=$ac_try;;
  2406. esac
  2407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2408. (eval "$ac_compiler -v >&5") 2>&5
  2409. ac_status=$?
  2410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2411. (exit $ac_status); }
  2412. { (ac_try="$ac_compiler -V >&5"
  2413. case "(($ac_try" in
  2414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2415. *) ac_try_echo=$ac_try;;
  2416. esac
  2417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2418. (eval "$ac_compiler -V >&5") 2>&5
  2419. ac_status=$?
  2420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2421. (exit $ac_status); }
  2422. cat >conftest.$ac_ext <<_ACEOF
  2423. /* confdefs.h. */
  2424. _ACEOF
  2425. cat confdefs.h >>conftest.$ac_ext
  2426. cat >>conftest.$ac_ext <<_ACEOF
  2427. /* end confdefs.h. */
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. ac_clean_files_save=$ac_clean_files
  2436. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2437. # Try to create an executable without -o first, disregard a.out.
  2438. # It will help us diagnose broken compilers, and finding out an intuition
  2439. # of exeext.
  2440. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2441. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2442. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2443. #
  2444. # List of possible output files, starting from the most likely.
  2445. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2446. # only as a last resort. b.out is created by i960 compilers.
  2447. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2448. #
  2449. # The IRIX 6 linker writes into existing files which may not be
  2450. # executable, retaining their permissions. Remove them first so a
  2451. # subsequent execution test works.
  2452. ac_rmfiles=
  2453. for ac_file in $ac_files
  2454. do
  2455. case $ac_file in
  2456. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2457. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2458. esac
  2459. done
  2460. rm -f $ac_rmfiles
  2461. if { (ac_try="$ac_link_default"
  2462. case "(($ac_try" in
  2463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2464. *) ac_try_echo=$ac_try;;
  2465. esac
  2466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2467. (eval "$ac_link_default") 2>&5
  2468. ac_status=$?
  2469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2470. (exit $ac_status); }; then
  2471. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2472. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2473. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2474. # so that the user can short-circuit this test for compilers unknown to
  2475. # Autoconf.
  2476. for ac_file in $ac_files
  2477. do
  2478. test -f "$ac_file" || continue
  2479. case $ac_file in
  2480. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2481. ;;
  2482. [ab].out )
  2483. # We found the default executable, but exeext='' is most
  2484. # certainly right.
  2485. break;;
  2486. *.* )
  2487. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2488. then :; else
  2489. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2490. fi
  2491. # We set ac_cv_exeext here because the later test for it is not
  2492. # safe: cross compilers may not add the suffix if given an `-o'
  2493. # argument, so we may need to know it at that point already.
  2494. # Even if this section looks crufty: it has the advantage of
  2495. # actually working.
  2496. break;;
  2497. * )
  2498. break;;
  2499. esac
  2500. done
  2501. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2502. else
  2503. echo "$as_me: failed program was:" >&5
  2504. sed 's/^/| /' conftest.$ac_ext >&5
  2505. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2506. See \`config.log' for more details." >&5
  2507. echo "$as_me: error: C compiler cannot create executables
  2508. See \`config.log' for more details." >&2;}
  2509. { (exit 77); exit 77; }; }
  2510. fi
  2511. ac_exeext=$ac_cv_exeext
  2512. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2513. echo "${ECHO_T}$ac_file" >&6; }
  2514. # Check that the compiler produces executables we can run. If not, either
  2515. # the compiler is broken, or we cross compile.
  2516. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2517. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2518. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2519. # If not cross compiling, check that we can run a simple program.
  2520. if test "$cross_compiling" != yes; then
  2521. if { ac_try='./$ac_file'
  2522. { (case "(($ac_try" in
  2523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2524. *) ac_try_echo=$ac_try;;
  2525. esac
  2526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2527. (eval "$ac_try") 2>&5
  2528. ac_status=$?
  2529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2530. (exit $ac_status); }; }; then
  2531. cross_compiling=no
  2532. else
  2533. if test "$cross_compiling" = maybe; then
  2534. cross_compiling=yes
  2535. else
  2536. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2537. If you meant to cross compile, use \`--host'.
  2538. See \`config.log' for more details." >&5
  2539. echo "$as_me: error: cannot run C compiled programs.
  2540. If you meant to cross compile, use \`--host'.
  2541. See \`config.log' for more details." >&2;}
  2542. { (exit 1); exit 1; }; }
  2543. fi
  2544. fi
  2545. fi
  2546. { echo "$as_me:$LINENO: result: yes" >&5
  2547. echo "${ECHO_T}yes" >&6; }
  2548. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2549. ac_clean_files=$ac_clean_files_save
  2550. # Check that the compiler produces executables we can run. If not, either
  2551. # the compiler is broken, or we cross compile.
  2552. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2553. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2554. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2555. echo "${ECHO_T}$cross_compiling" >&6; }
  2556. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2557. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2558. if { (ac_try="$ac_link"
  2559. case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2564. (eval "$ac_link") 2>&5
  2565. ac_status=$?
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); }; then
  2568. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2569. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2570. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2571. # `rm'.
  2572. for ac_file in conftest.exe conftest conftest.*; do
  2573. test -f "$ac_file" || continue
  2574. case $ac_file in
  2575. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2576. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2577. break;;
  2578. * ) break;;
  2579. esac
  2580. done
  2581. else
  2582. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2583. See \`config.log' for more details." >&5
  2584. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2585. See \`config.log' for more details." >&2;}
  2586. { (exit 1); exit 1; }; }
  2587. fi
  2588. rm -f conftest$ac_cv_exeext
  2589. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2590. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2591. rm -f conftest.$ac_ext
  2592. EXEEXT=$ac_cv_exeext
  2593. ac_exeext=$EXEEXT
  2594. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2595. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2596. if test "${ac_cv_objext+set}" = set; then
  2597. echo $ECHO_N "(cached) $ECHO_C" >&6
  2598. else
  2599. cat >conftest.$ac_ext <<_ACEOF
  2600. /* confdefs.h. */
  2601. _ACEOF
  2602. cat confdefs.h >>conftest.$ac_ext
  2603. cat >>conftest.$ac_ext <<_ACEOF
  2604. /* end confdefs.h. */
  2605. int
  2606. main ()
  2607. {
  2608. ;
  2609. return 0;
  2610. }
  2611. _ACEOF
  2612. rm -f conftest.o conftest.obj
  2613. if { (ac_try="$ac_compile"
  2614. case "(($ac_try" in
  2615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2616. *) ac_try_echo=$ac_try;;
  2617. esac
  2618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2619. (eval "$ac_compile") 2>&5
  2620. ac_status=$?
  2621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2622. (exit $ac_status); }; then
  2623. for ac_file in conftest.o conftest.obj conftest.*; do
  2624. test -f "$ac_file" || continue;
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2627. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2628. break;;
  2629. esac
  2630. done
  2631. else
  2632. echo "$as_me: failed program was:" >&5
  2633. sed 's/^/| /' conftest.$ac_ext >&5
  2634. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2635. See \`config.log' for more details." >&5
  2636. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2637. See \`config.log' for more details." >&2;}
  2638. { (exit 1); exit 1; }; }
  2639. fi
  2640. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2641. fi
  2642. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2643. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2644. OBJEXT=$ac_cv_objext
  2645. ac_objext=$OBJEXT
  2646. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2647. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2648. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2649. echo $ECHO_N "(cached) $ECHO_C" >&6
  2650. else
  2651. cat >conftest.$ac_ext <<_ACEOF
  2652. /* confdefs.h. */
  2653. _ACEOF
  2654. cat confdefs.h >>conftest.$ac_ext
  2655. cat >>conftest.$ac_ext <<_ACEOF
  2656. /* end confdefs.h. */
  2657. int
  2658. main ()
  2659. {
  2660. #ifndef __GNUC__
  2661. choke me
  2662. #endif
  2663. ;
  2664. return 0;
  2665. }
  2666. _ACEOF
  2667. rm -f conftest.$ac_objext
  2668. if { (ac_try="$ac_compile"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2674. (eval "$ac_compile") 2>conftest.er1
  2675. ac_status=$?
  2676. grep -v '^ *+' conftest.er1 >conftest.err
  2677. rm -f conftest.er1
  2678. cat conftest.err >&5
  2679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. (exit $ac_status); } &&
  2681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2682. { (case "(($ac_try" in
  2683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2684. *) ac_try_echo=$ac_try;;
  2685. esac
  2686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2687. (eval "$ac_try") 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }; } &&
  2691. { ac_try='test -s conftest.$ac_objext'
  2692. { (case "(($ac_try" in
  2693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2694. *) ac_try_echo=$ac_try;;
  2695. esac
  2696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2697. (eval "$ac_try") 2>&5
  2698. ac_status=$?
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }; }; then
  2701. ac_compiler_gnu=yes
  2702. else
  2703. echo "$as_me: failed program was:" >&5
  2704. sed 's/^/| /' conftest.$ac_ext >&5
  2705. ac_compiler_gnu=no
  2706. fi
  2707. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2708. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2709. fi
  2710. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2711. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2712. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2713. ac_test_CFLAGS=${CFLAGS+set}
  2714. ac_save_CFLAGS=$CFLAGS
  2715. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2716. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2717. if test "${ac_cv_prog_cc_g+set}" = set; then
  2718. echo $ECHO_N "(cached) $ECHO_C" >&6
  2719. else
  2720. ac_save_c_werror_flag=$ac_c_werror_flag
  2721. ac_c_werror_flag=yes
  2722. ac_cv_prog_cc_g=no
  2723. CFLAGS="-g"
  2724. cat >conftest.$ac_ext <<_ACEOF
  2725. /* confdefs.h. */
  2726. _ACEOF
  2727. cat confdefs.h >>conftest.$ac_ext
  2728. cat >>conftest.$ac_ext <<_ACEOF
  2729. /* end confdefs.h. */
  2730. int
  2731. main ()
  2732. {
  2733. ;
  2734. return 0;
  2735. }
  2736. _ACEOF
  2737. rm -f conftest.$ac_objext
  2738. if { (ac_try="$ac_compile"
  2739. case "(($ac_try" in
  2740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2741. *) ac_try_echo=$ac_try;;
  2742. esac
  2743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2744. (eval "$ac_compile") 2>conftest.er1
  2745. ac_status=$?
  2746. grep -v '^ *+' conftest.er1 >conftest.err
  2747. rm -f conftest.er1
  2748. cat conftest.err >&5
  2749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2750. (exit $ac_status); } &&
  2751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2752. { (case "(($ac_try" in
  2753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2754. *) ac_try_echo=$ac_try;;
  2755. esac
  2756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2757. (eval "$ac_try") 2>&5
  2758. ac_status=$?
  2759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2760. (exit $ac_status); }; } &&
  2761. { ac_try='test -s conftest.$ac_objext'
  2762. { (case "(($ac_try" in
  2763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2764. *) ac_try_echo=$ac_try;;
  2765. esac
  2766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2767. (eval "$ac_try") 2>&5
  2768. ac_status=$?
  2769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2770. (exit $ac_status); }; }; then
  2771. ac_cv_prog_cc_g=yes
  2772. else
  2773. echo "$as_me: failed program was:" >&5
  2774. sed 's/^/| /' conftest.$ac_ext >&5
  2775. CFLAGS=""
  2776. cat >conftest.$ac_ext <<_ACEOF
  2777. /* confdefs.h. */
  2778. _ACEOF
  2779. cat confdefs.h >>conftest.$ac_ext
  2780. cat >>conftest.$ac_ext <<_ACEOF
  2781. /* end confdefs.h. */
  2782. int
  2783. main ()
  2784. {
  2785. ;
  2786. return 0;
  2787. }
  2788. _ACEOF
  2789. rm -f conftest.$ac_objext
  2790. if { (ac_try="$ac_compile"
  2791. case "(($ac_try" in
  2792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2793. *) ac_try_echo=$ac_try;;
  2794. esac
  2795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2796. (eval "$ac_compile") 2>conftest.er1
  2797. ac_status=$?
  2798. grep -v '^ *+' conftest.er1 >conftest.err
  2799. rm -f conftest.er1
  2800. cat conftest.err >&5
  2801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2802. (exit $ac_status); } &&
  2803. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2804. { (case "(($ac_try" in
  2805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2806. *) ac_try_echo=$ac_try;;
  2807. esac
  2808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2809. (eval "$ac_try") 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; } &&
  2813. { ac_try='test -s conftest.$ac_objext'
  2814. { (case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2819. (eval "$ac_try") 2>&5
  2820. ac_status=$?
  2821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); }; }; then
  2823. :
  2824. else
  2825. echo "$as_me: failed program was:" >&5
  2826. sed 's/^/| /' conftest.$ac_ext >&5
  2827. ac_c_werror_flag=$ac_save_c_werror_flag
  2828. CFLAGS="-g"
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. int
  2836. main ()
  2837. {
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (ac_try="$ac_compile"
  2844. case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2849. (eval "$ac_compile") 2>conftest.er1
  2850. ac_status=$?
  2851. grep -v '^ *+' conftest.er1 >conftest.err
  2852. rm -f conftest.er1
  2853. cat conftest.err >&5
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); } &&
  2856. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2857. { (case "(($ac_try" in
  2858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2859. *) ac_try_echo=$ac_try;;
  2860. esac
  2861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2862. (eval "$ac_try") 2>&5
  2863. ac_status=$?
  2864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. (exit $ac_status); }; } &&
  2866. { ac_try='test -s conftest.$ac_objext'
  2867. { (case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2872. (eval "$ac_try") 2>&5
  2873. ac_status=$?
  2874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; }; then
  2876. ac_cv_prog_cc_g=yes
  2877. else
  2878. echo "$as_me: failed program was:" >&5
  2879. sed 's/^/| /' conftest.$ac_ext >&5
  2880. fi
  2881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2882. fi
  2883. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2884. fi
  2885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. ac_c_werror_flag=$ac_save_c_werror_flag
  2887. fi
  2888. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2889. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2890. if test "$ac_test_CFLAGS" = set; then
  2891. CFLAGS=$ac_save_CFLAGS
  2892. elif test $ac_cv_prog_cc_g = yes; then
  2893. if test "$GCC" = yes; then
  2894. CFLAGS="-g -O2"
  2895. else
  2896. CFLAGS="-g"
  2897. fi
  2898. else
  2899. if test "$GCC" = yes; then
  2900. CFLAGS="-O2"
  2901. else
  2902. CFLAGS=
  2903. fi
  2904. fi
  2905. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2906. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2907. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2908. echo $ECHO_N "(cached) $ECHO_C" >&6
  2909. else
  2910. ac_cv_prog_cc_c89=no
  2911. ac_save_CC=$CC
  2912. cat >conftest.$ac_ext <<_ACEOF
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. #include <stdarg.h>
  2919. #include <stdio.h>
  2920. #include <sys/types.h>
  2921. #include <sys/stat.h>
  2922. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2923. struct buf { int x; };
  2924. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2925. static char *e (p, i)
  2926. char **p;
  2927. int i;
  2928. {
  2929. return p[i];
  2930. }
  2931. static char *f (char * (*g) (char **, int), char **p, ...)
  2932. {
  2933. char *s;
  2934. va_list v;
  2935. va_start (v,p);
  2936. s = g (p, va_arg (v,int));
  2937. va_end (v);
  2938. return s;
  2939. }
  2940. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2941. function prototypes and stuff, but not '\xHH' hex character constants.
  2942. These don't provoke an error unfortunately, instead are silently treated
  2943. as 'x'. The following induces an error, until -std is added to get
  2944. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2945. array size at least. It's necessary to write '\x00'==0 to get something
  2946. that's true only with -std. */
  2947. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2948. int test (int i, double x);
  2949. struct s1 {int (*f) (int a);};
  2950. struct s2 {int (*f) (double a);};
  2951. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2952. int argc;
  2953. char **argv;
  2954. int
  2955. main ()
  2956. {
  2957. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2963. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2964. do
  2965. CC="$ac_save_CC $ac_arg"
  2966. rm -f conftest.$ac_objext
  2967. if { (ac_try="$ac_compile"
  2968. case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2973. (eval "$ac_compile") 2>conftest.er1
  2974. ac_status=$?
  2975. grep -v '^ *+' conftest.er1 >conftest.err
  2976. rm -f conftest.er1
  2977. cat conftest.err >&5
  2978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2979. (exit $ac_status); } &&
  2980. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2981. { (case "(($ac_try" in
  2982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983. *) ac_try_echo=$ac_try;;
  2984. esac
  2985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2986. (eval "$ac_try") 2>&5
  2987. ac_status=$?
  2988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2989. (exit $ac_status); }; } &&
  2990. { ac_try='test -s conftest.$ac_objext'
  2991. { (case "(($ac_try" in
  2992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2993. *) ac_try_echo=$ac_try;;
  2994. esac
  2995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2996. (eval "$ac_try") 2>&5
  2997. ac_status=$?
  2998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2999. (exit $ac_status); }; }; then
  3000. ac_cv_prog_cc_c89=$ac_arg
  3001. else
  3002. echo "$as_me: failed program was:" >&5
  3003. sed 's/^/| /' conftest.$ac_ext >&5
  3004. fi
  3005. rm -f conftest.err conftest.$ac_objext
  3006. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3007. done
  3008. rm -f conftest.$ac_ext
  3009. CC=$ac_save_CC
  3010. fi
  3011. # AC_CACHE_VAL
  3012. case "x$ac_cv_prog_cc_c89" in
  3013. x)
  3014. { echo "$as_me:$LINENO: result: none needed" >&5
  3015. echo "${ECHO_T}none needed" >&6; } ;;
  3016. xno)
  3017. { echo "$as_me:$LINENO: result: unsupported" >&5
  3018. echo "${ECHO_T}unsupported" >&6; } ;;
  3019. *)
  3020. CC="$CC $ac_cv_prog_cc_c89"
  3021. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3022. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3023. esac
  3024. ac_ext=c
  3025. ac_cpp='$CPP $CPPFLAGS'
  3026. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3027. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3028. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3029. DEPDIR="${am__leading_dot}deps"
  3030. ac_config_commands="$ac_config_commands depfiles"
  3031. am_make=${MAKE-make}
  3032. cat > confinc << 'END'
  3033. am__doit:
  3034. @echo done
  3035. .PHONY: am__doit
  3036. END
  3037. # If we don't find an include directive, just comment out the code.
  3038. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3039. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3040. am__include="#"
  3041. am__quote=
  3042. _am_result=none
  3043. # First try GNU make style include.
  3044. echo "include confinc" > confmf
  3045. # We grep out `Entering directory' and `Leaving directory'
  3046. # messages which can occur if `w' ends up in MAKEFLAGS.
  3047. # In particular we don't look at `^make:' because GNU make might
  3048. # be invoked under some other name (usually "gmake"), in which
  3049. # case it prints its new name instead of `make'.
  3050. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3051. am__include=include
  3052. am__quote=
  3053. _am_result=GNU
  3054. fi
  3055. # Now try BSD make style include.
  3056. if test "$am__include" = "#"; then
  3057. echo '.include "confinc"' > confmf
  3058. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3059. am__include=.include
  3060. am__quote="\""
  3061. _am_result=BSD
  3062. fi
  3063. fi
  3064. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3065. echo "${ECHO_T}$_am_result" >&6; }
  3066. rm -f confinc confmf
  3067. # Check whether --enable-dependency-tracking was given.
  3068. if test "${enable_dependency_tracking+set}" = set; then
  3069. enableval=$enable_dependency_tracking;
  3070. fi
  3071. if test "x$enable_dependency_tracking" != xno; then
  3072. am_depcomp="$ac_aux_dir/depcomp"
  3073. AMDEPBACKSLASH='\'
  3074. fi
  3075. if test "x$enable_dependency_tracking" != xno; then
  3076. AMDEP_TRUE=
  3077. AMDEP_FALSE='#'
  3078. else
  3079. AMDEP_TRUE='#'
  3080. AMDEP_FALSE=
  3081. fi
  3082. depcc="$CC" am_compiler_list=
  3083. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3084. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3085. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3086. echo $ECHO_N "(cached) $ECHO_C" >&6
  3087. else
  3088. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3089. # We make a subdir and do the tests there. Otherwise we can end up
  3090. # making bogus files that we don't know about and never remove. For
  3091. # instance it was reported that on HP-UX the gcc test will end up
  3092. # making a dummy file named `D' -- because `-MD' means `put the output
  3093. # in D'.
  3094. mkdir conftest.dir
  3095. # Copy depcomp to subdir because otherwise we won't find it if we're
  3096. # using a relative directory.
  3097. cp "$am_depcomp" conftest.dir
  3098. cd conftest.dir
  3099. # We will build objects and dependencies in a subdirectory because
  3100. # it helps to detect inapplicable dependency modes. For instance
  3101. # both Tru64's cc and ICC support -MD to output dependencies as a
  3102. # side effect of compilation, but ICC will put the dependencies in
  3103. # the current directory while Tru64 will put them in the object
  3104. # directory.
  3105. mkdir sub
  3106. am_cv_CC_dependencies_compiler_type=none
  3107. if test "$am_compiler_list" = ""; then
  3108. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3109. fi
  3110. for depmode in $am_compiler_list; do
  3111. # Setup a source with many dependencies, because some compilers
  3112. # like to wrap large dependency lists on column 80 (with \), and
  3113. # we should not choose a depcomp mode which is confused by this.
  3114. #
  3115. # We need to recreate these files for each test, as the compiler may
  3116. # overwrite some of them when testing with obscure command lines.
  3117. # This happens at least with the AIX C compiler.
  3118. : > sub/conftest.c
  3119. for i in 1 2 3 4 5 6; do
  3120. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3121. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3122. # Solaris 8's {/usr,}/bin/sh.
  3123. touch sub/conftst$i.h
  3124. done
  3125. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3126. case $depmode in
  3127. nosideeffect)
  3128. # after this tag, mechanisms are not by side-effect, so they'll
  3129. # only be used when explicitly requested
  3130. if test "x$enable_dependency_tracking" = xyes; then
  3131. continue
  3132. else
  3133. break
  3134. fi
  3135. ;;
  3136. none) break ;;
  3137. esac
  3138. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3139. # mode. It turns out that the SunPro C++ compiler does not properly
  3140. # handle `-M -o', and we need to detect this.
  3141. if depmode=$depmode \
  3142. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3143. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3144. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3145. >/dev/null 2>conftest.err &&
  3146. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3147. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3148. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3149. # icc doesn't choke on unknown options, it will just issue warnings
  3150. # or remarks (even with -Werror). So we grep stderr for any message
  3151. # that says an option was ignored or not supported.
  3152. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3153. # icc: Command line warning: ignoring option '-M'; no argument required
  3154. # The diagnosis changed in icc 8.0:
  3155. # icc: Command line remark: option '-MP' not supported
  3156. if (grep 'ignoring option' conftest.err ||
  3157. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3158. am_cv_CC_dependencies_compiler_type=$depmode
  3159. break
  3160. fi
  3161. fi
  3162. done
  3163. cd ..
  3164. rm -rf conftest.dir
  3165. else
  3166. am_cv_CC_dependencies_compiler_type=none
  3167. fi
  3168. fi
  3169. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3170. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3171. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3172. if
  3173. test "x$enable_dependency_tracking" != xno \
  3174. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3175. am__fastdepCC_TRUE=
  3176. am__fastdepCC_FALSE='#'
  3177. else
  3178. am__fastdepCC_TRUE='#'
  3179. am__fastdepCC_FALSE=
  3180. fi
  3181. for ac_prog in gawk mawk nawk awk
  3182. do
  3183. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3184. set dummy $ac_prog; ac_word=$2
  3185. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3186. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3187. if test "${ac_cv_prog_AWK+set}" = set; then
  3188. echo $ECHO_N "(cached) $ECHO_C" >&6
  3189. else
  3190. if test -n "$AWK"; then
  3191. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3192. else
  3193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3194. for as_dir in $PATH
  3195. do
  3196. IFS=$as_save_IFS
  3197. test -z "$as_dir" && as_dir=.
  3198. for ac_exec_ext in '' $ac_executable_extensions; do
  3199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3200. ac_cv_prog_AWK="$ac_prog"
  3201. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3202. break 2
  3203. fi
  3204. done
  3205. done
  3206. IFS=$as_save_IFS
  3207. fi
  3208. fi
  3209. AWK=$ac_cv_prog_AWK
  3210. if test -n "$AWK"; then
  3211. { echo "$as_me:$LINENO: result: $AWK" >&5
  3212. echo "${ECHO_T}$AWK" >&6; }
  3213. else
  3214. { echo "$as_me:$LINENO: result: no" >&5
  3215. echo "${ECHO_T}no" >&6; }
  3216. fi
  3217. test -n "$AWK" && break
  3218. done
  3219. # Find a good install program. We prefer a C program (faster),
  3220. # so one script is as good as another. But avoid the broken or
  3221. # incompatible versions:
  3222. # SysV /etc/install, /usr/sbin/install
  3223. # SunOS /usr/etc/install
  3224. # IRIX /sbin/install
  3225. # AIX /bin/install
  3226. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3227. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3228. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3229. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3230. # OS/2's system install, which has a completely different semantic
  3231. # ./install, which can be erroneously created by make from ./install.sh.
  3232. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3233. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3234. if test -z "$INSTALL"; then
  3235. if test "${ac_cv_path_install+set}" = set; then
  3236. echo $ECHO_N "(cached) $ECHO_C" >&6
  3237. else
  3238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3239. for as_dir in $PATH
  3240. do
  3241. IFS=$as_save_IFS
  3242. test -z "$as_dir" && as_dir=.
  3243. # Account for people who put trailing slashes in PATH elements.
  3244. case $as_dir/ in
  3245. ./ | .// | /cC/* | \
  3246. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3247. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3248. /usr/ucb/* ) ;;
  3249. *)
  3250. # OSF1 and SCO ODT 3.0 have their own names for install.
  3251. # Don't use installbsd from OSF since it installs stuff as root
  3252. # by default.
  3253. for ac_prog in ginstall scoinst install; do
  3254. for ac_exec_ext in '' $ac_executable_extensions; do
  3255. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3256. if test $ac_prog = install &&
  3257. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3258. # AIX install. It has an incompatible calling convention.
  3259. :
  3260. elif test $ac_prog = install &&
  3261. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3262. # program-specific install script used by HP pwplus--don't use.
  3263. :
  3264. else
  3265. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3266. break 3
  3267. fi
  3268. fi
  3269. done
  3270. done
  3271. ;;
  3272. esac
  3273. done
  3274. IFS=$as_save_IFS
  3275. fi
  3276. if test "${ac_cv_path_install+set}" = set; then
  3277. INSTALL=$ac_cv_path_install
  3278. else
  3279. # As a last resort, use the slow shell script. Don't cache a
  3280. # value for INSTALL within a source directory, because that will
  3281. # break other packages using the cache if that directory is
  3282. # removed, or if the value is a relative name.
  3283. INSTALL=$ac_install_sh
  3284. fi
  3285. fi
  3286. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3287. echo "${ECHO_T}$INSTALL" >&6; }
  3288. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3289. # It thinks the first close brace ends the variable substitution.
  3290. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3291. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3292. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3293. # Check whether --enable-shared was given.
  3294. if test "${enable_shared+set}" = set; then
  3295. enableval=$enable_shared; p=${PACKAGE-default}
  3296. case $enableval in
  3297. yes) enable_shared=yes ;;
  3298. no) enable_shared=no ;;
  3299. *)
  3300. enable_shared=no
  3301. # Look at the argument we got. We use all the common list separators.
  3302. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3303. for pkg in $enableval; do
  3304. IFS="$lt_save_ifs"
  3305. if test "X$pkg" = "X$p"; then
  3306. enable_shared=yes
  3307. fi
  3308. done
  3309. IFS="$lt_save_ifs"
  3310. ;;
  3311. esac
  3312. else
  3313. enable_shared=yes
  3314. fi
  3315. # Check whether --enable-static was given.
  3316. if test "${enable_static+set}" = set; then
  3317. enableval=$enable_static; p=${PACKAGE-default}
  3318. case $enableval in
  3319. yes) enable_static=yes ;;
  3320. no) enable_static=no ;;
  3321. *)
  3322. enable_static=no
  3323. # Look at the argument we got. We use all the common list separators.
  3324. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3325. for pkg in $enableval; do
  3326. IFS="$lt_save_ifs"
  3327. if test "X$pkg" = "X$p"; then
  3328. enable_static=yes
  3329. fi
  3330. done
  3331. IFS="$lt_save_ifs"
  3332. ;;
  3333. esac
  3334. else
  3335. enable_static=yes
  3336. fi
  3337. # Check whether --enable-fast-install was given.
  3338. if test "${enable_fast_install+set}" = set; then
  3339. enableval=$enable_fast_install; p=${PACKAGE-default}
  3340. case $enableval in
  3341. yes) enable_fast_install=yes ;;
  3342. no) enable_fast_install=no ;;
  3343. *)
  3344. enable_fast_install=no
  3345. # Look at the argument we got. We use all the common list separators.
  3346. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3347. for pkg in $enableval; do
  3348. IFS="$lt_save_ifs"
  3349. if test "X$pkg" = "X$p"; then
  3350. enable_fast_install=yes
  3351. fi
  3352. done
  3353. IFS="$lt_save_ifs"
  3354. ;;
  3355. esac
  3356. else
  3357. enable_fast_install=yes
  3358. fi
  3359. # Make sure we can run config.sub.
  3360. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3361. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3362. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3363. { (exit 1); exit 1; }; }
  3364. { echo "$as_me:$LINENO: checking build system type" >&5
  3365. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3366. if test "${ac_cv_build+set}" = set; then
  3367. echo $ECHO_N "(cached) $ECHO_C" >&6
  3368. else
  3369. ac_build_alias=$build_alias
  3370. test "x$ac_build_alias" = x &&
  3371. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3372. test "x$ac_build_alias" = x &&
  3373. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3374. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3375. { (exit 1); exit 1; }; }
  3376. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3377. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3378. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3379. { (exit 1); exit 1; }; }
  3380. fi
  3381. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3382. echo "${ECHO_T}$ac_cv_build" >&6; }
  3383. case $ac_cv_build in
  3384. *-*-*) ;;
  3385. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3386. echo "$as_me: error: invalid value of canonical build" >&2;}
  3387. { (exit 1); exit 1; }; };;
  3388. esac
  3389. build=$ac_cv_build
  3390. ac_save_IFS=$IFS; IFS='-'
  3391. set x $ac_cv_build
  3392. shift
  3393. build_cpu=$1
  3394. build_vendor=$2
  3395. shift; shift
  3396. # Remember, the first character of IFS is used to create $*,
  3397. # except with old shells:
  3398. build_os=$*
  3399. IFS=$ac_save_IFS
  3400. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3401. { echo "$as_me:$LINENO: checking host system type" >&5
  3402. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3403. if test "${ac_cv_host+set}" = set; then
  3404. echo $ECHO_N "(cached) $ECHO_C" >&6
  3405. else
  3406. if test "x$host_alias" = x; then
  3407. ac_cv_host=$ac_cv_build
  3408. else
  3409. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3410. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3411. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3412. { (exit 1); exit 1; }; }
  3413. fi
  3414. fi
  3415. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3416. echo "${ECHO_T}$ac_cv_host" >&6; }
  3417. case $ac_cv_host in
  3418. *-*-*) ;;
  3419. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3420. echo "$as_me: error: invalid value of canonical host" >&2;}
  3421. { (exit 1); exit 1; }; };;
  3422. esac
  3423. host=$ac_cv_host
  3424. ac_save_IFS=$IFS; IFS='-'
  3425. set x $ac_cv_host
  3426. shift
  3427. host_cpu=$1
  3428. host_vendor=$2
  3429. shift; shift
  3430. # Remember, the first character of IFS is used to create $*,
  3431. # except with old shells:
  3432. host_os=$*
  3433. IFS=$ac_save_IFS
  3434. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3435. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3436. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3437. if test "${lt_cv_path_SED+set}" = set; then
  3438. echo $ECHO_N "(cached) $ECHO_C" >&6
  3439. else
  3440. # Loop through the user's path and test for sed and gsed.
  3441. # Then use that list of sed's as ones to test for truncation.
  3442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3443. for as_dir in $PATH
  3444. do
  3445. IFS=$as_save_IFS
  3446. test -z "$as_dir" && as_dir=.
  3447. for lt_ac_prog in sed gsed; do
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3450. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3451. fi
  3452. done
  3453. done
  3454. done
  3455. lt_ac_max=0
  3456. lt_ac_count=0
  3457. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3458. # along with /bin/sed that truncates output.
  3459. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3460. test ! -f $lt_ac_sed && continue
  3461. cat /dev/null > conftest.in
  3462. lt_ac_count=0
  3463. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3464. # Check for GNU sed and select it if it is found.
  3465. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3466. lt_cv_path_SED=$lt_ac_sed
  3467. break
  3468. fi
  3469. while true; do
  3470. cat conftest.in conftest.in >conftest.tmp
  3471. mv conftest.tmp conftest.in
  3472. cp conftest.in conftest.nl
  3473. echo >>conftest.nl
  3474. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3475. cmp -s conftest.out conftest.nl || break
  3476. # 10000 chars as input seems more than enough
  3477. test $lt_ac_count -gt 10 && break
  3478. lt_ac_count=`expr $lt_ac_count + 1`
  3479. if test $lt_ac_count -gt $lt_ac_max; then
  3480. lt_ac_max=$lt_ac_count
  3481. lt_cv_path_SED=$lt_ac_sed
  3482. fi
  3483. done
  3484. done
  3485. fi
  3486. SED=$lt_cv_path_SED
  3487. { echo "$as_me:$LINENO: result: $SED" >&5
  3488. echo "${ECHO_T}$SED" >&6; }
  3489. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3490. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3491. if test "${ac_cv_path_GREP+set}" = set; then
  3492. echo $ECHO_N "(cached) $ECHO_C" >&6
  3493. else
  3494. # Extract the first word of "grep ggrep" to use in msg output
  3495. if test -z "$GREP"; then
  3496. set dummy grep ggrep; ac_prog_name=$2
  3497. if test "${ac_cv_path_GREP+set}" = set; then
  3498. echo $ECHO_N "(cached) $ECHO_C" >&6
  3499. else
  3500. ac_path_GREP_found=false
  3501. # Loop through the user's path and test for each of PROGNAME-LIST
  3502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3504. do
  3505. IFS=$as_save_IFS
  3506. test -z "$as_dir" && as_dir=.
  3507. for ac_prog in grep ggrep; do
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3510. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  3511. # Check for GNU ac_path_GREP and select it if it is found.
  3512. # Check for GNU $ac_path_GREP
  3513. case `"$ac_path_GREP" --version 2>&1` in
  3514. *GNU*)
  3515. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3516. *)
  3517. ac_count=0
  3518. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3519. while :
  3520. do
  3521. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3522. mv "conftest.tmp" "conftest.in"
  3523. cp "conftest.in" "conftest.nl"
  3524. echo 'GREP' >> "conftest.nl"
  3525. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3526. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3527. ac_count=`expr $ac_count + 1`
  3528. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3529. # Best one so far, save it but keep looking for a better one
  3530. ac_cv_path_GREP="$ac_path_GREP"
  3531. ac_path_GREP_max=$ac_count
  3532. fi
  3533. # 10*(2^10) chars as input seems more than enough
  3534. test $ac_count -gt 10 && break
  3535. done
  3536. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3537. esac
  3538. $ac_path_GREP_found && break 3
  3539. done
  3540. done
  3541. done
  3542. IFS=$as_save_IFS
  3543. fi
  3544. GREP="$ac_cv_path_GREP"
  3545. if test -z "$GREP"; then
  3546. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3547. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3548. { (exit 1); exit 1; }; }
  3549. fi
  3550. else
  3551. ac_cv_path_GREP=$GREP
  3552. fi
  3553. fi
  3554. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3555. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3556. GREP="$ac_cv_path_GREP"
  3557. { echo "$as_me:$LINENO: checking for egrep" >&5
  3558. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3559. if test "${ac_cv_path_EGREP+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3563. then ac_cv_path_EGREP="$GREP -E"
  3564. else
  3565. # Extract the first word of "egrep" to use in msg output
  3566. if test -z "$EGREP"; then
  3567. set dummy egrep; ac_prog_name=$2
  3568. if test "${ac_cv_path_EGREP+set}" = set; then
  3569. echo $ECHO_N "(cached) $ECHO_C" >&6
  3570. else
  3571. ac_path_EGREP_found=false
  3572. # Loop through the user's path and test for each of PROGNAME-LIST
  3573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3574. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3575. do
  3576. IFS=$as_save_IFS
  3577. test -z "$as_dir" && as_dir=.
  3578. for ac_prog in egrep; do
  3579. for ac_exec_ext in '' $ac_executable_extensions; do
  3580. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3581. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  3582. # Check for GNU ac_path_EGREP and select it if it is found.
  3583. # Check for GNU $ac_path_EGREP
  3584. case `"$ac_path_EGREP" --version 2>&1` in
  3585. *GNU*)
  3586. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3587. *)
  3588. ac_count=0
  3589. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3590. while :
  3591. do
  3592. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3593. mv "conftest.tmp" "conftest.in"
  3594. cp "conftest.in" "conftest.nl"
  3595. echo 'EGREP' >> "conftest.nl"
  3596. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3597. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3598. ac_count=`expr $ac_count + 1`
  3599. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3600. # Best one so far, save it but keep looking for a better one
  3601. ac_cv_path_EGREP="$ac_path_EGREP"
  3602. ac_path_EGREP_max=$ac_count
  3603. fi
  3604. # 10*(2^10) chars as input seems more than enough
  3605. test $ac_count -gt 10 && break
  3606. done
  3607. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3608. esac
  3609. $ac_path_EGREP_found && break 3
  3610. done
  3611. done
  3612. done
  3613. IFS=$as_save_IFS
  3614. fi
  3615. EGREP="$ac_cv_path_EGREP"
  3616. if test -z "$EGREP"; then
  3617. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3618. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3619. { (exit 1); exit 1; }; }
  3620. fi
  3621. else
  3622. ac_cv_path_EGREP=$EGREP
  3623. fi
  3624. fi
  3625. fi
  3626. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3627. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3628. EGREP="$ac_cv_path_EGREP"
  3629. # Check whether --with-gnu-ld was given.
  3630. if test "${with_gnu_ld+set}" = set; then
  3631. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3632. else
  3633. with_gnu_ld=no
  3634. fi
  3635. ac_prog=ld
  3636. if test "$GCC" = yes; then
  3637. # Check if gcc -print-prog-name=ld gives a path.
  3638. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3639. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3640. case $host in
  3641. *-*-mingw*)
  3642. # gcc leaves a trailing carriage return which upsets mingw
  3643. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3644. *)
  3645. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3646. esac
  3647. case $ac_prog in
  3648. # Accept absolute paths.
  3649. [\\/]* | ?:[\\/]*)
  3650. re_direlt='/[^/][^/]*/\.\./'
  3651. # Canonicalize the pathname of ld
  3652. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3653. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3654. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3655. done
  3656. test -z "$LD" && LD="$ac_prog"
  3657. ;;
  3658. "")
  3659. # If it fails, then pretend we aren't using GCC.
  3660. ac_prog=ld
  3661. ;;
  3662. *)
  3663. # If it is relative, then search for the first ld in PATH.
  3664. with_gnu_ld=unknown
  3665. ;;
  3666. esac
  3667. elif test "$with_gnu_ld" = yes; then
  3668. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3669. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3670. else
  3671. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3672. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3673. fi
  3674. if test "${lt_cv_path_LD+set}" = set; then
  3675. echo $ECHO_N "(cached) $ECHO_C" >&6
  3676. else
  3677. if test -z "$LD"; then
  3678. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3679. for ac_dir in $PATH; do
  3680. IFS="$lt_save_ifs"
  3681. test -z "$ac_dir" && ac_dir=.
  3682. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3683. lt_cv_path_LD="$ac_dir/$ac_prog"
  3684. # Check to see if the program is GNU ld. I'd rather use --version,
  3685. # but apparently some variants of GNU ld only accept -v.
  3686. # Break only if it was the GNU/non-GNU ld that we prefer.
  3687. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3688. *GNU* | *'with BFD'*)
  3689. test "$with_gnu_ld" != no && break
  3690. ;;
  3691. *)
  3692. test "$with_gnu_ld" != yes && break
  3693. ;;
  3694. esac
  3695. fi
  3696. done
  3697. IFS="$lt_save_ifs"
  3698. else
  3699. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3700. fi
  3701. fi
  3702. LD="$lt_cv_path_LD"
  3703. if test -n "$LD"; then
  3704. { echo "$as_me:$LINENO: result: $LD" >&5
  3705. echo "${ECHO_T}$LD" >&6; }
  3706. else
  3707. { echo "$as_me:$LINENO: result: no" >&5
  3708. echo "${ECHO_T}no" >&6; }
  3709. fi
  3710. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3711. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3712. { (exit 1); exit 1; }; }
  3713. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3714. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3715. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3716. echo $ECHO_N "(cached) $ECHO_C" >&6
  3717. else
  3718. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3719. case `$LD -v 2>&1 </dev/null` in
  3720. *GNU* | *'with BFD'*)
  3721. lt_cv_prog_gnu_ld=yes
  3722. ;;
  3723. *)
  3724. lt_cv_prog_gnu_ld=no
  3725. ;;
  3726. esac
  3727. fi
  3728. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3729. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3730. with_gnu_ld=$lt_cv_prog_gnu_ld
  3731. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3732. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3733. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3734. echo $ECHO_N "(cached) $ECHO_C" >&6
  3735. else
  3736. lt_cv_ld_reload_flag='-r'
  3737. fi
  3738. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3739. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3740. reload_flag=$lt_cv_ld_reload_flag
  3741. case $reload_flag in
  3742. "" | " "*) ;;
  3743. *) reload_flag=" $reload_flag" ;;
  3744. esac
  3745. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3746. case $host_os in
  3747. darwin*)
  3748. if test "$GCC" = yes; then
  3749. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3750. else
  3751. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3752. fi
  3753. ;;
  3754. esac
  3755. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3756. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3757. if test "${lt_cv_path_NM+set}" = set; then
  3758. echo $ECHO_N "(cached) $ECHO_C" >&6
  3759. else
  3760. if test -n "$NM"; then
  3761. # Let the user override the test.
  3762. lt_cv_path_NM="$NM"
  3763. else
  3764. lt_nm_to_check="${ac_tool_prefix}nm"
  3765. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3766. lt_nm_to_check="$lt_nm_to_check nm"
  3767. fi
  3768. for lt_tmp_nm in $lt_nm_to_check; do
  3769. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3770. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3771. IFS="$lt_save_ifs"
  3772. test -z "$ac_dir" && ac_dir=.
  3773. tmp_nm="$ac_dir/$lt_tmp_nm"
  3774. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3775. # Check to see if the nm accepts a BSD-compat flag.
  3776. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3777. # nm: unknown option "B" ignored
  3778. # Tru64's nm complains that /dev/null is an invalid object file
  3779. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3780. */dev/null* | *'Invalid file or object type'*)
  3781. lt_cv_path_NM="$tmp_nm -B"
  3782. break
  3783. ;;
  3784. *)
  3785. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3786. */dev/null*)
  3787. lt_cv_path_NM="$tmp_nm -p"
  3788. break
  3789. ;;
  3790. *)
  3791. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3792. continue # so that we can try to find one that supports BSD flags
  3793. ;;
  3794. esac
  3795. ;;
  3796. esac
  3797. fi
  3798. done
  3799. IFS="$lt_save_ifs"
  3800. done
  3801. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3802. fi
  3803. fi
  3804. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3805. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3806. NM="$lt_cv_path_NM"
  3807. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3808. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3809. LN_S=$as_ln_s
  3810. if test "$LN_S" = "ln -s"; then
  3811. { echo "$as_me:$LINENO: result: yes" >&5
  3812. echo "${ECHO_T}yes" >&6; }
  3813. else
  3814. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3815. echo "${ECHO_T}no, using $LN_S" >&6; }
  3816. fi
  3817. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3818. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3819. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3820. echo $ECHO_N "(cached) $ECHO_C" >&6
  3821. else
  3822. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3823. lt_cv_file_magic_test_file=
  3824. lt_cv_deplibs_check_method='unknown'
  3825. # Need to set the preceding variable on all platforms that support
  3826. # interlibrary dependencies.
  3827. # 'none' -- dependencies not supported.
  3828. # `unknown' -- same as none, but documents that we really don't know.
  3829. # 'pass_all' -- all dependencies passed with no checks.
  3830. # 'test_compile' -- check by making test program.
  3831. # 'file_magic [[regex]]' -- check by looking for files in library path
  3832. # which responds to the $file_magic_cmd with a given extended regex.
  3833. # If you have `file' or equivalent on your system and you're not sure
  3834. # whether `pass_all' will *always* work, you probably want this one.
  3835. case $host_os in
  3836. aix4* | aix5*)
  3837. lt_cv_deplibs_check_method=pass_all
  3838. ;;
  3839. beos*)
  3840. lt_cv_deplibs_check_method=pass_all
  3841. ;;
  3842. bsdi[45]*)
  3843. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3844. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3845. lt_cv_file_magic_test_file=/shlib/libc.so
  3846. ;;
  3847. cygwin*)
  3848. # func_win32_libid is a shell function defined in ltmain.sh
  3849. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3850. lt_cv_file_magic_cmd='func_win32_libid'
  3851. ;;
  3852. mingw* | pw32*)
  3853. # Base MSYS/MinGW do not provide the 'file' command needed by
  3854. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3855. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3856. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3857. ;;
  3858. darwin* | rhapsody*)
  3859. lt_cv_deplibs_check_method=pass_all
  3860. ;;
  3861. freebsd* | dragonfly*)
  3862. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3863. case $host_cpu in
  3864. i*86 )
  3865. # Not sure whether the presence of OpenBSD here was a mistake.
  3866. # Let's accept both of them until this is cleared up.
  3867. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3868. lt_cv_file_magic_cmd=/usr/bin/file
  3869. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3870. ;;
  3871. esac
  3872. else
  3873. lt_cv_deplibs_check_method=pass_all
  3874. fi
  3875. ;;
  3876. gnu*)
  3877. lt_cv_deplibs_check_method=pass_all
  3878. ;;
  3879. hpux10.20* | hpux11*)
  3880. lt_cv_file_magic_cmd=/usr/bin/file
  3881. case $host_cpu in
  3882. ia64*)
  3883. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3884. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3885. ;;
  3886. hppa*64*)
  3887. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3888. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3889. ;;
  3890. *)
  3891. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3892. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3893. ;;
  3894. esac
  3895. ;;
  3896. interix3*)
  3897. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3898. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3899. ;;
  3900. irix5* | irix6* | nonstopux*)
  3901. case $LD in
  3902. *-32|*"-32 ") libmagic=32-bit;;
  3903. *-n32|*"-n32 ") libmagic=N32;;
  3904. *-64|*"-64 ") libmagic=64-bit;;
  3905. *) libmagic=never-match;;
  3906. esac
  3907. lt_cv_deplibs_check_method=pass_all
  3908. ;;
  3909. # This must be Linux ELF.
  3910. linux* | k*bsd*-gnu)
  3911. lt_cv_deplibs_check_method=pass_all
  3912. ;;
  3913. netbsd* | netbsdelf*-gnu)
  3914. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3915. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3916. else
  3917. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3918. fi
  3919. ;;
  3920. newos6*)
  3921. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3922. lt_cv_file_magic_cmd=/usr/bin/file
  3923. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3924. ;;
  3925. nto-qnx*)
  3926. lt_cv_deplibs_check_method=unknown
  3927. ;;
  3928. openbsd*)
  3929. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3930. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3931. else
  3932. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3933. fi
  3934. ;;
  3935. osf3* | osf4* | osf5*)
  3936. lt_cv_deplibs_check_method=pass_all
  3937. ;;
  3938. solaris*)
  3939. lt_cv_deplibs_check_method=pass_all
  3940. ;;
  3941. sysv4 | sysv4.3*)
  3942. case $host_vendor in
  3943. motorola)
  3944. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  3945. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3946. ;;
  3947. ncr)
  3948. lt_cv_deplibs_check_method=pass_all
  3949. ;;
  3950. sequent)
  3951. lt_cv_file_magic_cmd='/bin/file'
  3952. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3953. ;;
  3954. sni)
  3955. lt_cv_file_magic_cmd='/bin/file'
  3956. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3957. lt_cv_file_magic_test_file=/lib/libc.so
  3958. ;;
  3959. siemens)
  3960. lt_cv_deplibs_check_method=pass_all
  3961. ;;
  3962. pc)
  3963. lt_cv_deplibs_check_method=pass_all
  3964. ;;
  3965. esac
  3966. ;;
  3967. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3968. lt_cv_deplibs_check_method=pass_all
  3969. ;;
  3970. esac
  3971. fi
  3972. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3973. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3974. file_magic_cmd=$lt_cv_file_magic_cmd
  3975. deplibs_check_method=$lt_cv_deplibs_check_method
  3976. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3977. # If no C compiler was specified, use CC.
  3978. LTCC=${LTCC-"$CC"}
  3979. # If no C compiler flags were specified, use CFLAGS.
  3980. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3981. # Allow CC to be a program name with arguments.
  3982. compiler=$CC
  3983. # Check whether --enable-libtool-lock was given.
  3984. if test "${enable_libtool_lock+set}" = set; then
  3985. enableval=$enable_libtool_lock;
  3986. fi
  3987. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3988. # Some flags need to be propagated to the compiler or linker for good
  3989. # libtool support.
  3990. case $host in
  3991. ia64-*-hpux*)
  3992. # Find out which ABI we are using.
  3993. echo 'int i;' > conftest.$ac_ext
  3994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3995. (eval $ac_compile) 2>&5
  3996. ac_status=$?
  3997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. (exit $ac_status); }; then
  3999. case `/usr/bin/file conftest.$ac_objext` in
  4000. *ELF-32*)
  4001. HPUX_IA64_MODE="32"
  4002. ;;
  4003. *ELF-64*)
  4004. HPUX_IA64_MODE="64"
  4005. ;;
  4006. esac
  4007. fi
  4008. rm -rf conftest*
  4009. ;;
  4010. *-*-irix6*)
  4011. # Find out which ABI we are using.
  4012. echo '#line __oline__ "configure"' > conftest.$ac_ext
  4013. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4014. (eval $ac_compile) 2>&5
  4015. ac_status=$?
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); }; then
  4018. if test "$lt_cv_prog_gnu_ld" = yes; then
  4019. case `/usr/bin/file conftest.$ac_objext` in
  4020. *32-bit*)
  4021. LD="${LD-ld} -melf32bsmip"
  4022. ;;
  4023. *N32*)
  4024. LD="${LD-ld} -melf32bmipn32"
  4025. ;;
  4026. *64-bit*)
  4027. LD="${LD-ld} -melf64bmip"
  4028. ;;
  4029. esac
  4030. else
  4031. case `/usr/bin/file conftest.$ac_objext` in
  4032. *32-bit*)
  4033. LD="${LD-ld} -32"
  4034. ;;
  4035. *N32*)
  4036. LD="${LD-ld} -n32"
  4037. ;;
  4038. *64-bit*)
  4039. LD="${LD-ld} -64"
  4040. ;;
  4041. esac
  4042. fi
  4043. fi
  4044. rm -rf conftest*
  4045. ;;
  4046. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4047. # Find out which ABI we are using.
  4048. echo 'int i;' > conftest.$ac_ext
  4049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4050. (eval $ac_compile) 2>&5
  4051. ac_status=$?
  4052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4053. (exit $ac_status); }; then
  4054. case `/usr/bin/file conftest.o` in
  4055. *32-bit*)
  4056. case $host in
  4057. x86_64-*linux*)
  4058. LD="${LD-ld} -m elf_i386"
  4059. ;;
  4060. ppc64-*linux*|powerpc64-*linux*)
  4061. LD="${LD-ld} -m elf32ppclinux"
  4062. ;;
  4063. s390x-*linux*)
  4064. LD="${LD-ld} -m elf_s390"
  4065. ;;
  4066. sparc64-*linux*)
  4067. LD="${LD-ld} -m elf32_sparc"
  4068. ;;
  4069. esac
  4070. ;;
  4071. *64-bit*)
  4072. case $host in
  4073. x86_64-*linux*)
  4074. LD="${LD-ld} -m elf_x86_64"
  4075. ;;
  4076. ppc*-*linux*|powerpc*-*linux*)
  4077. LD="${LD-ld} -m elf64ppc"
  4078. ;;
  4079. s390*-*linux*)
  4080. LD="${LD-ld} -m elf64_s390"
  4081. ;;
  4082. sparc*-*linux*)
  4083. LD="${LD-ld} -m elf64_sparc"
  4084. ;;
  4085. esac
  4086. ;;
  4087. esac
  4088. fi
  4089. rm -rf conftest*
  4090. ;;
  4091. *-*-sco3.2v5*)
  4092. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4093. SAVE_CFLAGS="$CFLAGS"
  4094. CFLAGS="$CFLAGS -belf"
  4095. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4096. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4097. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4098. echo $ECHO_N "(cached) $ECHO_C" >&6
  4099. else
  4100. ac_ext=c
  4101. ac_cpp='$CPP $CPPFLAGS'
  4102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4105. cat >conftest.$ac_ext <<_ACEOF
  4106. /* confdefs.h. */
  4107. _ACEOF
  4108. cat confdefs.h >>conftest.$ac_ext
  4109. cat >>conftest.$ac_ext <<_ACEOF
  4110. /* end confdefs.h. */
  4111. int
  4112. main ()
  4113. {
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. rm -f conftest.$ac_objext conftest$ac_exeext
  4119. if { (ac_try="$ac_link"
  4120. case "(($ac_try" in
  4121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4122. *) ac_try_echo=$ac_try;;
  4123. esac
  4124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4125. (eval "$ac_link") 2>conftest.er1
  4126. ac_status=$?
  4127. grep -v '^ *+' conftest.er1 >conftest.err
  4128. rm -f conftest.er1
  4129. cat conftest.err >&5
  4130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4131. (exit $ac_status); } &&
  4132. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4133. { (case "(($ac_try" in
  4134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4135. *) ac_try_echo=$ac_try;;
  4136. esac
  4137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4138. (eval "$ac_try") 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; } &&
  4142. { ac_try='test -s conftest$ac_exeext'
  4143. { (case "(($ac_try" in
  4144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4145. *) ac_try_echo=$ac_try;;
  4146. esac
  4147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4148. (eval "$ac_try") 2>&5
  4149. ac_status=$?
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); }; }; then
  4152. lt_cv_cc_needs_belf=yes
  4153. else
  4154. echo "$as_me: failed program was:" >&5
  4155. sed 's/^/| /' conftest.$ac_ext >&5
  4156. lt_cv_cc_needs_belf=no
  4157. fi
  4158. rm -f conftest.err conftest.$ac_objext \
  4159. conftest$ac_exeext conftest.$ac_ext
  4160. ac_ext=c
  4161. ac_cpp='$CPP $CPPFLAGS'
  4162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4165. fi
  4166. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4167. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4168. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4169. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4170. CFLAGS="$SAVE_CFLAGS"
  4171. fi
  4172. ;;
  4173. sparc*-*solaris*)
  4174. # Find out which ABI we are using.
  4175. echo 'int i;' > conftest.$ac_ext
  4176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4177. (eval $ac_compile) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); }; then
  4181. case `/usr/bin/file conftest.o` in
  4182. *64-bit*)
  4183. case $lt_cv_prog_gnu_ld in
  4184. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4185. *) LD="${LD-ld} -64" ;;
  4186. esac
  4187. ;;
  4188. esac
  4189. fi
  4190. rm -rf conftest*
  4191. ;;
  4192. esac
  4193. need_locks="$enable_libtool_lock"
  4194. ac_ext=c
  4195. ac_cpp='$CPP $CPPFLAGS'
  4196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4199. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4200. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4201. # On Suns, sometimes $CPP names a directory.
  4202. if test -n "$CPP" && test -d "$CPP"; then
  4203. CPP=
  4204. fi
  4205. if test -z "$CPP"; then
  4206. if test "${ac_cv_prog_CPP+set}" = set; then
  4207. echo $ECHO_N "(cached) $ECHO_C" >&6
  4208. else
  4209. # Double quotes because CPP needs to be expanded
  4210. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4211. do
  4212. ac_preproc_ok=false
  4213. for ac_c_preproc_warn_flag in '' yes
  4214. do
  4215. # Use a header file that comes with gcc, so configuring glibc
  4216. # with a fresh cross-compiler works.
  4217. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4218. # <limits.h> exists even on freestanding compilers.
  4219. # On the NeXT, cc -E runs the code through the compiler's parser,
  4220. # not just through cpp. "Syntax error" is here to catch this case.
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. @%:@ifdef __STDC__
  4228. @%:@ include <limits.h>
  4229. @%:@else
  4230. @%:@ include <assert.h>
  4231. @%:@endif
  4232. Syntax error
  4233. _ACEOF
  4234. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4235. case "(($ac_try" in
  4236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4237. *) ac_try_echo=$ac_try;;
  4238. esac
  4239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4240. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4241. ac_status=$?
  4242. grep -v '^ *+' conftest.er1 >conftest.err
  4243. rm -f conftest.er1
  4244. cat conftest.err >&5
  4245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4246. (exit $ac_status); } >/dev/null; then
  4247. if test -s conftest.err; then
  4248. ac_cpp_err=$ac_c_preproc_warn_flag
  4249. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4250. else
  4251. ac_cpp_err=
  4252. fi
  4253. else
  4254. ac_cpp_err=yes
  4255. fi
  4256. if test -z "$ac_cpp_err"; then
  4257. :
  4258. else
  4259. echo "$as_me: failed program was:" >&5
  4260. sed 's/^/| /' conftest.$ac_ext >&5
  4261. # Broken: fails on valid input.
  4262. continue
  4263. fi
  4264. rm -f conftest.err conftest.$ac_ext
  4265. # OK, works on sane cases. Now check whether nonexistent headers
  4266. # can be detected and how.
  4267. cat >conftest.$ac_ext <<_ACEOF
  4268. /* confdefs.h. */
  4269. _ACEOF
  4270. cat confdefs.h >>conftest.$ac_ext
  4271. cat >>conftest.$ac_ext <<_ACEOF
  4272. /* end confdefs.h. */
  4273. @%:@include <ac_nonexistent.h>
  4274. _ACEOF
  4275. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4276. case "(($ac_try" in
  4277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4278. *) ac_try_echo=$ac_try;;
  4279. esac
  4280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4281. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4282. ac_status=$?
  4283. grep -v '^ *+' conftest.er1 >conftest.err
  4284. rm -f conftest.er1
  4285. cat conftest.err >&5
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); } >/dev/null; then
  4288. if test -s conftest.err; then
  4289. ac_cpp_err=$ac_c_preproc_warn_flag
  4290. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4291. else
  4292. ac_cpp_err=
  4293. fi
  4294. else
  4295. ac_cpp_err=yes
  4296. fi
  4297. if test -z "$ac_cpp_err"; then
  4298. # Broken: success on invalid input.
  4299. continue
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. # Passes both tests.
  4304. ac_preproc_ok=:
  4305. break
  4306. fi
  4307. rm -f conftest.err conftest.$ac_ext
  4308. done
  4309. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4310. rm -f conftest.err conftest.$ac_ext
  4311. if $ac_preproc_ok; then
  4312. break
  4313. fi
  4314. done
  4315. ac_cv_prog_CPP=$CPP
  4316. fi
  4317. CPP=$ac_cv_prog_CPP
  4318. else
  4319. ac_cv_prog_CPP=$CPP
  4320. fi
  4321. { echo "$as_me:$LINENO: result: $CPP" >&5
  4322. echo "${ECHO_T}$CPP" >&6; }
  4323. ac_preproc_ok=false
  4324. for ac_c_preproc_warn_flag in '' yes
  4325. do
  4326. # Use a header file that comes with gcc, so configuring glibc
  4327. # with a fresh cross-compiler works.
  4328. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4329. # <limits.h> exists even on freestanding compilers.
  4330. # On the NeXT, cc -E runs the code through the compiler's parser,
  4331. # not just through cpp. "Syntax error" is here to catch this case.
  4332. cat >conftest.$ac_ext <<_ACEOF
  4333. /* confdefs.h. */
  4334. _ACEOF
  4335. cat confdefs.h >>conftest.$ac_ext
  4336. cat >>conftest.$ac_ext <<_ACEOF
  4337. /* end confdefs.h. */
  4338. @%:@ifdef __STDC__
  4339. @%:@ include <limits.h>
  4340. @%:@else
  4341. @%:@ include <assert.h>
  4342. @%:@endif
  4343. Syntax error
  4344. _ACEOF
  4345. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4346. case "(($ac_try" in
  4347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4348. *) ac_try_echo=$ac_try;;
  4349. esac
  4350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4351. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4352. ac_status=$?
  4353. grep -v '^ *+' conftest.er1 >conftest.err
  4354. rm -f conftest.er1
  4355. cat conftest.err >&5
  4356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357. (exit $ac_status); } >/dev/null; then
  4358. if test -s conftest.err; then
  4359. ac_cpp_err=$ac_c_preproc_warn_flag
  4360. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4361. else
  4362. ac_cpp_err=
  4363. fi
  4364. else
  4365. ac_cpp_err=yes
  4366. fi
  4367. if test -z "$ac_cpp_err"; then
  4368. :
  4369. else
  4370. echo "$as_me: failed program was:" >&5
  4371. sed 's/^/| /' conftest.$ac_ext >&5
  4372. # Broken: fails on valid input.
  4373. continue
  4374. fi
  4375. rm -f conftest.err conftest.$ac_ext
  4376. # OK, works on sane cases. Now check whether nonexistent headers
  4377. # can be detected and how.
  4378. cat >conftest.$ac_ext <<_ACEOF
  4379. /* confdefs.h. */
  4380. _ACEOF
  4381. cat confdefs.h >>conftest.$ac_ext
  4382. cat >>conftest.$ac_ext <<_ACEOF
  4383. /* end confdefs.h. */
  4384. @%:@include <ac_nonexistent.h>
  4385. _ACEOF
  4386. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4387. case "(($ac_try" in
  4388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4389. *) ac_try_echo=$ac_try;;
  4390. esac
  4391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4392. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4393. ac_status=$?
  4394. grep -v '^ *+' conftest.er1 >conftest.err
  4395. rm -f conftest.er1
  4396. cat conftest.err >&5
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); } >/dev/null; then
  4399. if test -s conftest.err; then
  4400. ac_cpp_err=$ac_c_preproc_warn_flag
  4401. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4402. else
  4403. ac_cpp_err=
  4404. fi
  4405. else
  4406. ac_cpp_err=yes
  4407. fi
  4408. if test -z "$ac_cpp_err"; then
  4409. # Broken: success on invalid input.
  4410. continue
  4411. else
  4412. echo "$as_me: failed program was:" >&5
  4413. sed 's/^/| /' conftest.$ac_ext >&5
  4414. # Passes both tests.
  4415. ac_preproc_ok=:
  4416. break
  4417. fi
  4418. rm -f conftest.err conftest.$ac_ext
  4419. done
  4420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4421. rm -f conftest.err conftest.$ac_ext
  4422. if $ac_preproc_ok; then
  4423. :
  4424. else
  4425. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4426. See \`config.log' for more details." >&5
  4427. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4428. See \`config.log' for more details." >&2;}
  4429. { (exit 1); exit 1; }; }
  4430. fi
  4431. ac_ext=c
  4432. ac_cpp='$CPP $CPPFLAGS'
  4433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4436. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4437. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4438. if test "${ac_cv_header_stdc+set}" = set; then
  4439. echo $ECHO_N "(cached) $ECHO_C" >&6
  4440. else
  4441. cat >conftest.$ac_ext <<_ACEOF
  4442. /* confdefs.h. */
  4443. _ACEOF
  4444. cat confdefs.h >>conftest.$ac_ext
  4445. cat >>conftest.$ac_ext <<_ACEOF
  4446. /* end confdefs.h. */
  4447. #include <stdlib.h>
  4448. #include <stdarg.h>
  4449. #include <string.h>
  4450. #include <float.h>
  4451. int
  4452. main ()
  4453. {
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. rm -f conftest.$ac_objext
  4459. if { (ac_try="$ac_compile"
  4460. case "(($ac_try" in
  4461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4462. *) ac_try_echo=$ac_try;;
  4463. esac
  4464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4465. (eval "$ac_compile") 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } &&
  4472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4473. { (case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4478. (eval "$ac_try") 2>&5
  4479. ac_status=$?
  4480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4481. (exit $ac_status); }; } &&
  4482. { ac_try='test -s conftest.$ac_objext'
  4483. { (case "(($ac_try" in
  4484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4485. *) ac_try_echo=$ac_try;;
  4486. esac
  4487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4488. (eval "$ac_try") 2>&5
  4489. ac_status=$?
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); }; }; then
  4492. ac_cv_header_stdc=yes
  4493. else
  4494. echo "$as_me: failed program was:" >&5
  4495. sed 's/^/| /' conftest.$ac_ext >&5
  4496. ac_cv_header_stdc=no
  4497. fi
  4498. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4499. if test $ac_cv_header_stdc = yes; then
  4500. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. #include <string.h>
  4508. _ACEOF
  4509. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4510. $EGREP "memchr" >/dev/null 2>&1; then
  4511. :
  4512. else
  4513. ac_cv_header_stdc=no
  4514. fi
  4515. rm -f conftest*
  4516. fi
  4517. if test $ac_cv_header_stdc = yes; then
  4518. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4519. cat >conftest.$ac_ext <<_ACEOF
  4520. /* confdefs.h. */
  4521. _ACEOF
  4522. cat confdefs.h >>conftest.$ac_ext
  4523. cat >>conftest.$ac_ext <<_ACEOF
  4524. /* end confdefs.h. */
  4525. #include <stdlib.h>
  4526. _ACEOF
  4527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4528. $EGREP "free" >/dev/null 2>&1; then
  4529. :
  4530. else
  4531. ac_cv_header_stdc=no
  4532. fi
  4533. rm -f conftest*
  4534. fi
  4535. if test $ac_cv_header_stdc = yes; then
  4536. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4537. if test "$cross_compiling" = yes; then
  4538. :
  4539. else
  4540. cat >conftest.$ac_ext <<_ACEOF
  4541. /* confdefs.h. */
  4542. _ACEOF
  4543. cat confdefs.h >>conftest.$ac_ext
  4544. cat >>conftest.$ac_ext <<_ACEOF
  4545. /* end confdefs.h. */
  4546. #include <ctype.h>
  4547. #include <stdlib.h>
  4548. #if ((' ' & 0x0FF) == 0x020)
  4549. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4550. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4551. #else
  4552. # define ISLOWER(c) \
  4553. (('a' <= (c) && (c) <= 'i') \
  4554. || ('j' <= (c) && (c) <= 'r') \
  4555. || ('s' <= (c) && (c) <= 'z'))
  4556. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4557. #endif
  4558. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4559. int
  4560. main ()
  4561. {
  4562. int i;
  4563. for (i = 0; i < 256; i++)
  4564. if (XOR (islower (i), ISLOWER (i))
  4565. || toupper (i) != TOUPPER (i))
  4566. return 2;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. rm -f conftest$ac_exeext
  4571. if { (ac_try="$ac_link"
  4572. case "(($ac_try" in
  4573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4574. *) ac_try_echo=$ac_try;;
  4575. esac
  4576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4577. (eval "$ac_link") 2>&5
  4578. ac_status=$?
  4579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4580. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4581. { (case "(($ac_try" in
  4582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4583. *) ac_try_echo=$ac_try;;
  4584. esac
  4585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4586. (eval "$ac_try") 2>&5
  4587. ac_status=$?
  4588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4589. (exit $ac_status); }; }; then
  4590. :
  4591. else
  4592. echo "$as_me: program exited with status $ac_status" >&5
  4593. echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. ( exit $ac_status )
  4596. ac_cv_header_stdc=no
  4597. fi
  4598. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4599. fi
  4600. fi
  4601. fi
  4602. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4603. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4604. if test $ac_cv_header_stdc = yes; then
  4605. cat >>confdefs.h <<\_ACEOF
  4606. @%:@define STDC_HEADERS 1
  4607. _ACEOF
  4608. fi
  4609. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4610. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4611. inttypes.h stdint.h unistd.h
  4612. do
  4613. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4614. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4615. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4616. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4617. echo $ECHO_N "(cached) $ECHO_C" >&6
  4618. else
  4619. cat >conftest.$ac_ext <<_ACEOF
  4620. /* confdefs.h. */
  4621. _ACEOF
  4622. cat confdefs.h >>conftest.$ac_ext
  4623. cat >>conftest.$ac_ext <<_ACEOF
  4624. /* end confdefs.h. */
  4625. $ac_includes_default
  4626. @%:@include <$ac_header>
  4627. _ACEOF
  4628. rm -f conftest.$ac_objext
  4629. if { (ac_try="$ac_compile"
  4630. case "(($ac_try" in
  4631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4632. *) ac_try_echo=$ac_try;;
  4633. esac
  4634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4635. (eval "$ac_compile") 2>conftest.er1
  4636. ac_status=$?
  4637. grep -v '^ *+' conftest.er1 >conftest.err
  4638. rm -f conftest.er1
  4639. cat conftest.err >&5
  4640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4641. (exit $ac_status); } &&
  4642. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4643. { (case "(($ac_try" in
  4644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4645. *) ac_try_echo=$ac_try;;
  4646. esac
  4647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4648. (eval "$ac_try") 2>&5
  4649. ac_status=$?
  4650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); }; } &&
  4652. { ac_try='test -s conftest.$ac_objext'
  4653. { (case "(($ac_try" in
  4654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4655. *) ac_try_echo=$ac_try;;
  4656. esac
  4657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4658. (eval "$ac_try") 2>&5
  4659. ac_status=$?
  4660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4661. (exit $ac_status); }; }; then
  4662. eval "$as_ac_Header=yes"
  4663. else
  4664. echo "$as_me: failed program was:" >&5
  4665. sed 's/^/| /' conftest.$ac_ext >&5
  4666. eval "$as_ac_Header=no"
  4667. fi
  4668. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. ac_res=`eval echo '${'$as_ac_Header'}'`
  4671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4672. echo "${ECHO_T}$ac_res" >&6; }
  4673. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4674. cat >>confdefs.h <<_ACEOF
  4675. @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4676. _ACEOF
  4677. fi
  4678. done
  4679. for ac_header in dlfcn.h
  4680. do
  4681. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4683. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4684. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4685. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4686. echo $ECHO_N "(cached) $ECHO_C" >&6
  4687. fi
  4688. ac_res=`eval echo '${'$as_ac_Header'}'`
  4689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4690. echo "${ECHO_T}$ac_res" >&6; }
  4691. else
  4692. # Is the header compilable?
  4693. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4694. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. $ac_includes_default
  4702. @%:@include <$ac_header>
  4703. _ACEOF
  4704. rm -f conftest.$ac_objext
  4705. if { (ac_try="$ac_compile"
  4706. case "(($ac_try" in
  4707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4708. *) ac_try_echo=$ac_try;;
  4709. esac
  4710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4711. (eval "$ac_compile") 2>conftest.er1
  4712. ac_status=$?
  4713. grep -v '^ *+' conftest.er1 >conftest.err
  4714. rm -f conftest.er1
  4715. cat conftest.err >&5
  4716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4717. (exit $ac_status); } &&
  4718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4719. { (case "(($ac_try" in
  4720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4721. *) ac_try_echo=$ac_try;;
  4722. esac
  4723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4724. (eval "$ac_try") 2>&5
  4725. ac_status=$?
  4726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. (exit $ac_status); }; } &&
  4728. { ac_try='test -s conftest.$ac_objext'
  4729. { (case "(($ac_try" in
  4730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4731. *) ac_try_echo=$ac_try;;
  4732. esac
  4733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4734. (eval "$ac_try") 2>&5
  4735. ac_status=$?
  4736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4737. (exit $ac_status); }; }; then
  4738. ac_header_compiler=yes
  4739. else
  4740. echo "$as_me: failed program was:" >&5
  4741. sed 's/^/| /' conftest.$ac_ext >&5
  4742. ac_header_compiler=no
  4743. fi
  4744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4745. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4746. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4747. # Is the header present?
  4748. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4749. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4750. cat >conftest.$ac_ext <<_ACEOF
  4751. /* confdefs.h. */
  4752. _ACEOF
  4753. cat confdefs.h >>conftest.$ac_ext
  4754. cat >>conftest.$ac_ext <<_ACEOF
  4755. /* end confdefs.h. */
  4756. @%:@include <$ac_header>
  4757. _ACEOF
  4758. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4759. case "(($ac_try" in
  4760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4761. *) ac_try_echo=$ac_try;;
  4762. esac
  4763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4764. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4765. ac_status=$?
  4766. grep -v '^ *+' conftest.er1 >conftest.err
  4767. rm -f conftest.er1
  4768. cat conftest.err >&5
  4769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4770. (exit $ac_status); } >/dev/null; then
  4771. if test -s conftest.err; then
  4772. ac_cpp_err=$ac_c_preproc_warn_flag
  4773. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4774. else
  4775. ac_cpp_err=
  4776. fi
  4777. else
  4778. ac_cpp_err=yes
  4779. fi
  4780. if test -z "$ac_cpp_err"; then
  4781. ac_header_preproc=yes
  4782. else
  4783. echo "$as_me: failed program was:" >&5
  4784. sed 's/^/| /' conftest.$ac_ext >&5
  4785. ac_header_preproc=no
  4786. fi
  4787. rm -f conftest.err conftest.$ac_ext
  4788. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4789. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4790. # So? What about this header?
  4791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4792. yes:no: )
  4793. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4794. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4796. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4797. ac_header_preproc=yes
  4798. ;;
  4799. no:yes:* )
  4800. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4801. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4802. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4803. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4804. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4805. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4806. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4807. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4808. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4809. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4810. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4811. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4812. ;;
  4813. esac
  4814. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4815. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4817. echo $ECHO_N "(cached) $ECHO_C" >&6
  4818. else
  4819. eval "$as_ac_Header=\$ac_header_preproc"
  4820. fi
  4821. ac_res=`eval echo '${'$as_ac_Header'}'`
  4822. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4823. echo "${ECHO_T}$ac_res" >&6; }
  4824. fi
  4825. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4826. cat >>confdefs.h <<_ACEOF
  4827. @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4828. _ACEOF
  4829. fi
  4830. done
  4831. ac_ext=cpp
  4832. ac_cpp='$CXXCPP $CPPFLAGS'
  4833. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4834. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4835. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4836. if test -z "$CXX"; then
  4837. if test -n "$CCC"; then
  4838. CXX=$CCC
  4839. else
  4840. if test -n "$ac_tool_prefix"; then
  4841. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4842. do
  4843. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4844. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4845. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4846. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4847. if test "${ac_cv_prog_CXX+set}" = set; then
  4848. echo $ECHO_N "(cached) $ECHO_C" >&6
  4849. else
  4850. if test -n "$CXX"; then
  4851. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_exec_ext in '' $ac_executable_extensions; do
  4859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4860. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4861. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862. break 2
  4863. fi
  4864. done
  4865. done
  4866. IFS=$as_save_IFS
  4867. fi
  4868. fi
  4869. CXX=$ac_cv_prog_CXX
  4870. if test -n "$CXX"; then
  4871. { echo "$as_me:$LINENO: result: $CXX" >&5
  4872. echo "${ECHO_T}$CXX" >&6; }
  4873. else
  4874. { echo "$as_me:$LINENO: result: no" >&5
  4875. echo "${ECHO_T}no" >&6; }
  4876. fi
  4877. test -n "$CXX" && break
  4878. done
  4879. fi
  4880. if test -z "$CXX"; then
  4881. ac_ct_CXX=$CXX
  4882. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4883. do
  4884. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4885. set dummy $ac_prog; ac_word=$2
  4886. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4887. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4888. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4889. echo $ECHO_N "(cached) $ECHO_C" >&6
  4890. else
  4891. if test -n "$ac_ct_CXX"; then
  4892. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4893. else
  4894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4895. for as_dir in $PATH
  4896. do
  4897. IFS=$as_save_IFS
  4898. test -z "$as_dir" && as_dir=.
  4899. for ac_exec_ext in '' $ac_executable_extensions; do
  4900. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4901. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4902. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4903. break 2
  4904. fi
  4905. done
  4906. done
  4907. IFS=$as_save_IFS
  4908. fi
  4909. fi
  4910. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4911. if test -n "$ac_ct_CXX"; then
  4912. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4913. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4914. else
  4915. { echo "$as_me:$LINENO: result: no" >&5
  4916. echo "${ECHO_T}no" >&6; }
  4917. fi
  4918. test -n "$ac_ct_CXX" && break
  4919. done
  4920. if test "x$ac_ct_CXX" = x; then
  4921. CXX="g++"
  4922. else
  4923. case $cross_compiling:$ac_tool_warned in
  4924. yes:)
  4925. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4926. whose name does not start with the host triplet. If you think this
  4927. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4928. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4929. whose name does not start with the host triplet. If you think this
  4930. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4931. ac_tool_warned=yes ;;
  4932. esac
  4933. CXX=$ac_ct_CXX
  4934. fi
  4935. fi
  4936. fi
  4937. fi
  4938. # Provide some information about the compiler.
  4939. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4940. ac_compiler=`set X $ac_compile; echo $2`
  4941. { (ac_try="$ac_compiler --version >&5"
  4942. case "(($ac_try" in
  4943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4944. *) ac_try_echo=$ac_try;;
  4945. esac
  4946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4947. (eval "$ac_compiler --version >&5") 2>&5
  4948. ac_status=$?
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); }
  4951. { (ac_try="$ac_compiler -v >&5"
  4952. case "(($ac_try" in
  4953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4954. *) ac_try_echo=$ac_try;;
  4955. esac
  4956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4957. (eval "$ac_compiler -v >&5") 2>&5
  4958. ac_status=$?
  4959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960. (exit $ac_status); }
  4961. { (ac_try="$ac_compiler -V >&5"
  4962. case "(($ac_try" in
  4963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4964. *) ac_try_echo=$ac_try;;
  4965. esac
  4966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4967. (eval "$ac_compiler -V >&5") 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }
  4971. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4972. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4973. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4974. echo $ECHO_N "(cached) $ECHO_C" >&6
  4975. else
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. int
  4983. main ()
  4984. {
  4985. #ifndef __GNUC__
  4986. choke me
  4987. #endif
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. rm -f conftest.$ac_objext
  4993. if { (ac_try="$ac_compile"
  4994. case "(($ac_try" in
  4995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4996. *) ac_try_echo=$ac_try;;
  4997. esac
  4998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4999. (eval "$ac_compile") 2>conftest.er1
  5000. ac_status=$?
  5001. grep -v '^ *+' conftest.er1 >conftest.err
  5002. rm -f conftest.er1
  5003. cat conftest.err >&5
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); } &&
  5006. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5007. { (case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5012. (eval "$ac_try") 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); }; } &&
  5016. { ac_try='test -s conftest.$ac_objext'
  5017. { (case "(($ac_try" in
  5018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5019. *) ac_try_echo=$ac_try;;
  5020. esac
  5021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5022. (eval "$ac_try") 2>&5
  5023. ac_status=$?
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); }; }; then
  5026. ac_compiler_gnu=yes
  5027. else
  5028. echo "$as_me: failed program was:" >&5
  5029. sed 's/^/| /' conftest.$ac_ext >&5
  5030. ac_compiler_gnu=no
  5031. fi
  5032. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5033. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5034. fi
  5035. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5036. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5037. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5038. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5039. ac_save_CXXFLAGS=$CXXFLAGS
  5040. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5041. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5042. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5046. ac_cxx_werror_flag=yes
  5047. ac_cv_prog_cxx_g=no
  5048. CXXFLAGS="-g"
  5049. cat >conftest.$ac_ext <<_ACEOF
  5050. /* confdefs.h. */
  5051. _ACEOF
  5052. cat confdefs.h >>conftest.$ac_ext
  5053. cat >>conftest.$ac_ext <<_ACEOF
  5054. /* end confdefs.h. */
  5055. int
  5056. main ()
  5057. {
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. rm -f conftest.$ac_objext
  5063. if { (ac_try="$ac_compile"
  5064. case "(($ac_try" in
  5065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5066. *) ac_try_echo=$ac_try;;
  5067. esac
  5068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5069. (eval "$ac_compile") 2>conftest.er1
  5070. ac_status=$?
  5071. grep -v '^ *+' conftest.er1 >conftest.err
  5072. rm -f conftest.er1
  5073. cat conftest.err >&5
  5074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5075. (exit $ac_status); } &&
  5076. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5077. { (case "(($ac_try" in
  5078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5079. *) ac_try_echo=$ac_try;;
  5080. esac
  5081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5082. (eval "$ac_try") 2>&5
  5083. ac_status=$?
  5084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5085. (exit $ac_status); }; } &&
  5086. { ac_try='test -s conftest.$ac_objext'
  5087. { (case "(($ac_try" in
  5088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5089. *) ac_try_echo=$ac_try;;
  5090. esac
  5091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5092. (eval "$ac_try") 2>&5
  5093. ac_status=$?
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); }; }; then
  5096. ac_cv_prog_cxx_g=yes
  5097. else
  5098. echo "$as_me: failed program was:" >&5
  5099. sed 's/^/| /' conftest.$ac_ext >&5
  5100. CXXFLAGS=""
  5101. cat >conftest.$ac_ext <<_ACEOF
  5102. /* confdefs.h. */
  5103. _ACEOF
  5104. cat confdefs.h >>conftest.$ac_ext
  5105. cat >>conftest.$ac_ext <<_ACEOF
  5106. /* end confdefs.h. */
  5107. int
  5108. main ()
  5109. {
  5110. ;
  5111. return 0;
  5112. }
  5113. _ACEOF
  5114. rm -f conftest.$ac_objext
  5115. if { (ac_try="$ac_compile"
  5116. case "(($ac_try" in
  5117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5118. *) ac_try_echo=$ac_try;;
  5119. esac
  5120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5121. (eval "$ac_compile") 2>conftest.er1
  5122. ac_status=$?
  5123. grep -v '^ *+' conftest.er1 >conftest.err
  5124. rm -f conftest.er1
  5125. cat conftest.err >&5
  5126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. (exit $ac_status); } &&
  5128. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5129. { (case "(($ac_try" in
  5130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5131. *) ac_try_echo=$ac_try;;
  5132. esac
  5133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5134. (eval "$ac_try") 2>&5
  5135. ac_status=$?
  5136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5137. (exit $ac_status); }; } &&
  5138. { ac_try='test -s conftest.$ac_objext'
  5139. { (case "(($ac_try" in
  5140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5141. *) ac_try_echo=$ac_try;;
  5142. esac
  5143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5144. (eval "$ac_try") 2>&5
  5145. ac_status=$?
  5146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5147. (exit $ac_status); }; }; then
  5148. :
  5149. else
  5150. echo "$as_me: failed program was:" >&5
  5151. sed 's/^/| /' conftest.$ac_ext >&5
  5152. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5153. CXXFLAGS="-g"
  5154. cat >conftest.$ac_ext <<_ACEOF
  5155. /* confdefs.h. */
  5156. _ACEOF
  5157. cat confdefs.h >>conftest.$ac_ext
  5158. cat >>conftest.$ac_ext <<_ACEOF
  5159. /* end confdefs.h. */
  5160. int
  5161. main ()
  5162. {
  5163. ;
  5164. return 0;
  5165. }
  5166. _ACEOF
  5167. rm -f conftest.$ac_objext
  5168. if { (ac_try="$ac_compile"
  5169. case "(($ac_try" in
  5170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5171. *) ac_try_echo=$ac_try;;
  5172. esac
  5173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5174. (eval "$ac_compile") 2>conftest.er1
  5175. ac_status=$?
  5176. grep -v '^ *+' conftest.er1 >conftest.err
  5177. rm -f conftest.er1
  5178. cat conftest.err >&5
  5179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); } &&
  5181. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5182. { (case "(($ac_try" in
  5183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5184. *) ac_try_echo=$ac_try;;
  5185. esac
  5186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5187. (eval "$ac_try") 2>&5
  5188. ac_status=$?
  5189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5190. (exit $ac_status); }; } &&
  5191. { ac_try='test -s conftest.$ac_objext'
  5192. { (case "(($ac_try" in
  5193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5194. *) ac_try_echo=$ac_try;;
  5195. esac
  5196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5197. (eval "$ac_try") 2>&5
  5198. ac_status=$?
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); }; }; then
  5201. ac_cv_prog_cxx_g=yes
  5202. else
  5203. echo "$as_me: failed program was:" >&5
  5204. sed 's/^/| /' conftest.$ac_ext >&5
  5205. fi
  5206. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5207. fi
  5208. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5209. fi
  5210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5211. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5212. fi
  5213. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5214. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5215. if test "$ac_test_CXXFLAGS" = set; then
  5216. CXXFLAGS=$ac_save_CXXFLAGS
  5217. elif test $ac_cv_prog_cxx_g = yes; then
  5218. if test "$GXX" = yes; then
  5219. CXXFLAGS="-g -O2"
  5220. else
  5221. CXXFLAGS="-g"
  5222. fi
  5223. else
  5224. if test "$GXX" = yes; then
  5225. CXXFLAGS="-O2"
  5226. else
  5227. CXXFLAGS=
  5228. fi
  5229. fi
  5230. ac_ext=cpp
  5231. ac_cpp='$CXXCPP $CPPFLAGS'
  5232. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5233. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5234. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5235. depcc="$CXX" am_compiler_list=
  5236. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5237. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5238. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5239. echo $ECHO_N "(cached) $ECHO_C" >&6
  5240. else
  5241. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5242. # We make a subdir and do the tests there. Otherwise we can end up
  5243. # making bogus files that we don't know about and never remove. For
  5244. # instance it was reported that on HP-UX the gcc test will end up
  5245. # making a dummy file named `D' -- because `-MD' means `put the output
  5246. # in D'.
  5247. mkdir conftest.dir
  5248. # Copy depcomp to subdir because otherwise we won't find it if we're
  5249. # using a relative directory.
  5250. cp "$am_depcomp" conftest.dir
  5251. cd conftest.dir
  5252. # We will build objects and dependencies in a subdirectory because
  5253. # it helps to detect inapplicable dependency modes. For instance
  5254. # both Tru64's cc and ICC support -MD to output dependencies as a
  5255. # side effect of compilation, but ICC will put the dependencies in
  5256. # the current directory while Tru64 will put them in the object
  5257. # directory.
  5258. mkdir sub
  5259. am_cv_CXX_dependencies_compiler_type=none
  5260. if test "$am_compiler_list" = ""; then
  5261. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5262. fi
  5263. for depmode in $am_compiler_list; do
  5264. # Setup a source with many dependencies, because some compilers
  5265. # like to wrap large dependency lists on column 80 (with \), and
  5266. # we should not choose a depcomp mode which is confused by this.
  5267. #
  5268. # We need to recreate these files for each test, as the compiler may
  5269. # overwrite some of them when testing with obscure command lines.
  5270. # This happens at least with the AIX C compiler.
  5271. : > sub/conftest.c
  5272. for i in 1 2 3 4 5 6; do
  5273. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5274. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5275. # Solaris 8's {/usr,}/bin/sh.
  5276. touch sub/conftst$i.h
  5277. done
  5278. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5279. case $depmode in
  5280. nosideeffect)
  5281. # after this tag, mechanisms are not by side-effect, so they'll
  5282. # only be used when explicitly requested
  5283. if test "x$enable_dependency_tracking" = xyes; then
  5284. continue
  5285. else
  5286. break
  5287. fi
  5288. ;;
  5289. none) break ;;
  5290. esac
  5291. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5292. # mode. It turns out that the SunPro C++ compiler does not properly
  5293. # handle `-M -o', and we need to detect this.
  5294. if depmode=$depmode \
  5295. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5296. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5297. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5298. >/dev/null 2>conftest.err &&
  5299. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5300. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5301. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5302. # icc doesn't choke on unknown options, it will just issue warnings
  5303. # or remarks (even with -Werror). So we grep stderr for any message
  5304. # that says an option was ignored or not supported.
  5305. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5306. # icc: Command line warning: ignoring option '-M'; no argument required
  5307. # The diagnosis changed in icc 8.0:
  5308. # icc: Command line remark: option '-MP' not supported
  5309. if (grep 'ignoring option' conftest.err ||
  5310. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5311. am_cv_CXX_dependencies_compiler_type=$depmode
  5312. break
  5313. fi
  5314. fi
  5315. done
  5316. cd ..
  5317. rm -rf conftest.dir
  5318. else
  5319. am_cv_CXX_dependencies_compiler_type=none
  5320. fi
  5321. fi
  5322. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5323. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5324. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5325. if
  5326. test "x$enable_dependency_tracking" != xno \
  5327. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5328. am__fastdepCXX_TRUE=
  5329. am__fastdepCXX_FALSE='#'
  5330. else
  5331. am__fastdepCXX_TRUE='#'
  5332. am__fastdepCXX_FALSE=
  5333. fi
  5334. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5335. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5336. (test "X$CXX" != "Xg++"))) ; then
  5337. ac_ext=cpp
  5338. ac_cpp='$CXXCPP $CPPFLAGS'
  5339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5342. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5343. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5344. if test -z "$CXXCPP"; then
  5345. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5346. echo $ECHO_N "(cached) $ECHO_C" >&6
  5347. else
  5348. # Double quotes because CXXCPP needs to be expanded
  5349. for CXXCPP in "$CXX -E" "/lib/cpp"
  5350. do
  5351. ac_preproc_ok=false
  5352. for ac_cxx_preproc_warn_flag in '' yes
  5353. do
  5354. # Use a header file that comes with gcc, so configuring glibc
  5355. # with a fresh cross-compiler works.
  5356. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5357. # <limits.h> exists even on freestanding compilers.
  5358. # On the NeXT, cc -E runs the code through the compiler's parser,
  5359. # not just through cpp. "Syntax error" is here to catch this case.
  5360. cat >conftest.$ac_ext <<_ACEOF
  5361. /* confdefs.h. */
  5362. _ACEOF
  5363. cat confdefs.h >>conftest.$ac_ext
  5364. cat >>conftest.$ac_ext <<_ACEOF
  5365. /* end confdefs.h. */
  5366. @%:@ifdef __STDC__
  5367. @%:@ include <limits.h>
  5368. @%:@else
  5369. @%:@ include <assert.h>
  5370. @%:@endif
  5371. Syntax error
  5372. _ACEOF
  5373. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5374. case "(($ac_try" in
  5375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5376. *) ac_try_echo=$ac_try;;
  5377. esac
  5378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5379. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5380. ac_status=$?
  5381. grep -v '^ *+' conftest.er1 >conftest.err
  5382. rm -f conftest.er1
  5383. cat conftest.err >&5
  5384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. (exit $ac_status); } >/dev/null; then
  5386. if test -s conftest.err; then
  5387. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5388. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5389. else
  5390. ac_cpp_err=
  5391. fi
  5392. else
  5393. ac_cpp_err=yes
  5394. fi
  5395. if test -z "$ac_cpp_err"; then
  5396. :
  5397. else
  5398. echo "$as_me: failed program was:" >&5
  5399. sed 's/^/| /' conftest.$ac_ext >&5
  5400. # Broken: fails on valid input.
  5401. continue
  5402. fi
  5403. rm -f conftest.err conftest.$ac_ext
  5404. # OK, works on sane cases. Now check whether nonexistent headers
  5405. # can be detected and how.
  5406. cat >conftest.$ac_ext <<_ACEOF
  5407. /* confdefs.h. */
  5408. _ACEOF
  5409. cat confdefs.h >>conftest.$ac_ext
  5410. cat >>conftest.$ac_ext <<_ACEOF
  5411. /* end confdefs.h. */
  5412. @%:@include <ac_nonexistent.h>
  5413. _ACEOF
  5414. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5415. case "(($ac_try" in
  5416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5417. *) ac_try_echo=$ac_try;;
  5418. esac
  5419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5420. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5421. ac_status=$?
  5422. grep -v '^ *+' conftest.er1 >conftest.err
  5423. rm -f conftest.er1
  5424. cat conftest.err >&5
  5425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5426. (exit $ac_status); } >/dev/null; then
  5427. if test -s conftest.err; then
  5428. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5429. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5430. else
  5431. ac_cpp_err=
  5432. fi
  5433. else
  5434. ac_cpp_err=yes
  5435. fi
  5436. if test -z "$ac_cpp_err"; then
  5437. # Broken: success on invalid input.
  5438. continue
  5439. else
  5440. echo "$as_me: failed program was:" >&5
  5441. sed 's/^/| /' conftest.$ac_ext >&5
  5442. # Passes both tests.
  5443. ac_preproc_ok=:
  5444. break
  5445. fi
  5446. rm -f conftest.err conftest.$ac_ext
  5447. done
  5448. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5449. rm -f conftest.err conftest.$ac_ext
  5450. if $ac_preproc_ok; then
  5451. break
  5452. fi
  5453. done
  5454. ac_cv_prog_CXXCPP=$CXXCPP
  5455. fi
  5456. CXXCPP=$ac_cv_prog_CXXCPP
  5457. else
  5458. ac_cv_prog_CXXCPP=$CXXCPP
  5459. fi
  5460. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5461. echo "${ECHO_T}$CXXCPP" >&6; }
  5462. ac_preproc_ok=false
  5463. for ac_cxx_preproc_warn_flag in '' yes
  5464. do
  5465. # Use a header file that comes with gcc, so configuring glibc
  5466. # with a fresh cross-compiler works.
  5467. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5468. # <limits.h> exists even on freestanding compilers.
  5469. # On the NeXT, cc -E runs the code through the compiler's parser,
  5470. # not just through cpp. "Syntax error" is here to catch this case.
  5471. cat >conftest.$ac_ext <<_ACEOF
  5472. /* confdefs.h. */
  5473. _ACEOF
  5474. cat confdefs.h >>conftest.$ac_ext
  5475. cat >>conftest.$ac_ext <<_ACEOF
  5476. /* end confdefs.h. */
  5477. @%:@ifdef __STDC__
  5478. @%:@ include <limits.h>
  5479. @%:@else
  5480. @%:@ include <assert.h>
  5481. @%:@endif
  5482. Syntax error
  5483. _ACEOF
  5484. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5485. case "(($ac_try" in
  5486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5487. *) ac_try_echo=$ac_try;;
  5488. esac
  5489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5491. ac_status=$?
  5492. grep -v '^ *+' conftest.er1 >conftest.err
  5493. rm -f conftest.er1
  5494. cat conftest.err >&5
  5495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. (exit $ac_status); } >/dev/null; then
  5497. if test -s conftest.err; then
  5498. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5499. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5500. else
  5501. ac_cpp_err=
  5502. fi
  5503. else
  5504. ac_cpp_err=yes
  5505. fi
  5506. if test -z "$ac_cpp_err"; then
  5507. :
  5508. else
  5509. echo "$as_me: failed program was:" >&5
  5510. sed 's/^/| /' conftest.$ac_ext >&5
  5511. # Broken: fails on valid input.
  5512. continue
  5513. fi
  5514. rm -f conftest.err conftest.$ac_ext
  5515. # OK, works on sane cases. Now check whether nonexistent headers
  5516. # can be detected and how.
  5517. cat >conftest.$ac_ext <<_ACEOF
  5518. /* confdefs.h. */
  5519. _ACEOF
  5520. cat confdefs.h >>conftest.$ac_ext
  5521. cat >>conftest.$ac_ext <<_ACEOF
  5522. /* end confdefs.h. */
  5523. @%:@include <ac_nonexistent.h>
  5524. _ACEOF
  5525. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5526. case "(($ac_try" in
  5527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5528. *) ac_try_echo=$ac_try;;
  5529. esac
  5530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5531. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5532. ac_status=$?
  5533. grep -v '^ *+' conftest.er1 >conftest.err
  5534. rm -f conftest.er1
  5535. cat conftest.err >&5
  5536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5537. (exit $ac_status); } >/dev/null; then
  5538. if test -s conftest.err; then
  5539. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5540. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5541. else
  5542. ac_cpp_err=
  5543. fi
  5544. else
  5545. ac_cpp_err=yes
  5546. fi
  5547. if test -z "$ac_cpp_err"; then
  5548. # Broken: success on invalid input.
  5549. continue
  5550. else
  5551. echo "$as_me: failed program was:" >&5
  5552. sed 's/^/| /' conftest.$ac_ext >&5
  5553. # Passes both tests.
  5554. ac_preproc_ok=:
  5555. break
  5556. fi
  5557. rm -f conftest.err conftest.$ac_ext
  5558. done
  5559. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5560. rm -f conftest.err conftest.$ac_ext
  5561. if $ac_preproc_ok; then
  5562. :
  5563. else
  5564. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5565. See \`config.log' for more details." >&5
  5566. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5567. See \`config.log' for more details." >&2;}
  5568. { (exit 1); exit 1; }; }
  5569. fi
  5570. ac_ext=cpp
  5571. ac_cpp='$CXXCPP $CPPFLAGS'
  5572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5575. fi
  5576. ac_ext=f
  5577. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5578. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5579. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5580. if test -n "$ac_tool_prefix"; then
  5581. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  5582. do
  5583. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5584. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5585. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5586. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5587. if test "${ac_cv_prog_F77+set}" = set; then
  5588. echo $ECHO_N "(cached) $ECHO_C" >&6
  5589. else
  5590. if test -n "$F77"; then
  5591. ac_cv_prog_F77="$F77" # Let the user override the test.
  5592. else
  5593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5594. for as_dir in $PATH
  5595. do
  5596. IFS=$as_save_IFS
  5597. test -z "$as_dir" && as_dir=.
  5598. for ac_exec_ext in '' $ac_executable_extensions; do
  5599. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5600. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5601. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5602. break 2
  5603. fi
  5604. done
  5605. done
  5606. IFS=$as_save_IFS
  5607. fi
  5608. fi
  5609. F77=$ac_cv_prog_F77
  5610. if test -n "$F77"; then
  5611. { echo "$as_me:$LINENO: result: $F77" >&5
  5612. echo "${ECHO_T}$F77" >&6; }
  5613. else
  5614. { echo "$as_me:$LINENO: result: no" >&5
  5615. echo "${ECHO_T}no" >&6; }
  5616. fi
  5617. test -n "$F77" && break
  5618. done
  5619. fi
  5620. if test -z "$F77"; then
  5621. ac_ct_F77=$F77
  5622. for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
  5623. do
  5624. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5625. set dummy $ac_prog; ac_word=$2
  5626. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5627. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5628. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5629. echo $ECHO_N "(cached) $ECHO_C" >&6
  5630. else
  5631. if test -n "$ac_ct_F77"; then
  5632. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  5641. ac_cv_prog_ac_ct_F77="$ac_prog"
  5642. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5651. if test -n "$ac_ct_F77"; then
  5652. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5653. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5654. else
  5655. { echo "$as_me:$LINENO: result: no" >&5
  5656. echo "${ECHO_T}no" >&6; }
  5657. fi
  5658. test -n "$ac_ct_F77" && break
  5659. done
  5660. if test "x$ac_ct_F77" = x; then
  5661. F77=""
  5662. else
  5663. case $cross_compiling:$ac_tool_warned in
  5664. yes:)
  5665. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5666. whose name does not start with the host triplet. If you think this
  5667. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5668. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5669. whose name does not start with the host triplet. If you think this
  5670. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5671. ac_tool_warned=yes ;;
  5672. esac
  5673. F77=$ac_ct_F77
  5674. fi
  5675. fi
  5676. # Provide some information about the compiler.
  5677. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5678. ac_compiler=`set X $ac_compile; echo $2`
  5679. { (ac_try="$ac_compiler --version >&5"
  5680. case "(($ac_try" in
  5681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5682. *) ac_try_echo=$ac_try;;
  5683. esac
  5684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5685. (eval "$ac_compiler --version >&5") 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }
  5689. { (ac_try="$ac_compiler -v >&5"
  5690. case "(($ac_try" in
  5691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5692. *) ac_try_echo=$ac_try;;
  5693. esac
  5694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5695. (eval "$ac_compiler -v >&5") 2>&5
  5696. ac_status=$?
  5697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5698. (exit $ac_status); }
  5699. { (ac_try="$ac_compiler -V >&5"
  5700. case "(($ac_try" in
  5701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5702. *) ac_try_echo=$ac_try;;
  5703. esac
  5704. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5705. (eval "$ac_compiler -V >&5") 2>&5
  5706. ac_status=$?
  5707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5708. (exit $ac_status); }
  5709. rm -f a.out
  5710. # If we don't use `.F' as extension, the preprocessor is not run on the
  5711. # input file. (Note that this only needs to work for GNU compilers.)
  5712. ac_save_ext=$ac_ext
  5713. ac_ext=F
  5714. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5715. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5716. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5717. echo $ECHO_N "(cached) $ECHO_C" >&6
  5718. else
  5719. cat >conftest.$ac_ext <<_ACEOF
  5720. program main
  5721. #ifndef __GNUC__
  5722. choke me
  5723. #endif
  5724. end
  5725. _ACEOF
  5726. rm -f conftest.$ac_objext
  5727. if { (ac_try="$ac_compile"
  5728. case "(($ac_try" in
  5729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5730. *) ac_try_echo=$ac_try;;
  5731. esac
  5732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5733. (eval "$ac_compile") 2>conftest.er1
  5734. ac_status=$?
  5735. grep -v '^ *+' conftest.er1 >conftest.err
  5736. rm -f conftest.er1
  5737. cat conftest.err >&5
  5738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5739. (exit $ac_status); } &&
  5740. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  5741. { (case "(($ac_try" in
  5742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5743. *) ac_try_echo=$ac_try;;
  5744. esac
  5745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5746. (eval "$ac_try") 2>&5
  5747. ac_status=$?
  5748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. (exit $ac_status); }; } &&
  5750. { ac_try='test -s conftest.$ac_objext'
  5751. { (case "(($ac_try" in
  5752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5753. *) ac_try_echo=$ac_try;;
  5754. esac
  5755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5756. (eval "$ac_try") 2>&5
  5757. ac_status=$?
  5758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5759. (exit $ac_status); }; }; then
  5760. ac_compiler_gnu=yes
  5761. else
  5762. echo "$as_me: failed program was:" >&5
  5763. sed 's/^/| /' conftest.$ac_ext >&5
  5764. ac_compiler_gnu=no
  5765. fi
  5766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5767. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5768. fi
  5769. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5770. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5771. ac_ext=$ac_save_ext
  5772. ac_test_FFLAGS=${FFLAGS+set}
  5773. ac_save_FFLAGS=$FFLAGS
  5774. FFLAGS=
  5775. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5776. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5777. if test "${ac_cv_prog_f77_g+set}" = set; then
  5778. echo $ECHO_N "(cached) $ECHO_C" >&6
  5779. else
  5780. FFLAGS=-g
  5781. cat >conftest.$ac_ext <<_ACEOF
  5782. program main
  5783. end
  5784. _ACEOF
  5785. rm -f conftest.$ac_objext
  5786. if { (ac_try="$ac_compile"
  5787. case "(($ac_try" in
  5788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5789. *) ac_try_echo=$ac_try;;
  5790. esac
  5791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5792. (eval "$ac_compile") 2>conftest.er1
  5793. ac_status=$?
  5794. grep -v '^ *+' conftest.er1 >conftest.err
  5795. rm -f conftest.er1
  5796. cat conftest.err >&5
  5797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5798. (exit $ac_status); } &&
  5799. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  5800. { (case "(($ac_try" in
  5801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5802. *) ac_try_echo=$ac_try;;
  5803. esac
  5804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5805. (eval "$ac_try") 2>&5
  5806. ac_status=$?
  5807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5808. (exit $ac_status); }; } &&
  5809. { ac_try='test -s conftest.$ac_objext'
  5810. { (case "(($ac_try" in
  5811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5812. *) ac_try_echo=$ac_try;;
  5813. esac
  5814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5815. (eval "$ac_try") 2>&5
  5816. ac_status=$?
  5817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5818. (exit $ac_status); }; }; then
  5819. ac_cv_prog_f77_g=yes
  5820. else
  5821. echo "$as_me: failed program was:" >&5
  5822. sed 's/^/| /' conftest.$ac_ext >&5
  5823. ac_cv_prog_f77_g=no
  5824. fi
  5825. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5826. fi
  5827. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5828. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5829. if test "$ac_test_FFLAGS" = set; then
  5830. FFLAGS=$ac_save_FFLAGS
  5831. elif test $ac_cv_prog_f77_g = yes; then
  5832. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5833. FFLAGS="-g -O2"
  5834. else
  5835. FFLAGS="-g"
  5836. fi
  5837. else
  5838. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5839. FFLAGS="-O2"
  5840. else
  5841. FFLAGS=
  5842. fi
  5843. fi
  5844. G77=`test $ac_compiler_gnu = yes && echo yes`
  5845. ac_ext=c
  5846. ac_cpp='$CPP $CPPFLAGS'
  5847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5850. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5851. # find the maximum length of command line arguments
  5852. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5853. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5854. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5855. echo $ECHO_N "(cached) $ECHO_C" >&6
  5856. else
  5857. i=0
  5858. teststring="ABCD"
  5859. case $build_os in
  5860. msdosdjgpp*)
  5861. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5862. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5863. # during glob expansion). Even if it were fixed, the result of this
  5864. # check would be larger than it should be.
  5865. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5866. ;;
  5867. gnu*)
  5868. # Under GNU Hurd, this test is not required because there is
  5869. # no limit to the length of command line arguments.
  5870. # Libtool will interpret -1 as no limit whatsoever
  5871. lt_cv_sys_max_cmd_len=-1;
  5872. ;;
  5873. cygwin* | mingw*)
  5874. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5875. # about 5 minutes as the teststring grows exponentially.
  5876. # Worse, since 9x/ME are not pre-emptively multitasking,
  5877. # you end up with a "frozen" computer, even though with patience
  5878. # the test eventually succeeds (with a max line length of 256k).
  5879. # Instead, let's just punt: use the minimum linelength reported by
  5880. # all of the supported platforms: 8192 (on NT/2K/XP).
  5881. lt_cv_sys_max_cmd_len=8192;
  5882. ;;
  5883. amigaos*)
  5884. # On AmigaOS with pdksh, this test takes hours, literally.
  5885. # So we just punt and use a minimum line length of 8192.
  5886. lt_cv_sys_max_cmd_len=8192;
  5887. ;;
  5888. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5889. # This has been around since 386BSD, at least. Likely further.
  5890. if test -x /sbin/sysctl; then
  5891. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5892. elif test -x /usr/sbin/sysctl; then
  5893. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5894. else
  5895. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5896. fi
  5897. # And add a safety zone
  5898. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5899. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5900. ;;
  5901. interix*)
  5902. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5903. lt_cv_sys_max_cmd_len=196608
  5904. ;;
  5905. osf*)
  5906. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5907. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5908. # nice to cause kernel panics so lets avoid the loop below.
  5909. # First set a reasonable default.
  5910. lt_cv_sys_max_cmd_len=16384
  5911. #
  5912. if test -x /sbin/sysconfig; then
  5913. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5914. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5915. esac
  5916. fi
  5917. ;;
  5918. sco3.2v5*)
  5919. lt_cv_sys_max_cmd_len=102400
  5920. ;;
  5921. sysv5* | sco5v6* | sysv4.2uw2*)
  5922. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5923. if test -n "$kargmax"; then
  5924. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5925. else
  5926. lt_cv_sys_max_cmd_len=32768
  5927. fi
  5928. ;;
  5929. *)
  5930. # If test is not a shell built-in, we'll probably end up computing a
  5931. # maximum length that is only half of the actual maximum length, but
  5932. # we can't tell.
  5933. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5934. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5935. = "XX$teststring") >/dev/null 2>&1 &&
  5936. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5937. lt_cv_sys_max_cmd_len=$new_result &&
  5938. test $i != 17 # 1/2 MB should be enough
  5939. do
  5940. i=`expr $i + 1`
  5941. teststring=$teststring$teststring
  5942. done
  5943. teststring=
  5944. # Add a significant safety factor because C++ compilers can tack on massive
  5945. # amounts of additional arguments before passing them to the linker.
  5946. # It appears as though 1/2 is a usable value.
  5947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5948. ;;
  5949. esac
  5950. fi
  5951. if test -n $lt_cv_sys_max_cmd_len ; then
  5952. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5953. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5954. else
  5955. { echo "$as_me:$LINENO: result: none" >&5
  5956. echo "${ECHO_T}none" >&6; }
  5957. fi
  5958. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5959. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5960. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5961. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5962. echo $ECHO_N "(cached) $ECHO_C" >&6
  5963. else
  5964. # These are sane defaults that work on at least a few old systems.
  5965. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5966. # Character class describing NM global symbol codes.
  5967. symcode='[BCDEGRST]'
  5968. # Regexp to match symbols that can be accessed directly from C.
  5969. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5970. # Transform an extracted symbol line into a proper C declaration
  5971. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5972. # Transform an extracted symbol line into symbol name and symbol address
  5973. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5974. # Define system-specific variables.
  5975. case $host_os in
  5976. aix*)
  5977. symcode='[BCDT]'
  5978. ;;
  5979. cygwin* | mingw* | pw32*)
  5980. symcode='[ABCDGISTW]'
  5981. ;;
  5982. hpux*) # Its linker distinguishes data from code symbols
  5983. if test "$host_cpu" = ia64; then
  5984. symcode='[ABCDEGRST]'
  5985. fi
  5986. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5987. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5988. ;;
  5989. linux* | k*bsd*-gnu)
  5990. if test "$host_cpu" = ia64; then
  5991. symcode='[ABCDGIRSTW]'
  5992. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5993. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5994. fi
  5995. ;;
  5996. irix* | nonstopux*)
  5997. symcode='[BCDEGRST]'
  5998. ;;
  5999. osf*)
  6000. symcode='[BCDEGQRST]'
  6001. ;;
  6002. solaris*)
  6003. symcode='[BDRT]'
  6004. ;;
  6005. sco3.2v5*)
  6006. symcode='[DT]'
  6007. ;;
  6008. sysv4.2uw2*)
  6009. symcode='[DT]'
  6010. ;;
  6011. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6012. symcode='[ABDT]'
  6013. ;;
  6014. sysv4)
  6015. symcode='[DFNSTU]'
  6016. ;;
  6017. esac
  6018. # Handle CRLF in mingw tool chain
  6019. opt_cr=
  6020. case $build_os in
  6021. mingw*)
  6022. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6023. ;;
  6024. esac
  6025. # If we're using GNU nm, then use its standard symbol codes.
  6026. case `$NM -V 2>&1` in
  6027. *GNU* | *'with BFD'*)
  6028. symcode='[ABCDGIRSTW]' ;;
  6029. esac
  6030. # Try without a prefix undercore, then with it.
  6031. for ac_symprfx in "" "_"; do
  6032. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6033. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6034. # Write the raw and C identifiers.
  6035. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6036. # Check to see that the pipe works correctly.
  6037. pipe_works=no
  6038. rm -f conftest*
  6039. cat > conftest.$ac_ext <<EOF
  6040. #ifdef __cplusplus
  6041. extern "C" {
  6042. #endif
  6043. char nm_test_var;
  6044. void nm_test_func(){}
  6045. #ifdef __cplusplus
  6046. }
  6047. #endif
  6048. int main(){nm_test_var='a';nm_test_func();return(0);}
  6049. EOF
  6050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6051. (eval $ac_compile) 2>&5
  6052. ac_status=$?
  6053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6054. (exit $ac_status); }; then
  6055. # Now try to grab the symbols.
  6056. nlist=conftest.nm
  6057. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6058. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6059. ac_status=$?
  6060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6061. (exit $ac_status); } && test -s "$nlist"; then
  6062. # Try sorting and uniquifying the output.
  6063. if sort "$nlist" | uniq > "$nlist"T; then
  6064. mv -f "$nlist"T "$nlist"
  6065. else
  6066. rm -f "$nlist"T
  6067. fi
  6068. # Make sure that we snagged all the symbols we need.
  6069. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6070. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6071. cat <<EOF > conftest.$ac_ext
  6072. #ifdef __cplusplus
  6073. extern "C" {
  6074. #endif
  6075. EOF
  6076. # Now generate the symbol file.
  6077. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6078. cat <<EOF >> conftest.$ac_ext
  6079. #if defined (__STDC__) && __STDC__
  6080. # define lt_ptr_t void *
  6081. #else
  6082. # define lt_ptr_t char *
  6083. # define const
  6084. #endif
  6085. /* The mapping between symbol names and symbols. */
  6086. const struct {
  6087. const char *name;
  6088. lt_ptr_t address;
  6089. }
  6090. lt_preloaded_symbols[] =
  6091. {
  6092. EOF
  6093. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6094. cat <<\EOF >> conftest.$ac_ext
  6095. {0, (lt_ptr_t) 0}
  6096. };
  6097. #ifdef __cplusplus
  6098. }
  6099. #endif
  6100. EOF
  6101. # Now try linking the two files.
  6102. mv conftest.$ac_objext conftstm.$ac_objext
  6103. lt_save_LIBS="$LIBS"
  6104. lt_save_CFLAGS="$CFLAGS"
  6105. LIBS="conftstm.$ac_objext"
  6106. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6107. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6108. (eval $ac_link) 2>&5
  6109. ac_status=$?
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6112. pipe_works=yes
  6113. fi
  6114. LIBS="$lt_save_LIBS"
  6115. CFLAGS="$lt_save_CFLAGS"
  6116. else
  6117. echo "cannot find nm_test_func in $nlist" >&5
  6118. fi
  6119. else
  6120. echo "cannot find nm_test_var in $nlist" >&5
  6121. fi
  6122. else
  6123. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6124. fi
  6125. else
  6126. echo "$progname: failed program was:" >&5
  6127. cat conftest.$ac_ext >&5
  6128. fi
  6129. rm -f conftest* conftst*
  6130. # Do not use the global_symbol_pipe unless it works.
  6131. if test "$pipe_works" = yes; then
  6132. break
  6133. else
  6134. lt_cv_sys_global_symbol_pipe=
  6135. fi
  6136. done
  6137. fi
  6138. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6139. lt_cv_sys_global_symbol_to_cdecl=
  6140. fi
  6141. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6142. { echo "$as_me:$LINENO: result: failed" >&5
  6143. echo "${ECHO_T}failed" >&6; }
  6144. else
  6145. { echo "$as_me:$LINENO: result: ok" >&5
  6146. echo "${ECHO_T}ok" >&6; }
  6147. fi
  6148. { echo "$as_me:$LINENO: checking for objdir" >&5
  6149. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6150. if test "${lt_cv_objdir+set}" = set; then
  6151. echo $ECHO_N "(cached) $ECHO_C" >&6
  6152. else
  6153. rm -f .libs 2>/dev/null
  6154. mkdir .libs 2>/dev/null
  6155. if test -d .libs; then
  6156. lt_cv_objdir=.libs
  6157. else
  6158. # MS-DOS does not allow filenames that begin with a dot.
  6159. lt_cv_objdir=_libs
  6160. fi
  6161. rmdir .libs 2>/dev/null
  6162. fi
  6163. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6164. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6165. objdir=$lt_cv_objdir
  6166. case $host_os in
  6167. aix3*)
  6168. # AIX sometimes has problems with the GCC collect2 program. For some
  6169. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6170. # vanish in a puff of smoke.
  6171. if test "X${COLLECT_NAMES+set}" != Xset; then
  6172. COLLECT_NAMES=
  6173. export COLLECT_NAMES
  6174. fi
  6175. ;;
  6176. esac
  6177. # Sed substitution that helps us do robust quoting. It backslashifies
  6178. # metacharacters that are still active within double-quoted strings.
  6179. Xsed='sed -e 1s/^X//'
  6180. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6181. # Same as above, but do not quote variable references.
  6182. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6183. # Sed substitution to delay expansion of an escaped shell variable in a
  6184. # double_quote_subst'ed string.
  6185. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6186. # Sed substitution to avoid accidental globbing in evaled expressions
  6187. no_glob_subst='s/\*/\\\*/g'
  6188. # Constants:
  6189. rm="rm -f"
  6190. # Global variables:
  6191. default_ofile=libtool
  6192. can_build_shared=yes
  6193. # All known linkers require a `.a' archive for static linking (except MSVC,
  6194. # which needs '.lib').
  6195. libext=a
  6196. ltmain="$ac_aux_dir/ltmain.sh"
  6197. ofile="$default_ofile"
  6198. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6199. if test -n "$ac_tool_prefix"; then
  6200. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6201. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6202. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6203. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6204. if test "${ac_cv_prog_AR+set}" = set; then
  6205. echo $ECHO_N "(cached) $ECHO_C" >&6
  6206. else
  6207. if test -n "$AR"; then
  6208. ac_cv_prog_AR="$AR" # Let the user override the test.
  6209. else
  6210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6211. for as_dir in $PATH
  6212. do
  6213. IFS=$as_save_IFS
  6214. test -z "$as_dir" && as_dir=.
  6215. for ac_exec_ext in '' $ac_executable_extensions; do
  6216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6217. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6218. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6219. break 2
  6220. fi
  6221. done
  6222. done
  6223. IFS=$as_save_IFS
  6224. fi
  6225. fi
  6226. AR=$ac_cv_prog_AR
  6227. if test -n "$AR"; then
  6228. { echo "$as_me:$LINENO: result: $AR" >&5
  6229. echo "${ECHO_T}$AR" >&6; }
  6230. else
  6231. { echo "$as_me:$LINENO: result: no" >&5
  6232. echo "${ECHO_T}no" >&6; }
  6233. fi
  6234. fi
  6235. if test -z "$ac_cv_prog_AR"; then
  6236. ac_ct_AR=$AR
  6237. # Extract the first word of "ar", so it can be a program name with args.
  6238. set dummy ar; ac_word=$2
  6239. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6241. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6242. echo $ECHO_N "(cached) $ECHO_C" >&6
  6243. else
  6244. if test -n "$ac_ct_AR"; then
  6245. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6246. else
  6247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6248. for as_dir in $PATH
  6249. do
  6250. IFS=$as_save_IFS
  6251. test -z "$as_dir" && as_dir=.
  6252. for ac_exec_ext in '' $ac_executable_extensions; do
  6253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6254. ac_cv_prog_ac_ct_AR="ar"
  6255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6256. break 2
  6257. fi
  6258. done
  6259. done
  6260. IFS=$as_save_IFS
  6261. fi
  6262. fi
  6263. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6264. if test -n "$ac_ct_AR"; then
  6265. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6266. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6267. else
  6268. { echo "$as_me:$LINENO: result: no" >&5
  6269. echo "${ECHO_T}no" >&6; }
  6270. fi
  6271. if test "x$ac_ct_AR" = x; then
  6272. AR="false"
  6273. else
  6274. case $cross_compiling:$ac_tool_warned in
  6275. yes:)
  6276. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6277. whose name does not start with the host triplet. If you think this
  6278. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6279. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6280. whose name does not start with the host triplet. If you think this
  6281. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6282. ac_tool_warned=yes ;;
  6283. esac
  6284. AR=$ac_ct_AR
  6285. fi
  6286. else
  6287. AR="$ac_cv_prog_AR"
  6288. fi
  6289. if test -n "$ac_tool_prefix"; then
  6290. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6291. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6294. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6295. echo $ECHO_N "(cached) $ECHO_C" >&6
  6296. else
  6297. if test -n "$RANLIB"; then
  6298. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6299. else
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6307. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. fi
  6315. fi
  6316. RANLIB=$ac_cv_prog_RANLIB
  6317. if test -n "$RANLIB"; then
  6318. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6319. echo "${ECHO_T}$RANLIB" >&6; }
  6320. else
  6321. { echo "$as_me:$LINENO: result: no" >&5
  6322. echo "${ECHO_T}no" >&6; }
  6323. fi
  6324. fi
  6325. if test -z "$ac_cv_prog_RANLIB"; then
  6326. ac_ct_RANLIB=$RANLIB
  6327. # Extract the first word of "ranlib", so it can be a program name with args.
  6328. set dummy ranlib; ac_word=$2
  6329. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6330. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6331. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6332. echo $ECHO_N "(cached) $ECHO_C" >&6
  6333. else
  6334. if test -n "$ac_ct_RANLIB"; then
  6335. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. test -z "$as_dir" && as_dir=.
  6342. for ac_exec_ext in '' $ac_executable_extensions; do
  6343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6344. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6345. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6346. break 2
  6347. fi
  6348. done
  6349. done
  6350. IFS=$as_save_IFS
  6351. fi
  6352. fi
  6353. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6354. if test -n "$ac_ct_RANLIB"; then
  6355. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6356. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6357. else
  6358. { echo "$as_me:$LINENO: result: no" >&5
  6359. echo "${ECHO_T}no" >&6; }
  6360. fi
  6361. if test "x$ac_ct_RANLIB" = x; then
  6362. RANLIB=":"
  6363. else
  6364. case $cross_compiling:$ac_tool_warned in
  6365. yes:)
  6366. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6367. whose name does not start with the host triplet. If you think this
  6368. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6369. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6370. whose name does not start with the host triplet. If you think this
  6371. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6372. ac_tool_warned=yes ;;
  6373. esac
  6374. RANLIB=$ac_ct_RANLIB
  6375. fi
  6376. else
  6377. RANLIB="$ac_cv_prog_RANLIB"
  6378. fi
  6379. if test -n "$ac_tool_prefix"; then
  6380. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6381. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6382. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6383. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6384. if test "${ac_cv_prog_STRIP+set}" = set; then
  6385. echo $ECHO_N "(cached) $ECHO_C" >&6
  6386. else
  6387. if test -n "$STRIP"; then
  6388. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. STRIP=$ac_cv_prog_STRIP
  6407. if test -n "$STRIP"; then
  6408. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6409. echo "${ECHO_T}$STRIP" >&6; }
  6410. else
  6411. { echo "$as_me:$LINENO: result: no" >&5
  6412. echo "${ECHO_T}no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_STRIP"; then
  6416. ac_ct_STRIP=$STRIP
  6417. # Extract the first word of "strip", so it can be a program name with args.
  6418. set dummy strip; ac_word=$2
  6419. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6420. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6421. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. else
  6424. if test -n "$ac_ct_STRIP"; then
  6425. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  6434. ac_cv_prog_ac_ct_STRIP="strip"
  6435. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6444. if test -n "$ac_ct_STRIP"; then
  6445. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6446. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6447. else
  6448. { echo "$as_me:$LINENO: result: no" >&5
  6449. echo "${ECHO_T}no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_STRIP" = x; then
  6452. STRIP=":"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6457. whose name does not start with the host triplet. If you think this
  6458. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6459. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6460. whose name does not start with the host triplet. If you think this
  6461. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6462. ac_tool_warned=yes ;;
  6463. esac
  6464. STRIP=$ac_ct_STRIP
  6465. fi
  6466. else
  6467. STRIP="$ac_cv_prog_STRIP"
  6468. fi
  6469. old_CC="$CC"
  6470. old_CFLAGS="$CFLAGS"
  6471. # Set sane defaults for various variables
  6472. test -z "$AR" && AR=ar
  6473. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6474. test -z "$AS" && AS=as
  6475. test -z "$CC" && CC=cc
  6476. test -z "$LTCC" && LTCC=$CC
  6477. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6478. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6479. test -z "$LD" && LD=ld
  6480. test -z "$LN_S" && LN_S="ln -s"
  6481. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6482. test -z "$NM" && NM=nm
  6483. test -z "$SED" && SED=sed
  6484. test -z "$OBJDUMP" && OBJDUMP=objdump
  6485. test -z "$RANLIB" && RANLIB=:
  6486. test -z "$STRIP" && STRIP=:
  6487. test -z "$ac_objext" && ac_objext=o
  6488. # Determine commands to create old-style static archives.
  6489. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6490. old_postinstall_cmds='chmod 644 $oldlib'
  6491. old_postuninstall_cmds=
  6492. if test -n "$RANLIB"; then
  6493. case $host_os in
  6494. openbsd*)
  6495. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6496. ;;
  6497. *)
  6498. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6499. ;;
  6500. esac
  6501. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6502. fi
  6503. for cc_temp in $compiler""; do
  6504. case $cc_temp in
  6505. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6506. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6507. \-*) ;;
  6508. *) break;;
  6509. esac
  6510. done
  6511. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6512. # Only perform the check for file, if the check method requires it
  6513. case $deplibs_check_method in
  6514. file_magic*)
  6515. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6516. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6517. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6518. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6519. echo $ECHO_N "(cached) $ECHO_C" >&6
  6520. else
  6521. case $MAGIC_CMD in
  6522. [\\/*] | ?:[\\/]*)
  6523. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6524. ;;
  6525. *)
  6526. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6527. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6528. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6529. for ac_dir in $ac_dummy; do
  6530. IFS="$lt_save_ifs"
  6531. test -z "$ac_dir" && ac_dir=.
  6532. if test -f $ac_dir/${ac_tool_prefix}file; then
  6533. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6534. if test -n "$file_magic_test_file"; then
  6535. case $deplibs_check_method in
  6536. "file_magic "*)
  6537. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6538. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6539. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6540. $EGREP "$file_magic_regex" > /dev/null; then
  6541. :
  6542. else
  6543. cat <<EOF 1>&2
  6544. *** Warning: the command libtool uses to detect shared libraries,
  6545. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6546. *** The result is that libtool may fail to recognize shared libraries
  6547. *** as such. This will affect the creation of libtool libraries that
  6548. *** depend on shared libraries, but programs linked with such libtool
  6549. *** libraries will work regardless of this problem. Nevertheless, you
  6550. *** may want to report the problem to your system manager and/or to
  6551. *** bug-libtool@gnu.org
  6552. EOF
  6553. fi ;;
  6554. esac
  6555. fi
  6556. break
  6557. fi
  6558. done
  6559. IFS="$lt_save_ifs"
  6560. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6561. ;;
  6562. esac
  6563. fi
  6564. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6565. if test -n "$MAGIC_CMD"; then
  6566. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6567. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6568. else
  6569. { echo "$as_me:$LINENO: result: no" >&5
  6570. echo "${ECHO_T}no" >&6; }
  6571. fi
  6572. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6573. if test -n "$ac_tool_prefix"; then
  6574. { echo "$as_me:$LINENO: checking for file" >&5
  6575. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6576. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6577. echo $ECHO_N "(cached) $ECHO_C" >&6
  6578. else
  6579. case $MAGIC_CMD in
  6580. [\\/*] | ?:[\\/]*)
  6581. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6582. ;;
  6583. *)
  6584. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6585. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6586. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6587. for ac_dir in $ac_dummy; do
  6588. IFS="$lt_save_ifs"
  6589. test -z "$ac_dir" && ac_dir=.
  6590. if test -f $ac_dir/file; then
  6591. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6592. if test -n "$file_magic_test_file"; then
  6593. case $deplibs_check_method in
  6594. "file_magic "*)
  6595. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6596. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6597. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6598. $EGREP "$file_magic_regex" > /dev/null; then
  6599. :
  6600. else
  6601. cat <<EOF 1>&2
  6602. *** Warning: the command libtool uses to detect shared libraries,
  6603. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6604. *** The result is that libtool may fail to recognize shared libraries
  6605. *** as such. This will affect the creation of libtool libraries that
  6606. *** depend on shared libraries, but programs linked with such libtool
  6607. *** libraries will work regardless of this problem. Nevertheless, you
  6608. *** may want to report the problem to your system manager and/or to
  6609. *** bug-libtool@gnu.org
  6610. EOF
  6611. fi ;;
  6612. esac
  6613. fi
  6614. break
  6615. fi
  6616. done
  6617. IFS="$lt_save_ifs"
  6618. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6619. ;;
  6620. esac
  6621. fi
  6622. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6623. if test -n "$MAGIC_CMD"; then
  6624. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6625. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6626. else
  6627. { echo "$as_me:$LINENO: result: no" >&5
  6628. echo "${ECHO_T}no" >&6; }
  6629. fi
  6630. else
  6631. MAGIC_CMD=:
  6632. fi
  6633. fi
  6634. fi
  6635. ;;
  6636. esac
  6637. enable_dlopen=no
  6638. enable_win32_dll=no
  6639. # Check whether --enable-libtool-lock was given.
  6640. if test "${enable_libtool_lock+set}" = set; then
  6641. enableval=$enable_libtool_lock;
  6642. fi
  6643. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6644. # Check whether --with-pic was given.
  6645. if test "${with_pic+set}" = set; then
  6646. withval=$with_pic; pic_mode="$withval"
  6647. else
  6648. pic_mode=default
  6649. fi
  6650. test -z "$pic_mode" && pic_mode=default
  6651. # Use C for the default configuration in the libtool script
  6652. tagname=
  6653. lt_save_CC="$CC"
  6654. ac_ext=c
  6655. ac_cpp='$CPP $CPPFLAGS'
  6656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6659. # Source file extension for C test sources.
  6660. ac_ext=c
  6661. # Object file extension for compiled C test sources.
  6662. objext=o
  6663. objext=$objext
  6664. # Code to be used in simple compile tests
  6665. lt_simple_compile_test_code="int some_variable = 0;\n"
  6666. # Code to be used in simple link tests
  6667. lt_simple_link_test_code='int main(){return(0);}\n'
  6668. # If no C compiler was specified, use CC.
  6669. LTCC=${LTCC-"$CC"}
  6670. # If no C compiler flags were specified, use CFLAGS.
  6671. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6672. # Allow CC to be a program name with arguments.
  6673. compiler=$CC
  6674. # save warnings/boilerplate of simple test code
  6675. ac_outfile=conftest.$ac_objext
  6676. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6677. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6678. _lt_compiler_boilerplate=`cat conftest.err`
  6679. $rm conftest*
  6680. ac_outfile=conftest.$ac_objext
  6681. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6682. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6683. _lt_linker_boilerplate=`cat conftest.err`
  6684. $rm conftest*
  6685. ## CAVEAT EMPTOR:
  6686. ## There is no encapsulation within the following macros, do not change
  6687. ## the running order or otherwise move them around unless you know exactly
  6688. ## what you are doing...
  6689. lt_prog_compiler_no_builtin_flag=
  6690. if test "$GCC" = yes; then
  6691. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6692. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6693. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6694. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6695. echo $ECHO_N "(cached) $ECHO_C" >&6
  6696. else
  6697. lt_cv_prog_compiler_rtti_exceptions=no
  6698. ac_outfile=conftest.$ac_objext
  6699. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6700. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6701. # Insert the option either (1) after the last *FLAGS variable, or
  6702. # (2) before a word containing "conftest.", or (3) at the end.
  6703. # Note that $ac_compile itself does not contain backslashes and begins
  6704. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6705. # The option is referenced via a variable to avoid confusing sed.
  6706. lt_compile=`echo "$ac_compile" | $SED \
  6707. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6708. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6709. -e 's:$: $lt_compiler_flag:'`
  6710. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  6711. (eval "$lt_compile" 2>conftest.err)
  6712. ac_status=$?
  6713. cat conftest.err >&5
  6714. echo "$as_me:__oline__: \$? = $ac_status" >&5
  6715. if (exit $ac_status) && test -s "$ac_outfile"; then
  6716. # The compiler can only warn and ignore the option if not recognized
  6717. # So say no if there are warnings other than the usual output.
  6718. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6719. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6720. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6721. lt_cv_prog_compiler_rtti_exceptions=yes
  6722. fi
  6723. fi
  6724. $rm conftest*
  6725. fi
  6726. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6727. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6728. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6729. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6730. else
  6731. :
  6732. fi
  6733. fi
  6734. lt_prog_compiler_wl=
  6735. lt_prog_compiler_pic=
  6736. lt_prog_compiler_static=
  6737. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6738. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6739. if test "$GCC" = yes; then
  6740. lt_prog_compiler_wl='-Wl,'
  6741. lt_prog_compiler_static='-static'
  6742. case $host_os in
  6743. aix*)
  6744. # All AIX code is PIC.
  6745. if test "$host_cpu" = ia64; then
  6746. # AIX 5 now supports IA64 processor
  6747. lt_prog_compiler_static='-Bstatic'
  6748. fi
  6749. ;;
  6750. amigaos*)
  6751. # FIXME: we need at least 68020 code to build shared libraries, but
  6752. # adding the `-m68020' flag to GCC prevents building anything better,
  6753. # like `-m68040'.
  6754. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6755. ;;
  6756. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6757. # PIC is the default for these OSes.
  6758. ;;
  6759. mingw* | pw32* | os2*)
  6760. # This hack is so that the source file can tell whether it is being
  6761. # built for inclusion in a dll (and should export symbols for example).
  6762. lt_prog_compiler_pic='-DDLL_EXPORT'
  6763. ;;
  6764. darwin* | rhapsody*)
  6765. # PIC is the default on this platform
  6766. # Common symbols not allowed in MH_DYLIB files
  6767. lt_prog_compiler_pic='-fno-common'
  6768. ;;
  6769. interix3*)
  6770. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6771. # Instead, we relocate shared libraries at runtime.
  6772. ;;
  6773. msdosdjgpp*)
  6774. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6775. # on systems that don't support them.
  6776. lt_prog_compiler_can_build_shared=no
  6777. enable_shared=no
  6778. ;;
  6779. sysv4*MP*)
  6780. if test -d /usr/nec; then
  6781. lt_prog_compiler_pic=-Kconform_pic
  6782. fi
  6783. ;;
  6784. hpux*)
  6785. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6786. # not for PA HP-UX.
  6787. case $host_cpu in
  6788. hppa*64*|ia64*)
  6789. # +Z the default
  6790. ;;
  6791. *)
  6792. lt_prog_compiler_pic='-fPIC'
  6793. ;;
  6794. esac
  6795. ;;
  6796. *)
  6797. lt_prog_compiler_pic='-fPIC'
  6798. ;;
  6799. esac
  6800. else
  6801. # PORTME Check for flag to pass linker flags through the system compiler.
  6802. case $host_os in
  6803. aix*)
  6804. lt_prog_compiler_wl='-Wl,'
  6805. if test "$host_cpu" = ia64; then
  6806. # AIX 5 now supports IA64 processor
  6807. lt_prog_compiler_static='-Bstatic'
  6808. else
  6809. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6810. fi
  6811. ;;
  6812. darwin*)
  6813. # PIC is the default on this platform
  6814. # Common symbols not allowed in MH_DYLIB files
  6815. case $cc_basename in
  6816. xlc*)
  6817. lt_prog_compiler_pic='-qnocommon'
  6818. lt_prog_compiler_wl='-Wl,'
  6819. ;;
  6820. esac
  6821. ;;
  6822. mingw* | pw32* | os2*)
  6823. # This hack is so that the source file can tell whether it is being
  6824. # built for inclusion in a dll (and should export symbols for example).
  6825. lt_prog_compiler_pic='-DDLL_EXPORT'
  6826. ;;
  6827. hpux9* | hpux10* | hpux11*)
  6828. lt_prog_compiler_wl='-Wl,'
  6829. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6830. # not for PA HP-UX.
  6831. case $host_cpu in
  6832. hppa*64*|ia64*)
  6833. # +Z the default
  6834. ;;
  6835. *)
  6836. lt_prog_compiler_pic='+Z'
  6837. ;;
  6838. esac
  6839. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6840. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6841. ;;
  6842. irix5* | irix6* | nonstopux*)
  6843. lt_prog_compiler_wl='-Wl,'
  6844. # PIC (with -KPIC) is the default.
  6845. lt_prog_compiler_static='-non_shared'
  6846. ;;
  6847. newsos6)
  6848. lt_prog_compiler_pic='-KPIC'
  6849. lt_prog_compiler_static='-Bstatic'
  6850. ;;
  6851. linux* | k*bsd*-gnu)
  6852. case $cc_basename in
  6853. icc* | ecc*)
  6854. lt_prog_compiler_wl='-Wl,'
  6855. lt_prog_compiler_pic='-KPIC'
  6856. lt_prog_compiler_static='-static'
  6857. ;;
  6858. pgcc* | pgf77* | pgf90* | pgf95*)
  6859. # Portland Group compilers (*not* the Pentium gcc compiler,
  6860. # which looks to be a dead project)
  6861. lt_prog_compiler_wl='-Wl,'
  6862. lt_prog_compiler_pic='-fpic'
  6863. lt_prog_compiler_static='-Bstatic'
  6864. ;;
  6865. ccc*)
  6866. lt_prog_compiler_wl='-Wl,'
  6867. # All Alpha code is PIC.
  6868. lt_prog_compiler_static='-non_shared'
  6869. ;;
  6870. esac
  6871. ;;
  6872. osf3* | osf4* | osf5*)
  6873. lt_prog_compiler_wl='-Wl,'
  6874. # All OSF/1 code is PIC.
  6875. lt_prog_compiler_static='-non_shared'
  6876. ;;
  6877. solaris*)
  6878. lt_prog_compiler_pic='-KPIC'
  6879. lt_prog_compiler_static='-Bstatic'
  6880. case $cc_basename in
  6881. f77* | f90* | f95*)
  6882. lt_prog_compiler_wl='-Qoption ld ';;
  6883. *)
  6884. lt_prog_compiler_wl='-Wl,';;
  6885. esac
  6886. ;;
  6887. sunos4*)
  6888. lt_prog_compiler_wl='-Qoption ld '
  6889. lt_prog_compiler_pic='-PIC'
  6890. lt_prog_compiler_static='-Bstatic'
  6891. ;;
  6892. sysv4 | sysv4.2uw2* | sysv4.3*)
  6893. lt_prog_compiler_wl='-Wl,'
  6894. lt_prog_compiler_pic='-KPIC'
  6895. lt_prog_compiler_static='-Bstatic'
  6896. ;;
  6897. sysv4*MP*)
  6898. if test -d /usr/nec ;then
  6899. lt_prog_compiler_pic='-Kconform_pic'
  6900. lt_prog_compiler_static='-Bstatic'
  6901. fi
  6902. ;;
  6903. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6904. lt_prog_compiler_wl='-Wl,'
  6905. lt_prog_compiler_pic='-KPIC'
  6906. lt_prog_compiler_static='-Bstatic'
  6907. ;;
  6908. unicos*)
  6909. lt_prog_compiler_wl='-Wl,'
  6910. lt_prog_compiler_can_build_shared=no
  6911. ;;
  6912. uts4*)
  6913. lt_prog_compiler_pic='-pic'
  6914. lt_prog_compiler_static='-Bstatic'
  6915. ;;
  6916. *)
  6917. lt_prog_compiler_can_build_shared=no
  6918. ;;
  6919. esac
  6920. fi
  6921. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6922. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6923. #
  6924. # Check to make sure the PIC flag actually works.
  6925. #
  6926. if test -n "$lt_prog_compiler_pic"; then
  6927. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6928. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6929. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6930. echo $ECHO_N "(cached) $ECHO_C" >&6
  6931. else
  6932. lt_prog_compiler_pic_works=no
  6933. ac_outfile=conftest.$ac_objext
  6934. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6935. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6936. # Insert the option either (1) after the last *FLAGS variable, or
  6937. # (2) before a word containing "conftest.", or (3) at the end.
  6938. # Note that $ac_compile itself does not contain backslashes and begins
  6939. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6940. # The option is referenced via a variable to avoid confusing sed.
  6941. lt_compile=`echo "$ac_compile" | $SED \
  6942. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6943. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6944. -e 's:$: $lt_compiler_flag:'`
  6945. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  6946. (eval "$lt_compile" 2>conftest.err)
  6947. ac_status=$?
  6948. cat conftest.err >&5
  6949. echo "$as_me:__oline__: \$? = $ac_status" >&5
  6950. if (exit $ac_status) && test -s "$ac_outfile"; then
  6951. # The compiler can only warn and ignore the option if not recognized
  6952. # So say no if there are warnings other than the usual output.
  6953. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6954. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6955. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6956. lt_prog_compiler_pic_works=yes
  6957. fi
  6958. fi
  6959. $rm conftest*
  6960. fi
  6961. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6962. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6963. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6964. case $lt_prog_compiler_pic in
  6965. "" | " "*) ;;
  6966. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6967. esac
  6968. else
  6969. lt_prog_compiler_pic=
  6970. lt_prog_compiler_can_build_shared=no
  6971. fi
  6972. fi
  6973. case $host_os in
  6974. # For platforms which do not support PIC, -DPIC is meaningless:
  6975. *djgpp*)
  6976. lt_prog_compiler_pic=
  6977. ;;
  6978. *)
  6979. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6980. ;;
  6981. esac
  6982. #
  6983. # Check to make sure the static flag actually works.
  6984. #
  6985. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6986. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6987. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6988. if test "${lt_prog_compiler_static_works+set}" = set; then
  6989. echo $ECHO_N "(cached) $ECHO_C" >&6
  6990. else
  6991. lt_prog_compiler_static_works=no
  6992. save_LDFLAGS="$LDFLAGS"
  6993. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6994. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6995. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6996. # The linker can only warn and ignore the option if not recognized
  6997. # So say no if there are warnings
  6998. if test -s conftest.err; then
  6999. # Append any errors to the config.log.
  7000. cat conftest.err 1>&5
  7001. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7002. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7003. if diff conftest.exp conftest.er2 >/dev/null; then
  7004. lt_prog_compiler_static_works=yes
  7005. fi
  7006. else
  7007. lt_prog_compiler_static_works=yes
  7008. fi
  7009. fi
  7010. $rm conftest*
  7011. LDFLAGS="$save_LDFLAGS"
  7012. fi
  7013. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7014. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  7015. if test x"$lt_prog_compiler_static_works" = xyes; then
  7016. :
  7017. else
  7018. lt_prog_compiler_static=
  7019. fi
  7020. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7021. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  7022. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7023. echo $ECHO_N "(cached) $ECHO_C" >&6
  7024. else
  7025. lt_cv_prog_compiler_c_o=no
  7026. $rm -r conftest 2>/dev/null
  7027. mkdir conftest
  7028. cd conftest
  7029. mkdir out
  7030. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7031. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7032. # Insert the option either (1) after the last *FLAGS variable, or
  7033. # (2) before a word containing "conftest.", or (3) at the end.
  7034. # Note that $ac_compile itself does not contain backslashes and begins
  7035. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7036. lt_compile=`echo "$ac_compile" | $SED \
  7037. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7038. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7039. -e 's:$: $lt_compiler_flag:'`
  7040. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  7041. (eval "$lt_compile" 2>out/conftest.err)
  7042. ac_status=$?
  7043. cat out/conftest.err >&5
  7044. echo "$as_me:__oline__: \$? = $ac_status" >&5
  7045. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7046. then
  7047. # The compiler can only warn and ignore the option if not recognized
  7048. # So say no if there are warnings
  7049. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7050. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7051. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7052. lt_cv_prog_compiler_c_o=yes
  7053. fi
  7054. fi
  7055. chmod u+w . 2>&5
  7056. $rm conftest*
  7057. # SGI C++ compiler will create directory out/ii_files/ for
  7058. # template instantiation
  7059. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7060. $rm out/* && rmdir out
  7061. cd ..
  7062. rmdir conftest
  7063. $rm conftest*
  7064. fi
  7065. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7066. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7067. hard_links="nottested"
  7068. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7069. # do not overwrite the value of need_locks provided by the user
  7070. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7071. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7072. hard_links=yes
  7073. $rm conftest*
  7074. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7075. touch conftest.a
  7076. ln conftest.a conftest.b 2>&5 || hard_links=no
  7077. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7078. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7079. echo "${ECHO_T}$hard_links" >&6; }
  7080. if test "$hard_links" = no; then
  7081. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7082. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7083. need_locks=warn
  7084. fi
  7085. else
  7086. need_locks=no
  7087. fi
  7088. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7089. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7090. runpath_var=
  7091. allow_undefined_flag=
  7092. enable_shared_with_static_runtimes=no
  7093. archive_cmds=
  7094. archive_expsym_cmds=
  7095. old_archive_From_new_cmds=
  7096. old_archive_from_expsyms_cmds=
  7097. export_dynamic_flag_spec=
  7098. whole_archive_flag_spec=
  7099. thread_safe_flag_spec=
  7100. hardcode_libdir_flag_spec=
  7101. hardcode_libdir_flag_spec_ld=
  7102. hardcode_libdir_separator=
  7103. hardcode_direct=no
  7104. hardcode_minus_L=no
  7105. hardcode_shlibpath_var=unsupported
  7106. link_all_deplibs=unknown
  7107. hardcode_automatic=no
  7108. module_cmds=
  7109. module_expsym_cmds=
  7110. always_export_symbols=no
  7111. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7112. # include_expsyms should be a list of space-separated symbols to be *always*
  7113. # included in the symbol list
  7114. include_expsyms=
  7115. # exclude_expsyms can be an extended regexp of symbols to exclude
  7116. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7117. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7118. # as well as any symbol that contains `d'.
  7119. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7120. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7121. # platforms (ab)use it in PIC code, but their linkers get confused if
  7122. # the symbol is explicitly referenced. Since portable code cannot
  7123. # rely on this symbol name, it's probably fine to never include it in
  7124. # preloaded symbol tables.
  7125. extract_expsyms_cmds=
  7126. # Just being paranoid about ensuring that cc_basename is set.
  7127. for cc_temp in $compiler""; do
  7128. case $cc_temp in
  7129. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7130. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7131. \-*) ;;
  7132. *) break;;
  7133. esac
  7134. done
  7135. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7136. case $host_os in
  7137. cygwin* | mingw* | pw32*)
  7138. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7139. # When not using gcc, we currently assume that we are using
  7140. # Microsoft Visual C++.
  7141. if test "$GCC" != yes; then
  7142. with_gnu_ld=no
  7143. fi
  7144. ;;
  7145. interix*)
  7146. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7147. with_gnu_ld=yes
  7148. ;;
  7149. openbsd*)
  7150. with_gnu_ld=no
  7151. ;;
  7152. esac
  7153. ld_shlibs=yes
  7154. if test "$with_gnu_ld" = yes; then
  7155. # If archive_cmds runs LD, not CC, wlarc should be empty
  7156. wlarc='${wl}'
  7157. # Set some defaults for GNU ld with shared library support. These
  7158. # are reset later if shared libraries are not supported. Putting them
  7159. # here allows them to be overridden if necessary.
  7160. runpath_var=LD_RUN_PATH
  7161. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7162. export_dynamic_flag_spec='${wl}--export-dynamic'
  7163. # ancient GNU ld didn't support --whole-archive et. al.
  7164. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7165. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7166. else
  7167. whole_archive_flag_spec=
  7168. fi
  7169. supports_anon_versioning=no
  7170. case `$LD -v 2>/dev/null` in
  7171. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7172. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7173. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7174. *\ 2.11.*) ;; # other 2.11 versions
  7175. *) supports_anon_versioning=yes ;;
  7176. esac
  7177. # See if GNU ld supports shared libraries.
  7178. case $host_os in
  7179. aix3* | aix4* | aix5*)
  7180. # On AIX/PPC, the GNU linker is very broken
  7181. if test "$host_cpu" != ia64; then
  7182. ld_shlibs=no
  7183. cat <<EOF 1>&2
  7184. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7185. *** to be unable to reliably create shared libraries on AIX.
  7186. *** Therefore, libtool is disabling shared libraries support. If you
  7187. *** really care for shared libraries, you may want to modify your PATH
  7188. *** so that a non-GNU linker is found, and then restart.
  7189. EOF
  7190. fi
  7191. ;;
  7192. amigaos*)
  7193. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7194. hardcode_libdir_flag_spec='-L$libdir'
  7195. hardcode_minus_L=yes
  7196. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7197. # that the semantics of dynamic libraries on AmigaOS, at least up
  7198. # to version 4, is to share data among multiple programs linked
  7199. # with the same dynamic library. Since this doesn't match the
  7200. # behavior of shared libraries on other platforms, we can't use
  7201. # them.
  7202. ld_shlibs=no
  7203. ;;
  7204. beos*)
  7205. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7206. allow_undefined_flag=unsupported
  7207. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7208. # support --undefined. This deserves some investigation. FIXME
  7209. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7210. else
  7211. ld_shlibs=no
  7212. fi
  7213. ;;
  7214. cygwin* | mingw* | pw32*)
  7215. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7216. # as there is no search path for DLLs.
  7217. hardcode_libdir_flag_spec='-L$libdir'
  7218. allow_undefined_flag=unsupported
  7219. always_export_symbols=no
  7220. enable_shared_with_static_runtimes=yes
  7221. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7222. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7223. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7224. # If the export-symbols file already is a .def file (1st line
  7225. # is EXPORTS), use it as is; otherwise, prepend...
  7226. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7227. cp $export_symbols $output_objdir/$soname.def;
  7228. else
  7229. echo EXPORTS > $output_objdir/$soname.def;
  7230. cat $export_symbols >> $output_objdir/$soname.def;
  7231. fi~
  7232. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7233. else
  7234. ld_shlibs=no
  7235. fi
  7236. ;;
  7237. interix3*)
  7238. hardcode_direct=no
  7239. hardcode_shlibpath_var=no
  7240. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7241. export_dynamic_flag_spec='${wl}-E'
  7242. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7243. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7244. # default) and relocated if they conflict, which is a slow very memory
  7245. # consuming and fragmenting process. To avoid this, we pick a random,
  7246. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7247. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7248. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7249. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7250. ;;
  7251. linux* | k*bsd*-gnu)
  7252. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7253. tmp_addflag=
  7254. case $cc_basename,$host_cpu in
  7255. pgcc*) # Portland Group C compiler
  7256. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7257. tmp_addflag=' $pic_flag'
  7258. ;;
  7259. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7260. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7261. tmp_addflag=' $pic_flag -Mnomain' ;;
  7262. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7263. tmp_addflag=' -i_dynamic' ;;
  7264. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7265. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7266. ifc* | ifort*) # Intel Fortran compiler
  7267. tmp_addflag=' -nofor_main' ;;
  7268. esac
  7269. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7270. if test $supports_anon_versioning = yes; then
  7271. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7272. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7273. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7274. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7275. fi
  7276. link_all_deplibs=no
  7277. else
  7278. ld_shlibs=no
  7279. fi
  7280. ;;
  7281. netbsd* | netbsdelf*-gnu)
  7282. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7283. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7284. wlarc=
  7285. else
  7286. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7287. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7288. fi
  7289. ;;
  7290. solaris*)
  7291. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7292. ld_shlibs=no
  7293. cat <<EOF 1>&2
  7294. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7295. *** create shared libraries on Solaris systems. Therefore, libtool
  7296. *** is disabling shared libraries support. We urge you to upgrade GNU
  7297. *** binutils to release 2.9.1 or newer. Another option is to modify
  7298. *** your PATH or compiler configuration so that the native linker is
  7299. *** used, and then restart.
  7300. EOF
  7301. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7302. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7303. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7304. else
  7305. ld_shlibs=no
  7306. fi
  7307. ;;
  7308. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7309. case `$LD -v 2>&1` in
  7310. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7311. ld_shlibs=no
  7312. cat <<_LT_EOF 1>&2
  7313. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7314. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7315. *** is disabling shared libraries support. We urge you to upgrade GNU
  7316. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7317. *** your PATH or compiler configuration so that the native linker is
  7318. *** used, and then restart.
  7319. _LT_EOF
  7320. ;;
  7321. *)
  7322. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7323. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7324. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7325. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7326. else
  7327. ld_shlibs=no
  7328. fi
  7329. ;;
  7330. esac
  7331. ;;
  7332. sunos4*)
  7333. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7334. wlarc=
  7335. hardcode_direct=yes
  7336. hardcode_shlibpath_var=no
  7337. ;;
  7338. *)
  7339. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7340. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7341. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7342. else
  7343. ld_shlibs=no
  7344. fi
  7345. ;;
  7346. esac
  7347. if test "$ld_shlibs" = no; then
  7348. runpath_var=
  7349. hardcode_libdir_flag_spec=
  7350. export_dynamic_flag_spec=
  7351. whole_archive_flag_spec=
  7352. fi
  7353. else
  7354. # PORTME fill in a description of your system's linker (not GNU ld)
  7355. case $host_os in
  7356. aix3*)
  7357. allow_undefined_flag=unsupported
  7358. always_export_symbols=yes
  7359. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7360. # Note: this linker hardcodes the directories in LIBPATH if there
  7361. # are no directories specified by -L.
  7362. hardcode_minus_L=yes
  7363. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7364. # Neither direct hardcoding nor static linking is supported with a
  7365. # broken collect2.
  7366. hardcode_direct=unsupported
  7367. fi
  7368. ;;
  7369. aix4* | aix5*)
  7370. if test "$host_cpu" = ia64; then
  7371. # On IA64, the linker does run time linking by default, so we don't
  7372. # have to do anything special.
  7373. aix_use_runtimelinking=no
  7374. exp_sym_flag='-Bexport'
  7375. no_entry_flag=""
  7376. else
  7377. # If we're using GNU nm, then we don't want the "-C" option.
  7378. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7379. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7380. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7381. else
  7382. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7383. fi
  7384. aix_use_runtimelinking=no
  7385. # Test if we are trying to use run time linking or normal
  7386. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7387. # need to do runtime linking.
  7388. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7389. for ld_flag in $LDFLAGS; do
  7390. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7391. aix_use_runtimelinking=yes
  7392. break
  7393. fi
  7394. done
  7395. ;;
  7396. esac
  7397. exp_sym_flag='-bexport'
  7398. no_entry_flag='-bnoentry'
  7399. fi
  7400. # When large executables or shared objects are built, AIX ld can
  7401. # have problems creating the table of contents. If linking a library
  7402. # or program results in "error TOC overflow" add -mminimal-toc to
  7403. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7404. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7405. archive_cmds=''
  7406. hardcode_direct=yes
  7407. hardcode_libdir_separator=':'
  7408. link_all_deplibs=yes
  7409. if test "$GCC" = yes; then
  7410. case $host_os in aix4.[012]|aix4.[012].*)
  7411. # We only want to do this on AIX 4.2 and lower, the check
  7412. # below for broken collect2 doesn't work under 4.3+
  7413. collect2name=`${CC} -print-prog-name=collect2`
  7414. if test -f "$collect2name" && \
  7415. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7416. then
  7417. # We have reworked collect2
  7418. hardcode_direct=yes
  7419. else
  7420. # We have old collect2
  7421. hardcode_direct=unsupported
  7422. # It fails to find uninstalled libraries when the uninstalled
  7423. # path is not listed in the libpath. Setting hardcode_minus_L
  7424. # to unsupported forces relinking
  7425. hardcode_minus_L=yes
  7426. hardcode_libdir_flag_spec='-L$libdir'
  7427. hardcode_libdir_separator=
  7428. fi
  7429. ;;
  7430. esac
  7431. shared_flag='-shared'
  7432. if test "$aix_use_runtimelinking" = yes; then
  7433. shared_flag="$shared_flag "'${wl}-G'
  7434. fi
  7435. else
  7436. # not using gcc
  7437. if test "$host_cpu" = ia64; then
  7438. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7439. # chokes on -Wl,-G. The following line is correct:
  7440. shared_flag='-G'
  7441. else
  7442. if test "$aix_use_runtimelinking" = yes; then
  7443. shared_flag='${wl}-G'
  7444. else
  7445. shared_flag='${wl}-bM:SRE'
  7446. fi
  7447. fi
  7448. fi
  7449. # It seems that -bexpall does not export symbols beginning with
  7450. # underscore (_), so it is better to generate a list of symbols to export.
  7451. always_export_symbols=yes
  7452. if test "$aix_use_runtimelinking" = yes; then
  7453. # Warning - without using the other runtime loading flags (-brtl),
  7454. # -berok will link without error, but may produce a broken library.
  7455. allow_undefined_flag='-berok'
  7456. # Determine the default libpath from the value encoded in an empty executable.
  7457. cat >conftest.$ac_ext <<_ACEOF
  7458. /* confdefs.h. */
  7459. _ACEOF
  7460. cat confdefs.h >>conftest.$ac_ext
  7461. cat >>conftest.$ac_ext <<_ACEOF
  7462. /* end confdefs.h. */
  7463. int
  7464. main ()
  7465. {
  7466. ;
  7467. return 0;
  7468. }
  7469. _ACEOF
  7470. rm -f conftest.$ac_objext conftest$ac_exeext
  7471. if { (ac_try="$ac_link"
  7472. case "(($ac_try" in
  7473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7474. *) ac_try_echo=$ac_try;;
  7475. esac
  7476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7477. (eval "$ac_link") 2>conftest.er1
  7478. ac_status=$?
  7479. grep -v '^ *+' conftest.er1 >conftest.err
  7480. rm -f conftest.er1
  7481. cat conftest.err >&5
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); } &&
  7484. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7485. { (case "(($ac_try" in
  7486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7487. *) ac_try_echo=$ac_try;;
  7488. esac
  7489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7490. (eval "$ac_try") 2>&5
  7491. ac_status=$?
  7492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7493. (exit $ac_status); }; } &&
  7494. { ac_try='test -s conftest$ac_exeext'
  7495. { (case "(($ac_try" in
  7496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7497. *) ac_try_echo=$ac_try;;
  7498. esac
  7499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7500. (eval "$ac_try") 2>&5
  7501. ac_status=$?
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); }; }; then
  7504. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7505. }'`
  7506. # Check for a 64-bit object if we didn't find anything.
  7507. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7508. }'`; fi
  7509. else
  7510. echo "$as_me: failed program was:" >&5
  7511. sed 's/^/| /' conftest.$ac_ext >&5
  7512. fi
  7513. rm -f conftest.err conftest.$ac_objext \
  7514. conftest$ac_exeext conftest.$ac_ext
  7515. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7516. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7517. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7518. else
  7519. if test "$host_cpu" = ia64; then
  7520. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7521. allow_undefined_flag="-z nodefs"
  7522. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7523. else
  7524. # Determine the default libpath from the value encoded in an empty executable.
  7525. cat >conftest.$ac_ext <<_ACEOF
  7526. /* confdefs.h. */
  7527. _ACEOF
  7528. cat confdefs.h >>conftest.$ac_ext
  7529. cat >>conftest.$ac_ext <<_ACEOF
  7530. /* end confdefs.h. */
  7531. int
  7532. main ()
  7533. {
  7534. ;
  7535. return 0;
  7536. }
  7537. _ACEOF
  7538. rm -f conftest.$ac_objext conftest$ac_exeext
  7539. if { (ac_try="$ac_link"
  7540. case "(($ac_try" in
  7541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7542. *) ac_try_echo=$ac_try;;
  7543. esac
  7544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7545. (eval "$ac_link") 2>conftest.er1
  7546. ac_status=$?
  7547. grep -v '^ *+' conftest.er1 >conftest.err
  7548. rm -f conftest.er1
  7549. cat conftest.err >&5
  7550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7551. (exit $ac_status); } &&
  7552. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7553. { (case "(($ac_try" in
  7554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7555. *) ac_try_echo=$ac_try;;
  7556. esac
  7557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7558. (eval "$ac_try") 2>&5
  7559. ac_status=$?
  7560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7561. (exit $ac_status); }; } &&
  7562. { ac_try='test -s conftest$ac_exeext'
  7563. { (case "(($ac_try" in
  7564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7565. *) ac_try_echo=$ac_try;;
  7566. esac
  7567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7568. (eval "$ac_try") 2>&5
  7569. ac_status=$?
  7570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. (exit $ac_status); }; }; then
  7572. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7573. }'`
  7574. # Check for a 64-bit object if we didn't find anything.
  7575. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7576. }'`; fi
  7577. else
  7578. echo "$as_me: failed program was:" >&5
  7579. sed 's/^/| /' conftest.$ac_ext >&5
  7580. fi
  7581. rm -f conftest.err conftest.$ac_objext \
  7582. conftest$ac_exeext conftest.$ac_ext
  7583. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7584. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7585. # Warning - without using the other run time loading flags,
  7586. # -berok will link without error, but may produce a broken library.
  7587. no_undefined_flag=' ${wl}-bernotok'
  7588. allow_undefined_flag=' ${wl}-berok'
  7589. # Exported symbols can be pulled into shared objects from archives
  7590. whole_archive_flag_spec='$convenience'
  7591. archive_cmds_need_lc=yes
  7592. # This is similar to how AIX traditionally builds its shared libraries.
  7593. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7594. fi
  7595. fi
  7596. ;;
  7597. amigaos*)
  7598. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7599. hardcode_libdir_flag_spec='-L$libdir'
  7600. hardcode_minus_L=yes
  7601. # see comment about different semantics on the GNU ld section
  7602. ld_shlibs=no
  7603. ;;
  7604. bsdi[45]*)
  7605. export_dynamic_flag_spec=-rdynamic
  7606. ;;
  7607. cygwin* | mingw* | pw32*)
  7608. # When not using gcc, we currently assume that we are using
  7609. # Microsoft Visual C++.
  7610. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7611. # no search path for DLLs.
  7612. hardcode_libdir_flag_spec=' '
  7613. allow_undefined_flag=unsupported
  7614. # Tell ltmain to make .lib files, not .a files.
  7615. libext=lib
  7616. # Tell ltmain to make .dll files, not .so files.
  7617. shrext_cmds=".dll"
  7618. # FIXME: Setting linknames here is a bad hack.
  7619. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7620. # The linker will automatically build a .lib file if we build a DLL.
  7621. old_archive_From_new_cmds='true'
  7622. # FIXME: Should let the user specify the lib program.
  7623. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7624. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7625. enable_shared_with_static_runtimes=yes
  7626. ;;
  7627. darwin* | rhapsody*)
  7628. case $host_os in
  7629. rhapsody* | darwin1.[012])
  7630. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7631. ;;
  7632. *) # Darwin 1.3 on
  7633. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7634. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7635. else
  7636. case ${MACOSX_DEPLOYMENT_TARGET} in
  7637. 10.[012])
  7638. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7639. ;;
  7640. 10.*)
  7641. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7642. ;;
  7643. esac
  7644. fi
  7645. ;;
  7646. esac
  7647. archive_cmds_need_lc=no
  7648. hardcode_direct=no
  7649. hardcode_automatic=yes
  7650. hardcode_shlibpath_var=unsupported
  7651. whole_archive_flag_spec=''
  7652. link_all_deplibs=yes
  7653. if test "$GCC" = yes ; then
  7654. output_verbose_link_cmd='echo'
  7655. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7656. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7657. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7658. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7659. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7660. else
  7661. case $cc_basename in
  7662. xlc*)
  7663. output_verbose_link_cmd='echo'
  7664. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7665. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7666. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7667. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7668. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7669. ;;
  7670. *)
  7671. ld_shlibs=no
  7672. ;;
  7673. esac
  7674. fi
  7675. ;;
  7676. dgux*)
  7677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7678. hardcode_libdir_flag_spec='-L$libdir'
  7679. hardcode_shlibpath_var=no
  7680. ;;
  7681. freebsd1*)
  7682. ld_shlibs=no
  7683. ;;
  7684. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7685. # support. Future versions do this automatically, but an explicit c++rt0.o
  7686. # does not break anything, and helps significantly (at the cost of a little
  7687. # extra space).
  7688. freebsd2.2*)
  7689. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7690. hardcode_libdir_flag_spec='-R$libdir'
  7691. hardcode_direct=yes
  7692. hardcode_shlibpath_var=no
  7693. ;;
  7694. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7695. freebsd2*)
  7696. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7697. hardcode_direct=yes
  7698. hardcode_minus_L=yes
  7699. hardcode_shlibpath_var=no
  7700. ;;
  7701. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7702. freebsd* | dragonfly*)
  7703. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7704. hardcode_libdir_flag_spec='-R$libdir'
  7705. hardcode_direct=yes
  7706. hardcode_shlibpath_var=no
  7707. ;;
  7708. hpux9*)
  7709. if test "$GCC" = yes; then
  7710. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7711. else
  7712. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7713. fi
  7714. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7715. hardcode_libdir_separator=:
  7716. hardcode_direct=yes
  7717. # hardcode_minus_L: Not really in the search PATH,
  7718. # but as the default location of the library.
  7719. hardcode_minus_L=yes
  7720. export_dynamic_flag_spec='${wl}-E'
  7721. ;;
  7722. hpux10*)
  7723. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7724. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7725. else
  7726. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7727. fi
  7728. if test "$with_gnu_ld" = no; then
  7729. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7730. hardcode_libdir_separator=:
  7731. hardcode_direct=yes
  7732. export_dynamic_flag_spec='${wl}-E'
  7733. # hardcode_minus_L: Not really in the search PATH,
  7734. # but as the default location of the library.
  7735. hardcode_minus_L=yes
  7736. fi
  7737. ;;
  7738. hpux11*)
  7739. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7740. case $host_cpu in
  7741. hppa*64*)
  7742. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7743. ;;
  7744. ia64*)
  7745. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7746. ;;
  7747. *)
  7748. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7749. ;;
  7750. esac
  7751. else
  7752. case $host_cpu in
  7753. hppa*64*)
  7754. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7755. ;;
  7756. ia64*)
  7757. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7758. ;;
  7759. *)
  7760. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7761. ;;
  7762. esac
  7763. fi
  7764. if test "$with_gnu_ld" = no; then
  7765. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7766. hardcode_libdir_separator=:
  7767. case $host_cpu in
  7768. hppa*64*|ia64*)
  7769. hardcode_libdir_flag_spec_ld='+b $libdir'
  7770. hardcode_direct=no
  7771. hardcode_shlibpath_var=no
  7772. ;;
  7773. *)
  7774. hardcode_direct=yes
  7775. export_dynamic_flag_spec='${wl}-E'
  7776. # hardcode_minus_L: Not really in the search PATH,
  7777. # but as the default location of the library.
  7778. hardcode_minus_L=yes
  7779. ;;
  7780. esac
  7781. fi
  7782. ;;
  7783. irix5* | irix6* | nonstopux*)
  7784. if test "$GCC" = yes; then
  7785. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7786. else
  7787. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7788. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7789. fi
  7790. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7791. hardcode_libdir_separator=:
  7792. link_all_deplibs=yes
  7793. ;;
  7794. netbsd* | netbsdelf*-gnu)
  7795. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7796. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7797. else
  7798. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7799. fi
  7800. hardcode_libdir_flag_spec='-R$libdir'
  7801. hardcode_direct=yes
  7802. hardcode_shlibpath_var=no
  7803. ;;
  7804. newsos6)
  7805. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7806. hardcode_direct=yes
  7807. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7808. hardcode_libdir_separator=:
  7809. hardcode_shlibpath_var=no
  7810. ;;
  7811. openbsd*)
  7812. hardcode_direct=yes
  7813. hardcode_shlibpath_var=no
  7814. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7815. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7816. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7817. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7818. export_dynamic_flag_spec='${wl}-E'
  7819. else
  7820. case $host_os in
  7821. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7822. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7823. hardcode_libdir_flag_spec='-R$libdir'
  7824. ;;
  7825. *)
  7826. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7827. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7828. ;;
  7829. esac
  7830. fi
  7831. ;;
  7832. os2*)
  7833. hardcode_libdir_flag_spec='-L$libdir'
  7834. hardcode_minus_L=yes
  7835. allow_undefined_flag=unsupported
  7836. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7837. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7838. ;;
  7839. osf3*)
  7840. if test "$GCC" = yes; then
  7841. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7842. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7843. else
  7844. allow_undefined_flag=' -expect_unresolved \*'
  7845. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7846. fi
  7847. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7848. hardcode_libdir_separator=:
  7849. ;;
  7850. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7851. if test "$GCC" = yes; then
  7852. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7853. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7854. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7855. else
  7856. allow_undefined_flag=' -expect_unresolved \*'
  7857. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7858. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7859. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7860. # Both c and cxx compiler support -rpath directly
  7861. hardcode_libdir_flag_spec='-rpath $libdir'
  7862. fi
  7863. hardcode_libdir_separator=:
  7864. ;;
  7865. solaris*)
  7866. no_undefined_flag=' -z text'
  7867. if test "$GCC" = yes; then
  7868. wlarc='${wl}'
  7869. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7870. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7871. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7872. else
  7873. wlarc=''
  7874. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7875. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7876. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7877. fi
  7878. hardcode_libdir_flag_spec='-R$libdir'
  7879. hardcode_shlibpath_var=no
  7880. case $host_os in
  7881. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7882. *)
  7883. # The compiler driver will combine linker options so we
  7884. # cannot just pass the convience library names through
  7885. # without $wl, iff we do not link with $LD.
  7886. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7887. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7888. case $wlarc in
  7889. '')
  7890. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7891. *)
  7892. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7893. esac ;;
  7894. esac
  7895. link_all_deplibs=yes
  7896. ;;
  7897. sunos4*)
  7898. if test "x$host_vendor" = xsequent; then
  7899. # Use $CC to link under sequent, because it throws in some extra .o
  7900. # files that make .init and .fini sections work.
  7901. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7902. else
  7903. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7904. fi
  7905. hardcode_libdir_flag_spec='-L$libdir'
  7906. hardcode_direct=yes
  7907. hardcode_minus_L=yes
  7908. hardcode_shlibpath_var=no
  7909. ;;
  7910. sysv4)
  7911. case $host_vendor in
  7912. sni)
  7913. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7914. hardcode_direct=yes # is this really true???
  7915. ;;
  7916. siemens)
  7917. ## LD is ld it makes a PLAMLIB
  7918. ## CC just makes a GrossModule.
  7919. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7920. reload_cmds='$CC -r -o $output$reload_objs'
  7921. hardcode_direct=no
  7922. ;;
  7923. motorola)
  7924. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7925. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7926. ;;
  7927. esac
  7928. runpath_var='LD_RUN_PATH'
  7929. hardcode_shlibpath_var=no
  7930. ;;
  7931. sysv4.3*)
  7932. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7933. hardcode_shlibpath_var=no
  7934. export_dynamic_flag_spec='-Bexport'
  7935. ;;
  7936. sysv4*MP*)
  7937. if test -d /usr/nec; then
  7938. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7939. hardcode_shlibpath_var=no
  7940. runpath_var=LD_RUN_PATH
  7941. hardcode_runpath_var=yes
  7942. ld_shlibs=yes
  7943. fi
  7944. ;;
  7945. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7946. no_undefined_flag='${wl}-z,text'
  7947. archive_cmds_need_lc=no
  7948. hardcode_shlibpath_var=no
  7949. runpath_var='LD_RUN_PATH'
  7950. if test "$GCC" = yes; then
  7951. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7952. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7953. else
  7954. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7955. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7956. fi
  7957. ;;
  7958. sysv5* | sco3.2v5* | sco5v6*)
  7959. # Note: We can NOT use -z defs as we might desire, because we do not
  7960. # link with -lc, and that would cause any symbols used from libc to
  7961. # always be unresolved, which means just about no library would
  7962. # ever link correctly. If we're not using GNU ld we use -z text
  7963. # though, which does catch some bad symbols but isn't as heavy-handed
  7964. # as -z defs.
  7965. no_undefined_flag='${wl}-z,text'
  7966. allow_undefined_flag='${wl}-z,nodefs'
  7967. archive_cmds_need_lc=no
  7968. hardcode_shlibpath_var=no
  7969. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7970. hardcode_libdir_separator=':'
  7971. link_all_deplibs=yes
  7972. export_dynamic_flag_spec='${wl}-Bexport'
  7973. runpath_var='LD_RUN_PATH'
  7974. if test "$GCC" = yes; then
  7975. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7976. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7977. else
  7978. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7979. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7980. fi
  7981. ;;
  7982. uts4*)
  7983. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7984. hardcode_libdir_flag_spec='-L$libdir'
  7985. hardcode_shlibpath_var=no
  7986. ;;
  7987. *)
  7988. ld_shlibs=no
  7989. ;;
  7990. esac
  7991. fi
  7992. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7993. echo "${ECHO_T}$ld_shlibs" >&6; }
  7994. test "$ld_shlibs" = no && can_build_shared=no
  7995. #
  7996. # Do we need to explicitly link libc?
  7997. #
  7998. case "x$archive_cmds_need_lc" in
  7999. x|xyes)
  8000. # Assume -lc should be added
  8001. archive_cmds_need_lc=yes
  8002. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8003. case $archive_cmds in
  8004. *'~'*)
  8005. # FIXME: we may have to deal with multi-command sequences.
  8006. ;;
  8007. '$CC '*)
  8008. # Test whether the compiler implicitly links with -lc since on some
  8009. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8010. # to ld, don't add -lc before -lgcc.
  8011. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8012. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  8013. $rm conftest*
  8014. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8015. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8016. (eval $ac_compile) 2>&5
  8017. ac_status=$?
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. (exit $ac_status); } 2>conftest.err; then
  8020. soname=conftest
  8021. lib=conftest
  8022. libobjs=conftest.$ac_objext
  8023. deplibs=
  8024. wl=$lt_prog_compiler_wl
  8025. pic_flag=$lt_prog_compiler_pic
  8026. compiler_flags=-v
  8027. linker_flags=-v
  8028. verstring=
  8029. output_objdir=.
  8030. libname=conftest
  8031. lt_save_allow_undefined_flag=$allow_undefined_flag
  8032. allow_undefined_flag=
  8033. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8034. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8035. ac_status=$?
  8036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8037. (exit $ac_status); }
  8038. then
  8039. archive_cmds_need_lc=no
  8040. else
  8041. archive_cmds_need_lc=yes
  8042. fi
  8043. allow_undefined_flag=$lt_save_allow_undefined_flag
  8044. else
  8045. cat conftest.err 1>&5
  8046. fi
  8047. $rm conftest*
  8048. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8049. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8050. ;;
  8051. esac
  8052. fi
  8053. ;;
  8054. esac
  8055. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8056. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8057. library_names_spec=
  8058. libname_spec='lib$name'
  8059. soname_spec=
  8060. shrext_cmds=".so"
  8061. postinstall_cmds=
  8062. postuninstall_cmds=
  8063. finish_cmds=
  8064. finish_eval=
  8065. shlibpath_var=
  8066. shlibpath_overrides_runpath=unknown
  8067. version_type=none
  8068. dynamic_linker="$host_os ld.so"
  8069. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8070. if test "$GCC" = yes; then
  8071. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8072. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8073. # if the path contains ";" then we assume it to be the separator
  8074. # otherwise default to the standard path separator (i.e. ":") - it is
  8075. # assumed that no part of a normal pathname contains ";" but that should
  8076. # okay in the real world where ";" in dirpaths is itself problematic.
  8077. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8078. else
  8079. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8080. fi
  8081. else
  8082. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8083. fi
  8084. need_lib_prefix=unknown
  8085. hardcode_into_libs=no
  8086. # when you set need_version to no, make sure it does not cause -set_version
  8087. # flags to be left without arguments
  8088. need_version=unknown
  8089. case $host_os in
  8090. aix3*)
  8091. version_type=linux
  8092. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8093. shlibpath_var=LIBPATH
  8094. # AIX 3 has no versioning support, so we append a major version to the name.
  8095. soname_spec='${libname}${release}${shared_ext}$major'
  8096. ;;
  8097. aix4* | aix5*)
  8098. version_type=linux
  8099. need_lib_prefix=no
  8100. need_version=no
  8101. hardcode_into_libs=yes
  8102. if test "$host_cpu" = ia64; then
  8103. # AIX 5 supports IA64
  8104. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8105. shlibpath_var=LD_LIBRARY_PATH
  8106. else
  8107. # With GCC up to 2.95.x, collect2 would create an import file
  8108. # for dependence libraries. The import file would start with
  8109. # the line `#! .'. This would cause the generated library to
  8110. # depend on `.', always an invalid library. This was fixed in
  8111. # development snapshots of GCC prior to 3.0.
  8112. case $host_os in
  8113. aix4 | aix4.[01] | aix4.[01].*)
  8114. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8115. echo ' yes '
  8116. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8117. :
  8118. else
  8119. can_build_shared=no
  8120. fi
  8121. ;;
  8122. esac
  8123. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8124. # soname into executable. Probably we can add versioning support to
  8125. # collect2, so additional links can be useful in future.
  8126. if test "$aix_use_runtimelinking" = yes; then
  8127. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8128. # instead of lib<name>.a to let people know that these are not
  8129. # typical AIX shared libraries.
  8130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8131. else
  8132. # We preserve .a as extension for shared libraries through AIX4.2
  8133. # and later when we are not doing run time linking.
  8134. library_names_spec='${libname}${release}.a $libname.a'
  8135. soname_spec='${libname}${release}${shared_ext}$major'
  8136. fi
  8137. shlibpath_var=LIBPATH
  8138. fi
  8139. ;;
  8140. amigaos*)
  8141. library_names_spec='$libname.ixlibrary $libname.a'
  8142. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8143. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8144. ;;
  8145. beos*)
  8146. library_names_spec='${libname}${shared_ext}'
  8147. dynamic_linker="$host_os ld.so"
  8148. shlibpath_var=LIBRARY_PATH
  8149. ;;
  8150. bsdi[45]*)
  8151. version_type=linux
  8152. need_version=no
  8153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8154. soname_spec='${libname}${release}${shared_ext}$major'
  8155. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8156. shlibpath_var=LD_LIBRARY_PATH
  8157. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8158. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8159. # the default ld.so.conf also contains /usr/contrib/lib and
  8160. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8161. # libtool to hard-code these into programs
  8162. ;;
  8163. cygwin* | mingw* | pw32*)
  8164. version_type=windows
  8165. shrext_cmds=".dll"
  8166. need_version=no
  8167. need_lib_prefix=no
  8168. case $GCC,$host_os in
  8169. yes,cygwin* | yes,mingw* | yes,pw32*)
  8170. library_names_spec='$libname.dll.a'
  8171. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8172. postinstall_cmds='base_file=`basename \${file}`~
  8173. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8174. dldir=$destdir/`dirname \$dlpath`~
  8175. test -d \$dldir || mkdir -p \$dldir~
  8176. $install_prog $dir/$dlname \$dldir/$dlname~
  8177. chmod a+x \$dldir/$dlname'
  8178. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8179. dlpath=$dir/\$dldll~
  8180. $rm \$dlpath'
  8181. shlibpath_overrides_runpath=yes
  8182. case $host_os in
  8183. cygwin*)
  8184. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8185. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8186. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8187. ;;
  8188. mingw*)
  8189. # MinGW DLLs use traditional 'lib' prefix
  8190. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8191. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8192. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8193. # It is most probably a Windows format PATH printed by
  8194. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8195. # path with ; separators, and with drive letters. We can handle the
  8196. # drive letters (cygwin fileutils understands them), so leave them,
  8197. # especially as we might pass files found there to a mingw objdump,
  8198. # which wouldn't understand a cygwinified path. Ahh.
  8199. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8200. else
  8201. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8202. fi
  8203. ;;
  8204. pw32*)
  8205. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8206. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8207. ;;
  8208. esac
  8209. ;;
  8210. *)
  8211. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8212. ;;
  8213. esac
  8214. dynamic_linker='Win32 ld.exe'
  8215. # FIXME: first we should search . and the directory the executable is in
  8216. shlibpath_var=PATH
  8217. ;;
  8218. darwin* | rhapsody*)
  8219. dynamic_linker="$host_os dyld"
  8220. version_type=darwin
  8221. need_lib_prefix=no
  8222. need_version=no
  8223. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8224. soname_spec='${libname}${release}${major}$shared_ext'
  8225. shlibpath_overrides_runpath=yes
  8226. shlibpath_var=DYLD_LIBRARY_PATH
  8227. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8228. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8229. if test "$GCC" = yes; then
  8230. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8231. else
  8232. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8233. fi
  8234. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8235. ;;
  8236. dgux*)
  8237. version_type=linux
  8238. need_lib_prefix=no
  8239. need_version=no
  8240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8241. soname_spec='${libname}${release}${shared_ext}$major'
  8242. shlibpath_var=LD_LIBRARY_PATH
  8243. ;;
  8244. freebsd1*)
  8245. dynamic_linker=no
  8246. ;;
  8247. freebsd* | dragonfly*)
  8248. # DragonFly does not have aout. When/if they implement a new
  8249. # versioning mechanism, adjust this.
  8250. if test -x /usr/bin/objformat; then
  8251. objformat=`/usr/bin/objformat`
  8252. else
  8253. case $host_os in
  8254. freebsd[123]*) objformat=aout ;;
  8255. *) objformat=elf ;;
  8256. esac
  8257. fi
  8258. version_type=freebsd-$objformat
  8259. case $version_type in
  8260. freebsd-elf*)
  8261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8262. need_version=no
  8263. need_lib_prefix=no
  8264. ;;
  8265. freebsd-*)
  8266. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8267. need_version=yes
  8268. ;;
  8269. esac
  8270. shlibpath_var=LD_LIBRARY_PATH
  8271. case $host_os in
  8272. freebsd2*)
  8273. shlibpath_overrides_runpath=yes
  8274. ;;
  8275. freebsd3.[01]* | freebsdelf3.[01]*)
  8276. shlibpath_overrides_runpath=yes
  8277. hardcode_into_libs=yes
  8278. ;;
  8279. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8280. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8281. shlibpath_overrides_runpath=no
  8282. hardcode_into_libs=yes
  8283. ;;
  8284. freebsd*) # from 4.6 on
  8285. shlibpath_overrides_runpath=yes
  8286. hardcode_into_libs=yes
  8287. ;;
  8288. esac
  8289. ;;
  8290. gnu*)
  8291. version_type=linux
  8292. need_lib_prefix=no
  8293. need_version=no
  8294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8295. soname_spec='${libname}${release}${shared_ext}$major'
  8296. shlibpath_var=LD_LIBRARY_PATH
  8297. hardcode_into_libs=yes
  8298. ;;
  8299. hpux9* | hpux10* | hpux11*)
  8300. # Give a soname corresponding to the major version so that dld.sl refuses to
  8301. # link against other versions.
  8302. version_type=sunos
  8303. need_lib_prefix=no
  8304. need_version=no
  8305. case $host_cpu in
  8306. ia64*)
  8307. shrext_cmds='.so'
  8308. hardcode_into_libs=yes
  8309. dynamic_linker="$host_os dld.so"
  8310. shlibpath_var=LD_LIBRARY_PATH
  8311. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8313. soname_spec='${libname}${release}${shared_ext}$major'
  8314. if test "X$HPUX_IA64_MODE" = X32; then
  8315. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8316. else
  8317. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8318. fi
  8319. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8320. ;;
  8321. hppa*64*)
  8322. shrext_cmds='.sl'
  8323. hardcode_into_libs=yes
  8324. dynamic_linker="$host_os dld.sl"
  8325. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8326. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8328. soname_spec='${libname}${release}${shared_ext}$major'
  8329. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8330. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8331. ;;
  8332. *)
  8333. shrext_cmds='.sl'
  8334. dynamic_linker="$host_os dld.sl"
  8335. shlibpath_var=SHLIB_PATH
  8336. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8338. soname_spec='${libname}${release}${shared_ext}$major'
  8339. ;;
  8340. esac
  8341. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8342. postinstall_cmds='chmod 555 $lib'
  8343. ;;
  8344. interix3*)
  8345. version_type=linux
  8346. need_lib_prefix=no
  8347. need_version=no
  8348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8349. soname_spec='${libname}${release}${shared_ext}$major'
  8350. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8351. shlibpath_var=LD_LIBRARY_PATH
  8352. shlibpath_overrides_runpath=no
  8353. hardcode_into_libs=yes
  8354. ;;
  8355. irix5* | irix6* | nonstopux*)
  8356. case $host_os in
  8357. nonstopux*) version_type=nonstopux ;;
  8358. *)
  8359. if test "$lt_cv_prog_gnu_ld" = yes; then
  8360. version_type=linux
  8361. else
  8362. version_type=irix
  8363. fi ;;
  8364. esac
  8365. need_lib_prefix=no
  8366. need_version=no
  8367. soname_spec='${libname}${release}${shared_ext}$major'
  8368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8369. case $host_os in
  8370. irix5* | nonstopux*)
  8371. libsuff= shlibsuff=
  8372. ;;
  8373. *)
  8374. case $LD in # libtool.m4 will add one of these switches to LD
  8375. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8376. libsuff= shlibsuff= libmagic=32-bit;;
  8377. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8378. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8379. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8380. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8381. *) libsuff= shlibsuff= libmagic=never-match;;
  8382. esac
  8383. ;;
  8384. esac
  8385. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8386. shlibpath_overrides_runpath=no
  8387. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8388. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8389. hardcode_into_libs=yes
  8390. ;;
  8391. # No shared lib support for Linux oldld, aout, or coff.
  8392. linux*oldld* | linux*aout* | linux*coff*)
  8393. dynamic_linker=no
  8394. ;;
  8395. # This must be Linux ELF.
  8396. linux* | k*bsd*-gnu)
  8397. version_type=linux
  8398. need_lib_prefix=no
  8399. need_version=no
  8400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8401. soname_spec='${libname}${release}${shared_ext}$major'
  8402. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8403. shlibpath_var=LD_LIBRARY_PATH
  8404. shlibpath_overrides_runpath=no
  8405. # This implies no fast_install, which is unacceptable.
  8406. # Some rework will be needed to allow for fast_install
  8407. # before this can be enabled.
  8408. hardcode_into_libs=yes
  8409. # Append ld.so.conf contents to the search path
  8410. if test -f /etc/ld.so.conf; then
  8411. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8412. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8413. fi
  8414. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8415. # powerpc, because MkLinux only supported shared libraries with the
  8416. # GNU dynamic linker. Since this was broken with cross compilers,
  8417. # most powerpc-linux boxes support dynamic linking these days and
  8418. # people can always --disable-shared, the test was removed, and we
  8419. # assume the GNU/Linux dynamic linker is in use.
  8420. dynamic_linker='GNU/Linux ld.so'
  8421. ;;
  8422. netbsdelf*-gnu)
  8423. version_type=linux
  8424. need_lib_prefix=no
  8425. need_version=no
  8426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8427. soname_spec='${libname}${release}${shared_ext}$major'
  8428. shlibpath_var=LD_LIBRARY_PATH
  8429. shlibpath_overrides_runpath=no
  8430. hardcode_into_libs=yes
  8431. dynamic_linker='NetBSD ld.elf_so'
  8432. ;;
  8433. netbsd*)
  8434. version_type=sunos
  8435. need_lib_prefix=no
  8436. need_version=no
  8437. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8439. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8440. dynamic_linker='NetBSD (a.out) ld.so'
  8441. else
  8442. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8443. soname_spec='${libname}${release}${shared_ext}$major'
  8444. dynamic_linker='NetBSD ld.elf_so'
  8445. fi
  8446. shlibpath_var=LD_LIBRARY_PATH
  8447. shlibpath_overrides_runpath=yes
  8448. hardcode_into_libs=yes
  8449. ;;
  8450. newsos6)
  8451. version_type=linux
  8452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8453. shlibpath_var=LD_LIBRARY_PATH
  8454. shlibpath_overrides_runpath=yes
  8455. ;;
  8456. nto-qnx*)
  8457. version_type=linux
  8458. need_lib_prefix=no
  8459. need_version=no
  8460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8461. soname_spec='${libname}${release}${shared_ext}$major'
  8462. shlibpath_var=LD_LIBRARY_PATH
  8463. shlibpath_overrides_runpath=yes
  8464. ;;
  8465. openbsd*)
  8466. version_type=sunos
  8467. sys_lib_dlsearch_path_spec="/usr/lib"
  8468. need_lib_prefix=no
  8469. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8470. case $host_os in
  8471. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8472. *) need_version=no ;;
  8473. esac
  8474. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8475. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8476. shlibpath_var=LD_LIBRARY_PATH
  8477. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8478. case $host_os in
  8479. openbsd2.[89] | openbsd2.[89].*)
  8480. shlibpath_overrides_runpath=no
  8481. ;;
  8482. *)
  8483. shlibpath_overrides_runpath=yes
  8484. ;;
  8485. esac
  8486. else
  8487. shlibpath_overrides_runpath=yes
  8488. fi
  8489. ;;
  8490. os2*)
  8491. libname_spec='$name'
  8492. shrext_cmds=".dll"
  8493. need_lib_prefix=no
  8494. library_names_spec='$libname${shared_ext} $libname.a'
  8495. dynamic_linker='OS/2 ld.exe'
  8496. shlibpath_var=LIBPATH
  8497. ;;
  8498. osf3* | osf4* | osf5*)
  8499. version_type=osf
  8500. need_lib_prefix=no
  8501. need_version=no
  8502. soname_spec='${libname}${release}${shared_ext}$major'
  8503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8504. shlibpath_var=LD_LIBRARY_PATH
  8505. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8506. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8507. ;;
  8508. solaris*)
  8509. version_type=linux
  8510. need_lib_prefix=no
  8511. need_version=no
  8512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8513. soname_spec='${libname}${release}${shared_ext}$major'
  8514. shlibpath_var=LD_LIBRARY_PATH
  8515. shlibpath_overrides_runpath=yes
  8516. hardcode_into_libs=yes
  8517. # ldd complains unless libraries are executable
  8518. postinstall_cmds='chmod +x $lib'
  8519. ;;
  8520. sunos4*)
  8521. version_type=sunos
  8522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8523. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8524. shlibpath_var=LD_LIBRARY_PATH
  8525. shlibpath_overrides_runpath=yes
  8526. if test "$with_gnu_ld" = yes; then
  8527. need_lib_prefix=no
  8528. fi
  8529. need_version=yes
  8530. ;;
  8531. sysv4 | sysv4.3*)
  8532. version_type=linux
  8533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8534. soname_spec='${libname}${release}${shared_ext}$major'
  8535. shlibpath_var=LD_LIBRARY_PATH
  8536. case $host_vendor in
  8537. sni)
  8538. shlibpath_overrides_runpath=no
  8539. need_lib_prefix=no
  8540. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8541. runpath_var=LD_RUN_PATH
  8542. ;;
  8543. siemens)
  8544. need_lib_prefix=no
  8545. ;;
  8546. motorola)
  8547. need_lib_prefix=no
  8548. need_version=no
  8549. shlibpath_overrides_runpath=no
  8550. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8551. ;;
  8552. esac
  8553. ;;
  8554. sysv4*MP*)
  8555. if test -d /usr/nec ;then
  8556. version_type=linux
  8557. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8558. soname_spec='$libname${shared_ext}.$major'
  8559. shlibpath_var=LD_LIBRARY_PATH
  8560. fi
  8561. ;;
  8562. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8563. version_type=freebsd-elf
  8564. need_lib_prefix=no
  8565. need_version=no
  8566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8567. soname_spec='${libname}${release}${shared_ext}$major'
  8568. shlibpath_var=LD_LIBRARY_PATH
  8569. hardcode_into_libs=yes
  8570. if test "$with_gnu_ld" = yes; then
  8571. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8572. shlibpath_overrides_runpath=no
  8573. else
  8574. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8575. shlibpath_overrides_runpath=yes
  8576. case $host_os in
  8577. sco3.2v5*)
  8578. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8579. ;;
  8580. esac
  8581. fi
  8582. sys_lib_dlsearch_path_spec='/usr/lib'
  8583. ;;
  8584. uts4*)
  8585. version_type=linux
  8586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8587. soname_spec='${libname}${release}${shared_ext}$major'
  8588. shlibpath_var=LD_LIBRARY_PATH
  8589. ;;
  8590. *)
  8591. dynamic_linker=no
  8592. ;;
  8593. esac
  8594. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8595. echo "${ECHO_T}$dynamic_linker" >&6; }
  8596. test "$dynamic_linker" = no && can_build_shared=no
  8597. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8598. if test "$GCC" = yes; then
  8599. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8600. fi
  8601. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8602. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8603. hardcode_action=
  8604. if test -n "$hardcode_libdir_flag_spec" || \
  8605. test -n "$runpath_var" || \
  8606. test "X$hardcode_automatic" = "Xyes" ; then
  8607. # We can hardcode non-existant directories.
  8608. if test "$hardcode_direct" != no &&
  8609. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8610. # have to relink, otherwise we might link with an installed library
  8611. # when we should be linking with a yet-to-be-installed one
  8612. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8613. test "$hardcode_minus_L" != no; then
  8614. # Linking always hardcodes the temporary library directory.
  8615. hardcode_action=relink
  8616. else
  8617. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8618. hardcode_action=immediate
  8619. fi
  8620. else
  8621. # We cannot hardcode anything, or else we can only hardcode existing
  8622. # directories.
  8623. hardcode_action=unsupported
  8624. fi
  8625. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8626. echo "${ECHO_T}$hardcode_action" >&6; }
  8627. if test "$hardcode_action" = relink; then
  8628. # Fast installation is not supported
  8629. enable_fast_install=no
  8630. elif test "$shlibpath_overrides_runpath" = yes ||
  8631. test "$enable_shared" = no; then
  8632. # Fast installation is not necessary
  8633. enable_fast_install=needless
  8634. fi
  8635. striplib=
  8636. old_striplib=
  8637. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8638. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8639. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8640. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8641. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8642. { echo "$as_me:$LINENO: result: yes" >&5
  8643. echo "${ECHO_T}yes" >&6; }
  8644. else
  8645. # FIXME - insert some real tests, host_os isn't really good enough
  8646. case $host_os in
  8647. darwin*)
  8648. if test -n "$STRIP" ; then
  8649. striplib="$STRIP -x"
  8650. { echo "$as_me:$LINENO: result: yes" >&5
  8651. echo "${ECHO_T}yes" >&6; }
  8652. else
  8653. { echo "$as_me:$LINENO: result: no" >&5
  8654. echo "${ECHO_T}no" >&6; }
  8655. fi
  8656. ;;
  8657. *)
  8658. { echo "$as_me:$LINENO: result: no" >&5
  8659. echo "${ECHO_T}no" >&6; }
  8660. ;;
  8661. esac
  8662. fi
  8663. if test "x$enable_dlopen" != xyes; then
  8664. enable_dlopen=unknown
  8665. enable_dlopen_self=unknown
  8666. enable_dlopen_self_static=unknown
  8667. else
  8668. lt_cv_dlopen=no
  8669. lt_cv_dlopen_libs=
  8670. case $host_os in
  8671. beos*)
  8672. lt_cv_dlopen="load_add_on"
  8673. lt_cv_dlopen_libs=
  8674. lt_cv_dlopen_self=yes
  8675. ;;
  8676. mingw* | pw32*)
  8677. lt_cv_dlopen="LoadLibrary"
  8678. lt_cv_dlopen_libs=
  8679. ;;
  8680. cygwin*)
  8681. lt_cv_dlopen="dlopen"
  8682. lt_cv_dlopen_libs=
  8683. ;;
  8684. darwin*)
  8685. # if libdl is installed we need to link against it
  8686. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8687. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8688. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8689. echo $ECHO_N "(cached) $ECHO_C" >&6
  8690. else
  8691. ac_check_lib_save_LIBS=$LIBS
  8692. LIBS="-ldl $LIBS"
  8693. cat >conftest.$ac_ext <<_ACEOF
  8694. /* confdefs.h. */
  8695. _ACEOF
  8696. cat confdefs.h >>conftest.$ac_ext
  8697. cat >>conftest.$ac_ext <<_ACEOF
  8698. /* end confdefs.h. */
  8699. /* Override any GCC internal prototype to avoid an error.
  8700. Use char because int might match the return type of a GCC
  8701. builtin and then its argument prototype would still apply. */
  8702. #ifdef __cplusplus
  8703. extern "C"
  8704. #endif
  8705. char dlopen ();
  8706. int
  8707. main ()
  8708. {
  8709. return dlopen ();
  8710. ;
  8711. return 0;
  8712. }
  8713. _ACEOF
  8714. rm -f conftest.$ac_objext conftest$ac_exeext
  8715. if { (ac_try="$ac_link"
  8716. case "(($ac_try" in
  8717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8718. *) ac_try_echo=$ac_try;;
  8719. esac
  8720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8721. (eval "$ac_link") 2>conftest.er1
  8722. ac_status=$?
  8723. grep -v '^ *+' conftest.er1 >conftest.err
  8724. rm -f conftest.er1
  8725. cat conftest.err >&5
  8726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8727. (exit $ac_status); } &&
  8728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8729. { (case "(($ac_try" in
  8730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8731. *) ac_try_echo=$ac_try;;
  8732. esac
  8733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8734. (eval "$ac_try") 2>&5
  8735. ac_status=$?
  8736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8737. (exit $ac_status); }; } &&
  8738. { ac_try='test -s conftest$ac_exeext'
  8739. { (case "(($ac_try" in
  8740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8741. *) ac_try_echo=$ac_try;;
  8742. esac
  8743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8744. (eval "$ac_try") 2>&5
  8745. ac_status=$?
  8746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8747. (exit $ac_status); }; }; then
  8748. ac_cv_lib_dl_dlopen=yes
  8749. else
  8750. echo "$as_me: failed program was:" >&5
  8751. sed 's/^/| /' conftest.$ac_ext >&5
  8752. ac_cv_lib_dl_dlopen=no
  8753. fi
  8754. rm -f conftest.err conftest.$ac_objext \
  8755. conftest$ac_exeext conftest.$ac_ext
  8756. LIBS=$ac_check_lib_save_LIBS
  8757. fi
  8758. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8759. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8760. if test $ac_cv_lib_dl_dlopen = yes; then
  8761. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8762. else
  8763. lt_cv_dlopen="dyld"
  8764. lt_cv_dlopen_libs=
  8765. lt_cv_dlopen_self=yes
  8766. fi
  8767. ;;
  8768. *)
  8769. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8770. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8771. if test "${ac_cv_func_shl_load+set}" = set; then
  8772. echo $ECHO_N "(cached) $ECHO_C" >&6
  8773. else
  8774. cat >conftest.$ac_ext <<_ACEOF
  8775. /* confdefs.h. */
  8776. _ACEOF
  8777. cat confdefs.h >>conftest.$ac_ext
  8778. cat >>conftest.$ac_ext <<_ACEOF
  8779. /* end confdefs.h. */
  8780. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8781. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8782. #define shl_load innocuous_shl_load
  8783. /* System header to define __stub macros and hopefully few prototypes,
  8784. which can conflict with char shl_load (); below.
  8785. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8786. <limits.h> exists even on freestanding compilers. */
  8787. #ifdef __STDC__
  8788. # include <limits.h>
  8789. #else
  8790. # include <assert.h>
  8791. #endif
  8792. #undef shl_load
  8793. /* Override any GCC internal prototype to avoid an error.
  8794. Use char because int might match the return type of a GCC
  8795. builtin and then its argument prototype would still apply. */
  8796. #ifdef __cplusplus
  8797. extern "C"
  8798. #endif
  8799. char shl_load ();
  8800. /* The GNU C library defines this for functions which it implements
  8801. to always fail with ENOSYS. Some functions are actually named
  8802. something starting with __ and the normal name is an alias. */
  8803. #if defined __stub_shl_load || defined __stub___shl_load
  8804. choke me
  8805. #endif
  8806. int
  8807. main ()
  8808. {
  8809. return shl_load ();
  8810. ;
  8811. return 0;
  8812. }
  8813. _ACEOF
  8814. rm -f conftest.$ac_objext conftest$ac_exeext
  8815. if { (ac_try="$ac_link"
  8816. case "(($ac_try" in
  8817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8818. *) ac_try_echo=$ac_try;;
  8819. esac
  8820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8821. (eval "$ac_link") 2>conftest.er1
  8822. ac_status=$?
  8823. grep -v '^ *+' conftest.er1 >conftest.err
  8824. rm -f conftest.er1
  8825. cat conftest.err >&5
  8826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8827. (exit $ac_status); } &&
  8828. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8829. { (case "(($ac_try" in
  8830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8831. *) ac_try_echo=$ac_try;;
  8832. esac
  8833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8834. (eval "$ac_try") 2>&5
  8835. ac_status=$?
  8836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8837. (exit $ac_status); }; } &&
  8838. { ac_try='test -s conftest$ac_exeext'
  8839. { (case "(($ac_try" in
  8840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8841. *) ac_try_echo=$ac_try;;
  8842. esac
  8843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8844. (eval "$ac_try") 2>&5
  8845. ac_status=$?
  8846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8847. (exit $ac_status); }; }; then
  8848. ac_cv_func_shl_load=yes
  8849. else
  8850. echo "$as_me: failed program was:" >&5
  8851. sed 's/^/| /' conftest.$ac_ext >&5
  8852. ac_cv_func_shl_load=no
  8853. fi
  8854. rm -f conftest.err conftest.$ac_objext \
  8855. conftest$ac_exeext conftest.$ac_ext
  8856. fi
  8857. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8858. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8859. if test $ac_cv_func_shl_load = yes; then
  8860. lt_cv_dlopen="shl_load"
  8861. else
  8862. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8863. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8864. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8865. echo $ECHO_N "(cached) $ECHO_C" >&6
  8866. else
  8867. ac_check_lib_save_LIBS=$LIBS
  8868. LIBS="-ldld $LIBS"
  8869. cat >conftest.$ac_ext <<_ACEOF
  8870. /* confdefs.h. */
  8871. _ACEOF
  8872. cat confdefs.h >>conftest.$ac_ext
  8873. cat >>conftest.$ac_ext <<_ACEOF
  8874. /* end confdefs.h. */
  8875. /* Override any GCC internal prototype to avoid an error.
  8876. Use char because int might match the return type of a GCC
  8877. builtin and then its argument prototype would still apply. */
  8878. #ifdef __cplusplus
  8879. extern "C"
  8880. #endif
  8881. char shl_load ();
  8882. int
  8883. main ()
  8884. {
  8885. return shl_load ();
  8886. ;
  8887. return 0;
  8888. }
  8889. _ACEOF
  8890. rm -f conftest.$ac_objext conftest$ac_exeext
  8891. if { (ac_try="$ac_link"
  8892. case "(($ac_try" in
  8893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8894. *) ac_try_echo=$ac_try;;
  8895. esac
  8896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8897. (eval "$ac_link") 2>conftest.er1
  8898. ac_status=$?
  8899. grep -v '^ *+' conftest.er1 >conftest.err
  8900. rm -f conftest.er1
  8901. cat conftest.err >&5
  8902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8903. (exit $ac_status); } &&
  8904. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8905. { (case "(($ac_try" in
  8906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8907. *) ac_try_echo=$ac_try;;
  8908. esac
  8909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8910. (eval "$ac_try") 2>&5
  8911. ac_status=$?
  8912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8913. (exit $ac_status); }; } &&
  8914. { ac_try='test -s conftest$ac_exeext'
  8915. { (case "(($ac_try" in
  8916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8917. *) ac_try_echo=$ac_try;;
  8918. esac
  8919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8920. (eval "$ac_try") 2>&5
  8921. ac_status=$?
  8922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8923. (exit $ac_status); }; }; then
  8924. ac_cv_lib_dld_shl_load=yes
  8925. else
  8926. echo "$as_me: failed program was:" >&5
  8927. sed 's/^/| /' conftest.$ac_ext >&5
  8928. ac_cv_lib_dld_shl_load=no
  8929. fi
  8930. rm -f conftest.err conftest.$ac_objext \
  8931. conftest$ac_exeext conftest.$ac_ext
  8932. LIBS=$ac_check_lib_save_LIBS
  8933. fi
  8934. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8935. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8936. if test $ac_cv_lib_dld_shl_load = yes; then
  8937. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8938. else
  8939. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8940. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8941. if test "${ac_cv_func_dlopen+set}" = set; then
  8942. echo $ECHO_N "(cached) $ECHO_C" >&6
  8943. else
  8944. cat >conftest.$ac_ext <<_ACEOF
  8945. /* confdefs.h. */
  8946. _ACEOF
  8947. cat confdefs.h >>conftest.$ac_ext
  8948. cat >>conftest.$ac_ext <<_ACEOF
  8949. /* end confdefs.h. */
  8950. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8951. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8952. #define dlopen innocuous_dlopen
  8953. /* System header to define __stub macros and hopefully few prototypes,
  8954. which can conflict with char dlopen (); below.
  8955. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8956. <limits.h> exists even on freestanding compilers. */
  8957. #ifdef __STDC__
  8958. # include <limits.h>
  8959. #else
  8960. # include <assert.h>
  8961. #endif
  8962. #undef dlopen
  8963. /* Override any GCC internal prototype to avoid an error.
  8964. Use char because int might match the return type of a GCC
  8965. builtin and then its argument prototype would still apply. */
  8966. #ifdef __cplusplus
  8967. extern "C"
  8968. #endif
  8969. char dlopen ();
  8970. /* The GNU C library defines this for functions which it implements
  8971. to always fail with ENOSYS. Some functions are actually named
  8972. something starting with __ and the normal name is an alias. */
  8973. #if defined __stub_dlopen || defined __stub___dlopen
  8974. choke me
  8975. #endif
  8976. int
  8977. main ()
  8978. {
  8979. return dlopen ();
  8980. ;
  8981. return 0;
  8982. }
  8983. _ACEOF
  8984. rm -f conftest.$ac_objext conftest$ac_exeext
  8985. if { (ac_try="$ac_link"
  8986. case "(($ac_try" in
  8987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8988. *) ac_try_echo=$ac_try;;
  8989. esac
  8990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8991. (eval "$ac_link") 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } &&
  8998. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8999. { (case "(($ac_try" in
  9000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9001. *) ac_try_echo=$ac_try;;
  9002. esac
  9003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9004. (eval "$ac_try") 2>&5
  9005. ac_status=$?
  9006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9007. (exit $ac_status); }; } &&
  9008. { ac_try='test -s conftest$ac_exeext'
  9009. { (case "(($ac_try" in
  9010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9011. *) ac_try_echo=$ac_try;;
  9012. esac
  9013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9014. (eval "$ac_try") 2>&5
  9015. ac_status=$?
  9016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9017. (exit $ac_status); }; }; then
  9018. ac_cv_func_dlopen=yes
  9019. else
  9020. echo "$as_me: failed program was:" >&5
  9021. sed 's/^/| /' conftest.$ac_ext >&5
  9022. ac_cv_func_dlopen=no
  9023. fi
  9024. rm -f conftest.err conftest.$ac_objext \
  9025. conftest$ac_exeext conftest.$ac_ext
  9026. fi
  9027. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9028. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  9029. if test $ac_cv_func_dlopen = yes; then
  9030. lt_cv_dlopen="dlopen"
  9031. else
  9032. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9033. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9034. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9035. echo $ECHO_N "(cached) $ECHO_C" >&6
  9036. else
  9037. ac_check_lib_save_LIBS=$LIBS
  9038. LIBS="-ldl $LIBS"
  9039. cat >conftest.$ac_ext <<_ACEOF
  9040. /* confdefs.h. */
  9041. _ACEOF
  9042. cat confdefs.h >>conftest.$ac_ext
  9043. cat >>conftest.$ac_ext <<_ACEOF
  9044. /* end confdefs.h. */
  9045. /* Override any GCC internal prototype to avoid an error.
  9046. Use char because int might match the return type of a GCC
  9047. builtin and then its argument prototype would still apply. */
  9048. #ifdef __cplusplus
  9049. extern "C"
  9050. #endif
  9051. char dlopen ();
  9052. int
  9053. main ()
  9054. {
  9055. return dlopen ();
  9056. ;
  9057. return 0;
  9058. }
  9059. _ACEOF
  9060. rm -f conftest.$ac_objext conftest$ac_exeext
  9061. if { (ac_try="$ac_link"
  9062. case "(($ac_try" in
  9063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9064. *) ac_try_echo=$ac_try;;
  9065. esac
  9066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9067. (eval "$ac_link") 2>conftest.er1
  9068. ac_status=$?
  9069. grep -v '^ *+' conftest.er1 >conftest.err
  9070. rm -f conftest.er1
  9071. cat conftest.err >&5
  9072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9073. (exit $ac_status); } &&
  9074. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9075. { (case "(($ac_try" in
  9076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9077. *) ac_try_echo=$ac_try;;
  9078. esac
  9079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9080. (eval "$ac_try") 2>&5
  9081. ac_status=$?
  9082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9083. (exit $ac_status); }; } &&
  9084. { ac_try='test -s conftest$ac_exeext'
  9085. { (case "(($ac_try" in
  9086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9087. *) ac_try_echo=$ac_try;;
  9088. esac
  9089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9090. (eval "$ac_try") 2>&5
  9091. ac_status=$?
  9092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9093. (exit $ac_status); }; }; then
  9094. ac_cv_lib_dl_dlopen=yes
  9095. else
  9096. echo "$as_me: failed program was:" >&5
  9097. sed 's/^/| /' conftest.$ac_ext >&5
  9098. ac_cv_lib_dl_dlopen=no
  9099. fi
  9100. rm -f conftest.err conftest.$ac_objext \
  9101. conftest$ac_exeext conftest.$ac_ext
  9102. LIBS=$ac_check_lib_save_LIBS
  9103. fi
  9104. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9105. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9106. if test $ac_cv_lib_dl_dlopen = yes; then
  9107. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9108. else
  9109. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9110. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9111. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9112. echo $ECHO_N "(cached) $ECHO_C" >&6
  9113. else
  9114. ac_check_lib_save_LIBS=$LIBS
  9115. LIBS="-lsvld $LIBS"
  9116. cat >conftest.$ac_ext <<_ACEOF
  9117. /* confdefs.h. */
  9118. _ACEOF
  9119. cat confdefs.h >>conftest.$ac_ext
  9120. cat >>conftest.$ac_ext <<_ACEOF
  9121. /* end confdefs.h. */
  9122. /* Override any GCC internal prototype to avoid an error.
  9123. Use char because int might match the return type of a GCC
  9124. builtin and then its argument prototype would still apply. */
  9125. #ifdef __cplusplus
  9126. extern "C"
  9127. #endif
  9128. char dlopen ();
  9129. int
  9130. main ()
  9131. {
  9132. return dlopen ();
  9133. ;
  9134. return 0;
  9135. }
  9136. _ACEOF
  9137. rm -f conftest.$ac_objext conftest$ac_exeext
  9138. if { (ac_try="$ac_link"
  9139. case "(($ac_try" in
  9140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9141. *) ac_try_echo=$ac_try;;
  9142. esac
  9143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9144. (eval "$ac_link") 2>conftest.er1
  9145. ac_status=$?
  9146. grep -v '^ *+' conftest.er1 >conftest.err
  9147. rm -f conftest.er1
  9148. cat conftest.err >&5
  9149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9150. (exit $ac_status); } &&
  9151. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9152. { (case "(($ac_try" in
  9153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9154. *) ac_try_echo=$ac_try;;
  9155. esac
  9156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9157. (eval "$ac_try") 2>&5
  9158. ac_status=$?
  9159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9160. (exit $ac_status); }; } &&
  9161. { ac_try='test -s conftest$ac_exeext'
  9162. { (case "(($ac_try" in
  9163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9164. *) ac_try_echo=$ac_try;;
  9165. esac
  9166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9167. (eval "$ac_try") 2>&5
  9168. ac_status=$?
  9169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9170. (exit $ac_status); }; }; then
  9171. ac_cv_lib_svld_dlopen=yes
  9172. else
  9173. echo "$as_me: failed program was:" >&5
  9174. sed 's/^/| /' conftest.$ac_ext >&5
  9175. ac_cv_lib_svld_dlopen=no
  9176. fi
  9177. rm -f conftest.err conftest.$ac_objext \
  9178. conftest$ac_exeext conftest.$ac_ext
  9179. LIBS=$ac_check_lib_save_LIBS
  9180. fi
  9181. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9182. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9183. if test $ac_cv_lib_svld_dlopen = yes; then
  9184. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9185. else
  9186. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9187. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9188. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9189. echo $ECHO_N "(cached) $ECHO_C" >&6
  9190. else
  9191. ac_check_lib_save_LIBS=$LIBS
  9192. LIBS="-ldld $LIBS"
  9193. cat >conftest.$ac_ext <<_ACEOF
  9194. /* confdefs.h. */
  9195. _ACEOF
  9196. cat confdefs.h >>conftest.$ac_ext
  9197. cat >>conftest.$ac_ext <<_ACEOF
  9198. /* end confdefs.h. */
  9199. /* Override any GCC internal prototype to avoid an error.
  9200. Use char because int might match the return type of a GCC
  9201. builtin and then its argument prototype would still apply. */
  9202. #ifdef __cplusplus
  9203. extern "C"
  9204. #endif
  9205. char dld_link ();
  9206. int
  9207. main ()
  9208. {
  9209. return dld_link ();
  9210. ;
  9211. return 0;
  9212. }
  9213. _ACEOF
  9214. rm -f conftest.$ac_objext conftest$ac_exeext
  9215. if { (ac_try="$ac_link"
  9216. case "(($ac_try" in
  9217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9218. *) ac_try_echo=$ac_try;;
  9219. esac
  9220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9221. (eval "$ac_link") 2>conftest.er1
  9222. ac_status=$?
  9223. grep -v '^ *+' conftest.er1 >conftest.err
  9224. rm -f conftest.er1
  9225. cat conftest.err >&5
  9226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9227. (exit $ac_status); } &&
  9228. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9229. { (case "(($ac_try" in
  9230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9231. *) ac_try_echo=$ac_try;;
  9232. esac
  9233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9234. (eval "$ac_try") 2>&5
  9235. ac_status=$?
  9236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9237. (exit $ac_status); }; } &&
  9238. { ac_try='test -s conftest$ac_exeext'
  9239. { (case "(($ac_try" in
  9240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9241. *) ac_try_echo=$ac_try;;
  9242. esac
  9243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9244. (eval "$ac_try") 2>&5
  9245. ac_status=$?
  9246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9247. (exit $ac_status); }; }; then
  9248. ac_cv_lib_dld_dld_link=yes
  9249. else
  9250. echo "$as_me: failed program was:" >&5
  9251. sed 's/^/| /' conftest.$ac_ext >&5
  9252. ac_cv_lib_dld_dld_link=no
  9253. fi
  9254. rm -f conftest.err conftest.$ac_objext \
  9255. conftest$ac_exeext conftest.$ac_ext
  9256. LIBS=$ac_check_lib_save_LIBS
  9257. fi
  9258. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9259. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9260. if test $ac_cv_lib_dld_dld_link = yes; then
  9261. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9262. fi
  9263. fi
  9264. fi
  9265. fi
  9266. fi
  9267. fi
  9268. ;;
  9269. esac
  9270. if test "x$lt_cv_dlopen" != xno; then
  9271. enable_dlopen=yes
  9272. else
  9273. enable_dlopen=no
  9274. fi
  9275. case $lt_cv_dlopen in
  9276. dlopen)
  9277. save_CPPFLAGS="$CPPFLAGS"
  9278. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9279. save_LDFLAGS="$LDFLAGS"
  9280. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9281. save_LIBS="$LIBS"
  9282. LIBS="$lt_cv_dlopen_libs $LIBS"
  9283. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9284. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9285. if test "${lt_cv_dlopen_self+set}" = set; then
  9286. echo $ECHO_N "(cached) $ECHO_C" >&6
  9287. else
  9288. if test "$cross_compiling" = yes; then :
  9289. lt_cv_dlopen_self=cross
  9290. else
  9291. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9292. lt_status=$lt_dlunknown
  9293. cat > conftest.$ac_ext <<EOF
  9294. #line __oline__ "configure"
  9295. #include "confdefs.h"
  9296. #if HAVE_DLFCN_H
  9297. #include <dlfcn.h>
  9298. #endif
  9299. #include <stdio.h>
  9300. #ifdef RTLD_GLOBAL
  9301. # define LT_DLGLOBAL RTLD_GLOBAL
  9302. #else
  9303. # ifdef DL_GLOBAL
  9304. # define LT_DLGLOBAL DL_GLOBAL
  9305. # else
  9306. # define LT_DLGLOBAL 0
  9307. # endif
  9308. #endif
  9309. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9310. find out it does not work in some platform. */
  9311. #ifndef LT_DLLAZY_OR_NOW
  9312. # ifdef RTLD_LAZY
  9313. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9314. # else
  9315. # ifdef DL_LAZY
  9316. # define LT_DLLAZY_OR_NOW DL_LAZY
  9317. # else
  9318. # ifdef RTLD_NOW
  9319. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9320. # else
  9321. # ifdef DL_NOW
  9322. # define LT_DLLAZY_OR_NOW DL_NOW
  9323. # else
  9324. # define LT_DLLAZY_OR_NOW 0
  9325. # endif
  9326. # endif
  9327. # endif
  9328. # endif
  9329. #endif
  9330. #ifdef __cplusplus
  9331. extern "C" void exit (int);
  9332. #endif
  9333. void fnord() { int i=42;}
  9334. int main ()
  9335. {
  9336. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9337. int status = $lt_dlunknown;
  9338. if (self)
  9339. {
  9340. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9341. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9342. /* dlclose (self); */
  9343. }
  9344. else
  9345. puts (dlerror ());
  9346. exit (status);
  9347. }
  9348. EOF
  9349. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9350. (eval $ac_link) 2>&5
  9351. ac_status=$?
  9352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9353. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9354. (./conftest; exit; ) >&5 2>/dev/null
  9355. lt_status=$?
  9356. case x$lt_status in
  9357. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9358. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9359. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9360. esac
  9361. else :
  9362. # compilation failed
  9363. lt_cv_dlopen_self=no
  9364. fi
  9365. fi
  9366. rm -fr conftest*
  9367. fi
  9368. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9369. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9370. if test "x$lt_cv_dlopen_self" = xyes; then
  9371. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9372. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9373. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9374. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9375. echo $ECHO_N "(cached) $ECHO_C" >&6
  9376. else
  9377. if test "$cross_compiling" = yes; then :
  9378. lt_cv_dlopen_self_static=cross
  9379. else
  9380. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9381. lt_status=$lt_dlunknown
  9382. cat > conftest.$ac_ext <<EOF
  9383. #line __oline__ "configure"
  9384. #include "confdefs.h"
  9385. #if HAVE_DLFCN_H
  9386. #include <dlfcn.h>
  9387. #endif
  9388. #include <stdio.h>
  9389. #ifdef RTLD_GLOBAL
  9390. # define LT_DLGLOBAL RTLD_GLOBAL
  9391. #else
  9392. # ifdef DL_GLOBAL
  9393. # define LT_DLGLOBAL DL_GLOBAL
  9394. # else
  9395. # define LT_DLGLOBAL 0
  9396. # endif
  9397. #endif
  9398. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9399. find out it does not work in some platform. */
  9400. #ifndef LT_DLLAZY_OR_NOW
  9401. # ifdef RTLD_LAZY
  9402. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9403. # else
  9404. # ifdef DL_LAZY
  9405. # define LT_DLLAZY_OR_NOW DL_LAZY
  9406. # else
  9407. # ifdef RTLD_NOW
  9408. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9409. # else
  9410. # ifdef DL_NOW
  9411. # define LT_DLLAZY_OR_NOW DL_NOW
  9412. # else
  9413. # define LT_DLLAZY_OR_NOW 0
  9414. # endif
  9415. # endif
  9416. # endif
  9417. # endif
  9418. #endif
  9419. #ifdef __cplusplus
  9420. extern "C" void exit (int);
  9421. #endif
  9422. void fnord() { int i=42;}
  9423. int main ()
  9424. {
  9425. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9426. int status = $lt_dlunknown;
  9427. if (self)
  9428. {
  9429. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9430. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9431. /* dlclose (self); */
  9432. }
  9433. else
  9434. puts (dlerror ());
  9435. exit (status);
  9436. }
  9437. EOF
  9438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9439. (eval $ac_link) 2>&5
  9440. ac_status=$?
  9441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9442. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9443. (./conftest; exit; ) >&5 2>/dev/null
  9444. lt_status=$?
  9445. case x$lt_status in
  9446. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9447. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9448. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9449. esac
  9450. else :
  9451. # compilation failed
  9452. lt_cv_dlopen_self_static=no
  9453. fi
  9454. fi
  9455. rm -fr conftest*
  9456. fi
  9457. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9458. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9459. fi
  9460. CPPFLAGS="$save_CPPFLAGS"
  9461. LDFLAGS="$save_LDFLAGS"
  9462. LIBS="$save_LIBS"
  9463. ;;
  9464. esac
  9465. case $lt_cv_dlopen_self in
  9466. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9467. *) enable_dlopen_self=unknown ;;
  9468. esac
  9469. case $lt_cv_dlopen_self_static in
  9470. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9471. *) enable_dlopen_self_static=unknown ;;
  9472. esac
  9473. fi
  9474. # Report which library types will actually be built
  9475. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9476. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9477. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9478. echo "${ECHO_T}$can_build_shared" >&6; }
  9479. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9480. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9481. test "$can_build_shared" = "no" && enable_shared=no
  9482. # On AIX, shared libraries and static libraries use the same namespace, and
  9483. # are all built from PIC.
  9484. case $host_os in
  9485. aix3*)
  9486. test "$enable_shared" = yes && enable_static=no
  9487. if test -n "$RANLIB"; then
  9488. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9489. postinstall_cmds='$RANLIB $lib'
  9490. fi
  9491. ;;
  9492. aix4* | aix5*)
  9493. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9494. test "$enable_shared" = yes && enable_static=no
  9495. fi
  9496. ;;
  9497. esac
  9498. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9499. echo "${ECHO_T}$enable_shared" >&6; }
  9500. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9501. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9502. # Make sure either enable_shared or enable_static is yes.
  9503. test "$enable_shared" = yes || enable_static=yes
  9504. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9505. echo "${ECHO_T}$enable_static" >&6; }
  9506. # The else clause should only fire when bootstrapping the
  9507. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9508. # with your package, and you will get complaints that there are
  9509. # no rules to generate ltmain.sh.
  9510. if test -f "$ltmain"; then
  9511. # See if we are running on zsh, and set the options which allow our commands through
  9512. # without removal of \ escapes.
  9513. if test -n "${ZSH_VERSION+set}" ; then
  9514. setopt NO_GLOB_SUBST
  9515. fi
  9516. # Now quote all the things that may contain metacharacters while being
  9517. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9518. # variables and quote the copies for generation of the libtool script.
  9519. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9520. SED SHELL STRIP \
  9521. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9522. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9523. deplibs_check_method reload_flag reload_cmds need_locks \
  9524. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9525. lt_cv_sys_global_symbol_to_c_name_address \
  9526. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9527. old_postinstall_cmds old_postuninstall_cmds \
  9528. compiler \
  9529. CC \
  9530. LD \
  9531. lt_prog_compiler_wl \
  9532. lt_prog_compiler_pic \
  9533. lt_prog_compiler_static \
  9534. lt_prog_compiler_no_builtin_flag \
  9535. export_dynamic_flag_spec \
  9536. thread_safe_flag_spec \
  9537. whole_archive_flag_spec \
  9538. enable_shared_with_static_runtimes \
  9539. old_archive_cmds \
  9540. old_archive_from_new_cmds \
  9541. predep_objects \
  9542. postdep_objects \
  9543. predeps \
  9544. postdeps \
  9545. compiler_lib_search_path \
  9546. archive_cmds \
  9547. archive_expsym_cmds \
  9548. postinstall_cmds \
  9549. postuninstall_cmds \
  9550. old_archive_from_expsyms_cmds \
  9551. allow_undefined_flag \
  9552. no_undefined_flag \
  9553. export_symbols_cmds \
  9554. hardcode_libdir_flag_spec \
  9555. hardcode_libdir_flag_spec_ld \
  9556. hardcode_libdir_separator \
  9557. hardcode_automatic \
  9558. module_cmds \
  9559. module_expsym_cmds \
  9560. lt_cv_prog_compiler_c_o \
  9561. exclude_expsyms \
  9562. include_expsyms; do
  9563. case $var in
  9564. old_archive_cmds | \
  9565. old_archive_from_new_cmds | \
  9566. archive_cmds | \
  9567. archive_expsym_cmds | \
  9568. module_cmds | \
  9569. module_expsym_cmds | \
  9570. old_archive_from_expsyms_cmds | \
  9571. export_symbols_cmds | \
  9572. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9573. postinstall_cmds | postuninstall_cmds | \
  9574. old_postinstall_cmds | old_postuninstall_cmds | \
  9575. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9576. # Double-quote double-evaled strings.
  9577. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9578. ;;
  9579. *)
  9580. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9581. ;;
  9582. esac
  9583. done
  9584. case $lt_echo in
  9585. *'\$0 --fallback-echo"')
  9586. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9587. ;;
  9588. esac
  9589. cfgfile="${ofile}T"
  9590. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9591. $rm -f "$cfgfile"
  9592. { echo "$as_me:$LINENO: creating $ofile" >&5
  9593. echo "$as_me: creating $ofile" >&6;}
  9594. cat <<__EOF__ >> "$cfgfile"
  9595. #! $SHELL
  9596. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9597. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9598. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9599. #
  9600. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9601. # Free Software Foundation, Inc.
  9602. #
  9603. # This file is part of GNU Libtool:
  9604. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9605. #
  9606. # This program is free software; you can redistribute it and/or modify
  9607. # it under the terms of the GNU General Public License as published by
  9608. # the Free Software Foundation; either version 2 of the License, or
  9609. # (at your option) any later version.
  9610. #
  9611. # This program is distributed in the hope that it will be useful, but
  9612. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9613. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9614. # General Public License for more details.
  9615. #
  9616. # You should have received a copy of the GNU General Public License
  9617. # along with this program; if not, write to the Free Software
  9618. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9619. #
  9620. # As a special exception to the GNU General Public License, if you
  9621. # distribute this file as part of a program that contains a
  9622. # configuration script generated by Autoconf, you may include it under
  9623. # the same distribution terms that you use for the rest of that program.
  9624. # A sed program that does not truncate output.
  9625. SED=$lt_SED
  9626. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9627. Xsed="$SED -e 1s/^X//"
  9628. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9629. # if CDPATH is set.
  9630. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9631. # The names of the tagged configurations supported by this script.
  9632. available_tags=
  9633. # ### BEGIN LIBTOOL CONFIG
  9634. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9635. # Shell to use when invoking shell scripts.
  9636. SHELL=$lt_SHELL
  9637. # Whether or not to build shared libraries.
  9638. build_libtool_libs=$enable_shared
  9639. # Whether or not to build static libraries.
  9640. build_old_libs=$enable_static
  9641. # Whether or not to add -lc for building shared libraries.
  9642. build_libtool_need_lc=$archive_cmds_need_lc
  9643. # Whether or not to disallow shared libs when runtime libs are static
  9644. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9645. # Whether or not to optimize for fast installation.
  9646. fast_install=$enable_fast_install
  9647. # The host system.
  9648. host_alias=$host_alias
  9649. host=$host
  9650. host_os=$host_os
  9651. # The build system.
  9652. build_alias=$build_alias
  9653. build=$build
  9654. build_os=$build_os
  9655. # An echo program that does not interpret backslashes.
  9656. echo=$lt_echo
  9657. # The archiver.
  9658. AR=$lt_AR
  9659. AR_FLAGS=$lt_AR_FLAGS
  9660. # A C compiler.
  9661. LTCC=$lt_LTCC
  9662. # LTCC compiler flags.
  9663. LTCFLAGS=$lt_LTCFLAGS
  9664. # A language-specific compiler.
  9665. CC=$lt_compiler
  9666. # Is the compiler the GNU C compiler?
  9667. with_gcc=$GCC
  9668. # An ERE matcher.
  9669. EGREP=$lt_EGREP
  9670. # The linker used to build libraries.
  9671. LD=$lt_LD
  9672. # Whether we need hard or soft links.
  9673. LN_S=$lt_LN_S
  9674. # A BSD-compatible nm program.
  9675. NM=$lt_NM
  9676. # A symbol stripping program
  9677. STRIP=$lt_STRIP
  9678. # Used to examine libraries when file_magic_cmd begins "file"
  9679. MAGIC_CMD=$MAGIC_CMD
  9680. # Used on cygwin: DLL creation program.
  9681. DLLTOOL="$DLLTOOL"
  9682. # Used on cygwin: object dumper.
  9683. OBJDUMP="$OBJDUMP"
  9684. # Used on cygwin: assembler.
  9685. AS="$AS"
  9686. # The name of the directory that contains temporary libtool files.
  9687. objdir=$objdir
  9688. # How to create reloadable object files.
  9689. reload_flag=$lt_reload_flag
  9690. reload_cmds=$lt_reload_cmds
  9691. # How to pass a linker flag through the compiler.
  9692. wl=$lt_lt_prog_compiler_wl
  9693. # Object file suffix (normally "o").
  9694. objext="$ac_objext"
  9695. # Old archive suffix (normally "a").
  9696. libext="$libext"
  9697. # Shared library suffix (normally ".so").
  9698. shrext_cmds='$shrext_cmds'
  9699. # Executable file suffix (normally "").
  9700. exeext="$exeext"
  9701. # Additional compiler flags for building library objects.
  9702. pic_flag=$lt_lt_prog_compiler_pic
  9703. pic_mode=$pic_mode
  9704. # What is the maximum length of a command?
  9705. max_cmd_len=$lt_cv_sys_max_cmd_len
  9706. # Does compiler simultaneously support -c and -o options?
  9707. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9708. # Must we lock files when doing compilation?
  9709. need_locks=$lt_need_locks
  9710. # Do we need the lib prefix for modules?
  9711. need_lib_prefix=$need_lib_prefix
  9712. # Do we need a version for libraries?
  9713. need_version=$need_version
  9714. # Whether dlopen is supported.
  9715. dlopen_support=$enable_dlopen
  9716. # Whether dlopen of programs is supported.
  9717. dlopen_self=$enable_dlopen_self
  9718. # Whether dlopen of statically linked programs is supported.
  9719. dlopen_self_static=$enable_dlopen_self_static
  9720. # Compiler flag to prevent dynamic linking.
  9721. link_static_flag=$lt_lt_prog_compiler_static
  9722. # Compiler flag to turn off builtin functions.
  9723. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9724. # Compiler flag to allow reflexive dlopens.
  9725. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9726. # Compiler flag to generate shared objects directly from archives.
  9727. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9728. # Compiler flag to generate thread-safe objects.
  9729. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9730. # Library versioning type.
  9731. version_type=$version_type
  9732. # Format of library name prefix.
  9733. libname_spec=$lt_libname_spec
  9734. # List of archive names. First name is the real one, the rest are links.
  9735. # The last name is the one that the linker finds with -lNAME.
  9736. library_names_spec=$lt_library_names_spec
  9737. # The coded name of the library, if different from the real name.
  9738. soname_spec=$lt_soname_spec
  9739. # Commands used to build and install an old-style archive.
  9740. RANLIB=$lt_RANLIB
  9741. old_archive_cmds=$lt_old_archive_cmds
  9742. old_postinstall_cmds=$lt_old_postinstall_cmds
  9743. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9744. # Create an old-style archive from a shared archive.
  9745. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9746. # Create a temporary old-style archive to link instead of a shared archive.
  9747. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9748. # Commands used to build and install a shared archive.
  9749. archive_cmds=$lt_archive_cmds
  9750. archive_expsym_cmds=$lt_archive_expsym_cmds
  9751. postinstall_cmds=$lt_postinstall_cmds
  9752. postuninstall_cmds=$lt_postuninstall_cmds
  9753. # Commands used to build a loadable module (assumed same as above if empty)
  9754. module_cmds=$lt_module_cmds
  9755. module_expsym_cmds=$lt_module_expsym_cmds
  9756. # Commands to strip libraries.
  9757. old_striplib=$lt_old_striplib
  9758. striplib=$lt_striplib
  9759. # Dependencies to place before the objects being linked to create a
  9760. # shared library.
  9761. predep_objects=$lt_predep_objects
  9762. # Dependencies to place after the objects being linked to create a
  9763. # shared library.
  9764. postdep_objects=$lt_postdep_objects
  9765. # Dependencies to place before the objects being linked to create a
  9766. # shared library.
  9767. predeps=$lt_predeps
  9768. # Dependencies to place after the objects being linked to create a
  9769. # shared library.
  9770. postdeps=$lt_postdeps
  9771. # The library search path used internally by the compiler when linking
  9772. # a shared library.
  9773. compiler_lib_search_path=$lt_compiler_lib_search_path
  9774. # Method to check whether dependent libraries are shared objects.
  9775. deplibs_check_method=$lt_deplibs_check_method
  9776. # Command to use when deplibs_check_method == file_magic.
  9777. file_magic_cmd=$lt_file_magic_cmd
  9778. # Flag that allows shared libraries with undefined symbols to be built.
  9779. allow_undefined_flag=$lt_allow_undefined_flag
  9780. # Flag that forces no undefined symbols.
  9781. no_undefined_flag=$lt_no_undefined_flag
  9782. # Commands used to finish a libtool library installation in a directory.
  9783. finish_cmds=$lt_finish_cmds
  9784. # Same as above, but a single script fragment to be evaled but not shown.
  9785. finish_eval=$lt_finish_eval
  9786. # Take the output of nm and produce a listing of raw symbols and C names.
  9787. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9788. # Transform the output of nm in a proper C declaration
  9789. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9790. # Transform the output of nm in a C name address pair
  9791. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9792. # This is the shared library runtime path variable.
  9793. runpath_var=$runpath_var
  9794. # This is the shared library path variable.
  9795. shlibpath_var=$shlibpath_var
  9796. # Is shlibpath searched before the hard-coded library search path?
  9797. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9798. # How to hardcode a shared library path into an executable.
  9799. hardcode_action=$hardcode_action
  9800. # Whether we should hardcode library paths into libraries.
  9801. hardcode_into_libs=$hardcode_into_libs
  9802. # Flag to hardcode \$libdir into a binary during linking.
  9803. # This must work even if \$libdir does not exist.
  9804. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9805. # If ld is used when linking, flag to hardcode \$libdir into
  9806. # a binary during linking. This must work even if \$libdir does
  9807. # not exist.
  9808. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9809. # Whether we need a single -rpath flag with a separated argument.
  9810. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9811. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9812. # resulting binary.
  9813. hardcode_direct=$hardcode_direct
  9814. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9815. # resulting binary.
  9816. hardcode_minus_L=$hardcode_minus_L
  9817. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9818. # the resulting binary.
  9819. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9820. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9821. # and all subsequent libraries and executables linked against it.
  9822. hardcode_automatic=$hardcode_automatic
  9823. # Variables whose values should be saved in libtool wrapper scripts and
  9824. # restored at relink time.
  9825. variables_saved_for_relink="$variables_saved_for_relink"
  9826. # Whether libtool must link a program against all its dependency libraries.
  9827. link_all_deplibs=$link_all_deplibs
  9828. # Compile-time system search path for libraries
  9829. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9830. # Run-time system search path for libraries
  9831. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9832. # Fix the shell variable \$srcfile for the compiler.
  9833. fix_srcfile_path="$fix_srcfile_path"
  9834. # Set to yes if exported symbols are required.
  9835. always_export_symbols=$always_export_symbols
  9836. # The commands to list exported symbols.
  9837. export_symbols_cmds=$lt_export_symbols_cmds
  9838. # The commands to extract the exported symbol list from a shared archive.
  9839. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9840. # Symbols that should not be listed in the preloaded symbols.
  9841. exclude_expsyms=$lt_exclude_expsyms
  9842. # Symbols that must always be exported.
  9843. include_expsyms=$lt_include_expsyms
  9844. # ### END LIBTOOL CONFIG
  9845. __EOF__
  9846. case $host_os in
  9847. aix3*)
  9848. cat <<\EOF >> "$cfgfile"
  9849. # AIX sometimes has problems with the GCC collect2 program. For some
  9850. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9851. # vanish in a puff of smoke.
  9852. if test "X${COLLECT_NAMES+set}" != Xset; then
  9853. COLLECT_NAMES=
  9854. export COLLECT_NAMES
  9855. fi
  9856. EOF
  9857. ;;
  9858. esac
  9859. # We use sed instead of cat because bash on DJGPP gets confused if
  9860. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9861. # text mode, it properly converts lines to CR/LF. This bash problem
  9862. # is reportedly fixed, but why not run on old versions too?
  9863. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9864. mv -f "$cfgfile" "$ofile" || \
  9865. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9866. chmod +x "$ofile"
  9867. else
  9868. # If there is no Makefile yet, we rely on a make rule to execute
  9869. # `config.status --recheck' to rerun these tests and create the
  9870. # libtool script then.
  9871. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9872. if test -f "$ltmain_in"; then
  9873. test -f Makefile && make "$ltmain"
  9874. fi
  9875. fi
  9876. ac_ext=c
  9877. ac_cpp='$CPP $CPPFLAGS'
  9878. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9879. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9880. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9881. CC="$lt_save_CC"
  9882. # Check whether --with-tags was given.
  9883. if test "${with_tags+set}" = set; then
  9884. withval=$with_tags; tagnames="$withval"
  9885. fi
  9886. if test -f "$ltmain" && test -n "$tagnames"; then
  9887. if test ! -f "${ofile}"; then
  9888. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9889. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9890. fi
  9891. if test -z "$LTCC"; then
  9892. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9893. if test -z "$LTCC"; then
  9894. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9895. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9896. else
  9897. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9898. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9899. fi
  9900. fi
  9901. if test -z "$LTCFLAGS"; then
  9902. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9903. fi
  9904. # Extract list of available tagged configurations in $ofile.
  9905. # Note that this assumes the entire list is on one line.
  9906. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9907. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9908. for tagname in $tagnames; do
  9909. IFS="$lt_save_ifs"
  9910. # Check whether tagname contains only valid characters
  9911. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9912. "") ;;
  9913. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9914. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9915. { (exit 1); exit 1; }; }
  9916. ;;
  9917. esac
  9918. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9919. then
  9920. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9921. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9922. { (exit 1); exit 1; }; }
  9923. fi
  9924. # Update the list of available tags.
  9925. if test -n "$tagname"; then
  9926. echo appending configuration tag \"$tagname\" to $ofile
  9927. case $tagname in
  9928. CXX)
  9929. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9930. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9931. (test "X$CXX" != "Xg++"))) ; then
  9932. ac_ext=cpp
  9933. ac_cpp='$CXXCPP $CPPFLAGS'
  9934. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9935. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9936. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9937. archive_cmds_need_lc_CXX=no
  9938. allow_undefined_flag_CXX=
  9939. always_export_symbols_CXX=no
  9940. archive_expsym_cmds_CXX=
  9941. export_dynamic_flag_spec_CXX=
  9942. hardcode_direct_CXX=no
  9943. hardcode_libdir_flag_spec_CXX=
  9944. hardcode_libdir_flag_spec_ld_CXX=
  9945. hardcode_libdir_separator_CXX=
  9946. hardcode_minus_L_CXX=no
  9947. hardcode_shlibpath_var_CXX=unsupported
  9948. hardcode_automatic_CXX=no
  9949. module_cmds_CXX=
  9950. module_expsym_cmds_CXX=
  9951. link_all_deplibs_CXX=unknown
  9952. old_archive_cmds_CXX=$old_archive_cmds
  9953. no_undefined_flag_CXX=
  9954. whole_archive_flag_spec_CXX=
  9955. enable_shared_with_static_runtimes_CXX=no
  9956. # Dependencies to place before and after the object being linked:
  9957. predep_objects_CXX=
  9958. postdep_objects_CXX=
  9959. predeps_CXX=
  9960. postdeps_CXX=
  9961. compiler_lib_search_path_CXX=
  9962. # Source file extension for C++ test sources.
  9963. ac_ext=cpp
  9964. # Object file extension for compiled C++ test sources.
  9965. objext=o
  9966. objext_CXX=$objext
  9967. # Code to be used in simple compile tests
  9968. lt_simple_compile_test_code="int some_variable = 0;\n"
  9969. # Code to be used in simple link tests
  9970. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9971. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9972. # If no C compiler was specified, use CC.
  9973. LTCC=${LTCC-"$CC"}
  9974. # If no C compiler flags were specified, use CFLAGS.
  9975. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9976. # Allow CC to be a program name with arguments.
  9977. compiler=$CC
  9978. # save warnings/boilerplate of simple test code
  9979. ac_outfile=conftest.$ac_objext
  9980. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9981. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9982. _lt_compiler_boilerplate=`cat conftest.err`
  9983. $rm conftest*
  9984. ac_outfile=conftest.$ac_objext
  9985. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9986. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9987. _lt_linker_boilerplate=`cat conftest.err`
  9988. $rm conftest*
  9989. # Allow CC to be a program name with arguments.
  9990. lt_save_CC=$CC
  9991. lt_save_LD=$LD
  9992. lt_save_GCC=$GCC
  9993. GCC=$GXX
  9994. lt_save_with_gnu_ld=$with_gnu_ld
  9995. lt_save_path_LD=$lt_cv_path_LD
  9996. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9997. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9998. else
  9999. $as_unset lt_cv_prog_gnu_ld
  10000. fi
  10001. if test -n "${lt_cv_path_LDCXX+set}"; then
  10002. lt_cv_path_LD=$lt_cv_path_LDCXX
  10003. else
  10004. $as_unset lt_cv_path_LD
  10005. fi
  10006. test -z "${LDCXX+set}" || LD=$LDCXX
  10007. CC=${CXX-"c++"}
  10008. compiler=$CC
  10009. compiler_CXX=$CC
  10010. for cc_temp in $compiler""; do
  10011. case $cc_temp in
  10012. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10013. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10014. \-*) ;;
  10015. *) break;;
  10016. esac
  10017. done
  10018. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10019. # We don't want -fno-exception wen compiling C++ code, so set the
  10020. # no_builtin_flag separately
  10021. if test "$GXX" = yes; then
  10022. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10023. else
  10024. lt_prog_compiler_no_builtin_flag_CXX=
  10025. fi
  10026. if test "$GXX" = yes; then
  10027. # Set up default GNU C++ configuration
  10028. # Check whether --with-gnu-ld was given.
  10029. if test "${with_gnu_ld+set}" = set; then
  10030. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10031. else
  10032. with_gnu_ld=no
  10033. fi
  10034. ac_prog=ld
  10035. if test "$GCC" = yes; then
  10036. # Check if gcc -print-prog-name=ld gives a path.
  10037. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10038. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  10039. case $host in
  10040. *-*-mingw*)
  10041. # gcc leaves a trailing carriage return which upsets mingw
  10042. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10043. *)
  10044. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10045. esac
  10046. case $ac_prog in
  10047. # Accept absolute paths.
  10048. [\\/]* | ?:[\\/]*)
  10049. re_direlt='/[^/][^/]*/\.\./'
  10050. # Canonicalize the pathname of ld
  10051. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10052. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10053. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10054. done
  10055. test -z "$LD" && LD="$ac_prog"
  10056. ;;
  10057. "")
  10058. # If it fails, then pretend we aren't using GCC.
  10059. ac_prog=ld
  10060. ;;
  10061. *)
  10062. # If it is relative, then search for the first ld in PATH.
  10063. with_gnu_ld=unknown
  10064. ;;
  10065. esac
  10066. elif test "$with_gnu_ld" = yes; then
  10067. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10068. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10069. else
  10070. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10071. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10072. fi
  10073. if test "${lt_cv_path_LD+set}" = set; then
  10074. echo $ECHO_N "(cached) $ECHO_C" >&6
  10075. else
  10076. if test -z "$LD"; then
  10077. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10078. for ac_dir in $PATH; do
  10079. IFS="$lt_save_ifs"
  10080. test -z "$ac_dir" && ac_dir=.
  10081. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10082. lt_cv_path_LD="$ac_dir/$ac_prog"
  10083. # Check to see if the program is GNU ld. I'd rather use --version,
  10084. # but apparently some variants of GNU ld only accept -v.
  10085. # Break only if it was the GNU/non-GNU ld that we prefer.
  10086. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10087. *GNU* | *'with BFD'*)
  10088. test "$with_gnu_ld" != no && break
  10089. ;;
  10090. *)
  10091. test "$with_gnu_ld" != yes && break
  10092. ;;
  10093. esac
  10094. fi
  10095. done
  10096. IFS="$lt_save_ifs"
  10097. else
  10098. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10099. fi
  10100. fi
  10101. LD="$lt_cv_path_LD"
  10102. if test -n "$LD"; then
  10103. { echo "$as_me:$LINENO: result: $LD" >&5
  10104. echo "${ECHO_T}$LD" >&6; }
  10105. else
  10106. { echo "$as_me:$LINENO: result: no" >&5
  10107. echo "${ECHO_T}no" >&6; }
  10108. fi
  10109. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10110. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10111. { (exit 1); exit 1; }; }
  10112. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10113. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10114. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10115. echo $ECHO_N "(cached) $ECHO_C" >&6
  10116. else
  10117. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10118. case `$LD -v 2>&1 </dev/null` in
  10119. *GNU* | *'with BFD'*)
  10120. lt_cv_prog_gnu_ld=yes
  10121. ;;
  10122. *)
  10123. lt_cv_prog_gnu_ld=no
  10124. ;;
  10125. esac
  10126. fi
  10127. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10128. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10129. with_gnu_ld=$lt_cv_prog_gnu_ld
  10130. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10131. # archiving commands below assume that GNU ld is being used.
  10132. if test "$with_gnu_ld" = yes; then
  10133. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10134. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10135. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10136. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10137. # If archive_cmds runs LD, not CC, wlarc should be empty
  10138. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10139. # investigate it a little bit more. (MM)
  10140. wlarc='${wl}'
  10141. # ancient GNU ld didn't support --whole-archive et. al.
  10142. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10143. grep 'no-whole-archive' > /dev/null; then
  10144. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10145. else
  10146. whole_archive_flag_spec_CXX=
  10147. fi
  10148. else
  10149. with_gnu_ld=no
  10150. wlarc=
  10151. # A generic and very simple default shared library creation
  10152. # command for GNU C++ for the case where it uses the native
  10153. # linker, instead of GNU ld. If possible, this setting should
  10154. # overridden to take advantage of the native linker features on
  10155. # the platform it is being used on.
  10156. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10157. fi
  10158. # Commands to make compiler produce verbose output that lists
  10159. # what "hidden" libraries, object files and flags are used when
  10160. # linking a shared library.
  10161. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10162. else
  10163. GXX=no
  10164. with_gnu_ld=no
  10165. wlarc=
  10166. fi
  10167. # PORTME: fill in a description of your system's C++ link characteristics
  10168. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10169. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10170. ld_shlibs_CXX=yes
  10171. case $host_os in
  10172. aix3*)
  10173. # FIXME: insert proper C++ library support
  10174. ld_shlibs_CXX=no
  10175. ;;
  10176. aix4* | aix5*)
  10177. if test "$host_cpu" = ia64; then
  10178. # On IA64, the linker does run time linking by default, so we don't
  10179. # have to do anything special.
  10180. aix_use_runtimelinking=no
  10181. exp_sym_flag='-Bexport'
  10182. no_entry_flag=""
  10183. else
  10184. aix_use_runtimelinking=no
  10185. # Test if we are trying to use run time linking or normal
  10186. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10187. # need to do runtime linking.
  10188. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10189. for ld_flag in $LDFLAGS; do
  10190. case $ld_flag in
  10191. *-brtl*)
  10192. aix_use_runtimelinking=yes
  10193. break
  10194. ;;
  10195. esac
  10196. done
  10197. ;;
  10198. esac
  10199. exp_sym_flag='-bexport'
  10200. no_entry_flag='-bnoentry'
  10201. fi
  10202. # When large executables or shared objects are built, AIX ld can
  10203. # have problems creating the table of contents. If linking a library
  10204. # or program results in "error TOC overflow" add -mminimal-toc to
  10205. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10206. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10207. archive_cmds_CXX=''
  10208. hardcode_direct_CXX=yes
  10209. hardcode_libdir_separator_CXX=':'
  10210. link_all_deplibs_CXX=yes
  10211. if test "$GXX" = yes; then
  10212. case $host_os in aix4.[012]|aix4.[012].*)
  10213. # We only want to do this on AIX 4.2 and lower, the check
  10214. # below for broken collect2 doesn't work under 4.3+
  10215. collect2name=`${CC} -print-prog-name=collect2`
  10216. if test -f "$collect2name" && \
  10217. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10218. then
  10219. # We have reworked collect2
  10220. hardcode_direct_CXX=yes
  10221. else
  10222. # We have old collect2
  10223. hardcode_direct_CXX=unsupported
  10224. # It fails to find uninstalled libraries when the uninstalled
  10225. # path is not listed in the libpath. Setting hardcode_minus_L
  10226. # to unsupported forces relinking
  10227. hardcode_minus_L_CXX=yes
  10228. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10229. hardcode_libdir_separator_CXX=
  10230. fi
  10231. ;;
  10232. esac
  10233. shared_flag='-shared'
  10234. if test "$aix_use_runtimelinking" = yes; then
  10235. shared_flag="$shared_flag "'${wl}-G'
  10236. fi
  10237. else
  10238. # not using gcc
  10239. if test "$host_cpu" = ia64; then
  10240. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10241. # chokes on -Wl,-G. The following line is correct:
  10242. shared_flag='-G'
  10243. else
  10244. if test "$aix_use_runtimelinking" = yes; then
  10245. shared_flag='${wl}-G'
  10246. else
  10247. shared_flag='${wl}-bM:SRE'
  10248. fi
  10249. fi
  10250. fi
  10251. # It seems that -bexpall does not export symbols beginning with
  10252. # underscore (_), so it is better to generate a list of symbols to export.
  10253. always_export_symbols_CXX=yes
  10254. if test "$aix_use_runtimelinking" = yes; then
  10255. # Warning - without using the other runtime loading flags (-brtl),
  10256. # -berok will link without error, but may produce a broken library.
  10257. allow_undefined_flag_CXX='-berok'
  10258. # Determine the default libpath from the value encoded in an empty executable.
  10259. cat >conftest.$ac_ext <<_ACEOF
  10260. /* confdefs.h. */
  10261. _ACEOF
  10262. cat confdefs.h >>conftest.$ac_ext
  10263. cat >>conftest.$ac_ext <<_ACEOF
  10264. /* end confdefs.h. */
  10265. int
  10266. main ()
  10267. {
  10268. ;
  10269. return 0;
  10270. }
  10271. _ACEOF
  10272. rm -f conftest.$ac_objext conftest$ac_exeext
  10273. if { (ac_try="$ac_link"
  10274. case "(($ac_try" in
  10275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10276. *) ac_try_echo=$ac_try;;
  10277. esac
  10278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10279. (eval "$ac_link") 2>conftest.er1
  10280. ac_status=$?
  10281. grep -v '^ *+' conftest.er1 >conftest.err
  10282. rm -f conftest.er1
  10283. cat conftest.err >&5
  10284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10285. (exit $ac_status); } &&
  10286. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10287. { (case "(($ac_try" in
  10288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10289. *) ac_try_echo=$ac_try;;
  10290. esac
  10291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10292. (eval "$ac_try") 2>&5
  10293. ac_status=$?
  10294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10295. (exit $ac_status); }; } &&
  10296. { ac_try='test -s conftest$ac_exeext'
  10297. { (case "(($ac_try" in
  10298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10299. *) ac_try_echo=$ac_try;;
  10300. esac
  10301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10302. (eval "$ac_try") 2>&5
  10303. ac_status=$?
  10304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10305. (exit $ac_status); }; }; then
  10306. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10307. }'`
  10308. # Check for a 64-bit object if we didn't find anything.
  10309. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10310. }'`; fi
  10311. else
  10312. echo "$as_me: failed program was:" >&5
  10313. sed 's/^/| /' conftest.$ac_ext >&5
  10314. fi
  10315. rm -f conftest.err conftest.$ac_objext \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10318. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10319. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10320. else
  10321. if test "$host_cpu" = ia64; then
  10322. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10323. allow_undefined_flag_CXX="-z nodefs"
  10324. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10325. else
  10326. # Determine the default libpath from the value encoded in an empty executable.
  10327. cat >conftest.$ac_ext <<_ACEOF
  10328. /* confdefs.h. */
  10329. _ACEOF
  10330. cat confdefs.h >>conftest.$ac_ext
  10331. cat >>conftest.$ac_ext <<_ACEOF
  10332. /* end confdefs.h. */
  10333. int
  10334. main ()
  10335. {
  10336. ;
  10337. return 0;
  10338. }
  10339. _ACEOF
  10340. rm -f conftest.$ac_objext conftest$ac_exeext
  10341. if { (ac_try="$ac_link"
  10342. case "(($ac_try" in
  10343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10344. *) ac_try_echo=$ac_try;;
  10345. esac
  10346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10347. (eval "$ac_link") 2>conftest.er1
  10348. ac_status=$?
  10349. grep -v '^ *+' conftest.er1 >conftest.err
  10350. rm -f conftest.er1
  10351. cat conftest.err >&5
  10352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10353. (exit $ac_status); } &&
  10354. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10355. { (case "(($ac_try" in
  10356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10357. *) ac_try_echo=$ac_try;;
  10358. esac
  10359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10360. (eval "$ac_try") 2>&5
  10361. ac_status=$?
  10362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10363. (exit $ac_status); }; } &&
  10364. { ac_try='test -s conftest$ac_exeext'
  10365. { (case "(($ac_try" in
  10366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10367. *) ac_try_echo=$ac_try;;
  10368. esac
  10369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10370. (eval "$ac_try") 2>&5
  10371. ac_status=$?
  10372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10373. (exit $ac_status); }; }; then
  10374. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10375. }'`
  10376. # Check for a 64-bit object if we didn't find anything.
  10377. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10378. }'`; fi
  10379. else
  10380. echo "$as_me: failed program was:" >&5
  10381. sed 's/^/| /' conftest.$ac_ext >&5
  10382. fi
  10383. rm -f conftest.err conftest.$ac_objext \
  10384. conftest$ac_exeext conftest.$ac_ext
  10385. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10386. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10387. # Warning - without using the other run time loading flags,
  10388. # -berok will link without error, but may produce a broken library.
  10389. no_undefined_flag_CXX=' ${wl}-bernotok'
  10390. allow_undefined_flag_CXX=' ${wl}-berok'
  10391. # Exported symbols can be pulled into shared objects from archives
  10392. whole_archive_flag_spec_CXX='$convenience'
  10393. archive_cmds_need_lc_CXX=yes
  10394. # This is similar to how AIX traditionally builds its shared libraries.
  10395. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10396. fi
  10397. fi
  10398. ;;
  10399. beos*)
  10400. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10401. allow_undefined_flag_CXX=unsupported
  10402. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10403. # support --undefined. This deserves some investigation. FIXME
  10404. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10405. else
  10406. ld_shlibs_CXX=no
  10407. fi
  10408. ;;
  10409. chorus*)
  10410. case $cc_basename in
  10411. *)
  10412. # FIXME: insert proper C++ library support
  10413. ld_shlibs_CXX=no
  10414. ;;
  10415. esac
  10416. ;;
  10417. cygwin* | mingw* | pw32*)
  10418. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10419. # as there is no search path for DLLs.
  10420. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10421. allow_undefined_flag_CXX=unsupported
  10422. always_export_symbols_CXX=no
  10423. enable_shared_with_static_runtimes_CXX=yes
  10424. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10425. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10426. # If the export-symbols file already is a .def file (1st line
  10427. # is EXPORTS), use it as is; otherwise, prepend...
  10428. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10429. cp $export_symbols $output_objdir/$soname.def;
  10430. else
  10431. echo EXPORTS > $output_objdir/$soname.def;
  10432. cat $export_symbols >> $output_objdir/$soname.def;
  10433. fi~
  10434. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10435. else
  10436. ld_shlibs_CXX=no
  10437. fi
  10438. ;;
  10439. darwin* | rhapsody*)
  10440. case $host_os in
  10441. rhapsody* | darwin1.[012])
  10442. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10443. ;;
  10444. *) # Darwin 1.3 on
  10445. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10446. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10447. else
  10448. case ${MACOSX_DEPLOYMENT_TARGET} in
  10449. 10.[012])
  10450. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10451. ;;
  10452. 10.*)
  10453. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10454. ;;
  10455. esac
  10456. fi
  10457. ;;
  10458. esac
  10459. archive_cmds_need_lc_CXX=no
  10460. hardcode_direct_CXX=no
  10461. hardcode_automatic_CXX=yes
  10462. hardcode_shlibpath_var_CXX=unsupported
  10463. whole_archive_flag_spec_CXX=''
  10464. link_all_deplibs_CXX=yes
  10465. if test "$GXX" = yes ; then
  10466. lt_int_apple_cc_single_mod=no
  10467. output_verbose_link_cmd='echo'
  10468. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10469. lt_int_apple_cc_single_mod=yes
  10470. fi
  10471. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10472. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10473. else
  10474. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10475. fi
  10476. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10477. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10478. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10479. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10480. else
  10481. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10482. fi
  10483. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10484. else
  10485. case $cc_basename in
  10486. xlc*)
  10487. output_verbose_link_cmd='echo'
  10488. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  10489. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10490. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10491. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10492. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10493. ;;
  10494. *)
  10495. ld_shlibs_CXX=no
  10496. ;;
  10497. esac
  10498. fi
  10499. ;;
  10500. dgux*)
  10501. case $cc_basename in
  10502. ec++*)
  10503. # FIXME: insert proper C++ library support
  10504. ld_shlibs_CXX=no
  10505. ;;
  10506. ghcx*)
  10507. # Green Hills C++ Compiler
  10508. # FIXME: insert proper C++ library support
  10509. ld_shlibs_CXX=no
  10510. ;;
  10511. *)
  10512. # FIXME: insert proper C++ library support
  10513. ld_shlibs_CXX=no
  10514. ;;
  10515. esac
  10516. ;;
  10517. freebsd[12]*)
  10518. # C++ shared libraries reported to be fairly broken before switch to ELF
  10519. ld_shlibs_CXX=no
  10520. ;;
  10521. freebsd-elf*)
  10522. archive_cmds_need_lc_CXX=no
  10523. ;;
  10524. freebsd* | dragonfly*)
  10525. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10526. # conventions
  10527. ld_shlibs_CXX=yes
  10528. ;;
  10529. gnu*)
  10530. ;;
  10531. hpux9*)
  10532. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10533. hardcode_libdir_separator_CXX=:
  10534. export_dynamic_flag_spec_CXX='${wl}-E'
  10535. hardcode_direct_CXX=yes
  10536. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10537. # but as the default
  10538. # location of the library.
  10539. case $cc_basename in
  10540. CC*)
  10541. # FIXME: insert proper C++ library support
  10542. ld_shlibs_CXX=no
  10543. ;;
  10544. aCC*)
  10545. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10546. # Commands to make compiler produce verbose output that lists
  10547. # what "hidden" libraries, object files and flags are used when
  10548. # linking a shared library.
  10549. #
  10550. # There doesn't appear to be a way to prevent this compiler from
  10551. # explicitly linking system object files so we need to strip them
  10552. # from the output so that they don't get included in the library
  10553. # dependencies.
  10554. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10555. ;;
  10556. *)
  10557. if test "$GXX" = yes; then
  10558. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10559. else
  10560. # FIXME: insert proper C++ library support
  10561. ld_shlibs_CXX=no
  10562. fi
  10563. ;;
  10564. esac
  10565. ;;
  10566. hpux10*|hpux11*)
  10567. if test $with_gnu_ld = no; then
  10568. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10569. hardcode_libdir_separator_CXX=:
  10570. case $host_cpu in
  10571. hppa*64*|ia64*)
  10572. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10573. ;;
  10574. *)
  10575. export_dynamic_flag_spec_CXX='${wl}-E'
  10576. ;;
  10577. esac
  10578. fi
  10579. case $host_cpu in
  10580. hppa*64*|ia64*)
  10581. hardcode_direct_CXX=no
  10582. hardcode_shlibpath_var_CXX=no
  10583. ;;
  10584. *)
  10585. hardcode_direct_CXX=yes
  10586. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10587. # but as the default
  10588. # location of the library.
  10589. ;;
  10590. esac
  10591. case $cc_basename in
  10592. CC*)
  10593. # FIXME: insert proper C++ library support
  10594. ld_shlibs_CXX=no
  10595. ;;
  10596. aCC*)
  10597. case $host_cpu in
  10598. hppa*64*)
  10599. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10600. ;;
  10601. ia64*)
  10602. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10603. ;;
  10604. *)
  10605. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10606. ;;
  10607. esac
  10608. # Commands to make compiler produce verbose output that lists
  10609. # what "hidden" libraries, object files and flags are used when
  10610. # linking a shared library.
  10611. #
  10612. # There doesn't appear to be a way to prevent this compiler from
  10613. # explicitly linking system object files so we need to strip them
  10614. # from the output so that they don't get included in the library
  10615. # dependencies.
  10616. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10617. ;;
  10618. *)
  10619. if test "$GXX" = yes; then
  10620. if test $with_gnu_ld = no; then
  10621. case $host_cpu in
  10622. hppa*64*)
  10623. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10624. ;;
  10625. ia64*)
  10626. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10627. ;;
  10628. *)
  10629. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10630. ;;
  10631. esac
  10632. fi
  10633. else
  10634. # FIXME: insert proper C++ library support
  10635. ld_shlibs_CXX=no
  10636. fi
  10637. ;;
  10638. esac
  10639. ;;
  10640. interix3*)
  10641. hardcode_direct_CXX=no
  10642. hardcode_shlibpath_var_CXX=no
  10643. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10644. export_dynamic_flag_spec_CXX='${wl}-E'
  10645. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10646. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10647. # default) and relocated if they conflict, which is a slow very memory
  10648. # consuming and fragmenting process. To avoid this, we pick a random,
  10649. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10650. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10651. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10652. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10653. ;;
  10654. irix5* | irix6*)
  10655. case $cc_basename in
  10656. CC*)
  10657. # SGI C++
  10658. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10659. # Archives containing C++ object files must be created using
  10660. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10661. # necessary to make sure instantiated templates are included
  10662. # in the archive.
  10663. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10664. ;;
  10665. *)
  10666. if test "$GXX" = yes; then
  10667. if test "$with_gnu_ld" = no; then
  10668. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10669. else
  10670. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10671. fi
  10672. fi
  10673. link_all_deplibs_CXX=yes
  10674. ;;
  10675. esac
  10676. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10677. hardcode_libdir_separator_CXX=:
  10678. ;;
  10679. linux* | k*bsd*-gnu)
  10680. case $cc_basename in
  10681. KCC*)
  10682. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10683. # KCC will only create a shared library if the output file
  10684. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10685. # to its proper name (with version) after linking.
  10686. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10687. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10688. # Commands to make compiler produce verbose output that lists
  10689. # what "hidden" libraries, object files and flags are used when
  10690. # linking a shared library.
  10691. #
  10692. # There doesn't appear to be a way to prevent this compiler from
  10693. # explicitly linking system object files so we need to strip them
  10694. # from the output so that they don't get included in the library
  10695. # dependencies.
  10696. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10697. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10698. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10699. # Archives containing C++ object files must be created using
  10700. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10701. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10702. ;;
  10703. icpc*)
  10704. # Intel C++
  10705. with_gnu_ld=yes
  10706. # version 8.0 and above of icpc choke on multiply defined symbols
  10707. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10708. # earlier do not add the objects themselves.
  10709. case `$CC -V 2>&1` in
  10710. *"Version 7."*)
  10711. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10712. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10713. ;;
  10714. *) # Version 8.0 or newer
  10715. tmp_idyn=
  10716. case $host_cpu in
  10717. ia64*) tmp_idyn=' -i_dynamic';;
  10718. esac
  10719. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10720. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10721. ;;
  10722. esac
  10723. archive_cmds_need_lc_CXX=no
  10724. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10725. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10726. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10727. ;;
  10728. pgCC*)
  10729. # Portland Group C++ compiler
  10730. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10731. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10732. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10733. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10734. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10735. ;;
  10736. cxx*)
  10737. # Compaq C++
  10738. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10739. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10740. runpath_var=LD_RUN_PATH
  10741. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10742. hardcode_libdir_separator_CXX=:
  10743. # Commands to make compiler produce verbose output that lists
  10744. # what "hidden" libraries, object files and flags are used when
  10745. # linking a shared library.
  10746. #
  10747. # There doesn't appear to be a way to prevent this compiler from
  10748. # explicitly linking system object files so we need to strip them
  10749. # from the output so that they don't get included in the library
  10750. # dependencies.
  10751. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10752. ;;
  10753. esac
  10754. ;;
  10755. lynxos*)
  10756. # FIXME: insert proper C++ library support
  10757. ld_shlibs_CXX=no
  10758. ;;
  10759. m88k*)
  10760. # FIXME: insert proper C++ library support
  10761. ld_shlibs_CXX=no
  10762. ;;
  10763. mvs*)
  10764. case $cc_basename in
  10765. cxx*)
  10766. # FIXME: insert proper C++ library support
  10767. ld_shlibs_CXX=no
  10768. ;;
  10769. *)
  10770. # FIXME: insert proper C++ library support
  10771. ld_shlibs_CXX=no
  10772. ;;
  10773. esac
  10774. ;;
  10775. netbsd* | netbsdelf*-gnu)
  10776. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10777. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10778. wlarc=
  10779. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10780. hardcode_direct_CXX=yes
  10781. hardcode_shlibpath_var_CXX=no
  10782. fi
  10783. # Workaround some broken pre-1.5 toolchains
  10784. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10785. ;;
  10786. openbsd2*)
  10787. # C++ shared libraries are fairly broken
  10788. ld_shlibs_CXX=no
  10789. ;;
  10790. openbsd*)
  10791. hardcode_direct_CXX=yes
  10792. hardcode_shlibpath_var_CXX=no
  10793. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10794. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10795. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10796. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10797. export_dynamic_flag_spec_CXX='${wl}-E'
  10798. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10799. fi
  10800. output_verbose_link_cmd='echo'
  10801. ;;
  10802. osf3*)
  10803. case $cc_basename in
  10804. KCC*)
  10805. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10806. # KCC will only create a shared library if the output file
  10807. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10808. # to its proper name (with version) after linking.
  10809. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10810. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10811. hardcode_libdir_separator_CXX=:
  10812. # Archives containing C++ object files must be created using
  10813. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10814. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10815. ;;
  10816. RCC*)
  10817. # Rational C++ 2.4.1
  10818. # FIXME: insert proper C++ library support
  10819. ld_shlibs_CXX=no
  10820. ;;
  10821. cxx*)
  10822. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10823. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10824. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10825. hardcode_libdir_separator_CXX=:
  10826. # Commands to make compiler produce verbose output that lists
  10827. # what "hidden" libraries, object files and flags are used when
  10828. # linking a shared library.
  10829. #
  10830. # There doesn't appear to be a way to prevent this compiler from
  10831. # explicitly linking system object files so we need to strip them
  10832. # from the output so that they don't get included in the library
  10833. # dependencies.
  10834. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10835. ;;
  10836. *)
  10837. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10838. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10839. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10840. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10841. hardcode_libdir_separator_CXX=:
  10842. # Commands to make compiler produce verbose output that lists
  10843. # what "hidden" libraries, object files and flags are used when
  10844. # linking a shared library.
  10845. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10846. else
  10847. # FIXME: insert proper C++ library support
  10848. ld_shlibs_CXX=no
  10849. fi
  10850. ;;
  10851. esac
  10852. ;;
  10853. osf4* | osf5*)
  10854. case $cc_basename in
  10855. KCC*)
  10856. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10857. # KCC will only create a shared library if the output file
  10858. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10859. # to its proper name (with version) after linking.
  10860. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10861. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10862. hardcode_libdir_separator_CXX=:
  10863. # Archives containing C++ object files must be created using
  10864. # the KAI C++ compiler.
  10865. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10866. ;;
  10867. RCC*)
  10868. # Rational C++ 2.4.1
  10869. # FIXME: insert proper C++ library support
  10870. ld_shlibs_CXX=no
  10871. ;;
  10872. cxx*)
  10873. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10874. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10875. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10876. echo "-hidden">> $lib.exp~
  10877. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10878. $rm $lib.exp'
  10879. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10880. hardcode_libdir_separator_CXX=:
  10881. # Commands to make compiler produce verbose output that lists
  10882. # what "hidden" libraries, object files and flags are used when
  10883. # linking a shared library.
  10884. #
  10885. # There doesn't appear to be a way to prevent this compiler from
  10886. # explicitly linking system object files so we need to strip them
  10887. # from the output so that they don't get included in the library
  10888. # dependencies.
  10889. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10890. ;;
  10891. *)
  10892. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10893. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10894. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10895. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10896. hardcode_libdir_separator_CXX=:
  10897. # Commands to make compiler produce verbose output that lists
  10898. # what "hidden" libraries, object files and flags are used when
  10899. # linking a shared library.
  10900. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10901. else
  10902. # FIXME: insert proper C++ library support
  10903. ld_shlibs_CXX=no
  10904. fi
  10905. ;;
  10906. esac
  10907. ;;
  10908. psos*)
  10909. # FIXME: insert proper C++ library support
  10910. ld_shlibs_CXX=no
  10911. ;;
  10912. sunos4*)
  10913. case $cc_basename in
  10914. CC*)
  10915. # Sun C++ 4.x
  10916. # FIXME: insert proper C++ library support
  10917. ld_shlibs_CXX=no
  10918. ;;
  10919. lcc*)
  10920. # Lucid
  10921. # FIXME: insert proper C++ library support
  10922. ld_shlibs_CXX=no
  10923. ;;
  10924. *)
  10925. # FIXME: insert proper C++ library support
  10926. ld_shlibs_CXX=no
  10927. ;;
  10928. esac
  10929. ;;
  10930. solaris*)
  10931. case $cc_basename in
  10932. CC*)
  10933. # Sun C++ 4.2, 5.x and Centerline C++
  10934. archive_cmds_need_lc_CXX=yes
  10935. no_undefined_flag_CXX=' -zdefs'
  10936. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10937. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10938. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10939. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10940. hardcode_shlibpath_var_CXX=no
  10941. case $host_os in
  10942. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10943. *)
  10944. # The C++ compiler is used as linker so we must use $wl
  10945. # flag to pass the commands to the underlying system
  10946. # linker. We must also pass each convience library through
  10947. # to the system linker between allextract/defaultextract.
  10948. # The C++ compiler will combine linker options so we
  10949. # cannot just pass the convience library names through
  10950. # without $wl.
  10951. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10952. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10953. ;;
  10954. esac
  10955. link_all_deplibs_CXX=yes
  10956. output_verbose_link_cmd='echo'
  10957. # Archives containing C++ object files must be created using
  10958. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10959. # necessary to make sure instantiated templates are included
  10960. # in the archive.
  10961. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10962. ;;
  10963. gcx*)
  10964. # Green Hills C++ Compiler
  10965. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10966. # The C++ compiler must be used to create the archive.
  10967. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10968. ;;
  10969. *)
  10970. # GNU C++ compiler with Solaris linker
  10971. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10972. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10973. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10974. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10975. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10976. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10977. # Commands to make compiler produce verbose output that lists
  10978. # what "hidden" libraries, object files and flags are used when
  10979. # linking a shared library.
  10980. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10981. else
  10982. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10983. # platform.
  10984. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10985. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10986. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10987. # Commands to make compiler produce verbose output that lists
  10988. # what "hidden" libraries, object files and flags are used when
  10989. # linking a shared library.
  10990. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10991. fi
  10992. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10993. fi
  10994. ;;
  10995. esac
  10996. ;;
  10997. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10998. no_undefined_flag_CXX='${wl}-z,text'
  10999. archive_cmds_need_lc_CXX=no
  11000. hardcode_shlibpath_var_CXX=no
  11001. runpath_var='LD_RUN_PATH'
  11002. case $cc_basename in
  11003. CC*)
  11004. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11005. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11006. ;;
  11007. *)
  11008. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11009. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11010. ;;
  11011. esac
  11012. ;;
  11013. sysv5* | sco3.2v5* | sco5v6*)
  11014. # Note: We can NOT use -z defs as we might desire, because we do not
  11015. # link with -lc, and that would cause any symbols used from libc to
  11016. # always be unresolved, which means just about no library would
  11017. # ever link correctly. If we're not using GNU ld we use -z text
  11018. # though, which does catch some bad symbols but isn't as heavy-handed
  11019. # as -z defs.
  11020. # For security reasons, it is highly recommended that you always
  11021. # use absolute paths for naming shared libraries, and exclude the
  11022. # DT_RUNPATH tag from executables and libraries. But doing so
  11023. # requires that you compile everything twice, which is a pain.
  11024. # So that behaviour is only enabled if SCOABSPATH is set to a
  11025. # non-empty value in the environment. Most likely only useful for
  11026. # creating official distributions of packages.
  11027. # This is a hack until libtool officially supports absolute path
  11028. # names for shared libraries.
  11029. no_undefined_flag_CXX='${wl}-z,text'
  11030. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11031. archive_cmds_need_lc_CXX=no
  11032. hardcode_shlibpath_var_CXX=no
  11033. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  11034. hardcode_libdir_separator_CXX=':'
  11035. link_all_deplibs_CXX=yes
  11036. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11037. runpath_var='LD_RUN_PATH'
  11038. case $cc_basename in
  11039. CC*)
  11040. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11041. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11042. ;;
  11043. *)
  11044. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11045. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11046. ;;
  11047. esac
  11048. ;;
  11049. tandem*)
  11050. case $cc_basename in
  11051. NCC*)
  11052. # NonStop-UX NCC 3.20
  11053. # FIXME: insert proper C++ library support
  11054. ld_shlibs_CXX=no
  11055. ;;
  11056. *)
  11057. # FIXME: insert proper C++ library support
  11058. ld_shlibs_CXX=no
  11059. ;;
  11060. esac
  11061. ;;
  11062. vxworks*)
  11063. # FIXME: insert proper C++ library support
  11064. ld_shlibs_CXX=no
  11065. ;;
  11066. *)
  11067. # FIXME: insert proper C++ library support
  11068. ld_shlibs_CXX=no
  11069. ;;
  11070. esac
  11071. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11072. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11073. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11074. GCC_CXX="$GXX"
  11075. LD_CXX="$LD"
  11076. ## CAVEAT EMPTOR:
  11077. ## There is no encapsulation within the following macros, do not change
  11078. ## the running order or otherwise move them around unless you know exactly
  11079. ## what you are doing...
  11080. cat > conftest.$ac_ext <<EOF
  11081. class Foo
  11082. {
  11083. public:
  11084. Foo (void) { a = 0; }
  11085. private:
  11086. int a;
  11087. };
  11088. EOF
  11089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11090. (eval $ac_compile) 2>&5
  11091. ac_status=$?
  11092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11093. (exit $ac_status); }; then
  11094. # Parse the compiler output and extract the necessary
  11095. # objects, libraries and library flags.
  11096. # Sentinel used to keep track of whether or not we are before
  11097. # the conftest object file.
  11098. pre_test_object_deps_done=no
  11099. # The `*' in the case matches for architectures that use `case' in
  11100. # $output_verbose_cmd can trigger glob expansion during the loop
  11101. # eval without this substitution.
  11102. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11103. for p in `eval $output_verbose_link_cmd`; do
  11104. case $p in
  11105. -L* | -R* | -l*)
  11106. # Some compilers place space between "-{L,R}" and the path.
  11107. # Remove the space.
  11108. if test $p = "-L" \
  11109. || test $p = "-R"; then
  11110. prev=$p
  11111. continue
  11112. else
  11113. prev=
  11114. fi
  11115. if test "$pre_test_object_deps_done" = no; then
  11116. case $p in
  11117. -L* | -R*)
  11118. # Internal compiler library paths should come after those
  11119. # provided the user. The postdeps already come after the
  11120. # user supplied libs so there is no need to process them.
  11121. if test -z "$compiler_lib_search_path_CXX"; then
  11122. compiler_lib_search_path_CXX="${prev}${p}"
  11123. else
  11124. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11125. fi
  11126. ;;
  11127. # The "-l" case would never come before the object being
  11128. # linked, so don't bother handling this case.
  11129. esac
  11130. else
  11131. if test -z "$postdeps_CXX"; then
  11132. postdeps_CXX="${prev}${p}"
  11133. else
  11134. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11135. fi
  11136. fi
  11137. ;;
  11138. *.$objext)
  11139. # This assumes that the test object file only shows up
  11140. # once in the compiler output.
  11141. if test "$p" = "conftest.$objext"; then
  11142. pre_test_object_deps_done=yes
  11143. continue
  11144. fi
  11145. if test "$pre_test_object_deps_done" = no; then
  11146. if test -z "$predep_objects_CXX"; then
  11147. predep_objects_CXX="$p"
  11148. else
  11149. predep_objects_CXX="$predep_objects_CXX $p"
  11150. fi
  11151. else
  11152. if test -z "$postdep_objects_CXX"; then
  11153. postdep_objects_CXX="$p"
  11154. else
  11155. postdep_objects_CXX="$postdep_objects_CXX $p"
  11156. fi
  11157. fi
  11158. ;;
  11159. *) ;; # Ignore the rest.
  11160. esac
  11161. done
  11162. # Clean up.
  11163. rm -f a.out a.exe
  11164. else
  11165. echo "libtool.m4: error: problem compiling CXX test program"
  11166. fi
  11167. $rm -f confest.$objext
  11168. # PORTME: override above test on systems where it is broken
  11169. case $host_os in
  11170. interix3*)
  11171. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11172. # hack all around it, let's just trust "g++" to DTRT.
  11173. predep_objects_CXX=
  11174. postdep_objects_CXX=
  11175. postdeps_CXX=
  11176. ;;
  11177. solaris*)
  11178. case $cc_basename in
  11179. CC*)
  11180. # Adding this requires a known-good setup of shared libraries for
  11181. # Sun compiler versions before 5.6, else PIC objects from an old
  11182. # archive will be linked into the output, leading to subtle bugs.
  11183. postdeps_CXX='-lCstd -lCrun'
  11184. ;;
  11185. esac
  11186. ;;
  11187. esac
  11188. case " $postdeps_CXX " in
  11189. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11190. esac
  11191. lt_prog_compiler_wl_CXX=
  11192. lt_prog_compiler_pic_CXX=
  11193. lt_prog_compiler_static_CXX=
  11194. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11195. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11196. # C++ specific cases for pic, static, wl, etc.
  11197. if test "$GXX" = yes; then
  11198. lt_prog_compiler_wl_CXX='-Wl,'
  11199. lt_prog_compiler_static_CXX='-static'
  11200. case $host_os in
  11201. aix*)
  11202. # All AIX code is PIC.
  11203. if test "$host_cpu" = ia64; then
  11204. # AIX 5 now supports IA64 processor
  11205. lt_prog_compiler_static_CXX='-Bstatic'
  11206. fi
  11207. ;;
  11208. amigaos*)
  11209. # FIXME: we need at least 68020 code to build shared libraries, but
  11210. # adding the `-m68020' flag to GCC prevents building anything better,
  11211. # like `-m68040'.
  11212. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11213. ;;
  11214. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11215. # PIC is the default for these OSes.
  11216. ;;
  11217. mingw* | os2* | pw32*)
  11218. # This hack is so that the source file can tell whether it is being
  11219. # built for inclusion in a dll (and should export symbols for example).
  11220. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11221. ;;
  11222. darwin* | rhapsody*)
  11223. # PIC is the default on this platform
  11224. # Common symbols not allowed in MH_DYLIB files
  11225. lt_prog_compiler_pic_CXX='-fno-common'
  11226. ;;
  11227. *djgpp*)
  11228. # DJGPP does not support shared libraries at all
  11229. lt_prog_compiler_pic_CXX=
  11230. ;;
  11231. interix3*)
  11232. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11233. # Instead, we relocate shared libraries at runtime.
  11234. ;;
  11235. sysv4*MP*)
  11236. if test -d /usr/nec; then
  11237. lt_prog_compiler_pic_CXX=-Kconform_pic
  11238. fi
  11239. ;;
  11240. hpux*)
  11241. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11242. # not for PA HP-UX.
  11243. case $host_cpu in
  11244. hppa*64*|ia64*)
  11245. ;;
  11246. *)
  11247. lt_prog_compiler_pic_CXX='-fPIC'
  11248. ;;
  11249. esac
  11250. ;;
  11251. *)
  11252. lt_prog_compiler_pic_CXX='-fPIC'
  11253. ;;
  11254. esac
  11255. else
  11256. case $host_os in
  11257. aix4* | aix5*)
  11258. # All AIX code is PIC.
  11259. if test "$host_cpu" = ia64; then
  11260. # AIX 5 now supports IA64 processor
  11261. lt_prog_compiler_static_CXX='-Bstatic'
  11262. else
  11263. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11264. fi
  11265. ;;
  11266. chorus*)
  11267. case $cc_basename in
  11268. cxch68*)
  11269. # Green Hills C++ Compiler
  11270. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11271. ;;
  11272. esac
  11273. ;;
  11274. darwin*)
  11275. # PIC is the default on this platform
  11276. # Common symbols not allowed in MH_DYLIB files
  11277. case $cc_basename in
  11278. xlc*)
  11279. lt_prog_compiler_pic_CXX='-qnocommon'
  11280. lt_prog_compiler_wl_CXX='-Wl,'
  11281. ;;
  11282. esac
  11283. ;;
  11284. dgux*)
  11285. case $cc_basename in
  11286. ec++*)
  11287. lt_prog_compiler_pic_CXX='-KPIC'
  11288. ;;
  11289. ghcx*)
  11290. # Green Hills C++ Compiler
  11291. lt_prog_compiler_pic_CXX='-pic'
  11292. ;;
  11293. *)
  11294. ;;
  11295. esac
  11296. ;;
  11297. freebsd* | dragonfly*)
  11298. # FreeBSD uses GNU C++
  11299. ;;
  11300. hpux9* | hpux10* | hpux11*)
  11301. case $cc_basename in
  11302. CC*)
  11303. lt_prog_compiler_wl_CXX='-Wl,'
  11304. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11305. if test "$host_cpu" != ia64; then
  11306. lt_prog_compiler_pic_CXX='+Z'
  11307. fi
  11308. ;;
  11309. aCC*)
  11310. lt_prog_compiler_wl_CXX='-Wl,'
  11311. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11312. case $host_cpu in
  11313. hppa*64*|ia64*)
  11314. # +Z the default
  11315. ;;
  11316. *)
  11317. lt_prog_compiler_pic_CXX='+Z'
  11318. ;;
  11319. esac
  11320. ;;
  11321. *)
  11322. ;;
  11323. esac
  11324. ;;
  11325. interix*)
  11326. # This is c89, which is MS Visual C++ (no shared libs)
  11327. # Anyone wants to do a port?
  11328. ;;
  11329. irix5* | irix6* | nonstopux*)
  11330. case $cc_basename in
  11331. CC*)
  11332. lt_prog_compiler_wl_CXX='-Wl,'
  11333. lt_prog_compiler_static_CXX='-non_shared'
  11334. # CC pic flag -KPIC is the default.
  11335. ;;
  11336. *)
  11337. ;;
  11338. esac
  11339. ;;
  11340. linux* | k*bsd*-gnu)
  11341. case $cc_basename in
  11342. KCC*)
  11343. # KAI C++ Compiler
  11344. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11345. lt_prog_compiler_pic_CXX='-fPIC'
  11346. ;;
  11347. icpc* | ecpc*)
  11348. # Intel C++
  11349. lt_prog_compiler_wl_CXX='-Wl,'
  11350. lt_prog_compiler_pic_CXX='-KPIC'
  11351. lt_prog_compiler_static_CXX='-static'
  11352. ;;
  11353. pgCC*)
  11354. # Portland Group C++ compiler.
  11355. lt_prog_compiler_wl_CXX='-Wl,'
  11356. lt_prog_compiler_pic_CXX='-fpic'
  11357. lt_prog_compiler_static_CXX='-Bstatic'
  11358. ;;
  11359. cxx*)
  11360. # Compaq C++
  11361. # Make sure the PIC flag is empty. It appears that all Alpha
  11362. # Linux and Compaq Tru64 Unix objects are PIC.
  11363. lt_prog_compiler_pic_CXX=
  11364. lt_prog_compiler_static_CXX='-non_shared'
  11365. ;;
  11366. *)
  11367. ;;
  11368. esac
  11369. ;;
  11370. lynxos*)
  11371. ;;
  11372. m88k*)
  11373. ;;
  11374. mvs*)
  11375. case $cc_basename in
  11376. cxx*)
  11377. lt_prog_compiler_pic_CXX='-W c,exportall'
  11378. ;;
  11379. *)
  11380. ;;
  11381. esac
  11382. ;;
  11383. netbsd* | netbsdelf*-gnu)
  11384. ;;
  11385. osf3* | osf4* | osf5*)
  11386. case $cc_basename in
  11387. KCC*)
  11388. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11389. ;;
  11390. RCC*)
  11391. # Rational C++ 2.4.1
  11392. lt_prog_compiler_pic_CXX='-pic'
  11393. ;;
  11394. cxx*)
  11395. # Digital/Compaq C++
  11396. lt_prog_compiler_wl_CXX='-Wl,'
  11397. # Make sure the PIC flag is empty. It appears that all Alpha
  11398. # Linux and Compaq Tru64 Unix objects are PIC.
  11399. lt_prog_compiler_pic_CXX=
  11400. lt_prog_compiler_static_CXX='-non_shared'
  11401. ;;
  11402. *)
  11403. ;;
  11404. esac
  11405. ;;
  11406. psos*)
  11407. ;;
  11408. solaris*)
  11409. case $cc_basename in
  11410. CC*)
  11411. # Sun C++ 4.2, 5.x and Centerline C++
  11412. lt_prog_compiler_pic_CXX='-KPIC'
  11413. lt_prog_compiler_static_CXX='-Bstatic'
  11414. lt_prog_compiler_wl_CXX='-Qoption ld '
  11415. ;;
  11416. gcx*)
  11417. # Green Hills C++ Compiler
  11418. lt_prog_compiler_pic_CXX='-PIC'
  11419. ;;
  11420. *)
  11421. ;;
  11422. esac
  11423. ;;
  11424. sunos4*)
  11425. case $cc_basename in
  11426. CC*)
  11427. # Sun C++ 4.x
  11428. lt_prog_compiler_pic_CXX='-pic'
  11429. lt_prog_compiler_static_CXX='-Bstatic'
  11430. ;;
  11431. lcc*)
  11432. # Lucid
  11433. lt_prog_compiler_pic_CXX='-pic'
  11434. ;;
  11435. *)
  11436. ;;
  11437. esac
  11438. ;;
  11439. tandem*)
  11440. case $cc_basename in
  11441. NCC*)
  11442. # NonStop-UX NCC 3.20
  11443. lt_prog_compiler_pic_CXX='-KPIC'
  11444. ;;
  11445. *)
  11446. ;;
  11447. esac
  11448. ;;
  11449. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11450. case $cc_basename in
  11451. CC*)
  11452. lt_prog_compiler_wl_CXX='-Wl,'
  11453. lt_prog_compiler_pic_CXX='-KPIC'
  11454. lt_prog_compiler_static_CXX='-Bstatic'
  11455. ;;
  11456. esac
  11457. ;;
  11458. vxworks*)
  11459. ;;
  11460. *)
  11461. lt_prog_compiler_can_build_shared_CXX=no
  11462. ;;
  11463. esac
  11464. fi
  11465. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11466. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11467. #
  11468. # Check to make sure the PIC flag actually works.
  11469. #
  11470. if test -n "$lt_prog_compiler_pic_CXX"; then
  11471. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11472. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11473. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11474. echo $ECHO_N "(cached) $ECHO_C" >&6
  11475. else
  11476. lt_prog_compiler_pic_works_CXX=no
  11477. ac_outfile=conftest.$ac_objext
  11478. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11479. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11480. # Insert the option either (1) after the last *FLAGS variable, or
  11481. # (2) before a word containing "conftest.", or (3) at the end.
  11482. # Note that $ac_compile itself does not contain backslashes and begins
  11483. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11484. # The option is referenced via a variable to avoid confusing sed.
  11485. lt_compile=`echo "$ac_compile" | $SED \
  11486. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11487. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11488. -e 's:$: $lt_compiler_flag:'`
  11489. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  11490. (eval "$lt_compile" 2>conftest.err)
  11491. ac_status=$?
  11492. cat conftest.err >&5
  11493. echo "$as_me:__oline__: \$? = $ac_status" >&5
  11494. if (exit $ac_status) && test -s "$ac_outfile"; then
  11495. # The compiler can only warn and ignore the option if not recognized
  11496. # So say no if there are warnings other than the usual output.
  11497. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11498. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11499. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11500. lt_prog_compiler_pic_works_CXX=yes
  11501. fi
  11502. fi
  11503. $rm conftest*
  11504. fi
  11505. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11506. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11507. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11508. case $lt_prog_compiler_pic_CXX in
  11509. "" | " "*) ;;
  11510. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11511. esac
  11512. else
  11513. lt_prog_compiler_pic_CXX=
  11514. lt_prog_compiler_can_build_shared_CXX=no
  11515. fi
  11516. fi
  11517. case $host_os in
  11518. # For platforms which do not support PIC, -DPIC is meaningless:
  11519. *djgpp*)
  11520. lt_prog_compiler_pic_CXX=
  11521. ;;
  11522. *)
  11523. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11524. ;;
  11525. esac
  11526. #
  11527. # Check to make sure the static flag actually works.
  11528. #
  11529. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11530. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11531. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11532. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11533. echo $ECHO_N "(cached) $ECHO_C" >&6
  11534. else
  11535. lt_prog_compiler_static_works_CXX=no
  11536. save_LDFLAGS="$LDFLAGS"
  11537. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11538. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11539. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11540. # The linker can only warn and ignore the option if not recognized
  11541. # So say no if there are warnings
  11542. if test -s conftest.err; then
  11543. # Append any errors to the config.log.
  11544. cat conftest.err 1>&5
  11545. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11546. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11547. if diff conftest.exp conftest.er2 >/dev/null; then
  11548. lt_prog_compiler_static_works_CXX=yes
  11549. fi
  11550. else
  11551. lt_prog_compiler_static_works_CXX=yes
  11552. fi
  11553. fi
  11554. $rm conftest*
  11555. LDFLAGS="$save_LDFLAGS"
  11556. fi
  11557. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11558. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11559. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11560. :
  11561. else
  11562. lt_prog_compiler_static_CXX=
  11563. fi
  11564. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11565. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11566. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11567. echo $ECHO_N "(cached) $ECHO_C" >&6
  11568. else
  11569. lt_cv_prog_compiler_c_o_CXX=no
  11570. $rm -r conftest 2>/dev/null
  11571. mkdir conftest
  11572. cd conftest
  11573. mkdir out
  11574. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11575. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11576. # Insert the option either (1) after the last *FLAGS variable, or
  11577. # (2) before a word containing "conftest.", or (3) at the end.
  11578. # Note that $ac_compile itself does not contain backslashes and begins
  11579. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11580. lt_compile=`echo "$ac_compile" | $SED \
  11581. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11582. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11583. -e 's:$: $lt_compiler_flag:'`
  11584. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  11585. (eval "$lt_compile" 2>out/conftest.err)
  11586. ac_status=$?
  11587. cat out/conftest.err >&5
  11588. echo "$as_me:__oline__: \$? = $ac_status" >&5
  11589. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11590. then
  11591. # The compiler can only warn and ignore the option if not recognized
  11592. # So say no if there are warnings
  11593. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11594. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11595. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11596. lt_cv_prog_compiler_c_o_CXX=yes
  11597. fi
  11598. fi
  11599. chmod u+w . 2>&5
  11600. $rm conftest*
  11601. # SGI C++ compiler will create directory out/ii_files/ for
  11602. # template instantiation
  11603. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11604. $rm out/* && rmdir out
  11605. cd ..
  11606. rmdir conftest
  11607. $rm conftest*
  11608. fi
  11609. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11610. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11611. hard_links="nottested"
  11612. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11613. # do not overwrite the value of need_locks provided by the user
  11614. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11615. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11616. hard_links=yes
  11617. $rm conftest*
  11618. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11619. touch conftest.a
  11620. ln conftest.a conftest.b 2>&5 || hard_links=no
  11621. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11622. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11623. echo "${ECHO_T}$hard_links" >&6; }
  11624. if test "$hard_links" = no; then
  11625. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11626. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11627. need_locks=warn
  11628. fi
  11629. else
  11630. need_locks=no
  11631. fi
  11632. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11633. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11634. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11635. case $host_os in
  11636. aix4* | aix5*)
  11637. # If we're using GNU nm, then we don't want the "-C" option.
  11638. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11639. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11640. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11641. else
  11642. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11643. fi
  11644. ;;
  11645. pw32*)
  11646. export_symbols_cmds_CXX="$ltdll_cmds"
  11647. ;;
  11648. cygwin* | mingw*)
  11649. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11650. ;;
  11651. linux* | k*bsd*-gnu)
  11652. link_all_deplibs_CXX=no
  11653. ;;
  11654. *)
  11655. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11656. ;;
  11657. esac
  11658. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11659. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11660. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11661. #
  11662. # Do we need to explicitly link libc?
  11663. #
  11664. case "x$archive_cmds_need_lc_CXX" in
  11665. x|xyes)
  11666. # Assume -lc should be added
  11667. archive_cmds_need_lc_CXX=yes
  11668. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11669. case $archive_cmds_CXX in
  11670. *'~'*)
  11671. # FIXME: we may have to deal with multi-command sequences.
  11672. ;;
  11673. '$CC '*)
  11674. # Test whether the compiler implicitly links with -lc since on some
  11675. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11676. # to ld, don't add -lc before -lgcc.
  11677. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11678. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11679. $rm conftest*
  11680. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11682. (eval $ac_compile) 2>&5
  11683. ac_status=$?
  11684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11685. (exit $ac_status); } 2>conftest.err; then
  11686. soname=conftest
  11687. lib=conftest
  11688. libobjs=conftest.$ac_objext
  11689. deplibs=
  11690. wl=$lt_prog_compiler_wl_CXX
  11691. pic_flag=$lt_prog_compiler_pic_CXX
  11692. compiler_flags=-v
  11693. linker_flags=-v
  11694. verstring=
  11695. output_objdir=.
  11696. libname=conftest
  11697. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11698. allow_undefined_flag_CXX=
  11699. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11700. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11701. ac_status=$?
  11702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11703. (exit $ac_status); }
  11704. then
  11705. archive_cmds_need_lc_CXX=no
  11706. else
  11707. archive_cmds_need_lc_CXX=yes
  11708. fi
  11709. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11710. else
  11711. cat conftest.err 1>&5
  11712. fi
  11713. $rm conftest*
  11714. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11715. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11716. ;;
  11717. esac
  11718. fi
  11719. ;;
  11720. esac
  11721. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11722. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11723. library_names_spec=
  11724. libname_spec='lib$name'
  11725. soname_spec=
  11726. shrext_cmds=".so"
  11727. postinstall_cmds=
  11728. postuninstall_cmds=
  11729. finish_cmds=
  11730. finish_eval=
  11731. shlibpath_var=
  11732. shlibpath_overrides_runpath=unknown
  11733. version_type=none
  11734. dynamic_linker="$host_os ld.so"
  11735. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11736. if test "$GCC" = yes; then
  11737. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11738. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11739. # if the path contains ";" then we assume it to be the separator
  11740. # otherwise default to the standard path separator (i.e. ":") - it is
  11741. # assumed that no part of a normal pathname contains ";" but that should
  11742. # okay in the real world where ";" in dirpaths is itself problematic.
  11743. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11744. else
  11745. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11746. fi
  11747. else
  11748. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11749. fi
  11750. need_lib_prefix=unknown
  11751. hardcode_into_libs=no
  11752. # when you set need_version to no, make sure it does not cause -set_version
  11753. # flags to be left without arguments
  11754. need_version=unknown
  11755. case $host_os in
  11756. aix3*)
  11757. version_type=linux
  11758. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11759. shlibpath_var=LIBPATH
  11760. # AIX 3 has no versioning support, so we append a major version to the name.
  11761. soname_spec='${libname}${release}${shared_ext}$major'
  11762. ;;
  11763. aix4* | aix5*)
  11764. version_type=linux
  11765. need_lib_prefix=no
  11766. need_version=no
  11767. hardcode_into_libs=yes
  11768. if test "$host_cpu" = ia64; then
  11769. # AIX 5 supports IA64
  11770. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11771. shlibpath_var=LD_LIBRARY_PATH
  11772. else
  11773. # With GCC up to 2.95.x, collect2 would create an import file
  11774. # for dependence libraries. The import file would start with
  11775. # the line `#! .'. This would cause the generated library to
  11776. # depend on `.', always an invalid library. This was fixed in
  11777. # development snapshots of GCC prior to 3.0.
  11778. case $host_os in
  11779. aix4 | aix4.[01] | aix4.[01].*)
  11780. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11781. echo ' yes '
  11782. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11783. :
  11784. else
  11785. can_build_shared=no
  11786. fi
  11787. ;;
  11788. esac
  11789. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11790. # soname into executable. Probably we can add versioning support to
  11791. # collect2, so additional links can be useful in future.
  11792. if test "$aix_use_runtimelinking" = yes; then
  11793. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11794. # instead of lib<name>.a to let people know that these are not
  11795. # typical AIX shared libraries.
  11796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11797. else
  11798. # We preserve .a as extension for shared libraries through AIX4.2
  11799. # and later when we are not doing run time linking.
  11800. library_names_spec='${libname}${release}.a $libname.a'
  11801. soname_spec='${libname}${release}${shared_ext}$major'
  11802. fi
  11803. shlibpath_var=LIBPATH
  11804. fi
  11805. ;;
  11806. amigaos*)
  11807. library_names_spec='$libname.ixlibrary $libname.a'
  11808. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11809. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11810. ;;
  11811. beos*)
  11812. library_names_spec='${libname}${shared_ext}'
  11813. dynamic_linker="$host_os ld.so"
  11814. shlibpath_var=LIBRARY_PATH
  11815. ;;
  11816. bsdi[45]*)
  11817. version_type=linux
  11818. need_version=no
  11819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11820. soname_spec='${libname}${release}${shared_ext}$major'
  11821. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11822. shlibpath_var=LD_LIBRARY_PATH
  11823. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11824. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11825. # the default ld.so.conf also contains /usr/contrib/lib and
  11826. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11827. # libtool to hard-code these into programs
  11828. ;;
  11829. cygwin* | mingw* | pw32*)
  11830. version_type=windows
  11831. shrext_cmds=".dll"
  11832. need_version=no
  11833. need_lib_prefix=no
  11834. case $GCC,$host_os in
  11835. yes,cygwin* | yes,mingw* | yes,pw32*)
  11836. library_names_spec='$libname.dll.a'
  11837. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11838. postinstall_cmds='base_file=`basename \${file}`~
  11839. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11840. dldir=$destdir/`dirname \$dlpath`~
  11841. test -d \$dldir || mkdir -p \$dldir~
  11842. $install_prog $dir/$dlname \$dldir/$dlname~
  11843. chmod a+x \$dldir/$dlname'
  11844. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11845. dlpath=$dir/\$dldll~
  11846. $rm \$dlpath'
  11847. shlibpath_overrides_runpath=yes
  11848. case $host_os in
  11849. cygwin*)
  11850. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11851. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11852. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11853. ;;
  11854. mingw*)
  11855. # MinGW DLLs use traditional 'lib' prefix
  11856. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11857. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11858. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11859. # It is most probably a Windows format PATH printed by
  11860. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11861. # path with ; separators, and with drive letters. We can handle the
  11862. # drive letters (cygwin fileutils understands them), so leave them,
  11863. # especially as we might pass files found there to a mingw objdump,
  11864. # which wouldn't understand a cygwinified path. Ahh.
  11865. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11866. else
  11867. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11868. fi
  11869. ;;
  11870. pw32*)
  11871. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11872. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11873. ;;
  11874. esac
  11875. ;;
  11876. *)
  11877. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11878. ;;
  11879. esac
  11880. dynamic_linker='Win32 ld.exe'
  11881. # FIXME: first we should search . and the directory the executable is in
  11882. shlibpath_var=PATH
  11883. ;;
  11884. darwin* | rhapsody*)
  11885. dynamic_linker="$host_os dyld"
  11886. version_type=darwin
  11887. need_lib_prefix=no
  11888. need_version=no
  11889. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11890. soname_spec='${libname}${release}${major}$shared_ext'
  11891. shlibpath_overrides_runpath=yes
  11892. shlibpath_var=DYLD_LIBRARY_PATH
  11893. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11894. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11895. if test "$GCC" = yes; then
  11896. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  11897. else
  11898. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11899. fi
  11900. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11901. ;;
  11902. dgux*)
  11903. version_type=linux
  11904. need_lib_prefix=no
  11905. need_version=no
  11906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11907. soname_spec='${libname}${release}${shared_ext}$major'
  11908. shlibpath_var=LD_LIBRARY_PATH
  11909. ;;
  11910. freebsd1*)
  11911. dynamic_linker=no
  11912. ;;
  11913. freebsd* | dragonfly*)
  11914. # DragonFly does not have aout. When/if they implement a new
  11915. # versioning mechanism, adjust this.
  11916. if test -x /usr/bin/objformat; then
  11917. objformat=`/usr/bin/objformat`
  11918. else
  11919. case $host_os in
  11920. freebsd[123]*) objformat=aout ;;
  11921. *) objformat=elf ;;
  11922. esac
  11923. fi
  11924. version_type=freebsd-$objformat
  11925. case $version_type in
  11926. freebsd-elf*)
  11927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11928. need_version=no
  11929. need_lib_prefix=no
  11930. ;;
  11931. freebsd-*)
  11932. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11933. need_version=yes
  11934. ;;
  11935. esac
  11936. shlibpath_var=LD_LIBRARY_PATH
  11937. case $host_os in
  11938. freebsd2*)
  11939. shlibpath_overrides_runpath=yes
  11940. ;;
  11941. freebsd3.[01]* | freebsdelf3.[01]*)
  11942. shlibpath_overrides_runpath=yes
  11943. hardcode_into_libs=yes
  11944. ;;
  11945. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11946. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11947. shlibpath_overrides_runpath=no
  11948. hardcode_into_libs=yes
  11949. ;;
  11950. freebsd*) # from 4.6 on
  11951. shlibpath_overrides_runpath=yes
  11952. hardcode_into_libs=yes
  11953. ;;
  11954. esac
  11955. ;;
  11956. gnu*)
  11957. version_type=linux
  11958. need_lib_prefix=no
  11959. need_version=no
  11960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11961. soname_spec='${libname}${release}${shared_ext}$major'
  11962. shlibpath_var=LD_LIBRARY_PATH
  11963. hardcode_into_libs=yes
  11964. ;;
  11965. hpux9* | hpux10* | hpux11*)
  11966. # Give a soname corresponding to the major version so that dld.sl refuses to
  11967. # link against other versions.
  11968. version_type=sunos
  11969. need_lib_prefix=no
  11970. need_version=no
  11971. case $host_cpu in
  11972. ia64*)
  11973. shrext_cmds='.so'
  11974. hardcode_into_libs=yes
  11975. dynamic_linker="$host_os dld.so"
  11976. shlibpath_var=LD_LIBRARY_PATH
  11977. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11979. soname_spec='${libname}${release}${shared_ext}$major'
  11980. if test "X$HPUX_IA64_MODE" = X32; then
  11981. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11982. else
  11983. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11984. fi
  11985. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11986. ;;
  11987. hppa*64*)
  11988. shrext_cmds='.sl'
  11989. hardcode_into_libs=yes
  11990. dynamic_linker="$host_os dld.sl"
  11991. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11992. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11994. soname_spec='${libname}${release}${shared_ext}$major'
  11995. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11996. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11997. ;;
  11998. *)
  11999. shrext_cmds='.sl'
  12000. dynamic_linker="$host_os dld.sl"
  12001. shlibpath_var=SHLIB_PATH
  12002. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12004. soname_spec='${libname}${release}${shared_ext}$major'
  12005. ;;
  12006. esac
  12007. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12008. postinstall_cmds='chmod 555 $lib'
  12009. ;;
  12010. interix3*)
  12011. version_type=linux
  12012. need_lib_prefix=no
  12013. need_version=no
  12014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12015. soname_spec='${libname}${release}${shared_ext}$major'
  12016. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12017. shlibpath_var=LD_LIBRARY_PATH
  12018. shlibpath_overrides_runpath=no
  12019. hardcode_into_libs=yes
  12020. ;;
  12021. irix5* | irix6* | nonstopux*)
  12022. case $host_os in
  12023. nonstopux*) version_type=nonstopux ;;
  12024. *)
  12025. if test "$lt_cv_prog_gnu_ld" = yes; then
  12026. version_type=linux
  12027. else
  12028. version_type=irix
  12029. fi ;;
  12030. esac
  12031. need_lib_prefix=no
  12032. need_version=no
  12033. soname_spec='${libname}${release}${shared_ext}$major'
  12034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12035. case $host_os in
  12036. irix5* | nonstopux*)
  12037. libsuff= shlibsuff=
  12038. ;;
  12039. *)
  12040. case $LD in # libtool.m4 will add one of these switches to LD
  12041. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12042. libsuff= shlibsuff= libmagic=32-bit;;
  12043. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12044. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12045. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12046. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12047. *) libsuff= shlibsuff= libmagic=never-match;;
  12048. esac
  12049. ;;
  12050. esac
  12051. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12052. shlibpath_overrides_runpath=no
  12053. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12054. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12055. hardcode_into_libs=yes
  12056. ;;
  12057. # No shared lib support for Linux oldld, aout, or coff.
  12058. linux*oldld* | linux*aout* | linux*coff*)
  12059. dynamic_linker=no
  12060. ;;
  12061. # This must be Linux ELF.
  12062. linux* | k*bsd*-gnu)
  12063. version_type=linux
  12064. need_lib_prefix=no
  12065. need_version=no
  12066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12067. soname_spec='${libname}${release}${shared_ext}$major'
  12068. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12069. shlibpath_var=LD_LIBRARY_PATH
  12070. shlibpath_overrides_runpath=no
  12071. # This implies no fast_install, which is unacceptable.
  12072. # Some rework will be needed to allow for fast_install
  12073. # before this can be enabled.
  12074. hardcode_into_libs=yes
  12075. # Append ld.so.conf contents to the search path
  12076. if test -f /etc/ld.so.conf; then
  12077. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12078. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12079. fi
  12080. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12081. # powerpc, because MkLinux only supported shared libraries with the
  12082. # GNU dynamic linker. Since this was broken with cross compilers,
  12083. # most powerpc-linux boxes support dynamic linking these days and
  12084. # people can always --disable-shared, the test was removed, and we
  12085. # assume the GNU/Linux dynamic linker is in use.
  12086. dynamic_linker='GNU/Linux ld.so'
  12087. ;;
  12088. netbsdelf*-gnu)
  12089. version_type=linux
  12090. need_lib_prefix=no
  12091. need_version=no
  12092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12093. soname_spec='${libname}${release}${shared_ext}$major'
  12094. shlibpath_var=LD_LIBRARY_PATH
  12095. shlibpath_overrides_runpath=no
  12096. hardcode_into_libs=yes
  12097. dynamic_linker='NetBSD ld.elf_so'
  12098. ;;
  12099. netbsd*)
  12100. version_type=sunos
  12101. need_lib_prefix=no
  12102. need_version=no
  12103. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12105. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12106. dynamic_linker='NetBSD (a.out) ld.so'
  12107. else
  12108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12109. soname_spec='${libname}${release}${shared_ext}$major'
  12110. dynamic_linker='NetBSD ld.elf_so'
  12111. fi
  12112. shlibpath_var=LD_LIBRARY_PATH
  12113. shlibpath_overrides_runpath=yes
  12114. hardcode_into_libs=yes
  12115. ;;
  12116. newsos6)
  12117. version_type=linux
  12118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12119. shlibpath_var=LD_LIBRARY_PATH
  12120. shlibpath_overrides_runpath=yes
  12121. ;;
  12122. nto-qnx*)
  12123. version_type=linux
  12124. need_lib_prefix=no
  12125. need_version=no
  12126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12127. soname_spec='${libname}${release}${shared_ext}$major'
  12128. shlibpath_var=LD_LIBRARY_PATH
  12129. shlibpath_overrides_runpath=yes
  12130. ;;
  12131. openbsd*)
  12132. version_type=sunos
  12133. sys_lib_dlsearch_path_spec="/usr/lib"
  12134. need_lib_prefix=no
  12135. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12136. case $host_os in
  12137. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12138. *) need_version=no ;;
  12139. esac
  12140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12141. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12142. shlibpath_var=LD_LIBRARY_PATH
  12143. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12144. case $host_os in
  12145. openbsd2.[89] | openbsd2.[89].*)
  12146. shlibpath_overrides_runpath=no
  12147. ;;
  12148. *)
  12149. shlibpath_overrides_runpath=yes
  12150. ;;
  12151. esac
  12152. else
  12153. shlibpath_overrides_runpath=yes
  12154. fi
  12155. ;;
  12156. os2*)
  12157. libname_spec='$name'
  12158. shrext_cmds=".dll"
  12159. need_lib_prefix=no
  12160. library_names_spec='$libname${shared_ext} $libname.a'
  12161. dynamic_linker='OS/2 ld.exe'
  12162. shlibpath_var=LIBPATH
  12163. ;;
  12164. osf3* | osf4* | osf5*)
  12165. version_type=osf
  12166. need_lib_prefix=no
  12167. need_version=no
  12168. soname_spec='${libname}${release}${shared_ext}$major'
  12169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12170. shlibpath_var=LD_LIBRARY_PATH
  12171. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12172. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12173. ;;
  12174. solaris*)
  12175. version_type=linux
  12176. need_lib_prefix=no
  12177. need_version=no
  12178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12179. soname_spec='${libname}${release}${shared_ext}$major'
  12180. shlibpath_var=LD_LIBRARY_PATH
  12181. shlibpath_overrides_runpath=yes
  12182. hardcode_into_libs=yes
  12183. # ldd complains unless libraries are executable
  12184. postinstall_cmds='chmod +x $lib'
  12185. ;;
  12186. sunos4*)
  12187. version_type=sunos
  12188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12189. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12190. shlibpath_var=LD_LIBRARY_PATH
  12191. shlibpath_overrides_runpath=yes
  12192. if test "$with_gnu_ld" = yes; then
  12193. need_lib_prefix=no
  12194. fi
  12195. need_version=yes
  12196. ;;
  12197. sysv4 | sysv4.3*)
  12198. version_type=linux
  12199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12200. soname_spec='${libname}${release}${shared_ext}$major'
  12201. shlibpath_var=LD_LIBRARY_PATH
  12202. case $host_vendor in
  12203. sni)
  12204. shlibpath_overrides_runpath=no
  12205. need_lib_prefix=no
  12206. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12207. runpath_var=LD_RUN_PATH
  12208. ;;
  12209. siemens)
  12210. need_lib_prefix=no
  12211. ;;
  12212. motorola)
  12213. need_lib_prefix=no
  12214. need_version=no
  12215. shlibpath_overrides_runpath=no
  12216. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12217. ;;
  12218. esac
  12219. ;;
  12220. sysv4*MP*)
  12221. if test -d /usr/nec ;then
  12222. version_type=linux
  12223. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12224. soname_spec='$libname${shared_ext}.$major'
  12225. shlibpath_var=LD_LIBRARY_PATH
  12226. fi
  12227. ;;
  12228. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12229. version_type=freebsd-elf
  12230. need_lib_prefix=no
  12231. need_version=no
  12232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12233. soname_spec='${libname}${release}${shared_ext}$major'
  12234. shlibpath_var=LD_LIBRARY_PATH
  12235. hardcode_into_libs=yes
  12236. if test "$with_gnu_ld" = yes; then
  12237. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12238. shlibpath_overrides_runpath=no
  12239. else
  12240. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12241. shlibpath_overrides_runpath=yes
  12242. case $host_os in
  12243. sco3.2v5*)
  12244. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12245. ;;
  12246. esac
  12247. fi
  12248. sys_lib_dlsearch_path_spec='/usr/lib'
  12249. ;;
  12250. uts4*)
  12251. version_type=linux
  12252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12253. soname_spec='${libname}${release}${shared_ext}$major'
  12254. shlibpath_var=LD_LIBRARY_PATH
  12255. ;;
  12256. *)
  12257. dynamic_linker=no
  12258. ;;
  12259. esac
  12260. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12261. echo "${ECHO_T}$dynamic_linker" >&6; }
  12262. test "$dynamic_linker" = no && can_build_shared=no
  12263. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12264. if test "$GCC" = yes; then
  12265. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12266. fi
  12267. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12268. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12269. hardcode_action_CXX=
  12270. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12271. test -n "$runpath_var_CXX" || \
  12272. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12273. # We can hardcode non-existant directories.
  12274. if test "$hardcode_direct_CXX" != no &&
  12275. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12276. # have to relink, otherwise we might link with an installed library
  12277. # when we should be linking with a yet-to-be-installed one
  12278. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12279. test "$hardcode_minus_L_CXX" != no; then
  12280. # Linking always hardcodes the temporary library directory.
  12281. hardcode_action_CXX=relink
  12282. else
  12283. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12284. hardcode_action_CXX=immediate
  12285. fi
  12286. else
  12287. # We cannot hardcode anything, or else we can only hardcode existing
  12288. # directories.
  12289. hardcode_action_CXX=unsupported
  12290. fi
  12291. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12292. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12293. if test "$hardcode_action_CXX" = relink; then
  12294. # Fast installation is not supported
  12295. enable_fast_install=no
  12296. elif test "$shlibpath_overrides_runpath" = yes ||
  12297. test "$enable_shared" = no; then
  12298. # Fast installation is not necessary
  12299. enable_fast_install=needless
  12300. fi
  12301. # The else clause should only fire when bootstrapping the
  12302. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12303. # with your package, and you will get complaints that there are
  12304. # no rules to generate ltmain.sh.
  12305. if test -f "$ltmain"; then
  12306. # See if we are running on zsh, and set the options which allow our commands through
  12307. # without removal of \ escapes.
  12308. if test -n "${ZSH_VERSION+set}" ; then
  12309. setopt NO_GLOB_SUBST
  12310. fi
  12311. # Now quote all the things that may contain metacharacters while being
  12312. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12313. # variables and quote the copies for generation of the libtool script.
  12314. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12315. SED SHELL STRIP \
  12316. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12317. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12318. deplibs_check_method reload_flag reload_cmds need_locks \
  12319. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12320. lt_cv_sys_global_symbol_to_c_name_address \
  12321. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12322. old_postinstall_cmds old_postuninstall_cmds \
  12323. compiler_CXX \
  12324. CC_CXX \
  12325. LD_CXX \
  12326. lt_prog_compiler_wl_CXX \
  12327. lt_prog_compiler_pic_CXX \
  12328. lt_prog_compiler_static_CXX \
  12329. lt_prog_compiler_no_builtin_flag_CXX \
  12330. export_dynamic_flag_spec_CXX \
  12331. thread_safe_flag_spec_CXX \
  12332. whole_archive_flag_spec_CXX \
  12333. enable_shared_with_static_runtimes_CXX \
  12334. old_archive_cmds_CXX \
  12335. old_archive_from_new_cmds_CXX \
  12336. predep_objects_CXX \
  12337. postdep_objects_CXX \
  12338. predeps_CXX \
  12339. postdeps_CXX \
  12340. compiler_lib_search_path_CXX \
  12341. archive_cmds_CXX \
  12342. archive_expsym_cmds_CXX \
  12343. postinstall_cmds_CXX \
  12344. postuninstall_cmds_CXX \
  12345. old_archive_from_expsyms_cmds_CXX \
  12346. allow_undefined_flag_CXX \
  12347. no_undefined_flag_CXX \
  12348. export_symbols_cmds_CXX \
  12349. hardcode_libdir_flag_spec_CXX \
  12350. hardcode_libdir_flag_spec_ld_CXX \
  12351. hardcode_libdir_separator_CXX \
  12352. hardcode_automatic_CXX \
  12353. module_cmds_CXX \
  12354. module_expsym_cmds_CXX \
  12355. lt_cv_prog_compiler_c_o_CXX \
  12356. exclude_expsyms_CXX \
  12357. include_expsyms_CXX; do
  12358. case $var in
  12359. old_archive_cmds_CXX | \
  12360. old_archive_from_new_cmds_CXX | \
  12361. archive_cmds_CXX | \
  12362. archive_expsym_cmds_CXX | \
  12363. module_cmds_CXX | \
  12364. module_expsym_cmds_CXX | \
  12365. old_archive_from_expsyms_cmds_CXX | \
  12366. export_symbols_cmds_CXX | \
  12367. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12368. postinstall_cmds | postuninstall_cmds | \
  12369. old_postinstall_cmds | old_postuninstall_cmds | \
  12370. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12371. # Double-quote double-evaled strings.
  12372. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12373. ;;
  12374. *)
  12375. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12376. ;;
  12377. esac
  12378. done
  12379. case $lt_echo in
  12380. *'\$0 --fallback-echo"')
  12381. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12382. ;;
  12383. esac
  12384. cfgfile="$ofile"
  12385. cat <<__EOF__ >> "$cfgfile"
  12386. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12387. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12388. # Shell to use when invoking shell scripts.
  12389. SHELL=$lt_SHELL
  12390. # Whether or not to build shared libraries.
  12391. build_libtool_libs=$enable_shared
  12392. # Whether or not to build static libraries.
  12393. build_old_libs=$enable_static
  12394. # Whether or not to add -lc for building shared libraries.
  12395. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12396. # Whether or not to disallow shared libs when runtime libs are static
  12397. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12398. # Whether or not to optimize for fast installation.
  12399. fast_install=$enable_fast_install
  12400. # The host system.
  12401. host_alias=$host_alias
  12402. host=$host
  12403. host_os=$host_os
  12404. # The build system.
  12405. build_alias=$build_alias
  12406. build=$build
  12407. build_os=$build_os
  12408. # An echo program that does not interpret backslashes.
  12409. echo=$lt_echo
  12410. # The archiver.
  12411. AR=$lt_AR
  12412. AR_FLAGS=$lt_AR_FLAGS
  12413. # A C compiler.
  12414. LTCC=$lt_LTCC
  12415. # LTCC compiler flags.
  12416. LTCFLAGS=$lt_LTCFLAGS
  12417. # A language-specific compiler.
  12418. CC=$lt_compiler_CXX
  12419. # Is the compiler the GNU C compiler?
  12420. with_gcc=$GCC_CXX
  12421. # An ERE matcher.
  12422. EGREP=$lt_EGREP
  12423. # The linker used to build libraries.
  12424. LD=$lt_LD_CXX
  12425. # Whether we need hard or soft links.
  12426. LN_S=$lt_LN_S
  12427. # A BSD-compatible nm program.
  12428. NM=$lt_NM
  12429. # A symbol stripping program
  12430. STRIP=$lt_STRIP
  12431. # Used to examine libraries when file_magic_cmd begins "file"
  12432. MAGIC_CMD=$MAGIC_CMD
  12433. # Used on cygwin: DLL creation program.
  12434. DLLTOOL="$DLLTOOL"
  12435. # Used on cygwin: object dumper.
  12436. OBJDUMP="$OBJDUMP"
  12437. # Used on cygwin: assembler.
  12438. AS="$AS"
  12439. # The name of the directory that contains temporary libtool files.
  12440. objdir=$objdir
  12441. # How to create reloadable object files.
  12442. reload_flag=$lt_reload_flag
  12443. reload_cmds=$lt_reload_cmds
  12444. # How to pass a linker flag through the compiler.
  12445. wl=$lt_lt_prog_compiler_wl_CXX
  12446. # Object file suffix (normally "o").
  12447. objext="$ac_objext"
  12448. # Old archive suffix (normally "a").
  12449. libext="$libext"
  12450. # Shared library suffix (normally ".so").
  12451. shrext_cmds='$shrext_cmds'
  12452. # Executable file suffix (normally "").
  12453. exeext="$exeext"
  12454. # Additional compiler flags for building library objects.
  12455. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12456. pic_mode=$pic_mode
  12457. # What is the maximum length of a command?
  12458. max_cmd_len=$lt_cv_sys_max_cmd_len
  12459. # Does compiler simultaneously support -c and -o options?
  12460. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12461. # Must we lock files when doing compilation?
  12462. need_locks=$lt_need_locks
  12463. # Do we need the lib prefix for modules?
  12464. need_lib_prefix=$need_lib_prefix
  12465. # Do we need a version for libraries?
  12466. need_version=$need_version
  12467. # Whether dlopen is supported.
  12468. dlopen_support=$enable_dlopen
  12469. # Whether dlopen of programs is supported.
  12470. dlopen_self=$enable_dlopen_self
  12471. # Whether dlopen of statically linked programs is supported.
  12472. dlopen_self_static=$enable_dlopen_self_static
  12473. # Compiler flag to prevent dynamic linking.
  12474. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12475. # Compiler flag to turn off builtin functions.
  12476. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12477. # Compiler flag to allow reflexive dlopens.
  12478. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12479. # Compiler flag to generate shared objects directly from archives.
  12480. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12481. # Compiler flag to generate thread-safe objects.
  12482. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12483. # Library versioning type.
  12484. version_type=$version_type
  12485. # Format of library name prefix.
  12486. libname_spec=$lt_libname_spec
  12487. # List of archive names. First name is the real one, the rest are links.
  12488. # The last name is the one that the linker finds with -lNAME.
  12489. library_names_spec=$lt_library_names_spec
  12490. # The coded name of the library, if different from the real name.
  12491. soname_spec=$lt_soname_spec
  12492. # Commands used to build and install an old-style archive.
  12493. RANLIB=$lt_RANLIB
  12494. old_archive_cmds=$lt_old_archive_cmds_CXX
  12495. old_postinstall_cmds=$lt_old_postinstall_cmds
  12496. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12497. # Create an old-style archive from a shared archive.
  12498. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12499. # Create a temporary old-style archive to link instead of a shared archive.
  12500. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12501. # Commands used to build and install a shared archive.
  12502. archive_cmds=$lt_archive_cmds_CXX
  12503. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12504. postinstall_cmds=$lt_postinstall_cmds
  12505. postuninstall_cmds=$lt_postuninstall_cmds
  12506. # Commands used to build a loadable module (assumed same as above if empty)
  12507. module_cmds=$lt_module_cmds_CXX
  12508. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12509. # Commands to strip libraries.
  12510. old_striplib=$lt_old_striplib
  12511. striplib=$lt_striplib
  12512. # Dependencies to place before the objects being linked to create a
  12513. # shared library.
  12514. predep_objects=$lt_predep_objects_CXX
  12515. # Dependencies to place after the objects being linked to create a
  12516. # shared library.
  12517. postdep_objects=$lt_postdep_objects_CXX
  12518. # Dependencies to place before the objects being linked to create a
  12519. # shared library.
  12520. predeps=$lt_predeps_CXX
  12521. # Dependencies to place after the objects being linked to create a
  12522. # shared library.
  12523. postdeps=$lt_postdeps_CXX
  12524. # The library search path used internally by the compiler when linking
  12525. # a shared library.
  12526. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12527. # Method to check whether dependent libraries are shared objects.
  12528. deplibs_check_method=$lt_deplibs_check_method
  12529. # Command to use when deplibs_check_method == file_magic.
  12530. file_magic_cmd=$lt_file_magic_cmd
  12531. # Flag that allows shared libraries with undefined symbols to be built.
  12532. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12533. # Flag that forces no undefined symbols.
  12534. no_undefined_flag=$lt_no_undefined_flag_CXX
  12535. # Commands used to finish a libtool library installation in a directory.
  12536. finish_cmds=$lt_finish_cmds
  12537. # Same as above, but a single script fragment to be evaled but not shown.
  12538. finish_eval=$lt_finish_eval
  12539. # Take the output of nm and produce a listing of raw symbols and C names.
  12540. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12541. # Transform the output of nm in a proper C declaration
  12542. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12543. # Transform the output of nm in a C name address pair
  12544. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12545. # This is the shared library runtime path variable.
  12546. runpath_var=$runpath_var
  12547. # This is the shared library path variable.
  12548. shlibpath_var=$shlibpath_var
  12549. # Is shlibpath searched before the hard-coded library search path?
  12550. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12551. # How to hardcode a shared library path into an executable.
  12552. hardcode_action=$hardcode_action_CXX
  12553. # Whether we should hardcode library paths into libraries.
  12554. hardcode_into_libs=$hardcode_into_libs
  12555. # Flag to hardcode \$libdir into a binary during linking.
  12556. # This must work even if \$libdir does not exist.
  12557. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12558. # If ld is used when linking, flag to hardcode \$libdir into
  12559. # a binary during linking. This must work even if \$libdir does
  12560. # not exist.
  12561. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12562. # Whether we need a single -rpath flag with a separated argument.
  12563. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12564. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12565. # resulting binary.
  12566. hardcode_direct=$hardcode_direct_CXX
  12567. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12568. # resulting binary.
  12569. hardcode_minus_L=$hardcode_minus_L_CXX
  12570. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12571. # the resulting binary.
  12572. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12573. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12574. # and all subsequent libraries and executables linked against it.
  12575. hardcode_automatic=$hardcode_automatic_CXX
  12576. # Variables whose values should be saved in libtool wrapper scripts and
  12577. # restored at relink time.
  12578. variables_saved_for_relink="$variables_saved_for_relink"
  12579. # Whether libtool must link a program against all its dependency libraries.
  12580. link_all_deplibs=$link_all_deplibs_CXX
  12581. # Compile-time system search path for libraries
  12582. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12583. # Run-time system search path for libraries
  12584. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12585. # Fix the shell variable \$srcfile for the compiler.
  12586. fix_srcfile_path="$fix_srcfile_path_CXX"
  12587. # Set to yes if exported symbols are required.
  12588. always_export_symbols=$always_export_symbols_CXX
  12589. # The commands to list exported symbols.
  12590. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12591. # The commands to extract the exported symbol list from a shared archive.
  12592. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12593. # Symbols that should not be listed in the preloaded symbols.
  12594. exclude_expsyms=$lt_exclude_expsyms_CXX
  12595. # Symbols that must always be exported.
  12596. include_expsyms=$lt_include_expsyms_CXX
  12597. # ### END LIBTOOL TAG CONFIG: $tagname
  12598. __EOF__
  12599. else
  12600. # If there is no Makefile yet, we rely on a make rule to execute
  12601. # `config.status --recheck' to rerun these tests and create the
  12602. # libtool script then.
  12603. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12604. if test -f "$ltmain_in"; then
  12605. test -f Makefile && make "$ltmain"
  12606. fi
  12607. fi
  12608. ac_ext=c
  12609. ac_cpp='$CPP $CPPFLAGS'
  12610. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12611. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12612. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12613. CC=$lt_save_CC
  12614. LDCXX=$LD
  12615. LD=$lt_save_LD
  12616. GCC=$lt_save_GCC
  12617. with_gnu_ldcxx=$with_gnu_ld
  12618. with_gnu_ld=$lt_save_with_gnu_ld
  12619. lt_cv_path_LDCXX=$lt_cv_path_LD
  12620. lt_cv_path_LD=$lt_save_path_LD
  12621. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12622. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12623. else
  12624. tagname=""
  12625. fi
  12626. ;;
  12627. F77)
  12628. if test -n "$F77" && test "X$F77" != "Xno"; then
  12629. ac_ext=f
  12630. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12631. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12632. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12633. archive_cmds_need_lc_F77=no
  12634. allow_undefined_flag_F77=
  12635. always_export_symbols_F77=no
  12636. archive_expsym_cmds_F77=
  12637. export_dynamic_flag_spec_F77=
  12638. hardcode_direct_F77=no
  12639. hardcode_libdir_flag_spec_F77=
  12640. hardcode_libdir_flag_spec_ld_F77=
  12641. hardcode_libdir_separator_F77=
  12642. hardcode_minus_L_F77=no
  12643. hardcode_automatic_F77=no
  12644. module_cmds_F77=
  12645. module_expsym_cmds_F77=
  12646. link_all_deplibs_F77=unknown
  12647. old_archive_cmds_F77=$old_archive_cmds
  12648. no_undefined_flag_F77=
  12649. whole_archive_flag_spec_F77=
  12650. enable_shared_with_static_runtimes_F77=no
  12651. # Source file extension for f77 test sources.
  12652. ac_ext=f
  12653. # Object file extension for compiled f77 test sources.
  12654. objext=o
  12655. objext_F77=$objext
  12656. # Code to be used in simple compile tests
  12657. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12658. # Code to be used in simple link tests
  12659. lt_simple_link_test_code=" program t\n end\n"
  12660. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12661. # If no C compiler was specified, use CC.
  12662. LTCC=${LTCC-"$CC"}
  12663. # If no C compiler flags were specified, use CFLAGS.
  12664. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12665. # Allow CC to be a program name with arguments.
  12666. compiler=$CC
  12667. # save warnings/boilerplate of simple test code
  12668. ac_outfile=conftest.$ac_objext
  12669. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12670. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12671. _lt_compiler_boilerplate=`cat conftest.err`
  12672. $rm conftest*
  12673. ac_outfile=conftest.$ac_objext
  12674. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12675. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12676. _lt_linker_boilerplate=`cat conftest.err`
  12677. $rm conftest*
  12678. # Allow CC to be a program name with arguments.
  12679. lt_save_CC="$CC"
  12680. CC=${F77-"f77"}
  12681. compiler=$CC
  12682. compiler_F77=$CC
  12683. for cc_temp in $compiler""; do
  12684. case $cc_temp in
  12685. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12686. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12687. \-*) ;;
  12688. *) break;;
  12689. esac
  12690. done
  12691. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12692. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12693. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12694. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12695. echo "${ECHO_T}$can_build_shared" >&6; }
  12696. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12697. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12698. test "$can_build_shared" = "no" && enable_shared=no
  12699. # On AIX, shared libraries and static libraries use the same namespace, and
  12700. # are all built from PIC.
  12701. case $host_os in
  12702. aix3*)
  12703. test "$enable_shared" = yes && enable_static=no
  12704. if test -n "$RANLIB"; then
  12705. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12706. postinstall_cmds='$RANLIB $lib'
  12707. fi
  12708. ;;
  12709. aix4* | aix5*)
  12710. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12711. test "$enable_shared" = yes && enable_static=no
  12712. fi
  12713. ;;
  12714. esac
  12715. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12716. echo "${ECHO_T}$enable_shared" >&6; }
  12717. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12718. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12719. # Make sure either enable_shared or enable_static is yes.
  12720. test "$enable_shared" = yes || enable_static=yes
  12721. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12722. echo "${ECHO_T}$enable_static" >&6; }
  12723. GCC_F77="$G77"
  12724. LD_F77="$LD"
  12725. lt_prog_compiler_wl_F77=
  12726. lt_prog_compiler_pic_F77=
  12727. lt_prog_compiler_static_F77=
  12728. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12729. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12730. if test "$GCC" = yes; then
  12731. lt_prog_compiler_wl_F77='-Wl,'
  12732. lt_prog_compiler_static_F77='-static'
  12733. case $host_os in
  12734. aix*)
  12735. # All AIX code is PIC.
  12736. if test "$host_cpu" = ia64; then
  12737. # AIX 5 now supports IA64 processor
  12738. lt_prog_compiler_static_F77='-Bstatic'
  12739. fi
  12740. ;;
  12741. amigaos*)
  12742. # FIXME: we need at least 68020 code to build shared libraries, but
  12743. # adding the `-m68020' flag to GCC prevents building anything better,
  12744. # like `-m68040'.
  12745. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12746. ;;
  12747. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12748. # PIC is the default for these OSes.
  12749. ;;
  12750. mingw* | pw32* | os2*)
  12751. # This hack is so that the source file can tell whether it is being
  12752. # built for inclusion in a dll (and should export symbols for example).
  12753. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12754. ;;
  12755. darwin* | rhapsody*)
  12756. # PIC is the default on this platform
  12757. # Common symbols not allowed in MH_DYLIB files
  12758. lt_prog_compiler_pic_F77='-fno-common'
  12759. ;;
  12760. interix3*)
  12761. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12762. # Instead, we relocate shared libraries at runtime.
  12763. ;;
  12764. msdosdjgpp*)
  12765. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12766. # on systems that don't support them.
  12767. lt_prog_compiler_can_build_shared_F77=no
  12768. enable_shared=no
  12769. ;;
  12770. sysv4*MP*)
  12771. if test -d /usr/nec; then
  12772. lt_prog_compiler_pic_F77=-Kconform_pic
  12773. fi
  12774. ;;
  12775. hpux*)
  12776. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12777. # not for PA HP-UX.
  12778. case $host_cpu in
  12779. hppa*64*|ia64*)
  12780. # +Z the default
  12781. ;;
  12782. *)
  12783. lt_prog_compiler_pic_F77='-fPIC'
  12784. ;;
  12785. esac
  12786. ;;
  12787. *)
  12788. lt_prog_compiler_pic_F77='-fPIC'
  12789. ;;
  12790. esac
  12791. else
  12792. # PORTME Check for flag to pass linker flags through the system compiler.
  12793. case $host_os in
  12794. aix*)
  12795. lt_prog_compiler_wl_F77='-Wl,'
  12796. if test "$host_cpu" = ia64; then
  12797. # AIX 5 now supports IA64 processor
  12798. lt_prog_compiler_static_F77='-Bstatic'
  12799. else
  12800. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12801. fi
  12802. ;;
  12803. darwin*)
  12804. # PIC is the default on this platform
  12805. # Common symbols not allowed in MH_DYLIB files
  12806. case $cc_basename in
  12807. xlc*)
  12808. lt_prog_compiler_pic_F77='-qnocommon'
  12809. lt_prog_compiler_wl_F77='-Wl,'
  12810. ;;
  12811. esac
  12812. ;;
  12813. mingw* | pw32* | os2*)
  12814. # This hack is so that the source file can tell whether it is being
  12815. # built for inclusion in a dll (and should export symbols for example).
  12816. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12817. ;;
  12818. hpux9* | hpux10* | hpux11*)
  12819. lt_prog_compiler_wl_F77='-Wl,'
  12820. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12821. # not for PA HP-UX.
  12822. case $host_cpu in
  12823. hppa*64*|ia64*)
  12824. # +Z the default
  12825. ;;
  12826. *)
  12827. lt_prog_compiler_pic_F77='+Z'
  12828. ;;
  12829. esac
  12830. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12831. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12832. ;;
  12833. irix5* | irix6* | nonstopux*)
  12834. lt_prog_compiler_wl_F77='-Wl,'
  12835. # PIC (with -KPIC) is the default.
  12836. lt_prog_compiler_static_F77='-non_shared'
  12837. ;;
  12838. newsos6)
  12839. lt_prog_compiler_pic_F77='-KPIC'
  12840. lt_prog_compiler_static_F77='-Bstatic'
  12841. ;;
  12842. linux* | k*bsd*-gnu)
  12843. case $cc_basename in
  12844. icc* | ecc*)
  12845. lt_prog_compiler_wl_F77='-Wl,'
  12846. lt_prog_compiler_pic_F77='-KPIC'
  12847. lt_prog_compiler_static_F77='-static'
  12848. ;;
  12849. pgcc* | pgf77* | pgf90* | pgf95*)
  12850. # Portland Group compilers (*not* the Pentium gcc compiler,
  12851. # which looks to be a dead project)
  12852. lt_prog_compiler_wl_F77='-Wl,'
  12853. lt_prog_compiler_pic_F77='-fpic'
  12854. lt_prog_compiler_static_F77='-Bstatic'
  12855. ;;
  12856. ccc*)
  12857. lt_prog_compiler_wl_F77='-Wl,'
  12858. # All Alpha code is PIC.
  12859. lt_prog_compiler_static_F77='-non_shared'
  12860. ;;
  12861. esac
  12862. ;;
  12863. osf3* | osf4* | osf5*)
  12864. lt_prog_compiler_wl_F77='-Wl,'
  12865. # All OSF/1 code is PIC.
  12866. lt_prog_compiler_static_F77='-non_shared'
  12867. ;;
  12868. solaris*)
  12869. lt_prog_compiler_pic_F77='-KPIC'
  12870. lt_prog_compiler_static_F77='-Bstatic'
  12871. case $cc_basename in
  12872. f77* | f90* | f95*)
  12873. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12874. *)
  12875. lt_prog_compiler_wl_F77='-Wl,';;
  12876. esac
  12877. ;;
  12878. sunos4*)
  12879. lt_prog_compiler_wl_F77='-Qoption ld '
  12880. lt_prog_compiler_pic_F77='-PIC'
  12881. lt_prog_compiler_static_F77='-Bstatic'
  12882. ;;
  12883. sysv4 | sysv4.2uw2* | sysv4.3*)
  12884. lt_prog_compiler_wl_F77='-Wl,'
  12885. lt_prog_compiler_pic_F77='-KPIC'
  12886. lt_prog_compiler_static_F77='-Bstatic'
  12887. ;;
  12888. sysv4*MP*)
  12889. if test -d /usr/nec ;then
  12890. lt_prog_compiler_pic_F77='-Kconform_pic'
  12891. lt_prog_compiler_static_F77='-Bstatic'
  12892. fi
  12893. ;;
  12894. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12895. lt_prog_compiler_wl_F77='-Wl,'
  12896. lt_prog_compiler_pic_F77='-KPIC'
  12897. lt_prog_compiler_static_F77='-Bstatic'
  12898. ;;
  12899. unicos*)
  12900. lt_prog_compiler_wl_F77='-Wl,'
  12901. lt_prog_compiler_can_build_shared_F77=no
  12902. ;;
  12903. uts4*)
  12904. lt_prog_compiler_pic_F77='-pic'
  12905. lt_prog_compiler_static_F77='-Bstatic'
  12906. ;;
  12907. *)
  12908. lt_prog_compiler_can_build_shared_F77=no
  12909. ;;
  12910. esac
  12911. fi
  12912. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12913. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12914. #
  12915. # Check to make sure the PIC flag actually works.
  12916. #
  12917. if test -n "$lt_prog_compiler_pic_F77"; then
  12918. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12919. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12920. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12921. echo $ECHO_N "(cached) $ECHO_C" >&6
  12922. else
  12923. lt_prog_compiler_pic_works_F77=no
  12924. ac_outfile=conftest.$ac_objext
  12925. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12926. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12927. # Insert the option either (1) after the last *FLAGS variable, or
  12928. # (2) before a word containing "conftest.", or (3) at the end.
  12929. # Note that $ac_compile itself does not contain backslashes and begins
  12930. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12931. # The option is referenced via a variable to avoid confusing sed.
  12932. lt_compile=`echo "$ac_compile" | $SED \
  12933. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12934. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12935. -e 's:$: $lt_compiler_flag:'`
  12936. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  12937. (eval "$lt_compile" 2>conftest.err)
  12938. ac_status=$?
  12939. cat conftest.err >&5
  12940. echo "$as_me:__oline__: \$? = $ac_status" >&5
  12941. if (exit $ac_status) && test -s "$ac_outfile"; then
  12942. # The compiler can only warn and ignore the option if not recognized
  12943. # So say no if there are warnings other than the usual output.
  12944. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12945. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12946. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12947. lt_prog_compiler_pic_works_F77=yes
  12948. fi
  12949. fi
  12950. $rm conftest*
  12951. fi
  12952. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12953. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12954. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12955. case $lt_prog_compiler_pic_F77 in
  12956. "" | " "*) ;;
  12957. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12958. esac
  12959. else
  12960. lt_prog_compiler_pic_F77=
  12961. lt_prog_compiler_can_build_shared_F77=no
  12962. fi
  12963. fi
  12964. case $host_os in
  12965. # For platforms which do not support PIC, -DPIC is meaningless:
  12966. *djgpp*)
  12967. lt_prog_compiler_pic_F77=
  12968. ;;
  12969. *)
  12970. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12971. ;;
  12972. esac
  12973. #
  12974. # Check to make sure the static flag actually works.
  12975. #
  12976. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12977. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12978. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12979. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12980. echo $ECHO_N "(cached) $ECHO_C" >&6
  12981. else
  12982. lt_prog_compiler_static_works_F77=no
  12983. save_LDFLAGS="$LDFLAGS"
  12984. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12985. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12986. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12987. # The linker can only warn and ignore the option if not recognized
  12988. # So say no if there are warnings
  12989. if test -s conftest.err; then
  12990. # Append any errors to the config.log.
  12991. cat conftest.err 1>&5
  12992. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12993. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12994. if diff conftest.exp conftest.er2 >/dev/null; then
  12995. lt_prog_compiler_static_works_F77=yes
  12996. fi
  12997. else
  12998. lt_prog_compiler_static_works_F77=yes
  12999. fi
  13000. fi
  13001. $rm conftest*
  13002. LDFLAGS="$save_LDFLAGS"
  13003. fi
  13004. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  13005. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  13006. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  13007. :
  13008. else
  13009. lt_prog_compiler_static_F77=
  13010. fi
  13011. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13012. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13013. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13014. echo $ECHO_N "(cached) $ECHO_C" >&6
  13015. else
  13016. lt_cv_prog_compiler_c_o_F77=no
  13017. $rm -r conftest 2>/dev/null
  13018. mkdir conftest
  13019. cd conftest
  13020. mkdir out
  13021. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13022. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13023. # Insert the option either (1) after the last *FLAGS variable, or
  13024. # (2) before a word containing "conftest.", or (3) at the end.
  13025. # Note that $ac_compile itself does not contain backslashes and begins
  13026. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13027. lt_compile=`echo "$ac_compile" | $SED \
  13028. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13029. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13030. -e 's:$: $lt_compiler_flag:'`
  13031. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  13032. (eval "$lt_compile" 2>out/conftest.err)
  13033. ac_status=$?
  13034. cat out/conftest.err >&5
  13035. echo "$as_me:__oline__: \$? = $ac_status" >&5
  13036. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13037. then
  13038. # The compiler can only warn and ignore the option if not recognized
  13039. # So say no if there are warnings
  13040. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13041. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13042. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13043. lt_cv_prog_compiler_c_o_F77=yes
  13044. fi
  13045. fi
  13046. chmod u+w . 2>&5
  13047. $rm conftest*
  13048. # SGI C++ compiler will create directory out/ii_files/ for
  13049. # template instantiation
  13050. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13051. $rm out/* && rmdir out
  13052. cd ..
  13053. rmdir conftest
  13054. $rm conftest*
  13055. fi
  13056. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13057. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13058. hard_links="nottested"
  13059. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13060. # do not overwrite the value of need_locks provided by the user
  13061. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13062. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13063. hard_links=yes
  13064. $rm conftest*
  13065. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13066. touch conftest.a
  13067. ln conftest.a conftest.b 2>&5 || hard_links=no
  13068. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13069. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13070. echo "${ECHO_T}$hard_links" >&6; }
  13071. if test "$hard_links" = no; then
  13072. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13073. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13074. need_locks=warn
  13075. fi
  13076. else
  13077. need_locks=no
  13078. fi
  13079. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13080. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13081. runpath_var=
  13082. allow_undefined_flag_F77=
  13083. enable_shared_with_static_runtimes_F77=no
  13084. archive_cmds_F77=
  13085. archive_expsym_cmds_F77=
  13086. old_archive_From_new_cmds_F77=
  13087. old_archive_from_expsyms_cmds_F77=
  13088. export_dynamic_flag_spec_F77=
  13089. whole_archive_flag_spec_F77=
  13090. thread_safe_flag_spec_F77=
  13091. hardcode_libdir_flag_spec_F77=
  13092. hardcode_libdir_flag_spec_ld_F77=
  13093. hardcode_libdir_separator_F77=
  13094. hardcode_direct_F77=no
  13095. hardcode_minus_L_F77=no
  13096. hardcode_shlibpath_var_F77=unsupported
  13097. link_all_deplibs_F77=unknown
  13098. hardcode_automatic_F77=no
  13099. module_cmds_F77=
  13100. module_expsym_cmds_F77=
  13101. always_export_symbols_F77=no
  13102. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13103. # include_expsyms should be a list of space-separated symbols to be *always*
  13104. # included in the symbol list
  13105. include_expsyms_F77=
  13106. # exclude_expsyms can be an extended regexp of symbols to exclude
  13107. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13108. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13109. # as well as any symbol that contains `d'.
  13110. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13111. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13112. # platforms (ab)use it in PIC code, but their linkers get confused if
  13113. # the symbol is explicitly referenced. Since portable code cannot
  13114. # rely on this symbol name, it's probably fine to never include it in
  13115. # preloaded symbol tables.
  13116. extract_expsyms_cmds=
  13117. # Just being paranoid about ensuring that cc_basename is set.
  13118. for cc_temp in $compiler""; do
  13119. case $cc_temp in
  13120. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13121. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13122. \-*) ;;
  13123. *) break;;
  13124. esac
  13125. done
  13126. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13127. case $host_os in
  13128. cygwin* | mingw* | pw32*)
  13129. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13130. # When not using gcc, we currently assume that we are using
  13131. # Microsoft Visual C++.
  13132. if test "$GCC" != yes; then
  13133. with_gnu_ld=no
  13134. fi
  13135. ;;
  13136. interix*)
  13137. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13138. with_gnu_ld=yes
  13139. ;;
  13140. openbsd*)
  13141. with_gnu_ld=no
  13142. ;;
  13143. esac
  13144. ld_shlibs_F77=yes
  13145. if test "$with_gnu_ld" = yes; then
  13146. # If archive_cmds runs LD, not CC, wlarc should be empty
  13147. wlarc='${wl}'
  13148. # Set some defaults for GNU ld with shared library support. These
  13149. # are reset later if shared libraries are not supported. Putting them
  13150. # here allows them to be overridden if necessary.
  13151. runpath_var=LD_RUN_PATH
  13152. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13153. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13154. # ancient GNU ld didn't support --whole-archive et. al.
  13155. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13156. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13157. else
  13158. whole_archive_flag_spec_F77=
  13159. fi
  13160. supports_anon_versioning=no
  13161. case `$LD -v 2>/dev/null` in
  13162. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13163. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13164. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13165. *\ 2.11.*) ;; # other 2.11 versions
  13166. *) supports_anon_versioning=yes ;;
  13167. esac
  13168. # See if GNU ld supports shared libraries.
  13169. case $host_os in
  13170. aix3* | aix4* | aix5*)
  13171. # On AIX/PPC, the GNU linker is very broken
  13172. if test "$host_cpu" != ia64; then
  13173. ld_shlibs_F77=no
  13174. cat <<EOF 1>&2
  13175. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13176. *** to be unable to reliably create shared libraries on AIX.
  13177. *** Therefore, libtool is disabling shared libraries support. If you
  13178. *** really care for shared libraries, you may want to modify your PATH
  13179. *** so that a non-GNU linker is found, and then restart.
  13180. EOF
  13181. fi
  13182. ;;
  13183. amigaos*)
  13184. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13185. hardcode_libdir_flag_spec_F77='-L$libdir'
  13186. hardcode_minus_L_F77=yes
  13187. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13188. # that the semantics of dynamic libraries on AmigaOS, at least up
  13189. # to version 4, is to share data among multiple programs linked
  13190. # with the same dynamic library. Since this doesn't match the
  13191. # behavior of shared libraries on other platforms, we can't use
  13192. # them.
  13193. ld_shlibs_F77=no
  13194. ;;
  13195. beos*)
  13196. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13197. allow_undefined_flag_F77=unsupported
  13198. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13199. # support --undefined. This deserves some investigation. FIXME
  13200. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13201. else
  13202. ld_shlibs_F77=no
  13203. fi
  13204. ;;
  13205. cygwin* | mingw* | pw32*)
  13206. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13207. # as there is no search path for DLLs.
  13208. hardcode_libdir_flag_spec_F77='-L$libdir'
  13209. allow_undefined_flag_F77=unsupported
  13210. always_export_symbols_F77=no
  13211. enable_shared_with_static_runtimes_F77=yes
  13212. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13213. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13214. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13215. # If the export-symbols file already is a .def file (1st line
  13216. # is EXPORTS), use it as is; otherwise, prepend...
  13217. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13218. cp $export_symbols $output_objdir/$soname.def;
  13219. else
  13220. echo EXPORTS > $output_objdir/$soname.def;
  13221. cat $export_symbols >> $output_objdir/$soname.def;
  13222. fi~
  13223. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13224. else
  13225. ld_shlibs_F77=no
  13226. fi
  13227. ;;
  13228. interix3*)
  13229. hardcode_direct_F77=no
  13230. hardcode_shlibpath_var_F77=no
  13231. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13232. export_dynamic_flag_spec_F77='${wl}-E'
  13233. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13234. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13235. # default) and relocated if they conflict, which is a slow very memory
  13236. # consuming and fragmenting process. To avoid this, we pick a random,
  13237. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13238. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13239. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13240. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13241. ;;
  13242. linux* | k*bsd*-gnu)
  13243. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13244. tmp_addflag=
  13245. case $cc_basename,$host_cpu in
  13246. pgcc*) # Portland Group C compiler
  13247. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13248. tmp_addflag=' $pic_flag'
  13249. ;;
  13250. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13251. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13252. tmp_addflag=' $pic_flag -Mnomain' ;;
  13253. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13254. tmp_addflag=' -i_dynamic' ;;
  13255. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13256. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13257. ifc* | ifort*) # Intel Fortran compiler
  13258. tmp_addflag=' -nofor_main' ;;
  13259. esac
  13260. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13261. if test $supports_anon_versioning = yes; then
  13262. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13263. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13264. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13265. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13266. fi
  13267. link_all_deplibs_F77=no
  13268. else
  13269. ld_shlibs_F77=no
  13270. fi
  13271. ;;
  13272. netbsd* | netbsdelf*-gnu)
  13273. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13274. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13275. wlarc=
  13276. else
  13277. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13278. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13279. fi
  13280. ;;
  13281. solaris*)
  13282. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13283. ld_shlibs_F77=no
  13284. cat <<EOF 1>&2
  13285. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13286. *** create shared libraries on Solaris systems. Therefore, libtool
  13287. *** is disabling shared libraries support. We urge you to upgrade GNU
  13288. *** binutils to release 2.9.1 or newer. Another option is to modify
  13289. *** your PATH or compiler configuration so that the native linker is
  13290. *** used, and then restart.
  13291. EOF
  13292. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13293. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13294. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13295. else
  13296. ld_shlibs_F77=no
  13297. fi
  13298. ;;
  13299. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13300. case `$LD -v 2>&1` in
  13301. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13302. ld_shlibs_F77=no
  13303. cat <<_LT_EOF 1>&2
  13304. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13305. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13306. *** is disabling shared libraries support. We urge you to upgrade GNU
  13307. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13308. *** your PATH or compiler configuration so that the native linker is
  13309. *** used, and then restart.
  13310. _LT_EOF
  13311. ;;
  13312. *)
  13313. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13314. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13315. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13316. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13317. else
  13318. ld_shlibs_F77=no
  13319. fi
  13320. ;;
  13321. esac
  13322. ;;
  13323. sunos4*)
  13324. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13325. wlarc=
  13326. hardcode_direct_F77=yes
  13327. hardcode_shlibpath_var_F77=no
  13328. ;;
  13329. *)
  13330. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13331. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13332. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13333. else
  13334. ld_shlibs_F77=no
  13335. fi
  13336. ;;
  13337. esac
  13338. if test "$ld_shlibs_F77" = no; then
  13339. runpath_var=
  13340. hardcode_libdir_flag_spec_F77=
  13341. export_dynamic_flag_spec_F77=
  13342. whole_archive_flag_spec_F77=
  13343. fi
  13344. else
  13345. # PORTME fill in a description of your system's linker (not GNU ld)
  13346. case $host_os in
  13347. aix3*)
  13348. allow_undefined_flag_F77=unsupported
  13349. always_export_symbols_F77=yes
  13350. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13351. # Note: this linker hardcodes the directories in LIBPATH if there
  13352. # are no directories specified by -L.
  13353. hardcode_minus_L_F77=yes
  13354. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13355. # Neither direct hardcoding nor static linking is supported with a
  13356. # broken collect2.
  13357. hardcode_direct_F77=unsupported
  13358. fi
  13359. ;;
  13360. aix4* | aix5*)
  13361. if test "$host_cpu" = ia64; then
  13362. # On IA64, the linker does run time linking by default, so we don't
  13363. # have to do anything special.
  13364. aix_use_runtimelinking=no
  13365. exp_sym_flag='-Bexport'
  13366. no_entry_flag=""
  13367. else
  13368. # If we're using GNU nm, then we don't want the "-C" option.
  13369. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13370. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13371. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13372. else
  13373. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13374. fi
  13375. aix_use_runtimelinking=no
  13376. # Test if we are trying to use run time linking or normal
  13377. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13378. # need to do runtime linking.
  13379. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13380. for ld_flag in $LDFLAGS; do
  13381. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13382. aix_use_runtimelinking=yes
  13383. break
  13384. fi
  13385. done
  13386. ;;
  13387. esac
  13388. exp_sym_flag='-bexport'
  13389. no_entry_flag='-bnoentry'
  13390. fi
  13391. # When large executables or shared objects are built, AIX ld can
  13392. # have problems creating the table of contents. If linking a library
  13393. # or program results in "error TOC overflow" add -mminimal-toc to
  13394. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13395. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13396. archive_cmds_F77=''
  13397. hardcode_direct_F77=yes
  13398. hardcode_libdir_separator_F77=':'
  13399. link_all_deplibs_F77=yes
  13400. if test "$GCC" = yes; then
  13401. case $host_os in aix4.[012]|aix4.[012].*)
  13402. # We only want to do this on AIX 4.2 and lower, the check
  13403. # below for broken collect2 doesn't work under 4.3+
  13404. collect2name=`${CC} -print-prog-name=collect2`
  13405. if test -f "$collect2name" && \
  13406. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13407. then
  13408. # We have reworked collect2
  13409. hardcode_direct_F77=yes
  13410. else
  13411. # We have old collect2
  13412. hardcode_direct_F77=unsupported
  13413. # It fails to find uninstalled libraries when the uninstalled
  13414. # path is not listed in the libpath. Setting hardcode_minus_L
  13415. # to unsupported forces relinking
  13416. hardcode_minus_L_F77=yes
  13417. hardcode_libdir_flag_spec_F77='-L$libdir'
  13418. hardcode_libdir_separator_F77=
  13419. fi
  13420. ;;
  13421. esac
  13422. shared_flag='-shared'
  13423. if test "$aix_use_runtimelinking" = yes; then
  13424. shared_flag="$shared_flag "'${wl}-G'
  13425. fi
  13426. else
  13427. # not using gcc
  13428. if test "$host_cpu" = ia64; then
  13429. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13430. # chokes on -Wl,-G. The following line is correct:
  13431. shared_flag='-G'
  13432. else
  13433. if test "$aix_use_runtimelinking" = yes; then
  13434. shared_flag='${wl}-G'
  13435. else
  13436. shared_flag='${wl}-bM:SRE'
  13437. fi
  13438. fi
  13439. fi
  13440. # It seems that -bexpall does not export symbols beginning with
  13441. # underscore (_), so it is better to generate a list of symbols to export.
  13442. always_export_symbols_F77=yes
  13443. if test "$aix_use_runtimelinking" = yes; then
  13444. # Warning - without using the other runtime loading flags (-brtl),
  13445. # -berok will link without error, but may produce a broken library.
  13446. allow_undefined_flag_F77='-berok'
  13447. # Determine the default libpath from the value encoded in an empty executable.
  13448. cat >conftest.$ac_ext <<_ACEOF
  13449. program main
  13450. end
  13451. _ACEOF
  13452. rm -f conftest.$ac_objext conftest$ac_exeext
  13453. if { (ac_try="$ac_link"
  13454. case "(($ac_try" in
  13455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13456. *) ac_try_echo=$ac_try;;
  13457. esac
  13458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13459. (eval "$ac_link") 2>conftest.er1
  13460. ac_status=$?
  13461. grep -v '^ *+' conftest.er1 >conftest.err
  13462. rm -f conftest.er1
  13463. cat conftest.err >&5
  13464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13465. (exit $ac_status); } &&
  13466. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  13467. { (case "(($ac_try" in
  13468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13469. *) ac_try_echo=$ac_try;;
  13470. esac
  13471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13472. (eval "$ac_try") 2>&5
  13473. ac_status=$?
  13474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13475. (exit $ac_status); }; } &&
  13476. { ac_try='test -s conftest$ac_exeext'
  13477. { (case "(($ac_try" in
  13478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13479. *) ac_try_echo=$ac_try;;
  13480. esac
  13481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13482. (eval "$ac_try") 2>&5
  13483. ac_status=$?
  13484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13485. (exit $ac_status); }; }; then
  13486. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13487. }'`
  13488. # Check for a 64-bit object if we didn't find anything.
  13489. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13490. }'`; fi
  13491. else
  13492. echo "$as_me: failed program was:" >&5
  13493. sed 's/^/| /' conftest.$ac_ext >&5
  13494. fi
  13495. rm -f conftest.err conftest.$ac_objext \
  13496. conftest$ac_exeext conftest.$ac_ext
  13497. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13498. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13499. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13500. else
  13501. if test "$host_cpu" = ia64; then
  13502. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13503. allow_undefined_flag_F77="-z nodefs"
  13504. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13505. else
  13506. # Determine the default libpath from the value encoded in an empty executable.
  13507. cat >conftest.$ac_ext <<_ACEOF
  13508. program main
  13509. end
  13510. _ACEOF
  13511. rm -f conftest.$ac_objext conftest$ac_exeext
  13512. if { (ac_try="$ac_link"
  13513. case "(($ac_try" in
  13514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13515. *) ac_try_echo=$ac_try;;
  13516. esac
  13517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13518. (eval "$ac_link") 2>conftest.er1
  13519. ac_status=$?
  13520. grep -v '^ *+' conftest.er1 >conftest.err
  13521. rm -f conftest.er1
  13522. cat conftest.err >&5
  13523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13524. (exit $ac_status); } &&
  13525. { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  13526. { (case "(($ac_try" in
  13527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13528. *) ac_try_echo=$ac_try;;
  13529. esac
  13530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13531. (eval "$ac_try") 2>&5
  13532. ac_status=$?
  13533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13534. (exit $ac_status); }; } &&
  13535. { ac_try='test -s conftest$ac_exeext'
  13536. { (case "(($ac_try" in
  13537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13538. *) ac_try_echo=$ac_try;;
  13539. esac
  13540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13541. (eval "$ac_try") 2>&5
  13542. ac_status=$?
  13543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13544. (exit $ac_status); }; }; then
  13545. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13546. }'`
  13547. # Check for a 64-bit object if we didn't find anything.
  13548. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13549. }'`; fi
  13550. else
  13551. echo "$as_me: failed program was:" >&5
  13552. sed 's/^/| /' conftest.$ac_ext >&5
  13553. fi
  13554. rm -f conftest.err conftest.$ac_objext \
  13555. conftest$ac_exeext conftest.$ac_ext
  13556. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13557. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13558. # Warning - without using the other run time loading flags,
  13559. # -berok will link without error, but may produce a broken library.
  13560. no_undefined_flag_F77=' ${wl}-bernotok'
  13561. allow_undefined_flag_F77=' ${wl}-berok'
  13562. # Exported symbols can be pulled into shared objects from archives
  13563. whole_archive_flag_spec_F77='$convenience'
  13564. archive_cmds_need_lc_F77=yes
  13565. # This is similar to how AIX traditionally builds its shared libraries.
  13566. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13567. fi
  13568. fi
  13569. ;;
  13570. amigaos*)
  13571. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13572. hardcode_libdir_flag_spec_F77='-L$libdir'
  13573. hardcode_minus_L_F77=yes
  13574. # see comment about different semantics on the GNU ld section
  13575. ld_shlibs_F77=no
  13576. ;;
  13577. bsdi[45]*)
  13578. export_dynamic_flag_spec_F77=-rdynamic
  13579. ;;
  13580. cygwin* | mingw* | pw32*)
  13581. # When not using gcc, we currently assume that we are using
  13582. # Microsoft Visual C++.
  13583. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13584. # no search path for DLLs.
  13585. hardcode_libdir_flag_spec_F77=' '
  13586. allow_undefined_flag_F77=unsupported
  13587. # Tell ltmain to make .lib files, not .a files.
  13588. libext=lib
  13589. # Tell ltmain to make .dll files, not .so files.
  13590. shrext_cmds=".dll"
  13591. # FIXME: Setting linknames here is a bad hack.
  13592. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13593. # The linker will automatically build a .lib file if we build a DLL.
  13594. old_archive_From_new_cmds_F77='true'
  13595. # FIXME: Should let the user specify the lib program.
  13596. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13597. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13598. enable_shared_with_static_runtimes_F77=yes
  13599. ;;
  13600. darwin* | rhapsody*)
  13601. case $host_os in
  13602. rhapsody* | darwin1.[012])
  13603. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13604. ;;
  13605. *) # Darwin 1.3 on
  13606. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13607. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13608. else
  13609. case ${MACOSX_DEPLOYMENT_TARGET} in
  13610. 10.[012])
  13611. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13612. ;;
  13613. 10.*)
  13614. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13615. ;;
  13616. esac
  13617. fi
  13618. ;;
  13619. esac
  13620. archive_cmds_need_lc_F77=no
  13621. hardcode_direct_F77=no
  13622. hardcode_automatic_F77=yes
  13623. hardcode_shlibpath_var_F77=unsupported
  13624. whole_archive_flag_spec_F77=''
  13625. link_all_deplibs_F77=yes
  13626. if test "$GCC" = yes ; then
  13627. output_verbose_link_cmd='echo'
  13628. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13629. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13630. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13631. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13632. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13633. else
  13634. case $cc_basename in
  13635. xlc*)
  13636. output_verbose_link_cmd='echo'
  13637. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13638. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13639. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13640. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13641. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13642. ;;
  13643. *)
  13644. ld_shlibs_F77=no
  13645. ;;
  13646. esac
  13647. fi
  13648. ;;
  13649. dgux*)
  13650. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13651. hardcode_libdir_flag_spec_F77='-L$libdir'
  13652. hardcode_shlibpath_var_F77=no
  13653. ;;
  13654. freebsd1*)
  13655. ld_shlibs_F77=no
  13656. ;;
  13657. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13658. # support. Future versions do this automatically, but an explicit c++rt0.o
  13659. # does not break anything, and helps significantly (at the cost of a little
  13660. # extra space).
  13661. freebsd2.2*)
  13662. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13663. hardcode_libdir_flag_spec_F77='-R$libdir'
  13664. hardcode_direct_F77=yes
  13665. hardcode_shlibpath_var_F77=no
  13666. ;;
  13667. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13668. freebsd2*)
  13669. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13670. hardcode_direct_F77=yes
  13671. hardcode_minus_L_F77=yes
  13672. hardcode_shlibpath_var_F77=no
  13673. ;;
  13674. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13675. freebsd* | dragonfly*)
  13676. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13677. hardcode_libdir_flag_spec_F77='-R$libdir'
  13678. hardcode_direct_F77=yes
  13679. hardcode_shlibpath_var_F77=no
  13680. ;;
  13681. hpux9*)
  13682. if test "$GCC" = yes; then
  13683. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13684. else
  13685. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13686. fi
  13687. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13688. hardcode_libdir_separator_F77=:
  13689. hardcode_direct_F77=yes
  13690. # hardcode_minus_L: Not really in the search PATH,
  13691. # but as the default location of the library.
  13692. hardcode_minus_L_F77=yes
  13693. export_dynamic_flag_spec_F77='${wl}-E'
  13694. ;;
  13695. hpux10*)
  13696. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13697. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13698. else
  13699. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13700. fi
  13701. if test "$with_gnu_ld" = no; then
  13702. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13703. hardcode_libdir_separator_F77=:
  13704. hardcode_direct_F77=yes
  13705. export_dynamic_flag_spec_F77='${wl}-E'
  13706. # hardcode_minus_L: Not really in the search PATH,
  13707. # but as the default location of the library.
  13708. hardcode_minus_L_F77=yes
  13709. fi
  13710. ;;
  13711. hpux11*)
  13712. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13713. case $host_cpu in
  13714. hppa*64*)
  13715. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13716. ;;
  13717. ia64*)
  13718. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13719. ;;
  13720. *)
  13721. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13722. ;;
  13723. esac
  13724. else
  13725. case $host_cpu in
  13726. hppa*64*)
  13727. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13728. ;;
  13729. ia64*)
  13730. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13731. ;;
  13732. *)
  13733. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13734. ;;
  13735. esac
  13736. fi
  13737. if test "$with_gnu_ld" = no; then
  13738. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13739. hardcode_libdir_separator_F77=:
  13740. case $host_cpu in
  13741. hppa*64*|ia64*)
  13742. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13743. hardcode_direct_F77=no
  13744. hardcode_shlibpath_var_F77=no
  13745. ;;
  13746. *)
  13747. hardcode_direct_F77=yes
  13748. export_dynamic_flag_spec_F77='${wl}-E'
  13749. # hardcode_minus_L: Not really in the search PATH,
  13750. # but as the default location of the library.
  13751. hardcode_minus_L_F77=yes
  13752. ;;
  13753. esac
  13754. fi
  13755. ;;
  13756. irix5* | irix6* | nonstopux*)
  13757. if test "$GCC" = yes; then
  13758. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13759. else
  13760. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13761. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13762. fi
  13763. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13764. hardcode_libdir_separator_F77=:
  13765. link_all_deplibs_F77=yes
  13766. ;;
  13767. netbsd* | netbsdelf*-gnu)
  13768. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13769. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13770. else
  13771. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13772. fi
  13773. hardcode_libdir_flag_spec_F77='-R$libdir'
  13774. hardcode_direct_F77=yes
  13775. hardcode_shlibpath_var_F77=no
  13776. ;;
  13777. newsos6)
  13778. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13779. hardcode_direct_F77=yes
  13780. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13781. hardcode_libdir_separator_F77=:
  13782. hardcode_shlibpath_var_F77=no
  13783. ;;
  13784. openbsd*)
  13785. hardcode_direct_F77=yes
  13786. hardcode_shlibpath_var_F77=no
  13787. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13788. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13789. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13790. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13791. export_dynamic_flag_spec_F77='${wl}-E'
  13792. else
  13793. case $host_os in
  13794. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13795. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13796. hardcode_libdir_flag_spec_F77='-R$libdir'
  13797. ;;
  13798. *)
  13799. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13800. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13801. ;;
  13802. esac
  13803. fi
  13804. ;;
  13805. os2*)
  13806. hardcode_libdir_flag_spec_F77='-L$libdir'
  13807. hardcode_minus_L_F77=yes
  13808. allow_undefined_flag_F77=unsupported
  13809. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13810. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13811. ;;
  13812. osf3*)
  13813. if test "$GCC" = yes; then
  13814. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13815. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13816. else
  13817. allow_undefined_flag_F77=' -expect_unresolved \*'
  13818. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13819. fi
  13820. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13821. hardcode_libdir_separator_F77=:
  13822. ;;
  13823. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13824. if test "$GCC" = yes; then
  13825. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13826. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13827. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13828. else
  13829. allow_undefined_flag_F77=' -expect_unresolved \*'
  13830. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13831. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13832. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13833. # Both c and cxx compiler support -rpath directly
  13834. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13835. fi
  13836. hardcode_libdir_separator_F77=:
  13837. ;;
  13838. solaris*)
  13839. no_undefined_flag_F77=' -z text'
  13840. if test "$GCC" = yes; then
  13841. wlarc='${wl}'
  13842. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13843. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13844. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13845. else
  13846. wlarc=''
  13847. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13848. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13849. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13850. fi
  13851. hardcode_libdir_flag_spec_F77='-R$libdir'
  13852. hardcode_shlibpath_var_F77=no
  13853. case $host_os in
  13854. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13855. *)
  13856. # The compiler driver will combine linker options so we
  13857. # cannot just pass the convience library names through
  13858. # without $wl, iff we do not link with $LD.
  13859. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13860. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13861. case $wlarc in
  13862. '')
  13863. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13864. *)
  13865. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  13866. esac ;;
  13867. esac
  13868. link_all_deplibs_F77=yes
  13869. ;;
  13870. sunos4*)
  13871. if test "x$host_vendor" = xsequent; then
  13872. # Use $CC to link under sequent, because it throws in some extra .o
  13873. # files that make .init and .fini sections work.
  13874. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13875. else
  13876. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13877. fi
  13878. hardcode_libdir_flag_spec_F77='-L$libdir'
  13879. hardcode_direct_F77=yes
  13880. hardcode_minus_L_F77=yes
  13881. hardcode_shlibpath_var_F77=no
  13882. ;;
  13883. sysv4)
  13884. case $host_vendor in
  13885. sni)
  13886. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13887. hardcode_direct_F77=yes # is this really true???
  13888. ;;
  13889. siemens)
  13890. ## LD is ld it makes a PLAMLIB
  13891. ## CC just makes a GrossModule.
  13892. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13893. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13894. hardcode_direct_F77=no
  13895. ;;
  13896. motorola)
  13897. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13898. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13899. ;;
  13900. esac
  13901. runpath_var='LD_RUN_PATH'
  13902. hardcode_shlibpath_var_F77=no
  13903. ;;
  13904. sysv4.3*)
  13905. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13906. hardcode_shlibpath_var_F77=no
  13907. export_dynamic_flag_spec_F77='-Bexport'
  13908. ;;
  13909. sysv4*MP*)
  13910. if test -d /usr/nec; then
  13911. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13912. hardcode_shlibpath_var_F77=no
  13913. runpath_var=LD_RUN_PATH
  13914. hardcode_runpath_var=yes
  13915. ld_shlibs_F77=yes
  13916. fi
  13917. ;;
  13918. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13919. no_undefined_flag_F77='${wl}-z,text'
  13920. archive_cmds_need_lc_F77=no
  13921. hardcode_shlibpath_var_F77=no
  13922. runpath_var='LD_RUN_PATH'
  13923. if test "$GCC" = yes; then
  13924. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13925. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13926. else
  13927. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13928. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13929. fi
  13930. ;;
  13931. sysv5* | sco3.2v5* | sco5v6*)
  13932. # Note: We can NOT use -z defs as we might desire, because we do not
  13933. # link with -lc, and that would cause any symbols used from libc to
  13934. # always be unresolved, which means just about no library would
  13935. # ever link correctly. If we're not using GNU ld we use -z text
  13936. # though, which does catch some bad symbols but isn't as heavy-handed
  13937. # as -z defs.
  13938. no_undefined_flag_F77='${wl}-z,text'
  13939. allow_undefined_flag_F77='${wl}-z,nodefs'
  13940. archive_cmds_need_lc_F77=no
  13941. hardcode_shlibpath_var_F77=no
  13942. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13943. hardcode_libdir_separator_F77=':'
  13944. link_all_deplibs_F77=yes
  13945. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13946. runpath_var='LD_RUN_PATH'
  13947. if test "$GCC" = yes; then
  13948. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13949. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13950. else
  13951. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13952. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13953. fi
  13954. ;;
  13955. uts4*)
  13956. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13957. hardcode_libdir_flag_spec_F77='-L$libdir'
  13958. hardcode_shlibpath_var_F77=no
  13959. ;;
  13960. *)
  13961. ld_shlibs_F77=no
  13962. ;;
  13963. esac
  13964. fi
  13965. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13966. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13967. test "$ld_shlibs_F77" = no && can_build_shared=no
  13968. #
  13969. # Do we need to explicitly link libc?
  13970. #
  13971. case "x$archive_cmds_need_lc_F77" in
  13972. x|xyes)
  13973. # Assume -lc should be added
  13974. archive_cmds_need_lc_F77=yes
  13975. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13976. case $archive_cmds_F77 in
  13977. *'~'*)
  13978. # FIXME: we may have to deal with multi-command sequences.
  13979. ;;
  13980. '$CC '*)
  13981. # Test whether the compiler implicitly links with -lc since on some
  13982. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13983. # to ld, don't add -lc before -lgcc.
  13984. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13985. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13986. $rm conftest*
  13987. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13989. (eval $ac_compile) 2>&5
  13990. ac_status=$?
  13991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13992. (exit $ac_status); } 2>conftest.err; then
  13993. soname=conftest
  13994. lib=conftest
  13995. libobjs=conftest.$ac_objext
  13996. deplibs=
  13997. wl=$lt_prog_compiler_wl_F77
  13998. pic_flag=$lt_prog_compiler_pic_F77
  13999. compiler_flags=-v
  14000. linker_flags=-v
  14001. verstring=
  14002. output_objdir=.
  14003. libname=conftest
  14004. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14005. allow_undefined_flag_F77=
  14006. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14007. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14008. ac_status=$?
  14009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14010. (exit $ac_status); }
  14011. then
  14012. archive_cmds_need_lc_F77=no
  14013. else
  14014. archive_cmds_need_lc_F77=yes
  14015. fi
  14016. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14017. else
  14018. cat conftest.err 1>&5
  14019. fi
  14020. $rm conftest*
  14021. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14022. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14023. ;;
  14024. esac
  14025. fi
  14026. ;;
  14027. esac
  14028. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14029. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14030. library_names_spec=
  14031. libname_spec='lib$name'
  14032. soname_spec=
  14033. shrext_cmds=".so"
  14034. postinstall_cmds=
  14035. postuninstall_cmds=
  14036. finish_cmds=
  14037. finish_eval=
  14038. shlibpath_var=
  14039. shlibpath_overrides_runpath=unknown
  14040. version_type=none
  14041. dynamic_linker="$host_os ld.so"
  14042. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14043. if test "$GCC" = yes; then
  14044. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14045. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14046. # if the path contains ";" then we assume it to be the separator
  14047. # otherwise default to the standard path separator (i.e. ":") - it is
  14048. # assumed that no part of a normal pathname contains ";" but that should
  14049. # okay in the real world where ";" in dirpaths is itself problematic.
  14050. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14051. else
  14052. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14053. fi
  14054. else
  14055. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14056. fi
  14057. need_lib_prefix=unknown
  14058. hardcode_into_libs=no
  14059. # when you set need_version to no, make sure it does not cause -set_version
  14060. # flags to be left without arguments
  14061. need_version=unknown
  14062. case $host_os in
  14063. aix3*)
  14064. version_type=linux
  14065. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14066. shlibpath_var=LIBPATH
  14067. # AIX 3 has no versioning support, so we append a major version to the name.
  14068. soname_spec='${libname}${release}${shared_ext}$major'
  14069. ;;
  14070. aix4* | aix5*)
  14071. version_type=linux
  14072. need_lib_prefix=no
  14073. need_version=no
  14074. hardcode_into_libs=yes
  14075. if test "$host_cpu" = ia64; then
  14076. # AIX 5 supports IA64
  14077. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14078. shlibpath_var=LD_LIBRARY_PATH
  14079. else
  14080. # With GCC up to 2.95.x, collect2 would create an import file
  14081. # for dependence libraries. The import file would start with
  14082. # the line `#! .'. This would cause the generated library to
  14083. # depend on `.', always an invalid library. This was fixed in
  14084. # development snapshots of GCC prior to 3.0.
  14085. case $host_os in
  14086. aix4 | aix4.[01] | aix4.[01].*)
  14087. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14088. echo ' yes '
  14089. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14090. :
  14091. else
  14092. can_build_shared=no
  14093. fi
  14094. ;;
  14095. esac
  14096. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14097. # soname into executable. Probably we can add versioning support to
  14098. # collect2, so additional links can be useful in future.
  14099. if test "$aix_use_runtimelinking" = yes; then
  14100. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14101. # instead of lib<name>.a to let people know that these are not
  14102. # typical AIX shared libraries.
  14103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14104. else
  14105. # We preserve .a as extension for shared libraries through AIX4.2
  14106. # and later when we are not doing run time linking.
  14107. library_names_spec='${libname}${release}.a $libname.a'
  14108. soname_spec='${libname}${release}${shared_ext}$major'
  14109. fi
  14110. shlibpath_var=LIBPATH
  14111. fi
  14112. ;;
  14113. amigaos*)
  14114. library_names_spec='$libname.ixlibrary $libname.a'
  14115. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14116. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14117. ;;
  14118. beos*)
  14119. library_names_spec='${libname}${shared_ext}'
  14120. dynamic_linker="$host_os ld.so"
  14121. shlibpath_var=LIBRARY_PATH
  14122. ;;
  14123. bsdi[45]*)
  14124. version_type=linux
  14125. need_version=no
  14126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14127. soname_spec='${libname}${release}${shared_ext}$major'
  14128. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14129. shlibpath_var=LD_LIBRARY_PATH
  14130. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14131. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14132. # the default ld.so.conf also contains /usr/contrib/lib and
  14133. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14134. # libtool to hard-code these into programs
  14135. ;;
  14136. cygwin* | mingw* | pw32*)
  14137. version_type=windows
  14138. shrext_cmds=".dll"
  14139. need_version=no
  14140. need_lib_prefix=no
  14141. case $GCC,$host_os in
  14142. yes,cygwin* | yes,mingw* | yes,pw32*)
  14143. library_names_spec='$libname.dll.a'
  14144. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14145. postinstall_cmds='base_file=`basename \${file}`~
  14146. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14147. dldir=$destdir/`dirname \$dlpath`~
  14148. test -d \$dldir || mkdir -p \$dldir~
  14149. $install_prog $dir/$dlname \$dldir/$dlname~
  14150. chmod a+x \$dldir/$dlname'
  14151. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14152. dlpath=$dir/\$dldll~
  14153. $rm \$dlpath'
  14154. shlibpath_overrides_runpath=yes
  14155. case $host_os in
  14156. cygwin*)
  14157. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14158. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14159. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14160. ;;
  14161. mingw*)
  14162. # MinGW DLLs use traditional 'lib' prefix
  14163. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14164. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14165. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14166. # It is most probably a Windows format PATH printed by
  14167. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14168. # path with ; separators, and with drive letters. We can handle the
  14169. # drive letters (cygwin fileutils understands them), so leave them,
  14170. # especially as we might pass files found there to a mingw objdump,
  14171. # which wouldn't understand a cygwinified path. Ahh.
  14172. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14173. else
  14174. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14175. fi
  14176. ;;
  14177. pw32*)
  14178. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14179. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14180. ;;
  14181. esac
  14182. ;;
  14183. *)
  14184. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14185. ;;
  14186. esac
  14187. dynamic_linker='Win32 ld.exe'
  14188. # FIXME: first we should search . and the directory the executable is in
  14189. shlibpath_var=PATH
  14190. ;;
  14191. darwin* | rhapsody*)
  14192. dynamic_linker="$host_os dyld"
  14193. version_type=darwin
  14194. need_lib_prefix=no
  14195. need_version=no
  14196. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14197. soname_spec='${libname}${release}${major}$shared_ext'
  14198. shlibpath_overrides_runpath=yes
  14199. shlibpath_var=DYLD_LIBRARY_PATH
  14200. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14201. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14202. if test "$GCC" = yes; then
  14203. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14204. else
  14205. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14206. fi
  14207. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14208. ;;
  14209. dgux*)
  14210. version_type=linux
  14211. need_lib_prefix=no
  14212. need_version=no
  14213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14214. soname_spec='${libname}${release}${shared_ext}$major'
  14215. shlibpath_var=LD_LIBRARY_PATH
  14216. ;;
  14217. freebsd1*)
  14218. dynamic_linker=no
  14219. ;;
  14220. freebsd* | dragonfly*)
  14221. # DragonFly does not have aout. When/if they implement a new
  14222. # versioning mechanism, adjust this.
  14223. if test -x /usr/bin/objformat; then
  14224. objformat=`/usr/bin/objformat`
  14225. else
  14226. case $host_os in
  14227. freebsd[123]*) objformat=aout ;;
  14228. *) objformat=elf ;;
  14229. esac
  14230. fi
  14231. version_type=freebsd-$objformat
  14232. case $version_type in
  14233. freebsd-elf*)
  14234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14235. need_version=no
  14236. need_lib_prefix=no
  14237. ;;
  14238. freebsd-*)
  14239. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14240. need_version=yes
  14241. ;;
  14242. esac
  14243. shlibpath_var=LD_LIBRARY_PATH
  14244. case $host_os in
  14245. freebsd2*)
  14246. shlibpath_overrides_runpath=yes
  14247. ;;
  14248. freebsd3.[01]* | freebsdelf3.[01]*)
  14249. shlibpath_overrides_runpath=yes
  14250. hardcode_into_libs=yes
  14251. ;;
  14252. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14253. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14254. shlibpath_overrides_runpath=no
  14255. hardcode_into_libs=yes
  14256. ;;
  14257. freebsd*) # from 4.6 on
  14258. shlibpath_overrides_runpath=yes
  14259. hardcode_into_libs=yes
  14260. ;;
  14261. esac
  14262. ;;
  14263. gnu*)
  14264. version_type=linux
  14265. need_lib_prefix=no
  14266. need_version=no
  14267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14268. soname_spec='${libname}${release}${shared_ext}$major'
  14269. shlibpath_var=LD_LIBRARY_PATH
  14270. hardcode_into_libs=yes
  14271. ;;
  14272. hpux9* | hpux10* | hpux11*)
  14273. # Give a soname corresponding to the major version so that dld.sl refuses to
  14274. # link against other versions.
  14275. version_type=sunos
  14276. need_lib_prefix=no
  14277. need_version=no
  14278. case $host_cpu in
  14279. ia64*)
  14280. shrext_cmds='.so'
  14281. hardcode_into_libs=yes
  14282. dynamic_linker="$host_os dld.so"
  14283. shlibpath_var=LD_LIBRARY_PATH
  14284. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14286. soname_spec='${libname}${release}${shared_ext}$major'
  14287. if test "X$HPUX_IA64_MODE" = X32; then
  14288. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14289. else
  14290. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14291. fi
  14292. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14293. ;;
  14294. hppa*64*)
  14295. shrext_cmds='.sl'
  14296. hardcode_into_libs=yes
  14297. dynamic_linker="$host_os dld.sl"
  14298. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14299. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14301. soname_spec='${libname}${release}${shared_ext}$major'
  14302. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14303. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14304. ;;
  14305. *)
  14306. shrext_cmds='.sl'
  14307. dynamic_linker="$host_os dld.sl"
  14308. shlibpath_var=SHLIB_PATH
  14309. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14311. soname_spec='${libname}${release}${shared_ext}$major'
  14312. ;;
  14313. esac
  14314. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14315. postinstall_cmds='chmod 555 $lib'
  14316. ;;
  14317. interix3*)
  14318. version_type=linux
  14319. need_lib_prefix=no
  14320. need_version=no
  14321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14322. soname_spec='${libname}${release}${shared_ext}$major'
  14323. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14324. shlibpath_var=LD_LIBRARY_PATH
  14325. shlibpath_overrides_runpath=no
  14326. hardcode_into_libs=yes
  14327. ;;
  14328. irix5* | irix6* | nonstopux*)
  14329. case $host_os in
  14330. nonstopux*) version_type=nonstopux ;;
  14331. *)
  14332. if test "$lt_cv_prog_gnu_ld" = yes; then
  14333. version_type=linux
  14334. else
  14335. version_type=irix
  14336. fi ;;
  14337. esac
  14338. need_lib_prefix=no
  14339. need_version=no
  14340. soname_spec='${libname}${release}${shared_ext}$major'
  14341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14342. case $host_os in
  14343. irix5* | nonstopux*)
  14344. libsuff= shlibsuff=
  14345. ;;
  14346. *)
  14347. case $LD in # libtool.m4 will add one of these switches to LD
  14348. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14349. libsuff= shlibsuff= libmagic=32-bit;;
  14350. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14351. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14352. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14353. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14354. *) libsuff= shlibsuff= libmagic=never-match;;
  14355. esac
  14356. ;;
  14357. esac
  14358. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14359. shlibpath_overrides_runpath=no
  14360. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14361. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14362. hardcode_into_libs=yes
  14363. ;;
  14364. # No shared lib support for Linux oldld, aout, or coff.
  14365. linux*oldld* | linux*aout* | linux*coff*)
  14366. dynamic_linker=no
  14367. ;;
  14368. # This must be Linux ELF.
  14369. linux* | k*bsd*-gnu)
  14370. version_type=linux
  14371. need_lib_prefix=no
  14372. need_version=no
  14373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14374. soname_spec='${libname}${release}${shared_ext}$major'
  14375. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14376. shlibpath_var=LD_LIBRARY_PATH
  14377. shlibpath_overrides_runpath=no
  14378. # This implies no fast_install, which is unacceptable.
  14379. # Some rework will be needed to allow for fast_install
  14380. # before this can be enabled.
  14381. hardcode_into_libs=yes
  14382. # Append ld.so.conf contents to the search path
  14383. if test -f /etc/ld.so.conf; then
  14384. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14385. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14386. fi
  14387. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14388. # powerpc, because MkLinux only supported shared libraries with the
  14389. # GNU dynamic linker. Since this was broken with cross compilers,
  14390. # most powerpc-linux boxes support dynamic linking these days and
  14391. # people can always --disable-shared, the test was removed, and we
  14392. # assume the GNU/Linux dynamic linker is in use.
  14393. dynamic_linker='GNU/Linux ld.so'
  14394. ;;
  14395. netbsdelf*-gnu)
  14396. version_type=linux
  14397. need_lib_prefix=no
  14398. need_version=no
  14399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14400. soname_spec='${libname}${release}${shared_ext}$major'
  14401. shlibpath_var=LD_LIBRARY_PATH
  14402. shlibpath_overrides_runpath=no
  14403. hardcode_into_libs=yes
  14404. dynamic_linker='NetBSD ld.elf_so'
  14405. ;;
  14406. netbsd*)
  14407. version_type=sunos
  14408. need_lib_prefix=no
  14409. need_version=no
  14410. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14412. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14413. dynamic_linker='NetBSD (a.out) ld.so'
  14414. else
  14415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14416. soname_spec='${libname}${release}${shared_ext}$major'
  14417. dynamic_linker='NetBSD ld.elf_so'
  14418. fi
  14419. shlibpath_var=LD_LIBRARY_PATH
  14420. shlibpath_overrides_runpath=yes
  14421. hardcode_into_libs=yes
  14422. ;;
  14423. newsos6)
  14424. version_type=linux
  14425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14426. shlibpath_var=LD_LIBRARY_PATH
  14427. shlibpath_overrides_runpath=yes
  14428. ;;
  14429. nto-qnx*)
  14430. version_type=linux
  14431. need_lib_prefix=no
  14432. need_version=no
  14433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14434. soname_spec='${libname}${release}${shared_ext}$major'
  14435. shlibpath_var=LD_LIBRARY_PATH
  14436. shlibpath_overrides_runpath=yes
  14437. ;;
  14438. openbsd*)
  14439. version_type=sunos
  14440. sys_lib_dlsearch_path_spec="/usr/lib"
  14441. need_lib_prefix=no
  14442. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14443. case $host_os in
  14444. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14445. *) need_version=no ;;
  14446. esac
  14447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14448. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14449. shlibpath_var=LD_LIBRARY_PATH
  14450. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14451. case $host_os in
  14452. openbsd2.[89] | openbsd2.[89].*)
  14453. shlibpath_overrides_runpath=no
  14454. ;;
  14455. *)
  14456. shlibpath_overrides_runpath=yes
  14457. ;;
  14458. esac
  14459. else
  14460. shlibpath_overrides_runpath=yes
  14461. fi
  14462. ;;
  14463. os2*)
  14464. libname_spec='$name'
  14465. shrext_cmds=".dll"
  14466. need_lib_prefix=no
  14467. library_names_spec='$libname${shared_ext} $libname.a'
  14468. dynamic_linker='OS/2 ld.exe'
  14469. shlibpath_var=LIBPATH
  14470. ;;
  14471. osf3* | osf4* | osf5*)
  14472. version_type=osf
  14473. need_lib_prefix=no
  14474. need_version=no
  14475. soname_spec='${libname}${release}${shared_ext}$major'
  14476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14477. shlibpath_var=LD_LIBRARY_PATH
  14478. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14479. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14480. ;;
  14481. solaris*)
  14482. version_type=linux
  14483. need_lib_prefix=no
  14484. need_version=no
  14485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14486. soname_spec='${libname}${release}${shared_ext}$major'
  14487. shlibpath_var=LD_LIBRARY_PATH
  14488. shlibpath_overrides_runpath=yes
  14489. hardcode_into_libs=yes
  14490. # ldd complains unless libraries are executable
  14491. postinstall_cmds='chmod +x $lib'
  14492. ;;
  14493. sunos4*)
  14494. version_type=sunos
  14495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14496. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14497. shlibpath_var=LD_LIBRARY_PATH
  14498. shlibpath_overrides_runpath=yes
  14499. if test "$with_gnu_ld" = yes; then
  14500. need_lib_prefix=no
  14501. fi
  14502. need_version=yes
  14503. ;;
  14504. sysv4 | sysv4.3*)
  14505. version_type=linux
  14506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14507. soname_spec='${libname}${release}${shared_ext}$major'
  14508. shlibpath_var=LD_LIBRARY_PATH
  14509. case $host_vendor in
  14510. sni)
  14511. shlibpath_overrides_runpath=no
  14512. need_lib_prefix=no
  14513. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14514. runpath_var=LD_RUN_PATH
  14515. ;;
  14516. siemens)
  14517. need_lib_prefix=no
  14518. ;;
  14519. motorola)
  14520. need_lib_prefix=no
  14521. need_version=no
  14522. shlibpath_overrides_runpath=no
  14523. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14524. ;;
  14525. esac
  14526. ;;
  14527. sysv4*MP*)
  14528. if test -d /usr/nec ;then
  14529. version_type=linux
  14530. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14531. soname_spec='$libname${shared_ext}.$major'
  14532. shlibpath_var=LD_LIBRARY_PATH
  14533. fi
  14534. ;;
  14535. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14536. version_type=freebsd-elf
  14537. need_lib_prefix=no
  14538. need_version=no
  14539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14540. soname_spec='${libname}${release}${shared_ext}$major'
  14541. shlibpath_var=LD_LIBRARY_PATH
  14542. hardcode_into_libs=yes
  14543. if test "$with_gnu_ld" = yes; then
  14544. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14545. shlibpath_overrides_runpath=no
  14546. else
  14547. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14548. shlibpath_overrides_runpath=yes
  14549. case $host_os in
  14550. sco3.2v5*)
  14551. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14552. ;;
  14553. esac
  14554. fi
  14555. sys_lib_dlsearch_path_spec='/usr/lib'
  14556. ;;
  14557. uts4*)
  14558. version_type=linux
  14559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14560. soname_spec='${libname}${release}${shared_ext}$major'
  14561. shlibpath_var=LD_LIBRARY_PATH
  14562. ;;
  14563. *)
  14564. dynamic_linker=no
  14565. ;;
  14566. esac
  14567. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14568. echo "${ECHO_T}$dynamic_linker" >&6; }
  14569. test "$dynamic_linker" = no && can_build_shared=no
  14570. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14571. if test "$GCC" = yes; then
  14572. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14573. fi
  14574. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14575. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14576. hardcode_action_F77=
  14577. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14578. test -n "$runpath_var_F77" || \
  14579. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14580. # We can hardcode non-existant directories.
  14581. if test "$hardcode_direct_F77" != no &&
  14582. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14583. # have to relink, otherwise we might link with an installed library
  14584. # when we should be linking with a yet-to-be-installed one
  14585. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14586. test "$hardcode_minus_L_F77" != no; then
  14587. # Linking always hardcodes the temporary library directory.
  14588. hardcode_action_F77=relink
  14589. else
  14590. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14591. hardcode_action_F77=immediate
  14592. fi
  14593. else
  14594. # We cannot hardcode anything, or else we can only hardcode existing
  14595. # directories.
  14596. hardcode_action_F77=unsupported
  14597. fi
  14598. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14599. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14600. if test "$hardcode_action_F77" = relink; then
  14601. # Fast installation is not supported
  14602. enable_fast_install=no
  14603. elif test "$shlibpath_overrides_runpath" = yes ||
  14604. test "$enable_shared" = no; then
  14605. # Fast installation is not necessary
  14606. enable_fast_install=needless
  14607. fi
  14608. # The else clause should only fire when bootstrapping the
  14609. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14610. # with your package, and you will get complaints that there are
  14611. # no rules to generate ltmain.sh.
  14612. if test -f "$ltmain"; then
  14613. # See if we are running on zsh, and set the options which allow our commands through
  14614. # without removal of \ escapes.
  14615. if test -n "${ZSH_VERSION+set}" ; then
  14616. setopt NO_GLOB_SUBST
  14617. fi
  14618. # Now quote all the things that may contain metacharacters while being
  14619. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14620. # variables and quote the copies for generation of the libtool script.
  14621. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14622. SED SHELL STRIP \
  14623. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14624. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14625. deplibs_check_method reload_flag reload_cmds need_locks \
  14626. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14627. lt_cv_sys_global_symbol_to_c_name_address \
  14628. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14629. old_postinstall_cmds old_postuninstall_cmds \
  14630. compiler_F77 \
  14631. CC_F77 \
  14632. LD_F77 \
  14633. lt_prog_compiler_wl_F77 \
  14634. lt_prog_compiler_pic_F77 \
  14635. lt_prog_compiler_static_F77 \
  14636. lt_prog_compiler_no_builtin_flag_F77 \
  14637. export_dynamic_flag_spec_F77 \
  14638. thread_safe_flag_spec_F77 \
  14639. whole_archive_flag_spec_F77 \
  14640. enable_shared_with_static_runtimes_F77 \
  14641. old_archive_cmds_F77 \
  14642. old_archive_from_new_cmds_F77 \
  14643. predep_objects_F77 \
  14644. postdep_objects_F77 \
  14645. predeps_F77 \
  14646. postdeps_F77 \
  14647. compiler_lib_search_path_F77 \
  14648. archive_cmds_F77 \
  14649. archive_expsym_cmds_F77 \
  14650. postinstall_cmds_F77 \
  14651. postuninstall_cmds_F77 \
  14652. old_archive_from_expsyms_cmds_F77 \
  14653. allow_undefined_flag_F77 \
  14654. no_undefined_flag_F77 \
  14655. export_symbols_cmds_F77 \
  14656. hardcode_libdir_flag_spec_F77 \
  14657. hardcode_libdir_flag_spec_ld_F77 \
  14658. hardcode_libdir_separator_F77 \
  14659. hardcode_automatic_F77 \
  14660. module_cmds_F77 \
  14661. module_expsym_cmds_F77 \
  14662. lt_cv_prog_compiler_c_o_F77 \
  14663. exclude_expsyms_F77 \
  14664. include_expsyms_F77; do
  14665. case $var in
  14666. old_archive_cmds_F77 | \
  14667. old_archive_from_new_cmds_F77 | \
  14668. archive_cmds_F77 | \
  14669. archive_expsym_cmds_F77 | \
  14670. module_cmds_F77 | \
  14671. module_expsym_cmds_F77 | \
  14672. old_archive_from_expsyms_cmds_F77 | \
  14673. export_symbols_cmds_F77 | \
  14674. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14675. postinstall_cmds | postuninstall_cmds | \
  14676. old_postinstall_cmds | old_postuninstall_cmds | \
  14677. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14678. # Double-quote double-evaled strings.
  14679. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14680. ;;
  14681. *)
  14682. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14683. ;;
  14684. esac
  14685. done
  14686. case $lt_echo in
  14687. *'\$0 --fallback-echo"')
  14688. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14689. ;;
  14690. esac
  14691. cfgfile="$ofile"
  14692. cat <<__EOF__ >> "$cfgfile"
  14693. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14694. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14695. # Shell to use when invoking shell scripts.
  14696. SHELL=$lt_SHELL
  14697. # Whether or not to build shared libraries.
  14698. build_libtool_libs=$enable_shared
  14699. # Whether or not to build static libraries.
  14700. build_old_libs=$enable_static
  14701. # Whether or not to add -lc for building shared libraries.
  14702. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14703. # Whether or not to disallow shared libs when runtime libs are static
  14704. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14705. # Whether or not to optimize for fast installation.
  14706. fast_install=$enable_fast_install
  14707. # The host system.
  14708. host_alias=$host_alias
  14709. host=$host
  14710. host_os=$host_os
  14711. # The build system.
  14712. build_alias=$build_alias
  14713. build=$build
  14714. build_os=$build_os
  14715. # An echo program that does not interpret backslashes.
  14716. echo=$lt_echo
  14717. # The archiver.
  14718. AR=$lt_AR
  14719. AR_FLAGS=$lt_AR_FLAGS
  14720. # A C compiler.
  14721. LTCC=$lt_LTCC
  14722. # LTCC compiler flags.
  14723. LTCFLAGS=$lt_LTCFLAGS
  14724. # A language-specific compiler.
  14725. CC=$lt_compiler_F77
  14726. # Is the compiler the GNU C compiler?
  14727. with_gcc=$GCC_F77
  14728. # An ERE matcher.
  14729. EGREP=$lt_EGREP
  14730. # The linker used to build libraries.
  14731. LD=$lt_LD_F77
  14732. # Whether we need hard or soft links.
  14733. LN_S=$lt_LN_S
  14734. # A BSD-compatible nm program.
  14735. NM=$lt_NM
  14736. # A symbol stripping program
  14737. STRIP=$lt_STRIP
  14738. # Used to examine libraries when file_magic_cmd begins "file"
  14739. MAGIC_CMD=$MAGIC_CMD
  14740. # Used on cygwin: DLL creation program.
  14741. DLLTOOL="$DLLTOOL"
  14742. # Used on cygwin: object dumper.
  14743. OBJDUMP="$OBJDUMP"
  14744. # Used on cygwin: assembler.
  14745. AS="$AS"
  14746. # The name of the directory that contains temporary libtool files.
  14747. objdir=$objdir
  14748. # How to create reloadable object files.
  14749. reload_flag=$lt_reload_flag
  14750. reload_cmds=$lt_reload_cmds
  14751. # How to pass a linker flag through the compiler.
  14752. wl=$lt_lt_prog_compiler_wl_F77
  14753. # Object file suffix (normally "o").
  14754. objext="$ac_objext"
  14755. # Old archive suffix (normally "a").
  14756. libext="$libext"
  14757. # Shared library suffix (normally ".so").
  14758. shrext_cmds='$shrext_cmds'
  14759. # Executable file suffix (normally "").
  14760. exeext="$exeext"
  14761. # Additional compiler flags for building library objects.
  14762. pic_flag=$lt_lt_prog_compiler_pic_F77
  14763. pic_mode=$pic_mode
  14764. # What is the maximum length of a command?
  14765. max_cmd_len=$lt_cv_sys_max_cmd_len
  14766. # Does compiler simultaneously support -c and -o options?
  14767. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14768. # Must we lock files when doing compilation?
  14769. need_locks=$lt_need_locks
  14770. # Do we need the lib prefix for modules?
  14771. need_lib_prefix=$need_lib_prefix
  14772. # Do we need a version for libraries?
  14773. need_version=$need_version
  14774. # Whether dlopen is supported.
  14775. dlopen_support=$enable_dlopen
  14776. # Whether dlopen of programs is supported.
  14777. dlopen_self=$enable_dlopen_self
  14778. # Whether dlopen of statically linked programs is supported.
  14779. dlopen_self_static=$enable_dlopen_self_static
  14780. # Compiler flag to prevent dynamic linking.
  14781. link_static_flag=$lt_lt_prog_compiler_static_F77
  14782. # Compiler flag to turn off builtin functions.
  14783. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14784. # Compiler flag to allow reflexive dlopens.
  14785. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14786. # Compiler flag to generate shared objects directly from archives.
  14787. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14788. # Compiler flag to generate thread-safe objects.
  14789. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14790. # Library versioning type.
  14791. version_type=$version_type
  14792. # Format of library name prefix.
  14793. libname_spec=$lt_libname_spec
  14794. # List of archive names. First name is the real one, the rest are links.
  14795. # The last name is the one that the linker finds with -lNAME.
  14796. library_names_spec=$lt_library_names_spec
  14797. # The coded name of the library, if different from the real name.
  14798. soname_spec=$lt_soname_spec
  14799. # Commands used to build and install an old-style archive.
  14800. RANLIB=$lt_RANLIB
  14801. old_archive_cmds=$lt_old_archive_cmds_F77
  14802. old_postinstall_cmds=$lt_old_postinstall_cmds
  14803. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14804. # Create an old-style archive from a shared archive.
  14805. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14806. # Create a temporary old-style archive to link instead of a shared archive.
  14807. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14808. # Commands used to build and install a shared archive.
  14809. archive_cmds=$lt_archive_cmds_F77
  14810. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14811. postinstall_cmds=$lt_postinstall_cmds
  14812. postuninstall_cmds=$lt_postuninstall_cmds
  14813. # Commands used to build a loadable module (assumed same as above if empty)
  14814. module_cmds=$lt_module_cmds_F77
  14815. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14816. # Commands to strip libraries.
  14817. old_striplib=$lt_old_striplib
  14818. striplib=$lt_striplib
  14819. # Dependencies to place before the objects being linked to create a
  14820. # shared library.
  14821. predep_objects=$lt_predep_objects_F77
  14822. # Dependencies to place after the objects being linked to create a
  14823. # shared library.
  14824. postdep_objects=$lt_postdep_objects_F77
  14825. # Dependencies to place before the objects being linked to create a
  14826. # shared library.
  14827. predeps=$lt_predeps_F77
  14828. # Dependencies to place after the objects being linked to create a
  14829. # shared library.
  14830. postdeps=$lt_postdeps_F77
  14831. # The library search path used internally by the compiler when linking
  14832. # a shared library.
  14833. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14834. # Method to check whether dependent libraries are shared objects.
  14835. deplibs_check_method=$lt_deplibs_check_method
  14836. # Command to use when deplibs_check_method == file_magic.
  14837. file_magic_cmd=$lt_file_magic_cmd
  14838. # Flag that allows shared libraries with undefined symbols to be built.
  14839. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14840. # Flag that forces no undefined symbols.
  14841. no_undefined_flag=$lt_no_undefined_flag_F77
  14842. # Commands used to finish a libtool library installation in a directory.
  14843. finish_cmds=$lt_finish_cmds
  14844. # Same as above, but a single script fragment to be evaled but not shown.
  14845. finish_eval=$lt_finish_eval
  14846. # Take the output of nm and produce a listing of raw symbols and C names.
  14847. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14848. # Transform the output of nm in a proper C declaration
  14849. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14850. # Transform the output of nm in a C name address pair
  14851. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14852. # This is the shared library runtime path variable.
  14853. runpath_var=$runpath_var
  14854. # This is the shared library path variable.
  14855. shlibpath_var=$shlibpath_var
  14856. # Is shlibpath searched before the hard-coded library search path?
  14857. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14858. # How to hardcode a shared library path into an executable.
  14859. hardcode_action=$hardcode_action_F77
  14860. # Whether we should hardcode library paths into libraries.
  14861. hardcode_into_libs=$hardcode_into_libs
  14862. # Flag to hardcode \$libdir into a binary during linking.
  14863. # This must work even if \$libdir does not exist.
  14864. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14865. # If ld is used when linking, flag to hardcode \$libdir into
  14866. # a binary during linking. This must work even if \$libdir does
  14867. # not exist.
  14868. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14869. # Whether we need a single -rpath flag with a separated argument.
  14870. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14871. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14872. # resulting binary.
  14873. hardcode_direct=$hardcode_direct_F77
  14874. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14875. # resulting binary.
  14876. hardcode_minus_L=$hardcode_minus_L_F77
  14877. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14878. # the resulting binary.
  14879. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14880. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14881. # and all subsequent libraries and executables linked against it.
  14882. hardcode_automatic=$hardcode_automatic_F77
  14883. # Variables whose values should be saved in libtool wrapper scripts and
  14884. # restored at relink time.
  14885. variables_saved_for_relink="$variables_saved_for_relink"
  14886. # Whether libtool must link a program against all its dependency libraries.
  14887. link_all_deplibs=$link_all_deplibs_F77
  14888. # Compile-time system search path for libraries
  14889. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14890. # Run-time system search path for libraries
  14891. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14892. # Fix the shell variable \$srcfile for the compiler.
  14893. fix_srcfile_path="$fix_srcfile_path_F77"
  14894. # Set to yes if exported symbols are required.
  14895. always_export_symbols=$always_export_symbols_F77
  14896. # The commands to list exported symbols.
  14897. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14898. # The commands to extract the exported symbol list from a shared archive.
  14899. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14900. # Symbols that should not be listed in the preloaded symbols.
  14901. exclude_expsyms=$lt_exclude_expsyms_F77
  14902. # Symbols that must always be exported.
  14903. include_expsyms=$lt_include_expsyms_F77
  14904. # ### END LIBTOOL TAG CONFIG: $tagname
  14905. __EOF__
  14906. else
  14907. # If there is no Makefile yet, we rely on a make rule to execute
  14908. # `config.status --recheck' to rerun these tests and create the
  14909. # libtool script then.
  14910. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14911. if test -f "$ltmain_in"; then
  14912. test -f Makefile && make "$ltmain"
  14913. fi
  14914. fi
  14915. ac_ext=c
  14916. ac_cpp='$CPP $CPPFLAGS'
  14917. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14918. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14919. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14920. CC="$lt_save_CC"
  14921. else
  14922. tagname=""
  14923. fi
  14924. ;;
  14925. GCJ)
  14926. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14927. # Source file extension for Java test sources.
  14928. ac_ext=java
  14929. # Object file extension for compiled Java test sources.
  14930. objext=o
  14931. objext_GCJ=$objext
  14932. # Code to be used in simple compile tests
  14933. lt_simple_compile_test_code="class foo {}\n"
  14934. # Code to be used in simple link tests
  14935. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14936. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14937. # If no C compiler was specified, use CC.
  14938. LTCC=${LTCC-"$CC"}
  14939. # If no C compiler flags were specified, use CFLAGS.
  14940. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14941. # Allow CC to be a program name with arguments.
  14942. compiler=$CC
  14943. # save warnings/boilerplate of simple test code
  14944. ac_outfile=conftest.$ac_objext
  14945. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14946. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14947. _lt_compiler_boilerplate=`cat conftest.err`
  14948. $rm conftest*
  14949. ac_outfile=conftest.$ac_objext
  14950. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14951. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14952. _lt_linker_boilerplate=`cat conftest.err`
  14953. $rm conftest*
  14954. # Allow CC to be a program name with arguments.
  14955. lt_save_CC="$CC"
  14956. CC=${GCJ-"gcj"}
  14957. compiler=$CC
  14958. compiler_GCJ=$CC
  14959. for cc_temp in $compiler""; do
  14960. case $cc_temp in
  14961. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14962. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14963. \-*) ;;
  14964. *) break;;
  14965. esac
  14966. done
  14967. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14968. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14969. archive_cmds_need_lc_GCJ=no
  14970. old_archive_cmds_GCJ=$old_archive_cmds
  14971. ## CAVEAT EMPTOR:
  14972. ## There is no encapsulation within the following macros, do not change
  14973. ## the running order or otherwise move them around unless you know exactly
  14974. ## what you are doing...
  14975. lt_prog_compiler_no_builtin_flag_GCJ=
  14976. if test "$GCC" = yes; then
  14977. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14978. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14979. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14980. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14981. echo $ECHO_N "(cached) $ECHO_C" >&6
  14982. else
  14983. lt_cv_prog_compiler_rtti_exceptions=no
  14984. ac_outfile=conftest.$ac_objext
  14985. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14986. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14987. # Insert the option either (1) after the last *FLAGS variable, or
  14988. # (2) before a word containing "conftest.", or (3) at the end.
  14989. # Note that $ac_compile itself does not contain backslashes and begins
  14990. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14991. # The option is referenced via a variable to avoid confusing sed.
  14992. lt_compile=`echo "$ac_compile" | $SED \
  14993. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14994. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14995. -e 's:$: $lt_compiler_flag:'`
  14996. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  14997. (eval "$lt_compile" 2>conftest.err)
  14998. ac_status=$?
  14999. cat conftest.err >&5
  15000. echo "$as_me:__oline__: \$? = $ac_status" >&5
  15001. if (exit $ac_status) && test -s "$ac_outfile"; then
  15002. # The compiler can only warn and ignore the option if not recognized
  15003. # So say no if there are warnings other than the usual output.
  15004. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15005. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15006. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15007. lt_cv_prog_compiler_rtti_exceptions=yes
  15008. fi
  15009. fi
  15010. $rm conftest*
  15011. fi
  15012. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15013. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  15014. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15015. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15016. else
  15017. :
  15018. fi
  15019. fi
  15020. lt_prog_compiler_wl_GCJ=
  15021. lt_prog_compiler_pic_GCJ=
  15022. lt_prog_compiler_static_GCJ=
  15023. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15024. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  15025. if test "$GCC" = yes; then
  15026. lt_prog_compiler_wl_GCJ='-Wl,'
  15027. lt_prog_compiler_static_GCJ='-static'
  15028. case $host_os in
  15029. aix*)
  15030. # All AIX code is PIC.
  15031. if test "$host_cpu" = ia64; then
  15032. # AIX 5 now supports IA64 processor
  15033. lt_prog_compiler_static_GCJ='-Bstatic'
  15034. fi
  15035. ;;
  15036. amigaos*)
  15037. # FIXME: we need at least 68020 code to build shared libraries, but
  15038. # adding the `-m68020' flag to GCC prevents building anything better,
  15039. # like `-m68040'.
  15040. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15041. ;;
  15042. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15043. # PIC is the default for these OSes.
  15044. ;;
  15045. mingw* | pw32* | os2*)
  15046. # This hack is so that the source file can tell whether it is being
  15047. # built for inclusion in a dll (and should export symbols for example).
  15048. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15049. ;;
  15050. darwin* | rhapsody*)
  15051. # PIC is the default on this platform
  15052. # Common symbols not allowed in MH_DYLIB files
  15053. lt_prog_compiler_pic_GCJ='-fno-common'
  15054. ;;
  15055. interix3*)
  15056. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15057. # Instead, we relocate shared libraries at runtime.
  15058. ;;
  15059. msdosdjgpp*)
  15060. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15061. # on systems that don't support them.
  15062. lt_prog_compiler_can_build_shared_GCJ=no
  15063. enable_shared=no
  15064. ;;
  15065. sysv4*MP*)
  15066. if test -d /usr/nec; then
  15067. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15068. fi
  15069. ;;
  15070. hpux*)
  15071. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15072. # not for PA HP-UX.
  15073. case $host_cpu in
  15074. hppa*64*|ia64*)
  15075. # +Z the default
  15076. ;;
  15077. *)
  15078. lt_prog_compiler_pic_GCJ='-fPIC'
  15079. ;;
  15080. esac
  15081. ;;
  15082. *)
  15083. lt_prog_compiler_pic_GCJ='-fPIC'
  15084. ;;
  15085. esac
  15086. else
  15087. # PORTME Check for flag to pass linker flags through the system compiler.
  15088. case $host_os in
  15089. aix*)
  15090. lt_prog_compiler_wl_GCJ='-Wl,'
  15091. if test "$host_cpu" = ia64; then
  15092. # AIX 5 now supports IA64 processor
  15093. lt_prog_compiler_static_GCJ='-Bstatic'
  15094. else
  15095. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15096. fi
  15097. ;;
  15098. darwin*)
  15099. # PIC is the default on this platform
  15100. # Common symbols not allowed in MH_DYLIB files
  15101. case $cc_basename in
  15102. xlc*)
  15103. lt_prog_compiler_pic_GCJ='-qnocommon'
  15104. lt_prog_compiler_wl_GCJ='-Wl,'
  15105. ;;
  15106. esac
  15107. ;;
  15108. mingw* | pw32* | os2*)
  15109. # This hack is so that the source file can tell whether it is being
  15110. # built for inclusion in a dll (and should export symbols for example).
  15111. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15112. ;;
  15113. hpux9* | hpux10* | hpux11*)
  15114. lt_prog_compiler_wl_GCJ='-Wl,'
  15115. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15116. # not for PA HP-UX.
  15117. case $host_cpu in
  15118. hppa*64*|ia64*)
  15119. # +Z the default
  15120. ;;
  15121. *)
  15122. lt_prog_compiler_pic_GCJ='+Z'
  15123. ;;
  15124. esac
  15125. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15126. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15127. ;;
  15128. irix5* | irix6* | nonstopux*)
  15129. lt_prog_compiler_wl_GCJ='-Wl,'
  15130. # PIC (with -KPIC) is the default.
  15131. lt_prog_compiler_static_GCJ='-non_shared'
  15132. ;;
  15133. newsos6)
  15134. lt_prog_compiler_pic_GCJ='-KPIC'
  15135. lt_prog_compiler_static_GCJ='-Bstatic'
  15136. ;;
  15137. linux* | k*bsd*-gnu)
  15138. case $cc_basename in
  15139. icc* | ecc*)
  15140. lt_prog_compiler_wl_GCJ='-Wl,'
  15141. lt_prog_compiler_pic_GCJ='-KPIC'
  15142. lt_prog_compiler_static_GCJ='-static'
  15143. ;;
  15144. pgcc* | pgf77* | pgf90* | pgf95*)
  15145. # Portland Group compilers (*not* the Pentium gcc compiler,
  15146. # which looks to be a dead project)
  15147. lt_prog_compiler_wl_GCJ='-Wl,'
  15148. lt_prog_compiler_pic_GCJ='-fpic'
  15149. lt_prog_compiler_static_GCJ='-Bstatic'
  15150. ;;
  15151. ccc*)
  15152. lt_prog_compiler_wl_GCJ='-Wl,'
  15153. # All Alpha code is PIC.
  15154. lt_prog_compiler_static_GCJ='-non_shared'
  15155. ;;
  15156. esac
  15157. ;;
  15158. osf3* | osf4* | osf5*)
  15159. lt_prog_compiler_wl_GCJ='-Wl,'
  15160. # All OSF/1 code is PIC.
  15161. lt_prog_compiler_static_GCJ='-non_shared'
  15162. ;;
  15163. solaris*)
  15164. lt_prog_compiler_pic_GCJ='-KPIC'
  15165. lt_prog_compiler_static_GCJ='-Bstatic'
  15166. case $cc_basename in
  15167. f77* | f90* | f95*)
  15168. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15169. *)
  15170. lt_prog_compiler_wl_GCJ='-Wl,';;
  15171. esac
  15172. ;;
  15173. sunos4*)
  15174. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15175. lt_prog_compiler_pic_GCJ='-PIC'
  15176. lt_prog_compiler_static_GCJ='-Bstatic'
  15177. ;;
  15178. sysv4 | sysv4.2uw2* | sysv4.3*)
  15179. lt_prog_compiler_wl_GCJ='-Wl,'
  15180. lt_prog_compiler_pic_GCJ='-KPIC'
  15181. lt_prog_compiler_static_GCJ='-Bstatic'
  15182. ;;
  15183. sysv4*MP*)
  15184. if test -d /usr/nec ;then
  15185. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15186. lt_prog_compiler_static_GCJ='-Bstatic'
  15187. fi
  15188. ;;
  15189. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15190. lt_prog_compiler_wl_GCJ='-Wl,'
  15191. lt_prog_compiler_pic_GCJ='-KPIC'
  15192. lt_prog_compiler_static_GCJ='-Bstatic'
  15193. ;;
  15194. unicos*)
  15195. lt_prog_compiler_wl_GCJ='-Wl,'
  15196. lt_prog_compiler_can_build_shared_GCJ=no
  15197. ;;
  15198. uts4*)
  15199. lt_prog_compiler_pic_GCJ='-pic'
  15200. lt_prog_compiler_static_GCJ='-Bstatic'
  15201. ;;
  15202. *)
  15203. lt_prog_compiler_can_build_shared_GCJ=no
  15204. ;;
  15205. esac
  15206. fi
  15207. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15208. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15209. #
  15210. # Check to make sure the PIC flag actually works.
  15211. #
  15212. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15213. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15214. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15215. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15216. echo $ECHO_N "(cached) $ECHO_C" >&6
  15217. else
  15218. lt_prog_compiler_pic_works_GCJ=no
  15219. ac_outfile=conftest.$ac_objext
  15220. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15221. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15222. # Insert the option either (1) after the last *FLAGS variable, or
  15223. # (2) before a word containing "conftest.", or (3) at the end.
  15224. # Note that $ac_compile itself does not contain backslashes and begins
  15225. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15226. # The option is referenced via a variable to avoid confusing sed.
  15227. lt_compile=`echo "$ac_compile" | $SED \
  15228. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15229. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15230. -e 's:$: $lt_compiler_flag:'`
  15231. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  15232. (eval "$lt_compile" 2>conftest.err)
  15233. ac_status=$?
  15234. cat conftest.err >&5
  15235. echo "$as_me:__oline__: \$? = $ac_status" >&5
  15236. if (exit $ac_status) && test -s "$ac_outfile"; then
  15237. # The compiler can only warn and ignore the option if not recognized
  15238. # So say no if there are warnings other than the usual output.
  15239. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15240. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15241. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15242. lt_prog_compiler_pic_works_GCJ=yes
  15243. fi
  15244. fi
  15245. $rm conftest*
  15246. fi
  15247. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15248. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15249. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15250. case $lt_prog_compiler_pic_GCJ in
  15251. "" | " "*) ;;
  15252. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15253. esac
  15254. else
  15255. lt_prog_compiler_pic_GCJ=
  15256. lt_prog_compiler_can_build_shared_GCJ=no
  15257. fi
  15258. fi
  15259. case $host_os in
  15260. # For platforms which do not support PIC, -DPIC is meaningless:
  15261. *djgpp*)
  15262. lt_prog_compiler_pic_GCJ=
  15263. ;;
  15264. *)
  15265. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15266. ;;
  15267. esac
  15268. #
  15269. # Check to make sure the static flag actually works.
  15270. #
  15271. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15272. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15273. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15274. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15275. echo $ECHO_N "(cached) $ECHO_C" >&6
  15276. else
  15277. lt_prog_compiler_static_works_GCJ=no
  15278. save_LDFLAGS="$LDFLAGS"
  15279. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15280. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  15281. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15282. # The linker can only warn and ignore the option if not recognized
  15283. # So say no if there are warnings
  15284. if test -s conftest.err; then
  15285. # Append any errors to the config.log.
  15286. cat conftest.err 1>&5
  15287. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15288. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15289. if diff conftest.exp conftest.er2 >/dev/null; then
  15290. lt_prog_compiler_static_works_GCJ=yes
  15291. fi
  15292. else
  15293. lt_prog_compiler_static_works_GCJ=yes
  15294. fi
  15295. fi
  15296. $rm conftest*
  15297. LDFLAGS="$save_LDFLAGS"
  15298. fi
  15299. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15300. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15301. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15302. :
  15303. else
  15304. lt_prog_compiler_static_GCJ=
  15305. fi
  15306. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15307. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15308. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15309. echo $ECHO_N "(cached) $ECHO_C" >&6
  15310. else
  15311. lt_cv_prog_compiler_c_o_GCJ=no
  15312. $rm -r conftest 2>/dev/null
  15313. mkdir conftest
  15314. cd conftest
  15315. mkdir out
  15316. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15317. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15318. # Insert the option either (1) after the last *FLAGS variable, or
  15319. # (2) before a word containing "conftest.", or (3) at the end.
  15320. # Note that $ac_compile itself does not contain backslashes and begins
  15321. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15322. lt_compile=`echo "$ac_compile" | $SED \
  15323. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15324. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15325. -e 's:$: $lt_compiler_flag:'`
  15326. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  15327. (eval "$lt_compile" 2>out/conftest.err)
  15328. ac_status=$?
  15329. cat out/conftest.err >&5
  15330. echo "$as_me:__oline__: \$? = $ac_status" >&5
  15331. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15332. then
  15333. # The compiler can only warn and ignore the option if not recognized
  15334. # So say no if there are warnings
  15335. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15336. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15337. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15338. lt_cv_prog_compiler_c_o_GCJ=yes
  15339. fi
  15340. fi
  15341. chmod u+w . 2>&5
  15342. $rm conftest*
  15343. # SGI C++ compiler will create directory out/ii_files/ for
  15344. # template instantiation
  15345. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15346. $rm out/* && rmdir out
  15347. cd ..
  15348. rmdir conftest
  15349. $rm conftest*
  15350. fi
  15351. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15352. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15353. hard_links="nottested"
  15354. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15355. # do not overwrite the value of need_locks provided by the user
  15356. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15357. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15358. hard_links=yes
  15359. $rm conftest*
  15360. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15361. touch conftest.a
  15362. ln conftest.a conftest.b 2>&5 || hard_links=no
  15363. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15364. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15365. echo "${ECHO_T}$hard_links" >&6; }
  15366. if test "$hard_links" = no; then
  15367. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15368. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15369. need_locks=warn
  15370. fi
  15371. else
  15372. need_locks=no
  15373. fi
  15374. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15375. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15376. runpath_var=
  15377. allow_undefined_flag_GCJ=
  15378. enable_shared_with_static_runtimes_GCJ=no
  15379. archive_cmds_GCJ=
  15380. archive_expsym_cmds_GCJ=
  15381. old_archive_From_new_cmds_GCJ=
  15382. old_archive_from_expsyms_cmds_GCJ=
  15383. export_dynamic_flag_spec_GCJ=
  15384. whole_archive_flag_spec_GCJ=
  15385. thread_safe_flag_spec_GCJ=
  15386. hardcode_libdir_flag_spec_GCJ=
  15387. hardcode_libdir_flag_spec_ld_GCJ=
  15388. hardcode_libdir_separator_GCJ=
  15389. hardcode_direct_GCJ=no
  15390. hardcode_minus_L_GCJ=no
  15391. hardcode_shlibpath_var_GCJ=unsupported
  15392. link_all_deplibs_GCJ=unknown
  15393. hardcode_automatic_GCJ=no
  15394. module_cmds_GCJ=
  15395. module_expsym_cmds_GCJ=
  15396. always_export_symbols_GCJ=no
  15397. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15398. # include_expsyms should be a list of space-separated symbols to be *always*
  15399. # included in the symbol list
  15400. include_expsyms_GCJ=
  15401. # exclude_expsyms can be an extended regexp of symbols to exclude
  15402. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15403. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15404. # as well as any symbol that contains `d'.
  15405. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15406. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15407. # platforms (ab)use it in PIC code, but their linkers get confused if
  15408. # the symbol is explicitly referenced. Since portable code cannot
  15409. # rely on this symbol name, it's probably fine to never include it in
  15410. # preloaded symbol tables.
  15411. extract_expsyms_cmds=
  15412. # Just being paranoid about ensuring that cc_basename is set.
  15413. for cc_temp in $compiler""; do
  15414. case $cc_temp in
  15415. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15416. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15417. \-*) ;;
  15418. *) break;;
  15419. esac
  15420. done
  15421. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15422. case $host_os in
  15423. cygwin* | mingw* | pw32*)
  15424. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15425. # When not using gcc, we currently assume that we are using
  15426. # Microsoft Visual C++.
  15427. if test "$GCC" != yes; then
  15428. with_gnu_ld=no
  15429. fi
  15430. ;;
  15431. interix*)
  15432. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15433. with_gnu_ld=yes
  15434. ;;
  15435. openbsd*)
  15436. with_gnu_ld=no
  15437. ;;
  15438. esac
  15439. ld_shlibs_GCJ=yes
  15440. if test "$with_gnu_ld" = yes; then
  15441. # If archive_cmds runs LD, not CC, wlarc should be empty
  15442. wlarc='${wl}'
  15443. # Set some defaults for GNU ld with shared library support. These
  15444. # are reset later if shared libraries are not supported. Putting them
  15445. # here allows them to be overridden if necessary.
  15446. runpath_var=LD_RUN_PATH
  15447. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15448. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15449. # ancient GNU ld didn't support --whole-archive et. al.
  15450. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15451. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15452. else
  15453. whole_archive_flag_spec_GCJ=
  15454. fi
  15455. supports_anon_versioning=no
  15456. case `$LD -v 2>/dev/null` in
  15457. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15458. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15459. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15460. *\ 2.11.*) ;; # other 2.11 versions
  15461. *) supports_anon_versioning=yes ;;
  15462. esac
  15463. # See if GNU ld supports shared libraries.
  15464. case $host_os in
  15465. aix3* | aix4* | aix5*)
  15466. # On AIX/PPC, the GNU linker is very broken
  15467. if test "$host_cpu" != ia64; then
  15468. ld_shlibs_GCJ=no
  15469. cat <<EOF 1>&2
  15470. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15471. *** to be unable to reliably create shared libraries on AIX.
  15472. *** Therefore, libtool is disabling shared libraries support. If you
  15473. *** really care for shared libraries, you may want to modify your PATH
  15474. *** so that a non-GNU linker is found, and then restart.
  15475. EOF
  15476. fi
  15477. ;;
  15478. amigaos*)
  15479. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15480. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15481. hardcode_minus_L_GCJ=yes
  15482. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15483. # that the semantics of dynamic libraries on AmigaOS, at least up
  15484. # to version 4, is to share data among multiple programs linked
  15485. # with the same dynamic library. Since this doesn't match the
  15486. # behavior of shared libraries on other platforms, we can't use
  15487. # them.
  15488. ld_shlibs_GCJ=no
  15489. ;;
  15490. beos*)
  15491. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15492. allow_undefined_flag_GCJ=unsupported
  15493. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15494. # support --undefined. This deserves some investigation. FIXME
  15495. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15496. else
  15497. ld_shlibs_GCJ=no
  15498. fi
  15499. ;;
  15500. cygwin* | mingw* | pw32*)
  15501. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15502. # as there is no search path for DLLs.
  15503. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15504. allow_undefined_flag_GCJ=unsupported
  15505. always_export_symbols_GCJ=no
  15506. enable_shared_with_static_runtimes_GCJ=yes
  15507. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15508. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15509. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15510. # If the export-symbols file already is a .def file (1st line
  15511. # is EXPORTS), use it as is; otherwise, prepend...
  15512. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15513. cp $export_symbols $output_objdir/$soname.def;
  15514. else
  15515. echo EXPORTS > $output_objdir/$soname.def;
  15516. cat $export_symbols >> $output_objdir/$soname.def;
  15517. fi~
  15518. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15519. else
  15520. ld_shlibs_GCJ=no
  15521. fi
  15522. ;;
  15523. interix3*)
  15524. hardcode_direct_GCJ=no
  15525. hardcode_shlibpath_var_GCJ=no
  15526. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15527. export_dynamic_flag_spec_GCJ='${wl}-E'
  15528. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15529. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15530. # default) and relocated if they conflict, which is a slow very memory
  15531. # consuming and fragmenting process. To avoid this, we pick a random,
  15532. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15533. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15534. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15535. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15536. ;;
  15537. linux* | k*bsd*-gnu)
  15538. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15539. tmp_addflag=
  15540. case $cc_basename,$host_cpu in
  15541. pgcc*) # Portland Group C compiler
  15542. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15543. tmp_addflag=' $pic_flag'
  15544. ;;
  15545. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15546. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15547. tmp_addflag=' $pic_flag -Mnomain' ;;
  15548. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15549. tmp_addflag=' -i_dynamic' ;;
  15550. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15551. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15552. ifc* | ifort*) # Intel Fortran compiler
  15553. tmp_addflag=' -nofor_main' ;;
  15554. esac
  15555. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15556. if test $supports_anon_versioning = yes; then
  15557. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15558. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15559. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15560. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15561. fi
  15562. link_all_deplibs_GCJ=no
  15563. else
  15564. ld_shlibs_GCJ=no
  15565. fi
  15566. ;;
  15567. netbsd* | netbsdelf*-gnu)
  15568. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15569. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15570. wlarc=
  15571. else
  15572. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15573. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15574. fi
  15575. ;;
  15576. solaris*)
  15577. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15578. ld_shlibs_GCJ=no
  15579. cat <<EOF 1>&2
  15580. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15581. *** create shared libraries on Solaris systems. Therefore, libtool
  15582. *** is disabling shared libraries support. We urge you to upgrade GNU
  15583. *** binutils to release 2.9.1 or newer. Another option is to modify
  15584. *** your PATH or compiler configuration so that the native linker is
  15585. *** used, and then restart.
  15586. EOF
  15587. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15588. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15589. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15590. else
  15591. ld_shlibs_GCJ=no
  15592. fi
  15593. ;;
  15594. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15595. case `$LD -v 2>&1` in
  15596. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15597. ld_shlibs_GCJ=no
  15598. cat <<_LT_EOF 1>&2
  15599. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15600. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15601. *** is disabling shared libraries support. We urge you to upgrade GNU
  15602. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15603. *** your PATH or compiler configuration so that the native linker is
  15604. *** used, and then restart.
  15605. _LT_EOF
  15606. ;;
  15607. *)
  15608. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15609. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15610. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15611. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15612. else
  15613. ld_shlibs_GCJ=no
  15614. fi
  15615. ;;
  15616. esac
  15617. ;;
  15618. sunos4*)
  15619. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15620. wlarc=
  15621. hardcode_direct_GCJ=yes
  15622. hardcode_shlibpath_var_GCJ=no
  15623. ;;
  15624. *)
  15625. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15626. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15627. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15628. else
  15629. ld_shlibs_GCJ=no
  15630. fi
  15631. ;;
  15632. esac
  15633. if test "$ld_shlibs_GCJ" = no; then
  15634. runpath_var=
  15635. hardcode_libdir_flag_spec_GCJ=
  15636. export_dynamic_flag_spec_GCJ=
  15637. whole_archive_flag_spec_GCJ=
  15638. fi
  15639. else
  15640. # PORTME fill in a description of your system's linker (not GNU ld)
  15641. case $host_os in
  15642. aix3*)
  15643. allow_undefined_flag_GCJ=unsupported
  15644. always_export_symbols_GCJ=yes
  15645. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15646. # Note: this linker hardcodes the directories in LIBPATH if there
  15647. # are no directories specified by -L.
  15648. hardcode_minus_L_GCJ=yes
  15649. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15650. # Neither direct hardcoding nor static linking is supported with a
  15651. # broken collect2.
  15652. hardcode_direct_GCJ=unsupported
  15653. fi
  15654. ;;
  15655. aix4* | aix5*)
  15656. if test "$host_cpu" = ia64; then
  15657. # On IA64, the linker does run time linking by default, so we don't
  15658. # have to do anything special.
  15659. aix_use_runtimelinking=no
  15660. exp_sym_flag='-Bexport'
  15661. no_entry_flag=""
  15662. else
  15663. # If we're using GNU nm, then we don't want the "-C" option.
  15664. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15665. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15666. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15667. else
  15668. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15669. fi
  15670. aix_use_runtimelinking=no
  15671. # Test if we are trying to use run time linking or normal
  15672. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15673. # need to do runtime linking.
  15674. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15675. for ld_flag in $LDFLAGS; do
  15676. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15677. aix_use_runtimelinking=yes
  15678. break
  15679. fi
  15680. done
  15681. ;;
  15682. esac
  15683. exp_sym_flag='-bexport'
  15684. no_entry_flag='-bnoentry'
  15685. fi
  15686. # When large executables or shared objects are built, AIX ld can
  15687. # have problems creating the table of contents. If linking a library
  15688. # or program results in "error TOC overflow" add -mminimal-toc to
  15689. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15690. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15691. archive_cmds_GCJ=''
  15692. hardcode_direct_GCJ=yes
  15693. hardcode_libdir_separator_GCJ=':'
  15694. link_all_deplibs_GCJ=yes
  15695. if test "$GCC" = yes; then
  15696. case $host_os in aix4.[012]|aix4.[012].*)
  15697. # We only want to do this on AIX 4.2 and lower, the check
  15698. # below for broken collect2 doesn't work under 4.3+
  15699. collect2name=`${CC} -print-prog-name=collect2`
  15700. if test -f "$collect2name" && \
  15701. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15702. then
  15703. # We have reworked collect2
  15704. hardcode_direct_GCJ=yes
  15705. else
  15706. # We have old collect2
  15707. hardcode_direct_GCJ=unsupported
  15708. # It fails to find uninstalled libraries when the uninstalled
  15709. # path is not listed in the libpath. Setting hardcode_minus_L
  15710. # to unsupported forces relinking
  15711. hardcode_minus_L_GCJ=yes
  15712. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15713. hardcode_libdir_separator_GCJ=
  15714. fi
  15715. ;;
  15716. esac
  15717. shared_flag='-shared'
  15718. if test "$aix_use_runtimelinking" = yes; then
  15719. shared_flag="$shared_flag "'${wl}-G'
  15720. fi
  15721. else
  15722. # not using gcc
  15723. if test "$host_cpu" = ia64; then
  15724. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15725. # chokes on -Wl,-G. The following line is correct:
  15726. shared_flag='-G'
  15727. else
  15728. if test "$aix_use_runtimelinking" = yes; then
  15729. shared_flag='${wl}-G'
  15730. else
  15731. shared_flag='${wl}-bM:SRE'
  15732. fi
  15733. fi
  15734. fi
  15735. # It seems that -bexpall does not export symbols beginning with
  15736. # underscore (_), so it is better to generate a list of symbols to export.
  15737. always_export_symbols_GCJ=yes
  15738. if test "$aix_use_runtimelinking" = yes; then
  15739. # Warning - without using the other runtime loading flags (-brtl),
  15740. # -berok will link without error, but may produce a broken library.
  15741. allow_undefined_flag_GCJ='-berok'
  15742. # Determine the default libpath from the value encoded in an empty executable.
  15743. cat >conftest.$ac_ext <<_ACEOF
  15744. /* confdefs.h. */
  15745. _ACEOF
  15746. cat confdefs.h >>conftest.$ac_ext
  15747. cat >>conftest.$ac_ext <<_ACEOF
  15748. /* end confdefs.h. */
  15749. int
  15750. main ()
  15751. {
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. rm -f conftest.$ac_objext conftest$ac_exeext
  15757. if { (ac_try="$ac_link"
  15758. case "(($ac_try" in
  15759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15760. *) ac_try_echo=$ac_try;;
  15761. esac
  15762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15763. (eval "$ac_link") 2>conftest.er1
  15764. ac_status=$?
  15765. grep -v '^ *+' conftest.er1 >conftest.err
  15766. rm -f conftest.er1
  15767. cat conftest.err >&5
  15768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15769. (exit $ac_status); } &&
  15770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15771. { (case "(($ac_try" in
  15772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15773. *) ac_try_echo=$ac_try;;
  15774. esac
  15775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15776. (eval "$ac_try") 2>&5
  15777. ac_status=$?
  15778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15779. (exit $ac_status); }; } &&
  15780. { ac_try='test -s conftest$ac_exeext'
  15781. { (case "(($ac_try" in
  15782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15783. *) ac_try_echo=$ac_try;;
  15784. esac
  15785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15786. (eval "$ac_try") 2>&5
  15787. ac_status=$?
  15788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15789. (exit $ac_status); }; }; then
  15790. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15791. }'`
  15792. # Check for a 64-bit object if we didn't find anything.
  15793. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15794. }'`; fi
  15795. else
  15796. echo "$as_me: failed program was:" >&5
  15797. sed 's/^/| /' conftest.$ac_ext >&5
  15798. fi
  15799. rm -f conftest.err conftest.$ac_objext \
  15800. conftest$ac_exeext conftest.$ac_ext
  15801. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15802. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15803. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15804. else
  15805. if test "$host_cpu" = ia64; then
  15806. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15807. allow_undefined_flag_GCJ="-z nodefs"
  15808. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  15809. else
  15810. # Determine the default libpath from the value encoded in an empty executable.
  15811. cat >conftest.$ac_ext <<_ACEOF
  15812. /* confdefs.h. */
  15813. _ACEOF
  15814. cat confdefs.h >>conftest.$ac_ext
  15815. cat >>conftest.$ac_ext <<_ACEOF
  15816. /* end confdefs.h. */
  15817. int
  15818. main ()
  15819. {
  15820. ;
  15821. return 0;
  15822. }
  15823. _ACEOF
  15824. rm -f conftest.$ac_objext conftest$ac_exeext
  15825. if { (ac_try="$ac_link"
  15826. case "(($ac_try" in
  15827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15828. *) ac_try_echo=$ac_try;;
  15829. esac
  15830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15831. (eval "$ac_link") 2>conftest.er1
  15832. ac_status=$?
  15833. grep -v '^ *+' conftest.er1 >conftest.err
  15834. rm -f conftest.er1
  15835. cat conftest.err >&5
  15836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15837. (exit $ac_status); } &&
  15838. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15839. { (case "(($ac_try" in
  15840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15841. *) ac_try_echo=$ac_try;;
  15842. esac
  15843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15844. (eval "$ac_try") 2>&5
  15845. ac_status=$?
  15846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15847. (exit $ac_status); }; } &&
  15848. { ac_try='test -s conftest$ac_exeext'
  15849. { (case "(($ac_try" in
  15850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15851. *) ac_try_echo=$ac_try;;
  15852. esac
  15853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15854. (eval "$ac_try") 2>&5
  15855. ac_status=$?
  15856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15857. (exit $ac_status); }; }; then
  15858. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15859. }'`
  15860. # Check for a 64-bit object if we didn't find anything.
  15861. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15862. }'`; fi
  15863. else
  15864. echo "$as_me: failed program was:" >&5
  15865. sed 's/^/| /' conftest.$ac_ext >&5
  15866. fi
  15867. rm -f conftest.err conftest.$ac_objext \
  15868. conftest$ac_exeext conftest.$ac_ext
  15869. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15870. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15871. # Warning - without using the other run time loading flags,
  15872. # -berok will link without error, but may produce a broken library.
  15873. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15874. allow_undefined_flag_GCJ=' ${wl}-berok'
  15875. # Exported symbols can be pulled into shared objects from archives
  15876. whole_archive_flag_spec_GCJ='$convenience'
  15877. archive_cmds_need_lc_GCJ=yes
  15878. # This is similar to how AIX traditionally builds its shared libraries.
  15879. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15880. fi
  15881. fi
  15882. ;;
  15883. amigaos*)
  15884. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  15885. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15886. hardcode_minus_L_GCJ=yes
  15887. # see comment about different semantics on the GNU ld section
  15888. ld_shlibs_GCJ=no
  15889. ;;
  15890. bsdi[45]*)
  15891. export_dynamic_flag_spec_GCJ=-rdynamic
  15892. ;;
  15893. cygwin* | mingw* | pw32*)
  15894. # When not using gcc, we currently assume that we are using
  15895. # Microsoft Visual C++.
  15896. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15897. # no search path for DLLs.
  15898. hardcode_libdir_flag_spec_GCJ=' '
  15899. allow_undefined_flag_GCJ=unsupported
  15900. # Tell ltmain to make .lib files, not .a files.
  15901. libext=lib
  15902. # Tell ltmain to make .dll files, not .so files.
  15903. shrext_cmds=".dll"
  15904. # FIXME: Setting linknames here is a bad hack.
  15905. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15906. # The linker will automatically build a .lib file if we build a DLL.
  15907. old_archive_From_new_cmds_GCJ='true'
  15908. # FIXME: Should let the user specify the lib program.
  15909. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15910. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15911. enable_shared_with_static_runtimes_GCJ=yes
  15912. ;;
  15913. darwin* | rhapsody*)
  15914. case $host_os in
  15915. rhapsody* | darwin1.[012])
  15916. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15917. ;;
  15918. *) # Darwin 1.3 on
  15919. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15920. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15921. else
  15922. case ${MACOSX_DEPLOYMENT_TARGET} in
  15923. 10.[012])
  15924. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15925. ;;
  15926. 10.*)
  15927. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15928. ;;
  15929. esac
  15930. fi
  15931. ;;
  15932. esac
  15933. archive_cmds_need_lc_GCJ=no
  15934. hardcode_direct_GCJ=no
  15935. hardcode_automatic_GCJ=yes
  15936. hardcode_shlibpath_var_GCJ=unsupported
  15937. whole_archive_flag_spec_GCJ=''
  15938. link_all_deplibs_GCJ=yes
  15939. if test "$GCC" = yes ; then
  15940. output_verbose_link_cmd='echo'
  15941. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15942. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15943. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15944. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15945. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15946. else
  15947. case $cc_basename in
  15948. xlc*)
  15949. output_verbose_link_cmd='echo'
  15950. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15951. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15952. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15953. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15954. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15955. ;;
  15956. *)
  15957. ld_shlibs_GCJ=no
  15958. ;;
  15959. esac
  15960. fi
  15961. ;;
  15962. dgux*)
  15963. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15964. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15965. hardcode_shlibpath_var_GCJ=no
  15966. ;;
  15967. freebsd1*)
  15968. ld_shlibs_GCJ=no
  15969. ;;
  15970. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15971. # support. Future versions do this automatically, but an explicit c++rt0.o
  15972. # does not break anything, and helps significantly (at the cost of a little
  15973. # extra space).
  15974. freebsd2.2*)
  15975. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15976. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15977. hardcode_direct_GCJ=yes
  15978. hardcode_shlibpath_var_GCJ=no
  15979. ;;
  15980. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15981. freebsd2*)
  15982. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15983. hardcode_direct_GCJ=yes
  15984. hardcode_minus_L_GCJ=yes
  15985. hardcode_shlibpath_var_GCJ=no
  15986. ;;
  15987. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15988. freebsd* | dragonfly*)
  15989. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15990. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15991. hardcode_direct_GCJ=yes
  15992. hardcode_shlibpath_var_GCJ=no
  15993. ;;
  15994. hpux9*)
  15995. if test "$GCC" = yes; then
  15996. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15997. else
  15998. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15999. fi
  16000. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16001. hardcode_libdir_separator_GCJ=:
  16002. hardcode_direct_GCJ=yes
  16003. # hardcode_minus_L: Not really in the search PATH,
  16004. # but as the default location of the library.
  16005. hardcode_minus_L_GCJ=yes
  16006. export_dynamic_flag_spec_GCJ='${wl}-E'
  16007. ;;
  16008. hpux10*)
  16009. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16010. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16011. else
  16012. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16013. fi
  16014. if test "$with_gnu_ld" = no; then
  16015. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16016. hardcode_libdir_separator_GCJ=:
  16017. hardcode_direct_GCJ=yes
  16018. export_dynamic_flag_spec_GCJ='${wl}-E'
  16019. # hardcode_minus_L: Not really in the search PATH,
  16020. # but as the default location of the library.
  16021. hardcode_minus_L_GCJ=yes
  16022. fi
  16023. ;;
  16024. hpux11*)
  16025. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16026. case $host_cpu in
  16027. hppa*64*)
  16028. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16029. ;;
  16030. ia64*)
  16031. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16032. ;;
  16033. *)
  16034. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16035. ;;
  16036. esac
  16037. else
  16038. case $host_cpu in
  16039. hppa*64*)
  16040. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16041. ;;
  16042. ia64*)
  16043. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16044. ;;
  16045. *)
  16046. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16047. ;;
  16048. esac
  16049. fi
  16050. if test "$with_gnu_ld" = no; then
  16051. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16052. hardcode_libdir_separator_GCJ=:
  16053. case $host_cpu in
  16054. hppa*64*|ia64*)
  16055. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16056. hardcode_direct_GCJ=no
  16057. hardcode_shlibpath_var_GCJ=no
  16058. ;;
  16059. *)
  16060. hardcode_direct_GCJ=yes
  16061. export_dynamic_flag_spec_GCJ='${wl}-E'
  16062. # hardcode_minus_L: Not really in the search PATH,
  16063. # but as the default location of the library.
  16064. hardcode_minus_L_GCJ=yes
  16065. ;;
  16066. esac
  16067. fi
  16068. ;;
  16069. irix5* | irix6* | nonstopux*)
  16070. if test "$GCC" = yes; then
  16071. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16072. else
  16073. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16074. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16075. fi
  16076. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16077. hardcode_libdir_separator_GCJ=:
  16078. link_all_deplibs_GCJ=yes
  16079. ;;
  16080. netbsd* | netbsdelf*-gnu)
  16081. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16082. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16083. else
  16084. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16085. fi
  16086. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16087. hardcode_direct_GCJ=yes
  16088. hardcode_shlibpath_var_GCJ=no
  16089. ;;
  16090. newsos6)
  16091. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16092. hardcode_direct_GCJ=yes
  16093. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16094. hardcode_libdir_separator_GCJ=:
  16095. hardcode_shlibpath_var_GCJ=no
  16096. ;;
  16097. openbsd*)
  16098. hardcode_direct_GCJ=yes
  16099. hardcode_shlibpath_var_GCJ=no
  16100. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16101. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16102. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16103. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16104. export_dynamic_flag_spec_GCJ='${wl}-E'
  16105. else
  16106. case $host_os in
  16107. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16108. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16109. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16110. ;;
  16111. *)
  16112. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16113. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16114. ;;
  16115. esac
  16116. fi
  16117. ;;
  16118. os2*)
  16119. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16120. hardcode_minus_L_GCJ=yes
  16121. allow_undefined_flag_GCJ=unsupported
  16122. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  16123. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16124. ;;
  16125. osf3*)
  16126. if test "$GCC" = yes; then
  16127. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16128. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16129. else
  16130. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16131. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16132. fi
  16133. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16134. hardcode_libdir_separator_GCJ=:
  16135. ;;
  16136. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16137. if test "$GCC" = yes; then
  16138. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16139. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16140. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16141. else
  16142. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16143. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  16144. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  16145. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  16146. # Both c and cxx compiler support -rpath directly
  16147. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16148. fi
  16149. hardcode_libdir_separator_GCJ=:
  16150. ;;
  16151. solaris*)
  16152. no_undefined_flag_GCJ=' -z text'
  16153. if test "$GCC" = yes; then
  16154. wlarc='${wl}'
  16155. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16156. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16157. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16158. else
  16159. wlarc=''
  16160. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16161. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16162. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16163. fi
  16164. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16165. hardcode_shlibpath_var_GCJ=no
  16166. case $host_os in
  16167. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16168. *)
  16169. # The compiler driver will combine linker options so we
  16170. # cannot just pass the convience library names through
  16171. # without $wl, iff we do not link with $LD.
  16172. # Luckily, gcc supports the same syntax we need for Sun Studio.
  16173. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16174. case $wlarc in
  16175. '')
  16176. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16177. *)
  16178. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  16179. esac ;;
  16180. esac
  16181. link_all_deplibs_GCJ=yes
  16182. ;;
  16183. sunos4*)
  16184. if test "x$host_vendor" = xsequent; then
  16185. # Use $CC to link under sequent, because it throws in some extra .o
  16186. # files that make .init and .fini sections work.
  16187. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16188. else
  16189. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16190. fi
  16191. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16192. hardcode_direct_GCJ=yes
  16193. hardcode_minus_L_GCJ=yes
  16194. hardcode_shlibpath_var_GCJ=no
  16195. ;;
  16196. sysv4)
  16197. case $host_vendor in
  16198. sni)
  16199. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16200. hardcode_direct_GCJ=yes # is this really true???
  16201. ;;
  16202. siemens)
  16203. ## LD is ld it makes a PLAMLIB
  16204. ## CC just makes a GrossModule.
  16205. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16206. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16207. hardcode_direct_GCJ=no
  16208. ;;
  16209. motorola)
  16210. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16211. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16212. ;;
  16213. esac
  16214. runpath_var='LD_RUN_PATH'
  16215. hardcode_shlibpath_var_GCJ=no
  16216. ;;
  16217. sysv4.3*)
  16218. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16219. hardcode_shlibpath_var_GCJ=no
  16220. export_dynamic_flag_spec_GCJ='-Bexport'
  16221. ;;
  16222. sysv4*MP*)
  16223. if test -d /usr/nec; then
  16224. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16225. hardcode_shlibpath_var_GCJ=no
  16226. runpath_var=LD_RUN_PATH
  16227. hardcode_runpath_var=yes
  16228. ld_shlibs_GCJ=yes
  16229. fi
  16230. ;;
  16231. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  16232. no_undefined_flag_GCJ='${wl}-z,text'
  16233. archive_cmds_need_lc_GCJ=no
  16234. hardcode_shlibpath_var_GCJ=no
  16235. runpath_var='LD_RUN_PATH'
  16236. if test "$GCC" = yes; then
  16237. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16238. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16239. else
  16240. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16241. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16242. fi
  16243. ;;
  16244. sysv5* | sco3.2v5* | sco5v6*)
  16245. # Note: We can NOT use -z defs as we might desire, because we do not
  16246. # link with -lc, and that would cause any symbols used from libc to
  16247. # always be unresolved, which means just about no library would
  16248. # ever link correctly. If we're not using GNU ld we use -z text
  16249. # though, which does catch some bad symbols but isn't as heavy-handed
  16250. # as -z defs.
  16251. no_undefined_flag_GCJ='${wl}-z,text'
  16252. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16253. archive_cmds_need_lc_GCJ=no
  16254. hardcode_shlibpath_var_GCJ=no
  16255. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16256. hardcode_libdir_separator_GCJ=':'
  16257. link_all_deplibs_GCJ=yes
  16258. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16259. runpath_var='LD_RUN_PATH'
  16260. if test "$GCC" = yes; then
  16261. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16262. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16263. else
  16264. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16265. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16266. fi
  16267. ;;
  16268. uts4*)
  16269. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16270. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16271. hardcode_shlibpath_var_GCJ=no
  16272. ;;
  16273. *)
  16274. ld_shlibs_GCJ=no
  16275. ;;
  16276. esac
  16277. fi
  16278. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16279. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16280. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16281. #
  16282. # Do we need to explicitly link libc?
  16283. #
  16284. case "x$archive_cmds_need_lc_GCJ" in
  16285. x|xyes)
  16286. # Assume -lc should be added
  16287. archive_cmds_need_lc_GCJ=yes
  16288. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16289. case $archive_cmds_GCJ in
  16290. *'~'*)
  16291. # FIXME: we may have to deal with multi-command sequences.
  16292. ;;
  16293. '$CC '*)
  16294. # Test whether the compiler implicitly links with -lc since on some
  16295. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16296. # to ld, don't add -lc before -lgcc.
  16297. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16298. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16299. $rm conftest*
  16300. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16301. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16302. (eval $ac_compile) 2>&5
  16303. ac_status=$?
  16304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16305. (exit $ac_status); } 2>conftest.err; then
  16306. soname=conftest
  16307. lib=conftest
  16308. libobjs=conftest.$ac_objext
  16309. deplibs=
  16310. wl=$lt_prog_compiler_wl_GCJ
  16311. pic_flag=$lt_prog_compiler_pic_GCJ
  16312. compiler_flags=-v
  16313. linker_flags=-v
  16314. verstring=
  16315. output_objdir=.
  16316. libname=conftest
  16317. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16318. allow_undefined_flag_GCJ=
  16319. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16320. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16321. ac_status=$?
  16322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16323. (exit $ac_status); }
  16324. then
  16325. archive_cmds_need_lc_GCJ=no
  16326. else
  16327. archive_cmds_need_lc_GCJ=yes
  16328. fi
  16329. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16330. else
  16331. cat conftest.err 1>&5
  16332. fi
  16333. $rm conftest*
  16334. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16335. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16336. ;;
  16337. esac
  16338. fi
  16339. ;;
  16340. esac
  16341. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16342. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16343. library_names_spec=
  16344. libname_spec='lib$name'
  16345. soname_spec=
  16346. shrext_cmds=".so"
  16347. postinstall_cmds=
  16348. postuninstall_cmds=
  16349. finish_cmds=
  16350. finish_eval=
  16351. shlibpath_var=
  16352. shlibpath_overrides_runpath=unknown
  16353. version_type=none
  16354. dynamic_linker="$host_os ld.so"
  16355. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16356. if test "$GCC" = yes; then
  16357. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16358. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  16359. # if the path contains ";" then we assume it to be the separator
  16360. # otherwise default to the standard path separator (i.e. ":") - it is
  16361. # assumed that no part of a normal pathname contains ";" but that should
  16362. # okay in the real world where ";" in dirpaths is itself problematic.
  16363. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16364. else
  16365. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16366. fi
  16367. else
  16368. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16369. fi
  16370. need_lib_prefix=unknown
  16371. hardcode_into_libs=no
  16372. # when you set need_version to no, make sure it does not cause -set_version
  16373. # flags to be left without arguments
  16374. need_version=unknown
  16375. case $host_os in
  16376. aix3*)
  16377. version_type=linux
  16378. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16379. shlibpath_var=LIBPATH
  16380. # AIX 3 has no versioning support, so we append a major version to the name.
  16381. soname_spec='${libname}${release}${shared_ext}$major'
  16382. ;;
  16383. aix4* | aix5*)
  16384. version_type=linux
  16385. need_lib_prefix=no
  16386. need_version=no
  16387. hardcode_into_libs=yes
  16388. if test "$host_cpu" = ia64; then
  16389. # AIX 5 supports IA64
  16390. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16391. shlibpath_var=LD_LIBRARY_PATH
  16392. else
  16393. # With GCC up to 2.95.x, collect2 would create an import file
  16394. # for dependence libraries. The import file would start with
  16395. # the line `#! .'. This would cause the generated library to
  16396. # depend on `.', always an invalid library. This was fixed in
  16397. # development snapshots of GCC prior to 3.0.
  16398. case $host_os in
  16399. aix4 | aix4.[01] | aix4.[01].*)
  16400. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16401. echo ' yes '
  16402. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16403. :
  16404. else
  16405. can_build_shared=no
  16406. fi
  16407. ;;
  16408. esac
  16409. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16410. # soname into executable. Probably we can add versioning support to
  16411. # collect2, so additional links can be useful in future.
  16412. if test "$aix_use_runtimelinking" = yes; then
  16413. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16414. # instead of lib<name>.a to let people know that these are not
  16415. # typical AIX shared libraries.
  16416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16417. else
  16418. # We preserve .a as extension for shared libraries through AIX4.2
  16419. # and later when we are not doing run time linking.
  16420. library_names_spec='${libname}${release}.a $libname.a'
  16421. soname_spec='${libname}${release}${shared_ext}$major'
  16422. fi
  16423. shlibpath_var=LIBPATH
  16424. fi
  16425. ;;
  16426. amigaos*)
  16427. library_names_spec='$libname.ixlibrary $libname.a'
  16428. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16429. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  16430. ;;
  16431. beos*)
  16432. library_names_spec='${libname}${shared_ext}'
  16433. dynamic_linker="$host_os ld.so"
  16434. shlibpath_var=LIBRARY_PATH
  16435. ;;
  16436. bsdi[45]*)
  16437. version_type=linux
  16438. need_version=no
  16439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16440. soname_spec='${libname}${release}${shared_ext}$major'
  16441. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16442. shlibpath_var=LD_LIBRARY_PATH
  16443. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16444. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16445. # the default ld.so.conf also contains /usr/contrib/lib and
  16446. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16447. # libtool to hard-code these into programs
  16448. ;;
  16449. cygwin* | mingw* | pw32*)
  16450. version_type=windows
  16451. shrext_cmds=".dll"
  16452. need_version=no
  16453. need_lib_prefix=no
  16454. case $GCC,$host_os in
  16455. yes,cygwin* | yes,mingw* | yes,pw32*)
  16456. library_names_spec='$libname.dll.a'
  16457. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16458. postinstall_cmds='base_file=`basename \${file}`~
  16459. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16460. dldir=$destdir/`dirname \$dlpath`~
  16461. test -d \$dldir || mkdir -p \$dldir~
  16462. $install_prog $dir/$dlname \$dldir/$dlname~
  16463. chmod a+x \$dldir/$dlname'
  16464. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16465. dlpath=$dir/\$dldll~
  16466. $rm \$dlpath'
  16467. shlibpath_overrides_runpath=yes
  16468. case $host_os in
  16469. cygwin*)
  16470. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16471. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16472. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16473. ;;
  16474. mingw*)
  16475. # MinGW DLLs use traditional 'lib' prefix
  16476. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16477. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16478. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16479. # It is most probably a Windows format PATH printed by
  16480. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16481. # path with ; separators, and with drive letters. We can handle the
  16482. # drive letters (cygwin fileutils understands them), so leave them,
  16483. # especially as we might pass files found there to a mingw objdump,
  16484. # which wouldn't understand a cygwinified path. Ahh.
  16485. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16486. else
  16487. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16488. fi
  16489. ;;
  16490. pw32*)
  16491. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16492. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16493. ;;
  16494. esac
  16495. ;;
  16496. *)
  16497. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16498. ;;
  16499. esac
  16500. dynamic_linker='Win32 ld.exe'
  16501. # FIXME: first we should search . and the directory the executable is in
  16502. shlibpath_var=PATH
  16503. ;;
  16504. darwin* | rhapsody*)
  16505. dynamic_linker="$host_os dyld"
  16506. version_type=darwin
  16507. need_lib_prefix=no
  16508. need_version=no
  16509. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16510. soname_spec='${libname}${release}${major}$shared_ext'
  16511. shlibpath_overrides_runpath=yes
  16512. shlibpath_var=DYLD_LIBRARY_PATH
  16513. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16514. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16515. if test "$GCC" = yes; then
  16516. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16517. else
  16518. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16519. fi
  16520. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16521. ;;
  16522. dgux*)
  16523. version_type=linux
  16524. need_lib_prefix=no
  16525. need_version=no
  16526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16527. soname_spec='${libname}${release}${shared_ext}$major'
  16528. shlibpath_var=LD_LIBRARY_PATH
  16529. ;;
  16530. freebsd1*)
  16531. dynamic_linker=no
  16532. ;;
  16533. freebsd* | dragonfly*)
  16534. # DragonFly does not have aout. When/if they implement a new
  16535. # versioning mechanism, adjust this.
  16536. if test -x /usr/bin/objformat; then
  16537. objformat=`/usr/bin/objformat`
  16538. else
  16539. case $host_os in
  16540. freebsd[123]*) objformat=aout ;;
  16541. *) objformat=elf ;;
  16542. esac
  16543. fi
  16544. version_type=freebsd-$objformat
  16545. case $version_type in
  16546. freebsd-elf*)
  16547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16548. need_version=no
  16549. need_lib_prefix=no
  16550. ;;
  16551. freebsd-*)
  16552. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16553. need_version=yes
  16554. ;;
  16555. esac
  16556. shlibpath_var=LD_LIBRARY_PATH
  16557. case $host_os in
  16558. freebsd2*)
  16559. shlibpath_overrides_runpath=yes
  16560. ;;
  16561. freebsd3.[01]* | freebsdelf3.[01]*)
  16562. shlibpath_overrides_runpath=yes
  16563. hardcode_into_libs=yes
  16564. ;;
  16565. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16566. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16567. shlibpath_overrides_runpath=no
  16568. hardcode_into_libs=yes
  16569. ;;
  16570. freebsd*) # from 4.6 on
  16571. shlibpath_overrides_runpath=yes
  16572. hardcode_into_libs=yes
  16573. ;;
  16574. esac
  16575. ;;
  16576. gnu*)
  16577. version_type=linux
  16578. need_lib_prefix=no
  16579. need_version=no
  16580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16581. soname_spec='${libname}${release}${shared_ext}$major'
  16582. shlibpath_var=LD_LIBRARY_PATH
  16583. hardcode_into_libs=yes
  16584. ;;
  16585. hpux9* | hpux10* | hpux11*)
  16586. # Give a soname corresponding to the major version so that dld.sl refuses to
  16587. # link against other versions.
  16588. version_type=sunos
  16589. need_lib_prefix=no
  16590. need_version=no
  16591. case $host_cpu in
  16592. ia64*)
  16593. shrext_cmds='.so'
  16594. hardcode_into_libs=yes
  16595. dynamic_linker="$host_os dld.so"
  16596. shlibpath_var=LD_LIBRARY_PATH
  16597. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16599. soname_spec='${libname}${release}${shared_ext}$major'
  16600. if test "X$HPUX_IA64_MODE" = X32; then
  16601. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16602. else
  16603. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16604. fi
  16605. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16606. ;;
  16607. hppa*64*)
  16608. shrext_cmds='.sl'
  16609. hardcode_into_libs=yes
  16610. dynamic_linker="$host_os dld.sl"
  16611. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16612. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16614. soname_spec='${libname}${release}${shared_ext}$major'
  16615. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16616. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16617. ;;
  16618. *)
  16619. shrext_cmds='.sl'
  16620. dynamic_linker="$host_os dld.sl"
  16621. shlibpath_var=SHLIB_PATH
  16622. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16624. soname_spec='${libname}${release}${shared_ext}$major'
  16625. ;;
  16626. esac
  16627. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16628. postinstall_cmds='chmod 555 $lib'
  16629. ;;
  16630. interix3*)
  16631. version_type=linux
  16632. need_lib_prefix=no
  16633. need_version=no
  16634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16635. soname_spec='${libname}${release}${shared_ext}$major'
  16636. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16637. shlibpath_var=LD_LIBRARY_PATH
  16638. shlibpath_overrides_runpath=no
  16639. hardcode_into_libs=yes
  16640. ;;
  16641. irix5* | irix6* | nonstopux*)
  16642. case $host_os in
  16643. nonstopux*) version_type=nonstopux ;;
  16644. *)
  16645. if test "$lt_cv_prog_gnu_ld" = yes; then
  16646. version_type=linux
  16647. else
  16648. version_type=irix
  16649. fi ;;
  16650. esac
  16651. need_lib_prefix=no
  16652. need_version=no
  16653. soname_spec='${libname}${release}${shared_ext}$major'
  16654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16655. case $host_os in
  16656. irix5* | nonstopux*)
  16657. libsuff= shlibsuff=
  16658. ;;
  16659. *)
  16660. case $LD in # libtool.m4 will add one of these switches to LD
  16661. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16662. libsuff= shlibsuff= libmagic=32-bit;;
  16663. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16664. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16665. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16666. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16667. *) libsuff= shlibsuff= libmagic=never-match;;
  16668. esac
  16669. ;;
  16670. esac
  16671. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16672. shlibpath_overrides_runpath=no
  16673. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16674. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16675. hardcode_into_libs=yes
  16676. ;;
  16677. # No shared lib support for Linux oldld, aout, or coff.
  16678. linux*oldld* | linux*aout* | linux*coff*)
  16679. dynamic_linker=no
  16680. ;;
  16681. # This must be Linux ELF.
  16682. linux* | k*bsd*-gnu)
  16683. version_type=linux
  16684. need_lib_prefix=no
  16685. need_version=no
  16686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16687. soname_spec='${libname}${release}${shared_ext}$major'
  16688. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16689. shlibpath_var=LD_LIBRARY_PATH
  16690. shlibpath_overrides_runpath=no
  16691. # This implies no fast_install, which is unacceptable.
  16692. # Some rework will be needed to allow for fast_install
  16693. # before this can be enabled.
  16694. hardcode_into_libs=yes
  16695. # Append ld.so.conf contents to the search path
  16696. if test -f /etc/ld.so.conf; then
  16697. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16698. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16699. fi
  16700. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16701. # powerpc, because MkLinux only supported shared libraries with the
  16702. # GNU dynamic linker. Since this was broken with cross compilers,
  16703. # most powerpc-linux boxes support dynamic linking these days and
  16704. # people can always --disable-shared, the test was removed, and we
  16705. # assume the GNU/Linux dynamic linker is in use.
  16706. dynamic_linker='GNU/Linux ld.so'
  16707. ;;
  16708. netbsdelf*-gnu)
  16709. version_type=linux
  16710. need_lib_prefix=no
  16711. need_version=no
  16712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16713. soname_spec='${libname}${release}${shared_ext}$major'
  16714. shlibpath_var=LD_LIBRARY_PATH
  16715. shlibpath_overrides_runpath=no
  16716. hardcode_into_libs=yes
  16717. dynamic_linker='NetBSD ld.elf_so'
  16718. ;;
  16719. netbsd*)
  16720. version_type=sunos
  16721. need_lib_prefix=no
  16722. need_version=no
  16723. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16725. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16726. dynamic_linker='NetBSD (a.out) ld.so'
  16727. else
  16728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16729. soname_spec='${libname}${release}${shared_ext}$major'
  16730. dynamic_linker='NetBSD ld.elf_so'
  16731. fi
  16732. shlibpath_var=LD_LIBRARY_PATH
  16733. shlibpath_overrides_runpath=yes
  16734. hardcode_into_libs=yes
  16735. ;;
  16736. newsos6)
  16737. version_type=linux
  16738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16739. shlibpath_var=LD_LIBRARY_PATH
  16740. shlibpath_overrides_runpath=yes
  16741. ;;
  16742. nto-qnx*)
  16743. version_type=linux
  16744. need_lib_prefix=no
  16745. need_version=no
  16746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16747. soname_spec='${libname}${release}${shared_ext}$major'
  16748. shlibpath_var=LD_LIBRARY_PATH
  16749. shlibpath_overrides_runpath=yes
  16750. ;;
  16751. openbsd*)
  16752. version_type=sunos
  16753. sys_lib_dlsearch_path_spec="/usr/lib"
  16754. need_lib_prefix=no
  16755. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16756. case $host_os in
  16757. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16758. *) need_version=no ;;
  16759. esac
  16760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16761. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16762. shlibpath_var=LD_LIBRARY_PATH
  16763. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16764. case $host_os in
  16765. openbsd2.[89] | openbsd2.[89].*)
  16766. shlibpath_overrides_runpath=no
  16767. ;;
  16768. *)
  16769. shlibpath_overrides_runpath=yes
  16770. ;;
  16771. esac
  16772. else
  16773. shlibpath_overrides_runpath=yes
  16774. fi
  16775. ;;
  16776. os2*)
  16777. libname_spec='$name'
  16778. shrext_cmds=".dll"
  16779. need_lib_prefix=no
  16780. library_names_spec='$libname${shared_ext} $libname.a'
  16781. dynamic_linker='OS/2 ld.exe'
  16782. shlibpath_var=LIBPATH
  16783. ;;
  16784. osf3* | osf4* | osf5*)
  16785. version_type=osf
  16786. need_lib_prefix=no
  16787. need_version=no
  16788. soname_spec='${libname}${release}${shared_ext}$major'
  16789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16790. shlibpath_var=LD_LIBRARY_PATH
  16791. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16792. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16793. ;;
  16794. solaris*)
  16795. version_type=linux
  16796. need_lib_prefix=no
  16797. need_version=no
  16798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16799. soname_spec='${libname}${release}${shared_ext}$major'
  16800. shlibpath_var=LD_LIBRARY_PATH
  16801. shlibpath_overrides_runpath=yes
  16802. hardcode_into_libs=yes
  16803. # ldd complains unless libraries are executable
  16804. postinstall_cmds='chmod +x $lib'
  16805. ;;
  16806. sunos4*)
  16807. version_type=sunos
  16808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16809. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16810. shlibpath_var=LD_LIBRARY_PATH
  16811. shlibpath_overrides_runpath=yes
  16812. if test "$with_gnu_ld" = yes; then
  16813. need_lib_prefix=no
  16814. fi
  16815. need_version=yes
  16816. ;;
  16817. sysv4 | sysv4.3*)
  16818. version_type=linux
  16819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16820. soname_spec='${libname}${release}${shared_ext}$major'
  16821. shlibpath_var=LD_LIBRARY_PATH
  16822. case $host_vendor in
  16823. sni)
  16824. shlibpath_overrides_runpath=no
  16825. need_lib_prefix=no
  16826. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16827. runpath_var=LD_RUN_PATH
  16828. ;;
  16829. siemens)
  16830. need_lib_prefix=no
  16831. ;;
  16832. motorola)
  16833. need_lib_prefix=no
  16834. need_version=no
  16835. shlibpath_overrides_runpath=no
  16836. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16837. ;;
  16838. esac
  16839. ;;
  16840. sysv4*MP*)
  16841. if test -d /usr/nec ;then
  16842. version_type=linux
  16843. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16844. soname_spec='$libname${shared_ext}.$major'
  16845. shlibpath_var=LD_LIBRARY_PATH
  16846. fi
  16847. ;;
  16848. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16849. version_type=freebsd-elf
  16850. need_lib_prefix=no
  16851. need_version=no
  16852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16853. soname_spec='${libname}${release}${shared_ext}$major'
  16854. shlibpath_var=LD_LIBRARY_PATH
  16855. hardcode_into_libs=yes
  16856. if test "$with_gnu_ld" = yes; then
  16857. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16858. shlibpath_overrides_runpath=no
  16859. else
  16860. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16861. shlibpath_overrides_runpath=yes
  16862. case $host_os in
  16863. sco3.2v5*)
  16864. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16865. ;;
  16866. esac
  16867. fi
  16868. sys_lib_dlsearch_path_spec='/usr/lib'
  16869. ;;
  16870. uts4*)
  16871. version_type=linux
  16872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16873. soname_spec='${libname}${release}${shared_ext}$major'
  16874. shlibpath_var=LD_LIBRARY_PATH
  16875. ;;
  16876. *)
  16877. dynamic_linker=no
  16878. ;;
  16879. esac
  16880. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16881. echo "${ECHO_T}$dynamic_linker" >&6; }
  16882. test "$dynamic_linker" = no && can_build_shared=no
  16883. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16884. if test "$GCC" = yes; then
  16885. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16886. fi
  16887. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16888. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16889. hardcode_action_GCJ=
  16890. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16891. test -n "$runpath_var_GCJ" || \
  16892. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16893. # We can hardcode non-existant directories.
  16894. if test "$hardcode_direct_GCJ" != no &&
  16895. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16896. # have to relink, otherwise we might link with an installed library
  16897. # when we should be linking with a yet-to-be-installed one
  16898. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16899. test "$hardcode_minus_L_GCJ" != no; then
  16900. # Linking always hardcodes the temporary library directory.
  16901. hardcode_action_GCJ=relink
  16902. else
  16903. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16904. hardcode_action_GCJ=immediate
  16905. fi
  16906. else
  16907. # We cannot hardcode anything, or else we can only hardcode existing
  16908. # directories.
  16909. hardcode_action_GCJ=unsupported
  16910. fi
  16911. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16912. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16913. if test "$hardcode_action_GCJ" = relink; then
  16914. # Fast installation is not supported
  16915. enable_fast_install=no
  16916. elif test "$shlibpath_overrides_runpath" = yes ||
  16917. test "$enable_shared" = no; then
  16918. # Fast installation is not necessary
  16919. enable_fast_install=needless
  16920. fi
  16921. # The else clause should only fire when bootstrapping the
  16922. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16923. # with your package, and you will get complaints that there are
  16924. # no rules to generate ltmain.sh.
  16925. if test -f "$ltmain"; then
  16926. # See if we are running on zsh, and set the options which allow our commands through
  16927. # without removal of \ escapes.
  16928. if test -n "${ZSH_VERSION+set}" ; then
  16929. setopt NO_GLOB_SUBST
  16930. fi
  16931. # Now quote all the things that may contain metacharacters while being
  16932. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16933. # variables and quote the copies for generation of the libtool script.
  16934. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16935. SED SHELL STRIP \
  16936. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16937. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16938. deplibs_check_method reload_flag reload_cmds need_locks \
  16939. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16940. lt_cv_sys_global_symbol_to_c_name_address \
  16941. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16942. old_postinstall_cmds old_postuninstall_cmds \
  16943. compiler_GCJ \
  16944. CC_GCJ \
  16945. LD_GCJ \
  16946. lt_prog_compiler_wl_GCJ \
  16947. lt_prog_compiler_pic_GCJ \
  16948. lt_prog_compiler_static_GCJ \
  16949. lt_prog_compiler_no_builtin_flag_GCJ \
  16950. export_dynamic_flag_spec_GCJ \
  16951. thread_safe_flag_spec_GCJ \
  16952. whole_archive_flag_spec_GCJ \
  16953. enable_shared_with_static_runtimes_GCJ \
  16954. old_archive_cmds_GCJ \
  16955. old_archive_from_new_cmds_GCJ \
  16956. predep_objects_GCJ \
  16957. postdep_objects_GCJ \
  16958. predeps_GCJ \
  16959. postdeps_GCJ \
  16960. compiler_lib_search_path_GCJ \
  16961. archive_cmds_GCJ \
  16962. archive_expsym_cmds_GCJ \
  16963. postinstall_cmds_GCJ \
  16964. postuninstall_cmds_GCJ \
  16965. old_archive_from_expsyms_cmds_GCJ \
  16966. allow_undefined_flag_GCJ \
  16967. no_undefined_flag_GCJ \
  16968. export_symbols_cmds_GCJ \
  16969. hardcode_libdir_flag_spec_GCJ \
  16970. hardcode_libdir_flag_spec_ld_GCJ \
  16971. hardcode_libdir_separator_GCJ \
  16972. hardcode_automatic_GCJ \
  16973. module_cmds_GCJ \
  16974. module_expsym_cmds_GCJ \
  16975. lt_cv_prog_compiler_c_o_GCJ \
  16976. exclude_expsyms_GCJ \
  16977. include_expsyms_GCJ; do
  16978. case $var in
  16979. old_archive_cmds_GCJ | \
  16980. old_archive_from_new_cmds_GCJ | \
  16981. archive_cmds_GCJ | \
  16982. archive_expsym_cmds_GCJ | \
  16983. module_cmds_GCJ | \
  16984. module_expsym_cmds_GCJ | \
  16985. old_archive_from_expsyms_cmds_GCJ | \
  16986. export_symbols_cmds_GCJ | \
  16987. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16988. postinstall_cmds | postuninstall_cmds | \
  16989. old_postinstall_cmds | old_postuninstall_cmds | \
  16990. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16991. # Double-quote double-evaled strings.
  16992. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16993. ;;
  16994. *)
  16995. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16996. ;;
  16997. esac
  16998. done
  16999. case $lt_echo in
  17000. *'\$0 --fallback-echo"')
  17001. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17002. ;;
  17003. esac
  17004. cfgfile="$ofile"
  17005. cat <<__EOF__ >> "$cfgfile"
  17006. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17007. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17008. # Shell to use when invoking shell scripts.
  17009. SHELL=$lt_SHELL
  17010. # Whether or not to build shared libraries.
  17011. build_libtool_libs=$enable_shared
  17012. # Whether or not to build static libraries.
  17013. build_old_libs=$enable_static
  17014. # Whether or not to add -lc for building shared libraries.
  17015. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17016. # Whether or not to disallow shared libs when runtime libs are static
  17017. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17018. # Whether or not to optimize for fast installation.
  17019. fast_install=$enable_fast_install
  17020. # The host system.
  17021. host_alias=$host_alias
  17022. host=$host
  17023. host_os=$host_os
  17024. # The build system.
  17025. build_alias=$build_alias
  17026. build=$build
  17027. build_os=$build_os
  17028. # An echo program that does not interpret backslashes.
  17029. echo=$lt_echo
  17030. # The archiver.
  17031. AR=$lt_AR
  17032. AR_FLAGS=$lt_AR_FLAGS
  17033. # A C compiler.
  17034. LTCC=$lt_LTCC
  17035. # LTCC compiler flags.
  17036. LTCFLAGS=$lt_LTCFLAGS
  17037. # A language-specific compiler.
  17038. CC=$lt_compiler_GCJ
  17039. # Is the compiler the GNU C compiler?
  17040. with_gcc=$GCC_GCJ
  17041. # An ERE matcher.
  17042. EGREP=$lt_EGREP
  17043. # The linker used to build libraries.
  17044. LD=$lt_LD_GCJ
  17045. # Whether we need hard or soft links.
  17046. LN_S=$lt_LN_S
  17047. # A BSD-compatible nm program.
  17048. NM=$lt_NM
  17049. # A symbol stripping program
  17050. STRIP=$lt_STRIP
  17051. # Used to examine libraries when file_magic_cmd begins "file"
  17052. MAGIC_CMD=$MAGIC_CMD
  17053. # Used on cygwin: DLL creation program.
  17054. DLLTOOL="$DLLTOOL"
  17055. # Used on cygwin: object dumper.
  17056. OBJDUMP="$OBJDUMP"
  17057. # Used on cygwin: assembler.
  17058. AS="$AS"
  17059. # The name of the directory that contains temporary libtool files.
  17060. objdir=$objdir
  17061. # How to create reloadable object files.
  17062. reload_flag=$lt_reload_flag
  17063. reload_cmds=$lt_reload_cmds
  17064. # How to pass a linker flag through the compiler.
  17065. wl=$lt_lt_prog_compiler_wl_GCJ
  17066. # Object file suffix (normally "o").
  17067. objext="$ac_objext"
  17068. # Old archive suffix (normally "a").
  17069. libext="$libext"
  17070. # Shared library suffix (normally ".so").
  17071. shrext_cmds='$shrext_cmds'
  17072. # Executable file suffix (normally "").
  17073. exeext="$exeext"
  17074. # Additional compiler flags for building library objects.
  17075. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17076. pic_mode=$pic_mode
  17077. # What is the maximum length of a command?
  17078. max_cmd_len=$lt_cv_sys_max_cmd_len
  17079. # Does compiler simultaneously support -c and -o options?
  17080. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17081. # Must we lock files when doing compilation?
  17082. need_locks=$lt_need_locks
  17083. # Do we need the lib prefix for modules?
  17084. need_lib_prefix=$need_lib_prefix
  17085. # Do we need a version for libraries?
  17086. need_version=$need_version
  17087. # Whether dlopen is supported.
  17088. dlopen_support=$enable_dlopen
  17089. # Whether dlopen of programs is supported.
  17090. dlopen_self=$enable_dlopen_self
  17091. # Whether dlopen of statically linked programs is supported.
  17092. dlopen_self_static=$enable_dlopen_self_static
  17093. # Compiler flag to prevent dynamic linking.
  17094. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17095. # Compiler flag to turn off builtin functions.
  17096. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17097. # Compiler flag to allow reflexive dlopens.
  17098. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17099. # Compiler flag to generate shared objects directly from archives.
  17100. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17101. # Compiler flag to generate thread-safe objects.
  17102. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17103. # Library versioning type.
  17104. version_type=$version_type
  17105. # Format of library name prefix.
  17106. libname_spec=$lt_libname_spec
  17107. # List of archive names. First name is the real one, the rest are links.
  17108. # The last name is the one that the linker finds with -lNAME.
  17109. library_names_spec=$lt_library_names_spec
  17110. # The coded name of the library, if different from the real name.
  17111. soname_spec=$lt_soname_spec
  17112. # Commands used to build and install an old-style archive.
  17113. RANLIB=$lt_RANLIB
  17114. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17115. old_postinstall_cmds=$lt_old_postinstall_cmds
  17116. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17117. # Create an old-style archive from a shared archive.
  17118. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17119. # Create a temporary old-style archive to link instead of a shared archive.
  17120. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17121. # Commands used to build and install a shared archive.
  17122. archive_cmds=$lt_archive_cmds_GCJ
  17123. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17124. postinstall_cmds=$lt_postinstall_cmds
  17125. postuninstall_cmds=$lt_postuninstall_cmds
  17126. # Commands used to build a loadable module (assumed same as above if empty)
  17127. module_cmds=$lt_module_cmds_GCJ
  17128. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17129. # Commands to strip libraries.
  17130. old_striplib=$lt_old_striplib
  17131. striplib=$lt_striplib
  17132. # Dependencies to place before the objects being linked to create a
  17133. # shared library.
  17134. predep_objects=$lt_predep_objects_GCJ
  17135. # Dependencies to place after the objects being linked to create a
  17136. # shared library.
  17137. postdep_objects=$lt_postdep_objects_GCJ
  17138. # Dependencies to place before the objects being linked to create a
  17139. # shared library.
  17140. predeps=$lt_predeps_GCJ
  17141. # Dependencies to place after the objects being linked to create a
  17142. # shared library.
  17143. postdeps=$lt_postdeps_GCJ
  17144. # The library search path used internally by the compiler when linking
  17145. # a shared library.
  17146. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17147. # Method to check whether dependent libraries are shared objects.
  17148. deplibs_check_method=$lt_deplibs_check_method
  17149. # Command to use when deplibs_check_method == file_magic.
  17150. file_magic_cmd=$lt_file_magic_cmd
  17151. # Flag that allows shared libraries with undefined symbols to be built.
  17152. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17153. # Flag that forces no undefined symbols.
  17154. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17155. # Commands used to finish a libtool library installation in a directory.
  17156. finish_cmds=$lt_finish_cmds
  17157. # Same as above, but a single script fragment to be evaled but not shown.
  17158. finish_eval=$lt_finish_eval
  17159. # Take the output of nm and produce a listing of raw symbols and C names.
  17160. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17161. # Transform the output of nm in a proper C declaration
  17162. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17163. # Transform the output of nm in a C name address pair
  17164. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17165. # This is the shared library runtime path variable.
  17166. runpath_var=$runpath_var
  17167. # This is the shared library path variable.
  17168. shlibpath_var=$shlibpath_var
  17169. # Is shlibpath searched before the hard-coded library search path?
  17170. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17171. # How to hardcode a shared library path into an executable.
  17172. hardcode_action=$hardcode_action_GCJ
  17173. # Whether we should hardcode library paths into libraries.
  17174. hardcode_into_libs=$hardcode_into_libs
  17175. # Flag to hardcode \$libdir into a binary during linking.
  17176. # This must work even if \$libdir does not exist.
  17177. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17178. # If ld is used when linking, flag to hardcode \$libdir into
  17179. # a binary during linking. This must work even if \$libdir does
  17180. # not exist.
  17181. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17182. # Whether we need a single -rpath flag with a separated argument.
  17183. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17184. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17185. # resulting binary.
  17186. hardcode_direct=$hardcode_direct_GCJ
  17187. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17188. # resulting binary.
  17189. hardcode_minus_L=$hardcode_minus_L_GCJ
  17190. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17191. # the resulting binary.
  17192. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17193. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17194. # and all subsequent libraries and executables linked against it.
  17195. hardcode_automatic=$hardcode_automatic_GCJ
  17196. # Variables whose values should be saved in libtool wrapper scripts and
  17197. # restored at relink time.
  17198. variables_saved_for_relink="$variables_saved_for_relink"
  17199. # Whether libtool must link a program against all its dependency libraries.
  17200. link_all_deplibs=$link_all_deplibs_GCJ
  17201. # Compile-time system search path for libraries
  17202. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17203. # Run-time system search path for libraries
  17204. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17205. # Fix the shell variable \$srcfile for the compiler.
  17206. fix_srcfile_path="$fix_srcfile_path_GCJ"
  17207. # Set to yes if exported symbols are required.
  17208. always_export_symbols=$always_export_symbols_GCJ
  17209. # The commands to list exported symbols.
  17210. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17211. # The commands to extract the exported symbol list from a shared archive.
  17212. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17213. # Symbols that should not be listed in the preloaded symbols.
  17214. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17215. # Symbols that must always be exported.
  17216. include_expsyms=$lt_include_expsyms_GCJ
  17217. # ### END LIBTOOL TAG CONFIG: $tagname
  17218. __EOF__
  17219. else
  17220. # If there is no Makefile yet, we rely on a make rule to execute
  17221. # `config.status --recheck' to rerun these tests and create the
  17222. # libtool script then.
  17223. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17224. if test -f "$ltmain_in"; then
  17225. test -f Makefile && make "$ltmain"
  17226. fi
  17227. fi
  17228. ac_ext=c
  17229. ac_cpp='$CPP $CPPFLAGS'
  17230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17233. CC="$lt_save_CC"
  17234. else
  17235. tagname=""
  17236. fi
  17237. ;;
  17238. RC)
  17239. # Source file extension for RC test sources.
  17240. ac_ext=rc
  17241. # Object file extension for compiled RC test sources.
  17242. objext=o
  17243. objext_RC=$objext
  17244. # Code to be used in simple compile tests
  17245. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  17246. # Code to be used in simple link tests
  17247. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17248. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17249. # If no C compiler was specified, use CC.
  17250. LTCC=${LTCC-"$CC"}
  17251. # If no C compiler flags were specified, use CFLAGS.
  17252. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17253. # Allow CC to be a program name with arguments.
  17254. compiler=$CC
  17255. # save warnings/boilerplate of simple test code
  17256. ac_outfile=conftest.$ac_objext
  17257. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  17258. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17259. _lt_compiler_boilerplate=`cat conftest.err`
  17260. $rm conftest*
  17261. ac_outfile=conftest.$ac_objext
  17262. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  17263. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17264. _lt_linker_boilerplate=`cat conftest.err`
  17265. $rm conftest*
  17266. # Allow CC to be a program name with arguments.
  17267. lt_save_CC="$CC"
  17268. CC=${RC-"windres"}
  17269. compiler=$CC
  17270. compiler_RC=$CC
  17271. for cc_temp in $compiler""; do
  17272. case $cc_temp in
  17273. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17274. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17275. \-*) ;;
  17276. *) break;;
  17277. esac
  17278. done
  17279. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17280. lt_cv_prog_compiler_c_o_RC=yes
  17281. # The else clause should only fire when bootstrapping the
  17282. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17283. # with your package, and you will get complaints that there are
  17284. # no rules to generate ltmain.sh.
  17285. if test -f "$ltmain"; then
  17286. # See if we are running on zsh, and set the options which allow our commands through
  17287. # without removal of \ escapes.
  17288. if test -n "${ZSH_VERSION+set}" ; then
  17289. setopt NO_GLOB_SUBST
  17290. fi
  17291. # Now quote all the things that may contain metacharacters while being
  17292. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17293. # variables and quote the copies for generation of the libtool script.
  17294. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17295. SED SHELL STRIP \
  17296. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17297. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17298. deplibs_check_method reload_flag reload_cmds need_locks \
  17299. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17300. lt_cv_sys_global_symbol_to_c_name_address \
  17301. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17302. old_postinstall_cmds old_postuninstall_cmds \
  17303. compiler_RC \
  17304. CC_RC \
  17305. LD_RC \
  17306. lt_prog_compiler_wl_RC \
  17307. lt_prog_compiler_pic_RC \
  17308. lt_prog_compiler_static_RC \
  17309. lt_prog_compiler_no_builtin_flag_RC \
  17310. export_dynamic_flag_spec_RC \
  17311. thread_safe_flag_spec_RC \
  17312. whole_archive_flag_spec_RC \
  17313. enable_shared_with_static_runtimes_RC \
  17314. old_archive_cmds_RC \
  17315. old_archive_from_new_cmds_RC \
  17316. predep_objects_RC \
  17317. postdep_objects_RC \
  17318. predeps_RC \
  17319. postdeps_RC \
  17320. compiler_lib_search_path_RC \
  17321. archive_cmds_RC \
  17322. archive_expsym_cmds_RC \
  17323. postinstall_cmds_RC \
  17324. postuninstall_cmds_RC \
  17325. old_archive_from_expsyms_cmds_RC \
  17326. allow_undefined_flag_RC \
  17327. no_undefined_flag_RC \
  17328. export_symbols_cmds_RC \
  17329. hardcode_libdir_flag_spec_RC \
  17330. hardcode_libdir_flag_spec_ld_RC \
  17331. hardcode_libdir_separator_RC \
  17332. hardcode_automatic_RC \
  17333. module_cmds_RC \
  17334. module_expsym_cmds_RC \
  17335. lt_cv_prog_compiler_c_o_RC \
  17336. exclude_expsyms_RC \
  17337. include_expsyms_RC; do
  17338. case $var in
  17339. old_archive_cmds_RC | \
  17340. old_archive_from_new_cmds_RC | \
  17341. archive_cmds_RC | \
  17342. archive_expsym_cmds_RC | \
  17343. module_cmds_RC | \
  17344. module_expsym_cmds_RC | \
  17345. old_archive_from_expsyms_cmds_RC | \
  17346. export_symbols_cmds_RC | \
  17347. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17348. postinstall_cmds | postuninstall_cmds | \
  17349. old_postinstall_cmds | old_postuninstall_cmds | \
  17350. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17351. # Double-quote double-evaled strings.
  17352. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17353. ;;
  17354. *)
  17355. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17356. ;;
  17357. esac
  17358. done
  17359. case $lt_echo in
  17360. *'\$0 --fallback-echo"')
  17361. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17362. ;;
  17363. esac
  17364. cfgfile="$ofile"
  17365. cat <<__EOF__ >> "$cfgfile"
  17366. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17367. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17368. # Shell to use when invoking shell scripts.
  17369. SHELL=$lt_SHELL
  17370. # Whether or not to build shared libraries.
  17371. build_libtool_libs=$enable_shared
  17372. # Whether or not to build static libraries.
  17373. build_old_libs=$enable_static
  17374. # Whether or not to add -lc for building shared libraries.
  17375. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17376. # Whether or not to disallow shared libs when runtime libs are static
  17377. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17378. # Whether or not to optimize for fast installation.
  17379. fast_install=$enable_fast_install
  17380. # The host system.
  17381. host_alias=$host_alias
  17382. host=$host
  17383. host_os=$host_os
  17384. # The build system.
  17385. build_alias=$build_alias
  17386. build=$build
  17387. build_os=$build_os
  17388. # An echo program that does not interpret backslashes.
  17389. echo=$lt_echo
  17390. # The archiver.
  17391. AR=$lt_AR
  17392. AR_FLAGS=$lt_AR_FLAGS
  17393. # A C compiler.
  17394. LTCC=$lt_LTCC
  17395. # LTCC compiler flags.
  17396. LTCFLAGS=$lt_LTCFLAGS
  17397. # A language-specific compiler.
  17398. CC=$lt_compiler_RC
  17399. # Is the compiler the GNU C compiler?
  17400. with_gcc=$GCC_RC
  17401. # An ERE matcher.
  17402. EGREP=$lt_EGREP
  17403. # The linker used to build libraries.
  17404. LD=$lt_LD_RC
  17405. # Whether we need hard or soft links.
  17406. LN_S=$lt_LN_S
  17407. # A BSD-compatible nm program.
  17408. NM=$lt_NM
  17409. # A symbol stripping program
  17410. STRIP=$lt_STRIP
  17411. # Used to examine libraries when file_magic_cmd begins "file"
  17412. MAGIC_CMD=$MAGIC_CMD
  17413. # Used on cygwin: DLL creation program.
  17414. DLLTOOL="$DLLTOOL"
  17415. # Used on cygwin: object dumper.
  17416. OBJDUMP="$OBJDUMP"
  17417. # Used on cygwin: assembler.
  17418. AS="$AS"
  17419. # The name of the directory that contains temporary libtool files.
  17420. objdir=$objdir
  17421. # How to create reloadable object files.
  17422. reload_flag=$lt_reload_flag
  17423. reload_cmds=$lt_reload_cmds
  17424. # How to pass a linker flag through the compiler.
  17425. wl=$lt_lt_prog_compiler_wl_RC
  17426. # Object file suffix (normally "o").
  17427. objext="$ac_objext"
  17428. # Old archive suffix (normally "a").
  17429. libext="$libext"
  17430. # Shared library suffix (normally ".so").
  17431. shrext_cmds='$shrext_cmds'
  17432. # Executable file suffix (normally "").
  17433. exeext="$exeext"
  17434. # Additional compiler flags for building library objects.
  17435. pic_flag=$lt_lt_prog_compiler_pic_RC
  17436. pic_mode=$pic_mode
  17437. # What is the maximum length of a command?
  17438. max_cmd_len=$lt_cv_sys_max_cmd_len
  17439. # Does compiler simultaneously support -c and -o options?
  17440. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17441. # Must we lock files when doing compilation?
  17442. need_locks=$lt_need_locks
  17443. # Do we need the lib prefix for modules?
  17444. need_lib_prefix=$need_lib_prefix
  17445. # Do we need a version for libraries?
  17446. need_version=$need_version
  17447. # Whether dlopen is supported.
  17448. dlopen_support=$enable_dlopen
  17449. # Whether dlopen of programs is supported.
  17450. dlopen_self=$enable_dlopen_self
  17451. # Whether dlopen of statically linked programs is supported.
  17452. dlopen_self_static=$enable_dlopen_self_static
  17453. # Compiler flag to prevent dynamic linking.
  17454. link_static_flag=$lt_lt_prog_compiler_static_RC
  17455. # Compiler flag to turn off builtin functions.
  17456. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17457. # Compiler flag to allow reflexive dlopens.
  17458. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17459. # Compiler flag to generate shared objects directly from archives.
  17460. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17461. # Compiler flag to generate thread-safe objects.
  17462. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17463. # Library versioning type.
  17464. version_type=$version_type
  17465. # Format of library name prefix.
  17466. libname_spec=$lt_libname_spec
  17467. # List of archive names. First name is the real one, the rest are links.
  17468. # The last name is the one that the linker finds with -lNAME.
  17469. library_names_spec=$lt_library_names_spec
  17470. # The coded name of the library, if different from the real name.
  17471. soname_spec=$lt_soname_spec
  17472. # Commands used to build and install an old-style archive.
  17473. RANLIB=$lt_RANLIB
  17474. old_archive_cmds=$lt_old_archive_cmds_RC
  17475. old_postinstall_cmds=$lt_old_postinstall_cmds
  17476. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17477. # Create an old-style archive from a shared archive.
  17478. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17479. # Create a temporary old-style archive to link instead of a shared archive.
  17480. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17481. # Commands used to build and install a shared archive.
  17482. archive_cmds=$lt_archive_cmds_RC
  17483. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17484. postinstall_cmds=$lt_postinstall_cmds
  17485. postuninstall_cmds=$lt_postuninstall_cmds
  17486. # Commands used to build a loadable module (assumed same as above if empty)
  17487. module_cmds=$lt_module_cmds_RC
  17488. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17489. # Commands to strip libraries.
  17490. old_striplib=$lt_old_striplib
  17491. striplib=$lt_striplib
  17492. # Dependencies to place before the objects being linked to create a
  17493. # shared library.
  17494. predep_objects=$lt_predep_objects_RC
  17495. # Dependencies to place after the objects being linked to create a
  17496. # shared library.
  17497. postdep_objects=$lt_postdep_objects_RC
  17498. # Dependencies to place before the objects being linked to create a
  17499. # shared library.
  17500. predeps=$lt_predeps_RC
  17501. # Dependencies to place after the objects being linked to create a
  17502. # shared library.
  17503. postdeps=$lt_postdeps_RC
  17504. # The library search path used internally by the compiler when linking
  17505. # a shared library.
  17506. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17507. # Method to check whether dependent libraries are shared objects.
  17508. deplibs_check_method=$lt_deplibs_check_method
  17509. # Command to use when deplibs_check_method == file_magic.
  17510. file_magic_cmd=$lt_file_magic_cmd
  17511. # Flag that allows shared libraries with undefined symbols to be built.
  17512. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17513. # Flag that forces no undefined symbols.
  17514. no_undefined_flag=$lt_no_undefined_flag_RC
  17515. # Commands used to finish a libtool library installation in a directory.
  17516. finish_cmds=$lt_finish_cmds
  17517. # Same as above, but a single script fragment to be evaled but not shown.
  17518. finish_eval=$lt_finish_eval
  17519. # Take the output of nm and produce a listing of raw symbols and C names.
  17520. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17521. # Transform the output of nm in a proper C declaration
  17522. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17523. # Transform the output of nm in a C name address pair
  17524. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17525. # This is the shared library runtime path variable.
  17526. runpath_var=$runpath_var
  17527. # This is the shared library path variable.
  17528. shlibpath_var=$shlibpath_var
  17529. # Is shlibpath searched before the hard-coded library search path?
  17530. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17531. # How to hardcode a shared library path into an executable.
  17532. hardcode_action=$hardcode_action_RC
  17533. # Whether we should hardcode library paths into libraries.
  17534. hardcode_into_libs=$hardcode_into_libs
  17535. # Flag to hardcode \$libdir into a binary during linking.
  17536. # This must work even if \$libdir does not exist.
  17537. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17538. # If ld is used when linking, flag to hardcode \$libdir into
  17539. # a binary during linking. This must work even if \$libdir does
  17540. # not exist.
  17541. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17542. # Whether we need a single -rpath flag with a separated argument.
  17543. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17544. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17545. # resulting binary.
  17546. hardcode_direct=$hardcode_direct_RC
  17547. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17548. # resulting binary.
  17549. hardcode_minus_L=$hardcode_minus_L_RC
  17550. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17551. # the resulting binary.
  17552. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17553. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17554. # and all subsequent libraries and executables linked against it.
  17555. hardcode_automatic=$hardcode_automatic_RC
  17556. # Variables whose values should be saved in libtool wrapper scripts and
  17557. # restored at relink time.
  17558. variables_saved_for_relink="$variables_saved_for_relink"
  17559. # Whether libtool must link a program against all its dependency libraries.
  17560. link_all_deplibs=$link_all_deplibs_RC
  17561. # Compile-time system search path for libraries
  17562. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17563. # Run-time system search path for libraries
  17564. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17565. # Fix the shell variable \$srcfile for the compiler.
  17566. fix_srcfile_path="$fix_srcfile_path_RC"
  17567. # Set to yes if exported symbols are required.
  17568. always_export_symbols=$always_export_symbols_RC
  17569. # The commands to list exported symbols.
  17570. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17571. # The commands to extract the exported symbol list from a shared archive.
  17572. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17573. # Symbols that should not be listed in the preloaded symbols.
  17574. exclude_expsyms=$lt_exclude_expsyms_RC
  17575. # Symbols that must always be exported.
  17576. include_expsyms=$lt_include_expsyms_RC
  17577. # ### END LIBTOOL TAG CONFIG: $tagname
  17578. __EOF__
  17579. else
  17580. # If there is no Makefile yet, we rely on a make rule to execute
  17581. # `config.status --recheck' to rerun these tests and create the
  17582. # libtool script then.
  17583. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17584. if test -f "$ltmain_in"; then
  17585. test -f Makefile && make "$ltmain"
  17586. fi
  17587. fi
  17588. ac_ext=c
  17589. ac_cpp='$CPP $CPPFLAGS'
  17590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17593. CC="$lt_save_CC"
  17594. ;;
  17595. *)
  17596. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17597. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17598. { (exit 1); exit 1; }; }
  17599. ;;
  17600. esac
  17601. # Append the new tag name to the list of available tags.
  17602. if test -n "$tagname" ; then
  17603. available_tags="$available_tags $tagname"
  17604. fi
  17605. fi
  17606. done
  17607. IFS="$lt_save_ifs"
  17608. # Now substitute the updated list of available tags.
  17609. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17610. mv "${ofile}T" "$ofile"
  17611. chmod +x "$ofile"
  17612. else
  17613. rm -f "${ofile}T"
  17614. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17615. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17616. { (exit 1); exit 1; }; }
  17617. fi
  17618. fi
  17619. # This can be used to rebuild libtool when needed
  17620. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17621. # Always use our own libtool.
  17622. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17623. # Prevent multiple expansion
  17624. csoap_major=`echo $VERSION | $AWK -F. '{print $1}'`
  17625. csoap_minor=`echo $VERSION | $AWK -F. '{print $2}'`
  17626. csoap_patch=`echo $VERSION | $AWK -F. '{print $3}'`
  17627. csoap_release="$csoap_major.$csoap_minor"
  17628. csoap_version=`expr $csoap_major + $csoap_minor`":$csoap_patch:$csoap_minor"
  17629. nanohttp_release=$csoap_release
  17630. nanohttp_version=$csoap_version
  17631. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17632. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17633. if test "${ac_cv_header_stdc+set}" = set; then
  17634. echo $ECHO_N "(cached) $ECHO_C" >&6
  17635. else
  17636. cat >conftest.$ac_ext <<_ACEOF
  17637. /* confdefs.h. */
  17638. _ACEOF
  17639. cat confdefs.h >>conftest.$ac_ext
  17640. cat >>conftest.$ac_ext <<_ACEOF
  17641. /* end confdefs.h. */
  17642. #include <stdlib.h>
  17643. #include <stdarg.h>
  17644. #include <string.h>
  17645. #include <float.h>
  17646. int
  17647. main ()
  17648. {
  17649. ;
  17650. return 0;
  17651. }
  17652. _ACEOF
  17653. rm -f conftest.$ac_objext
  17654. if { (ac_try="$ac_compile"
  17655. case "(($ac_try" in
  17656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17657. *) ac_try_echo=$ac_try;;
  17658. esac
  17659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17660. (eval "$ac_compile") 2>conftest.er1
  17661. ac_status=$?
  17662. grep -v '^ *+' conftest.er1 >conftest.err
  17663. rm -f conftest.er1
  17664. cat conftest.err >&5
  17665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17666. (exit $ac_status); } &&
  17667. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17668. { (case "(($ac_try" in
  17669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17670. *) ac_try_echo=$ac_try;;
  17671. esac
  17672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17673. (eval "$ac_try") 2>&5
  17674. ac_status=$?
  17675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17676. (exit $ac_status); }; } &&
  17677. { ac_try='test -s conftest.$ac_objext'
  17678. { (case "(($ac_try" in
  17679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17680. *) ac_try_echo=$ac_try;;
  17681. esac
  17682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17683. (eval "$ac_try") 2>&5
  17684. ac_status=$?
  17685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17686. (exit $ac_status); }; }; then
  17687. ac_cv_header_stdc=yes
  17688. else
  17689. echo "$as_me: failed program was:" >&5
  17690. sed 's/^/| /' conftest.$ac_ext >&5
  17691. ac_cv_header_stdc=no
  17692. fi
  17693. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17694. if test $ac_cv_header_stdc = yes; then
  17695. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17696. cat >conftest.$ac_ext <<_ACEOF
  17697. /* confdefs.h. */
  17698. _ACEOF
  17699. cat confdefs.h >>conftest.$ac_ext
  17700. cat >>conftest.$ac_ext <<_ACEOF
  17701. /* end confdefs.h. */
  17702. #include <string.h>
  17703. _ACEOF
  17704. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17705. $EGREP "memchr" >/dev/null 2>&1; then
  17706. :
  17707. else
  17708. ac_cv_header_stdc=no
  17709. fi
  17710. rm -f conftest*
  17711. fi
  17712. if test $ac_cv_header_stdc = yes; then
  17713. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17714. cat >conftest.$ac_ext <<_ACEOF
  17715. /* confdefs.h. */
  17716. _ACEOF
  17717. cat confdefs.h >>conftest.$ac_ext
  17718. cat >>conftest.$ac_ext <<_ACEOF
  17719. /* end confdefs.h. */
  17720. #include <stdlib.h>
  17721. _ACEOF
  17722. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17723. $EGREP "free" >/dev/null 2>&1; then
  17724. :
  17725. else
  17726. ac_cv_header_stdc=no
  17727. fi
  17728. rm -f conftest*
  17729. fi
  17730. if test $ac_cv_header_stdc = yes; then
  17731. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17732. if test "$cross_compiling" = yes; then
  17733. :
  17734. else
  17735. cat >conftest.$ac_ext <<_ACEOF
  17736. /* confdefs.h. */
  17737. _ACEOF
  17738. cat confdefs.h >>conftest.$ac_ext
  17739. cat >>conftest.$ac_ext <<_ACEOF
  17740. /* end confdefs.h. */
  17741. #include <ctype.h>
  17742. #include <stdlib.h>
  17743. #if ((' ' & 0x0FF) == 0x020)
  17744. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17745. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17746. #else
  17747. # define ISLOWER(c) \
  17748. (('a' <= (c) && (c) <= 'i') \
  17749. || ('j' <= (c) && (c) <= 'r') \
  17750. || ('s' <= (c) && (c) <= 'z'))
  17751. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17752. #endif
  17753. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17754. int
  17755. main ()
  17756. {
  17757. int i;
  17758. for (i = 0; i < 256; i++)
  17759. if (XOR (islower (i), ISLOWER (i))
  17760. || toupper (i) != TOUPPER (i))
  17761. return 2;
  17762. return 0;
  17763. }
  17764. _ACEOF
  17765. rm -f conftest$ac_exeext
  17766. if { (ac_try="$ac_link"
  17767. case "(($ac_try" in
  17768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17769. *) ac_try_echo=$ac_try;;
  17770. esac
  17771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17772. (eval "$ac_link") 2>&5
  17773. ac_status=$?
  17774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17775. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17776. { (case "(($ac_try" in
  17777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17778. *) ac_try_echo=$ac_try;;
  17779. esac
  17780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17781. (eval "$ac_try") 2>&5
  17782. ac_status=$?
  17783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17784. (exit $ac_status); }; }; then
  17785. :
  17786. else
  17787. echo "$as_me: program exited with status $ac_status" >&5
  17788. echo "$as_me: failed program was:" >&5
  17789. sed 's/^/| /' conftest.$ac_ext >&5
  17790. ( exit $ac_status )
  17791. ac_cv_header_stdc=no
  17792. fi
  17793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17794. fi
  17795. fi
  17796. fi
  17797. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17798. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  17799. if test $ac_cv_header_stdc = yes; then
  17800. cat >>confdefs.h <<\_ACEOF
  17801. @%:@define STDC_HEADERS 1
  17802. _ACEOF
  17803. fi
  17804. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17805. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  17806. if test "${ac_cv_header_time+set}" = set; then
  17807. echo $ECHO_N "(cached) $ECHO_C" >&6
  17808. else
  17809. cat >conftest.$ac_ext <<_ACEOF
  17810. /* confdefs.h. */
  17811. _ACEOF
  17812. cat confdefs.h >>conftest.$ac_ext
  17813. cat >>conftest.$ac_ext <<_ACEOF
  17814. /* end confdefs.h. */
  17815. #include <sys/types.h>
  17816. #include <sys/time.h>
  17817. #include <time.h>
  17818. int
  17819. main ()
  17820. {
  17821. if ((struct tm *) 0)
  17822. return 0;
  17823. ;
  17824. return 0;
  17825. }
  17826. _ACEOF
  17827. rm -f conftest.$ac_objext
  17828. if { (ac_try="$ac_compile"
  17829. case "(($ac_try" in
  17830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17831. *) ac_try_echo=$ac_try;;
  17832. esac
  17833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17834. (eval "$ac_compile") 2>conftest.er1
  17835. ac_status=$?
  17836. grep -v '^ *+' conftest.er1 >conftest.err
  17837. rm -f conftest.er1
  17838. cat conftest.err >&5
  17839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17840. (exit $ac_status); } &&
  17841. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17842. { (case "(($ac_try" in
  17843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17844. *) ac_try_echo=$ac_try;;
  17845. esac
  17846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17847. (eval "$ac_try") 2>&5
  17848. ac_status=$?
  17849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17850. (exit $ac_status); }; } &&
  17851. { ac_try='test -s conftest.$ac_objext'
  17852. { (case "(($ac_try" in
  17853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17854. *) ac_try_echo=$ac_try;;
  17855. esac
  17856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17857. (eval "$ac_try") 2>&5
  17858. ac_status=$?
  17859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17860. (exit $ac_status); }; }; then
  17861. ac_cv_header_time=yes
  17862. else
  17863. echo "$as_me: failed program was:" >&5
  17864. sed 's/^/| /' conftest.$ac_ext >&5
  17865. ac_cv_header_time=no
  17866. fi
  17867. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17868. fi
  17869. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17870. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  17871. if test $ac_cv_header_time = yes; then
  17872. cat >>confdefs.h <<\_ACEOF
  17873. @%:@define TIME_WITH_SYS_TIME 1
  17874. _ACEOF
  17875. fi
  17876. for ac_header in arpa/inet.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h signal.h pthread.h string.h sys/socket.h sys/time.h unistd.h io.h stdio.h stdarg.h errno.h ctype.h openssl/rand.h openssl/err.h
  17877. do
  17878. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17879. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17880. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17882. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17883. echo $ECHO_N "(cached) $ECHO_C" >&6
  17884. fi
  17885. ac_res=`eval echo '${'$as_ac_Header'}'`
  17886. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17887. echo "${ECHO_T}$ac_res" >&6; }
  17888. else
  17889. # Is the header compilable?
  17890. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17891. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17892. cat >conftest.$ac_ext <<_ACEOF
  17893. /* confdefs.h. */
  17894. _ACEOF
  17895. cat confdefs.h >>conftest.$ac_ext
  17896. cat >>conftest.$ac_ext <<_ACEOF
  17897. /* end confdefs.h. */
  17898. $ac_includes_default
  17899. @%:@include <$ac_header>
  17900. _ACEOF
  17901. rm -f conftest.$ac_objext
  17902. if { (ac_try="$ac_compile"
  17903. case "(($ac_try" in
  17904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17905. *) ac_try_echo=$ac_try;;
  17906. esac
  17907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17908. (eval "$ac_compile") 2>conftest.er1
  17909. ac_status=$?
  17910. grep -v '^ *+' conftest.er1 >conftest.err
  17911. rm -f conftest.er1
  17912. cat conftest.err >&5
  17913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17914. (exit $ac_status); } &&
  17915. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17916. { (case "(($ac_try" in
  17917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17918. *) ac_try_echo=$ac_try;;
  17919. esac
  17920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17921. (eval "$ac_try") 2>&5
  17922. ac_status=$?
  17923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17924. (exit $ac_status); }; } &&
  17925. { ac_try='test -s conftest.$ac_objext'
  17926. { (case "(($ac_try" in
  17927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17928. *) ac_try_echo=$ac_try;;
  17929. esac
  17930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17931. (eval "$ac_try") 2>&5
  17932. ac_status=$?
  17933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17934. (exit $ac_status); }; }; then
  17935. ac_header_compiler=yes
  17936. else
  17937. echo "$as_me: failed program was:" >&5
  17938. sed 's/^/| /' conftest.$ac_ext >&5
  17939. ac_header_compiler=no
  17940. fi
  17941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17942. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17943. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17944. # Is the header present?
  17945. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17946. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17947. cat >conftest.$ac_ext <<_ACEOF
  17948. /* confdefs.h. */
  17949. _ACEOF
  17950. cat confdefs.h >>conftest.$ac_ext
  17951. cat >>conftest.$ac_ext <<_ACEOF
  17952. /* end confdefs.h. */
  17953. @%:@include <$ac_header>
  17954. _ACEOF
  17955. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17956. case "(($ac_try" in
  17957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17958. *) ac_try_echo=$ac_try;;
  17959. esac
  17960. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17961. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17962. ac_status=$?
  17963. grep -v '^ *+' conftest.er1 >conftest.err
  17964. rm -f conftest.er1
  17965. cat conftest.err >&5
  17966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17967. (exit $ac_status); } >/dev/null; then
  17968. if test -s conftest.err; then
  17969. ac_cpp_err=$ac_c_preproc_warn_flag
  17970. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17971. else
  17972. ac_cpp_err=
  17973. fi
  17974. else
  17975. ac_cpp_err=yes
  17976. fi
  17977. if test -z "$ac_cpp_err"; then
  17978. ac_header_preproc=yes
  17979. else
  17980. echo "$as_me: failed program was:" >&5
  17981. sed 's/^/| /' conftest.$ac_ext >&5
  17982. ac_header_preproc=no
  17983. fi
  17984. rm -f conftest.err conftest.$ac_ext
  17985. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17986. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17987. # So? What about this header?
  17988. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17989. yes:no: )
  17990. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17991. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17993. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17994. ac_header_preproc=yes
  17995. ;;
  17996. no:yes:* )
  17997. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17998. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17999. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18000. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18001. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18002. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18003. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18004. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18005. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18006. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18007. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18008. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18009. ;;
  18010. esac
  18011. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18012. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18013. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18014. echo $ECHO_N "(cached) $ECHO_C" >&6
  18015. else
  18016. eval "$as_ac_Header=\$ac_header_preproc"
  18017. fi
  18018. ac_res=`eval echo '${'$as_ac_Header'}'`
  18019. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18020. echo "${ECHO_T}$ac_res" >&6; }
  18021. fi
  18022. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18023. cat >>confdefs.h <<_ACEOF
  18024. @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18025. _ACEOF
  18026. fi
  18027. done
  18028. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  18029. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  18030. if test "${ac_cv_c_const+set}" = set; then
  18031. echo $ECHO_N "(cached) $ECHO_C" >&6
  18032. else
  18033. cat >conftest.$ac_ext <<_ACEOF
  18034. /* confdefs.h. */
  18035. _ACEOF
  18036. cat confdefs.h >>conftest.$ac_ext
  18037. cat >>conftest.$ac_ext <<_ACEOF
  18038. /* end confdefs.h. */
  18039. int
  18040. main ()
  18041. {
  18042. /* FIXME: Include the comments suggested by Paul. */
  18043. #ifndef __cplusplus
  18044. /* Ultrix mips cc rejects this. */
  18045. typedef int charset[2];
  18046. const charset x;
  18047. /* SunOS 4.1.1 cc rejects this. */
  18048. char const *const *ccp;
  18049. char **p;
  18050. /* NEC SVR4.0.2 mips cc rejects this. */
  18051. struct point {int x, y;};
  18052. static struct point const zero = {0,0};
  18053. /* AIX XL C 1.02.0.0 rejects this.
  18054. It does not let you subtract one const X* pointer from another in
  18055. an arm of an if-expression whose if-part is not a constant
  18056. expression */
  18057. const char *g = "string";
  18058. ccp = &g + (g ? g-g : 0);
  18059. /* HPUX 7.0 cc rejects these. */
  18060. ++ccp;
  18061. p = (char**) ccp;
  18062. ccp = (char const *const *) p;
  18063. { /* SCO 3.2v4 cc rejects this. */
  18064. char *t;
  18065. char const *s = 0 ? (char *) 0 : (char const *) 0;
  18066. *t++ = 0;
  18067. if (s) return 0;
  18068. }
  18069. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  18070. int x[] = {25, 17};
  18071. const int *foo = &x[0];
  18072. ++foo;
  18073. }
  18074. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  18075. typedef const int *iptr;
  18076. iptr p = 0;
  18077. ++p;
  18078. }
  18079. { /* AIX XL C 1.02.0.0 rejects this saying
  18080. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  18081. struct s { int j; const int *ap[3]; };
  18082. struct s *b; b->j = 5;
  18083. }
  18084. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  18085. const int foo = 10;
  18086. if (!foo) return 0;
  18087. }
  18088. return !x[0] && !zero.x;
  18089. #endif
  18090. ;
  18091. return 0;
  18092. }
  18093. _ACEOF
  18094. rm -f conftest.$ac_objext
  18095. if { (ac_try="$ac_compile"
  18096. case "(($ac_try" in
  18097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18098. *) ac_try_echo=$ac_try;;
  18099. esac
  18100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18101. (eval "$ac_compile") 2>conftest.er1
  18102. ac_status=$?
  18103. grep -v '^ *+' conftest.er1 >conftest.err
  18104. rm -f conftest.er1
  18105. cat conftest.err >&5
  18106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18107. (exit $ac_status); } &&
  18108. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18109. { (case "(($ac_try" in
  18110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18111. *) ac_try_echo=$ac_try;;
  18112. esac
  18113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18114. (eval "$ac_try") 2>&5
  18115. ac_status=$?
  18116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18117. (exit $ac_status); }; } &&
  18118. { ac_try='test -s conftest.$ac_objext'
  18119. { (case "(($ac_try" in
  18120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18121. *) ac_try_echo=$ac_try;;
  18122. esac
  18123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18124. (eval "$ac_try") 2>&5
  18125. ac_status=$?
  18126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18127. (exit $ac_status); }; }; then
  18128. ac_cv_c_const=yes
  18129. else
  18130. echo "$as_me: failed program was:" >&5
  18131. sed 's/^/| /' conftest.$ac_ext >&5
  18132. ac_cv_c_const=no
  18133. fi
  18134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18135. fi
  18136. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  18137. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  18138. if test $ac_cv_c_const = no; then
  18139. cat >>confdefs.h <<\_ACEOF
  18140. @%:@define const
  18141. _ACEOF
  18142. fi
  18143. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  18144. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  18145. if test "${ac_cv_struct_tm+set}" = set; then
  18146. echo $ECHO_N "(cached) $ECHO_C" >&6
  18147. else
  18148. cat >conftest.$ac_ext <<_ACEOF
  18149. /* confdefs.h. */
  18150. _ACEOF
  18151. cat confdefs.h >>conftest.$ac_ext
  18152. cat >>conftest.$ac_ext <<_ACEOF
  18153. /* end confdefs.h. */
  18154. #include <sys/types.h>
  18155. #include <time.h>
  18156. int
  18157. main ()
  18158. {
  18159. struct tm *tp; tp->tm_sec;
  18160. ;
  18161. return 0;
  18162. }
  18163. _ACEOF
  18164. rm -f conftest.$ac_objext
  18165. if { (ac_try="$ac_compile"
  18166. case "(($ac_try" in
  18167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18168. *) ac_try_echo=$ac_try;;
  18169. esac
  18170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18171. (eval "$ac_compile") 2>conftest.er1
  18172. ac_status=$?
  18173. grep -v '^ *+' conftest.er1 >conftest.err
  18174. rm -f conftest.er1
  18175. cat conftest.err >&5
  18176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18177. (exit $ac_status); } &&
  18178. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18179. { (case "(($ac_try" in
  18180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18181. *) ac_try_echo=$ac_try;;
  18182. esac
  18183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18184. (eval "$ac_try") 2>&5
  18185. ac_status=$?
  18186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18187. (exit $ac_status); }; } &&
  18188. { ac_try='test -s conftest.$ac_objext'
  18189. { (case "(($ac_try" in
  18190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18191. *) ac_try_echo=$ac_try;;
  18192. esac
  18193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18194. (eval "$ac_try") 2>&5
  18195. ac_status=$?
  18196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18197. (exit $ac_status); }; }; then
  18198. ac_cv_struct_tm=time.h
  18199. else
  18200. echo "$as_me: failed program was:" >&5
  18201. sed 's/^/| /' conftest.$ac_ext >&5
  18202. ac_cv_struct_tm=sys/time.h
  18203. fi
  18204. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18205. fi
  18206. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18207. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  18208. if test $ac_cv_struct_tm = sys/time.h; then
  18209. cat >>confdefs.h <<\_ACEOF
  18210. @%:@define TM_IN_SYS_TIME 1
  18211. _ACEOF
  18212. fi
  18213. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18214. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  18215. if test "${ac_cv_type_signal+set}" = set; then
  18216. echo $ECHO_N "(cached) $ECHO_C" >&6
  18217. else
  18218. cat >conftest.$ac_ext <<_ACEOF
  18219. /* confdefs.h. */
  18220. _ACEOF
  18221. cat confdefs.h >>conftest.$ac_ext
  18222. cat >>conftest.$ac_ext <<_ACEOF
  18223. /* end confdefs.h. */
  18224. #include <sys/types.h>
  18225. #include <signal.h>
  18226. int
  18227. main ()
  18228. {
  18229. return *(signal (0, 0)) (0) == 1;
  18230. ;
  18231. return 0;
  18232. }
  18233. _ACEOF
  18234. rm -f conftest.$ac_objext
  18235. if { (ac_try="$ac_compile"
  18236. case "(($ac_try" in
  18237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18238. *) ac_try_echo=$ac_try;;
  18239. esac
  18240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18241. (eval "$ac_compile") 2>conftest.er1
  18242. ac_status=$?
  18243. grep -v '^ *+' conftest.er1 >conftest.err
  18244. rm -f conftest.er1
  18245. cat conftest.err >&5
  18246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18247. (exit $ac_status); } &&
  18248. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18249. { (case "(($ac_try" in
  18250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18251. *) ac_try_echo=$ac_try;;
  18252. esac
  18253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18254. (eval "$ac_try") 2>&5
  18255. ac_status=$?
  18256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18257. (exit $ac_status); }; } &&
  18258. { ac_try='test -s conftest.$ac_objext'
  18259. { (case "(($ac_try" in
  18260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18261. *) ac_try_echo=$ac_try;;
  18262. esac
  18263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18264. (eval "$ac_try") 2>&5
  18265. ac_status=$?
  18266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18267. (exit $ac_status); }; }; then
  18268. ac_cv_type_signal=int
  18269. else
  18270. echo "$as_me: failed program was:" >&5
  18271. sed 's/^/| /' conftest.$ac_ext >&5
  18272. ac_cv_type_signal=void
  18273. fi
  18274. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18275. fi
  18276. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18277. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  18278. cat >>confdefs.h <<_ACEOF
  18279. @%:@define RETSIGTYPE $ac_cv_type_signal
  18280. _ACEOF
  18281. { echo "$as_me:$LINENO: checking for size_t" >&5
  18282. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  18283. if test "${ac_cv_type_size_t+set}" = set; then
  18284. echo $ECHO_N "(cached) $ECHO_C" >&6
  18285. else
  18286. cat >conftest.$ac_ext <<_ACEOF
  18287. /* confdefs.h. */
  18288. _ACEOF
  18289. cat confdefs.h >>conftest.$ac_ext
  18290. cat >>conftest.$ac_ext <<_ACEOF
  18291. /* end confdefs.h. */
  18292. $ac_includes_default
  18293. typedef size_t ac__type_new_;
  18294. int
  18295. main ()
  18296. {
  18297. if ((ac__type_new_ *) 0)
  18298. return 0;
  18299. if (sizeof (ac__type_new_))
  18300. return 0;
  18301. ;
  18302. return 0;
  18303. }
  18304. _ACEOF
  18305. rm -f conftest.$ac_objext
  18306. if { (ac_try="$ac_compile"
  18307. case "(($ac_try" in
  18308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18309. *) ac_try_echo=$ac_try;;
  18310. esac
  18311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18312. (eval "$ac_compile") 2>conftest.er1
  18313. ac_status=$?
  18314. grep -v '^ *+' conftest.er1 >conftest.err
  18315. rm -f conftest.er1
  18316. cat conftest.err >&5
  18317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18318. (exit $ac_status); } &&
  18319. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18320. { (case "(($ac_try" in
  18321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18322. *) ac_try_echo=$ac_try;;
  18323. esac
  18324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18325. (eval "$ac_try") 2>&5
  18326. ac_status=$?
  18327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18328. (exit $ac_status); }; } &&
  18329. { ac_try='test -s conftest.$ac_objext'
  18330. { (case "(($ac_try" in
  18331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18332. *) ac_try_echo=$ac_try;;
  18333. esac
  18334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18335. (eval "$ac_try") 2>&5
  18336. ac_status=$?
  18337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18338. (exit $ac_status); }; }; then
  18339. ac_cv_type_size_t=yes
  18340. else
  18341. echo "$as_me: failed program was:" >&5
  18342. sed 's/^/| /' conftest.$ac_ext >&5
  18343. ac_cv_type_size_t=no
  18344. fi
  18345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18346. fi
  18347. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18348. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  18349. if test $ac_cv_type_size_t = yes; then
  18350. :
  18351. else
  18352. cat >>confdefs.h <<_ACEOF
  18353. @%:@define size_t unsigned int
  18354. _ACEOF
  18355. fi
  18356. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  18357. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  18358. if test "${ac_cv_type_ssize_t+set}" = set; then
  18359. echo $ECHO_N "(cached) $ECHO_C" >&6
  18360. else
  18361. cat >conftest.$ac_ext <<_ACEOF
  18362. /* confdefs.h. */
  18363. _ACEOF
  18364. cat confdefs.h >>conftest.$ac_ext
  18365. cat >>conftest.$ac_ext <<_ACEOF
  18366. /* end confdefs.h. */
  18367. $ac_includes_default
  18368. typedef ssize_t ac__type_new_;
  18369. int
  18370. main ()
  18371. {
  18372. if ((ac__type_new_ *) 0)
  18373. return 0;
  18374. if (sizeof (ac__type_new_))
  18375. return 0;
  18376. ;
  18377. return 0;
  18378. }
  18379. _ACEOF
  18380. rm -f conftest.$ac_objext
  18381. if { (ac_try="$ac_compile"
  18382. case "(($ac_try" in
  18383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18384. *) ac_try_echo=$ac_try;;
  18385. esac
  18386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18387. (eval "$ac_compile") 2>conftest.er1
  18388. ac_status=$?
  18389. grep -v '^ *+' conftest.er1 >conftest.err
  18390. rm -f conftest.er1
  18391. cat conftest.err >&5
  18392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18393. (exit $ac_status); } &&
  18394. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18395. { (case "(($ac_try" in
  18396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18397. *) ac_try_echo=$ac_try;;
  18398. esac
  18399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18400. (eval "$ac_try") 2>&5
  18401. ac_status=$?
  18402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18403. (exit $ac_status); }; } &&
  18404. { ac_try='test -s conftest.$ac_objext'
  18405. { (case "(($ac_try" in
  18406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18407. *) ac_try_echo=$ac_try;;
  18408. esac
  18409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18410. (eval "$ac_try") 2>&5
  18411. ac_status=$?
  18412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18413. (exit $ac_status); }; }; then
  18414. ac_cv_type_ssize_t=yes
  18415. else
  18416. echo "$as_me: failed program was:" >&5
  18417. sed 's/^/| /' conftest.$ac_ext >&5
  18418. ac_cv_type_ssize_t=no
  18419. fi
  18420. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18421. fi
  18422. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  18423. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  18424. if test $ac_cv_type_ssize_t = yes; then
  18425. :
  18426. else
  18427. cat >>confdefs.h <<_ACEOF
  18428. @%:@define ssize_t int
  18429. _ACEOF
  18430. fi
  18431. for ac_header in stdlib.h
  18432. do
  18433. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18434. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18435. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18436. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18437. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18438. echo $ECHO_N "(cached) $ECHO_C" >&6
  18439. fi
  18440. ac_res=`eval echo '${'$as_ac_Header'}'`
  18441. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18442. echo "${ECHO_T}$ac_res" >&6; }
  18443. else
  18444. # Is the header compilable?
  18445. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18446. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18447. cat >conftest.$ac_ext <<_ACEOF
  18448. /* confdefs.h. */
  18449. _ACEOF
  18450. cat confdefs.h >>conftest.$ac_ext
  18451. cat >>conftest.$ac_ext <<_ACEOF
  18452. /* end confdefs.h. */
  18453. $ac_includes_default
  18454. @%:@include <$ac_header>
  18455. _ACEOF
  18456. rm -f conftest.$ac_objext
  18457. if { (ac_try="$ac_compile"
  18458. case "(($ac_try" in
  18459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18460. *) ac_try_echo=$ac_try;;
  18461. esac
  18462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18463. (eval "$ac_compile") 2>conftest.er1
  18464. ac_status=$?
  18465. grep -v '^ *+' conftest.er1 >conftest.err
  18466. rm -f conftest.er1
  18467. cat conftest.err >&5
  18468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18469. (exit $ac_status); } &&
  18470. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18471. { (case "(($ac_try" in
  18472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18473. *) ac_try_echo=$ac_try;;
  18474. esac
  18475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18476. (eval "$ac_try") 2>&5
  18477. ac_status=$?
  18478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18479. (exit $ac_status); }; } &&
  18480. { ac_try='test -s conftest.$ac_objext'
  18481. { (case "(($ac_try" in
  18482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18483. *) ac_try_echo=$ac_try;;
  18484. esac
  18485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18486. (eval "$ac_try") 2>&5
  18487. ac_status=$?
  18488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18489. (exit $ac_status); }; }; then
  18490. ac_header_compiler=yes
  18491. else
  18492. echo "$as_me: failed program was:" >&5
  18493. sed 's/^/| /' conftest.$ac_ext >&5
  18494. ac_header_compiler=no
  18495. fi
  18496. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18497. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18498. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18499. # Is the header present?
  18500. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18501. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18502. cat >conftest.$ac_ext <<_ACEOF
  18503. /* confdefs.h. */
  18504. _ACEOF
  18505. cat confdefs.h >>conftest.$ac_ext
  18506. cat >>conftest.$ac_ext <<_ACEOF
  18507. /* end confdefs.h. */
  18508. @%:@include <$ac_header>
  18509. _ACEOF
  18510. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18511. case "(($ac_try" in
  18512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18513. *) ac_try_echo=$ac_try;;
  18514. esac
  18515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18516. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18517. ac_status=$?
  18518. grep -v '^ *+' conftest.er1 >conftest.err
  18519. rm -f conftest.er1
  18520. cat conftest.err >&5
  18521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18522. (exit $ac_status); } >/dev/null; then
  18523. if test -s conftest.err; then
  18524. ac_cpp_err=$ac_c_preproc_warn_flag
  18525. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18526. else
  18527. ac_cpp_err=
  18528. fi
  18529. else
  18530. ac_cpp_err=yes
  18531. fi
  18532. if test -z "$ac_cpp_err"; then
  18533. ac_header_preproc=yes
  18534. else
  18535. echo "$as_me: failed program was:" >&5
  18536. sed 's/^/| /' conftest.$ac_ext >&5
  18537. ac_header_preproc=no
  18538. fi
  18539. rm -f conftest.err conftest.$ac_ext
  18540. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18541. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18542. # So? What about this header?
  18543. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18544. yes:no: )
  18545. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18546. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18547. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18548. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18549. ac_header_preproc=yes
  18550. ;;
  18551. no:yes:* )
  18552. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18553. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18554. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18555. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18556. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18557. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18558. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18559. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18560. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18561. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18562. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18563. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18564. ;;
  18565. esac
  18566. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18567. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18568. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18569. echo $ECHO_N "(cached) $ECHO_C" >&6
  18570. else
  18571. eval "$as_ac_Header=\$ac_header_preproc"
  18572. fi
  18573. ac_res=`eval echo '${'$as_ac_Header'}'`
  18574. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18575. echo "${ECHO_T}$ac_res" >&6; }
  18576. fi
  18577. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18578. cat >>confdefs.h <<_ACEOF
  18579. @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18580. _ACEOF
  18581. fi
  18582. done
  18583. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  18584. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  18585. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  18586. echo $ECHO_N "(cached) $ECHO_C" >&6
  18587. else
  18588. if test "$cross_compiling" = yes; then
  18589. ac_cv_func_malloc_0_nonnull=no
  18590. else
  18591. cat >conftest.$ac_ext <<_ACEOF
  18592. /* confdefs.h. */
  18593. _ACEOF
  18594. cat confdefs.h >>conftest.$ac_ext
  18595. cat >>conftest.$ac_ext <<_ACEOF
  18596. /* end confdefs.h. */
  18597. #if STDC_HEADERS || HAVE_STDLIB_H
  18598. # include <stdlib.h>
  18599. #else
  18600. char *malloc ();
  18601. #endif
  18602. int
  18603. main ()
  18604. {
  18605. return ! malloc (0);
  18606. ;
  18607. return 0;
  18608. }
  18609. _ACEOF
  18610. rm -f conftest$ac_exeext
  18611. if { (ac_try="$ac_link"
  18612. case "(($ac_try" in
  18613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18614. *) ac_try_echo=$ac_try;;
  18615. esac
  18616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18617. (eval "$ac_link") 2>&5
  18618. ac_status=$?
  18619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18620. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18621. { (case "(($ac_try" in
  18622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18623. *) ac_try_echo=$ac_try;;
  18624. esac
  18625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18626. (eval "$ac_try") 2>&5
  18627. ac_status=$?
  18628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18629. (exit $ac_status); }; }; then
  18630. ac_cv_func_malloc_0_nonnull=yes
  18631. else
  18632. echo "$as_me: program exited with status $ac_status" >&5
  18633. echo "$as_me: failed program was:" >&5
  18634. sed 's/^/| /' conftest.$ac_ext >&5
  18635. ( exit $ac_status )
  18636. ac_cv_func_malloc_0_nonnull=no
  18637. fi
  18638. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18639. fi
  18640. fi
  18641. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  18642. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  18643. if test $ac_cv_func_malloc_0_nonnull = yes; then
  18644. cat >>confdefs.h <<\_ACEOF
  18645. @%:@define HAVE_MALLOC 1
  18646. _ACEOF
  18647. else
  18648. cat >>confdefs.h <<\_ACEOF
  18649. @%:@define HAVE_MALLOC 0
  18650. _ACEOF
  18651. case " $LIB@&t@OBJS " in
  18652. *" malloc.$ac_objext "* ) ;;
  18653. *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
  18654. ;;
  18655. esac
  18656. cat >>confdefs.h <<\_ACEOF
  18657. @%:@define malloc rpl_malloc
  18658. _ACEOF
  18659. fi
  18660. for ac_func in vprintf
  18661. do
  18662. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18663. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18664. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18665. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18666. echo $ECHO_N "(cached) $ECHO_C" >&6
  18667. else
  18668. cat >conftest.$ac_ext <<_ACEOF
  18669. /* confdefs.h. */
  18670. _ACEOF
  18671. cat confdefs.h >>conftest.$ac_ext
  18672. cat >>conftest.$ac_ext <<_ACEOF
  18673. /* end confdefs.h. */
  18674. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18675. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18676. #define $ac_func innocuous_$ac_func
  18677. /* System header to define __stub macros and hopefully few prototypes,
  18678. which can conflict with char $ac_func (); below.
  18679. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18680. <limits.h> exists even on freestanding compilers. */
  18681. #ifdef __STDC__
  18682. # include <limits.h>
  18683. #else
  18684. # include <assert.h>
  18685. #endif
  18686. #undef $ac_func
  18687. /* Override any GCC internal prototype to avoid an error.
  18688. Use char because int might match the return type of a GCC
  18689. builtin and then its argument prototype would still apply. */
  18690. #ifdef __cplusplus
  18691. extern "C"
  18692. #endif
  18693. char $ac_func ();
  18694. /* The GNU C library defines this for functions which it implements
  18695. to always fail with ENOSYS. Some functions are actually named
  18696. something starting with __ and the normal name is an alias. */
  18697. #if defined __stub_$ac_func || defined __stub___$ac_func
  18698. choke me
  18699. #endif
  18700. int
  18701. main ()
  18702. {
  18703. return $ac_func ();
  18704. ;
  18705. return 0;
  18706. }
  18707. _ACEOF
  18708. rm -f conftest.$ac_objext conftest$ac_exeext
  18709. if { (ac_try="$ac_link"
  18710. case "(($ac_try" in
  18711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18712. *) ac_try_echo=$ac_try;;
  18713. esac
  18714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18715. (eval "$ac_link") 2>conftest.er1
  18716. ac_status=$?
  18717. grep -v '^ *+' conftest.er1 >conftest.err
  18718. rm -f conftest.er1
  18719. cat conftest.err >&5
  18720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18721. (exit $ac_status); } &&
  18722. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18723. { (case "(($ac_try" in
  18724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18725. *) ac_try_echo=$ac_try;;
  18726. esac
  18727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18728. (eval "$ac_try") 2>&5
  18729. ac_status=$?
  18730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18731. (exit $ac_status); }; } &&
  18732. { ac_try='test -s conftest$ac_exeext'
  18733. { (case "(($ac_try" in
  18734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18735. *) ac_try_echo=$ac_try;;
  18736. esac
  18737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18738. (eval "$ac_try") 2>&5
  18739. ac_status=$?
  18740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18741. (exit $ac_status); }; }; then
  18742. eval "$as_ac_var=yes"
  18743. else
  18744. echo "$as_me: failed program was:" >&5
  18745. sed 's/^/| /' conftest.$ac_ext >&5
  18746. eval "$as_ac_var=no"
  18747. fi
  18748. rm -f conftest.err conftest.$ac_objext \
  18749. conftest$ac_exeext conftest.$ac_ext
  18750. fi
  18751. ac_res=`eval echo '${'$as_ac_var'}'`
  18752. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18753. echo "${ECHO_T}$ac_res" >&6; }
  18754. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18755. cat >>confdefs.h <<_ACEOF
  18756. @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18757. _ACEOF
  18758. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18759. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18760. if test "${ac_cv_func__doprnt+set}" = set; then
  18761. echo $ECHO_N "(cached) $ECHO_C" >&6
  18762. else
  18763. cat >conftest.$ac_ext <<_ACEOF
  18764. /* confdefs.h. */
  18765. _ACEOF
  18766. cat confdefs.h >>conftest.$ac_ext
  18767. cat >>conftest.$ac_ext <<_ACEOF
  18768. /* end confdefs.h. */
  18769. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18770. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18771. #define _doprnt innocuous__doprnt
  18772. /* System header to define __stub macros and hopefully few prototypes,
  18773. which can conflict with char _doprnt (); below.
  18774. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18775. <limits.h> exists even on freestanding compilers. */
  18776. #ifdef __STDC__
  18777. # include <limits.h>
  18778. #else
  18779. # include <assert.h>
  18780. #endif
  18781. #undef _doprnt
  18782. /* Override any GCC internal prototype to avoid an error.
  18783. Use char because int might match the return type of a GCC
  18784. builtin and then its argument prototype would still apply. */
  18785. #ifdef __cplusplus
  18786. extern "C"
  18787. #endif
  18788. char _doprnt ();
  18789. /* The GNU C library defines this for functions which it implements
  18790. to always fail with ENOSYS. Some functions are actually named
  18791. something starting with __ and the normal name is an alias. */
  18792. #if defined __stub__doprnt || defined __stub____doprnt
  18793. choke me
  18794. #endif
  18795. int
  18796. main ()
  18797. {
  18798. return _doprnt ();
  18799. ;
  18800. return 0;
  18801. }
  18802. _ACEOF
  18803. rm -f conftest.$ac_objext conftest$ac_exeext
  18804. if { (ac_try="$ac_link"
  18805. case "(($ac_try" in
  18806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18807. *) ac_try_echo=$ac_try;;
  18808. esac
  18809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18810. (eval "$ac_link") 2>conftest.er1
  18811. ac_status=$?
  18812. grep -v '^ *+' conftest.er1 >conftest.err
  18813. rm -f conftest.er1
  18814. cat conftest.err >&5
  18815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18816. (exit $ac_status); } &&
  18817. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18818. { (case "(($ac_try" in
  18819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18820. *) ac_try_echo=$ac_try;;
  18821. esac
  18822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18823. (eval "$ac_try") 2>&5
  18824. ac_status=$?
  18825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18826. (exit $ac_status); }; } &&
  18827. { ac_try='test -s conftest$ac_exeext'
  18828. { (case "(($ac_try" in
  18829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18830. *) ac_try_echo=$ac_try;;
  18831. esac
  18832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18833. (eval "$ac_try") 2>&5
  18834. ac_status=$?
  18835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18836. (exit $ac_status); }; }; then
  18837. ac_cv_func__doprnt=yes
  18838. else
  18839. echo "$as_me: failed program was:" >&5
  18840. sed 's/^/| /' conftest.$ac_ext >&5
  18841. ac_cv_func__doprnt=no
  18842. fi
  18843. rm -f conftest.err conftest.$ac_objext \
  18844. conftest$ac_exeext conftest.$ac_ext
  18845. fi
  18846. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18847. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18848. if test $ac_cv_func__doprnt = yes; then
  18849. cat >>confdefs.h <<\_ACEOF
  18850. @%:@define HAVE_DOPRNT 1
  18851. _ACEOF
  18852. fi
  18853. fi
  18854. done
  18855. for ac_func in strftime
  18856. do
  18857. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18858. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18859. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18860. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18861. echo $ECHO_N "(cached) $ECHO_C" >&6
  18862. else
  18863. cat >conftest.$ac_ext <<_ACEOF
  18864. /* confdefs.h. */
  18865. _ACEOF
  18866. cat confdefs.h >>conftest.$ac_ext
  18867. cat >>conftest.$ac_ext <<_ACEOF
  18868. /* end confdefs.h. */
  18869. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18870. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18871. #define $ac_func innocuous_$ac_func
  18872. /* System header to define __stub macros and hopefully few prototypes,
  18873. which can conflict with char $ac_func (); below.
  18874. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18875. <limits.h> exists even on freestanding compilers. */
  18876. #ifdef __STDC__
  18877. # include <limits.h>
  18878. #else
  18879. # include <assert.h>
  18880. #endif
  18881. #undef $ac_func
  18882. /* Override any GCC internal prototype to avoid an error.
  18883. Use char because int might match the return type of a GCC
  18884. builtin and then its argument prototype would still apply. */
  18885. #ifdef __cplusplus
  18886. extern "C"
  18887. #endif
  18888. char $ac_func ();
  18889. /* The GNU C library defines this for functions which it implements
  18890. to always fail with ENOSYS. Some functions are actually named
  18891. something starting with __ and the normal name is an alias. */
  18892. #if defined __stub_$ac_func || defined __stub___$ac_func
  18893. choke me
  18894. #endif
  18895. int
  18896. main ()
  18897. {
  18898. return $ac_func ();
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. rm -f conftest.$ac_objext conftest$ac_exeext
  18904. if { (ac_try="$ac_link"
  18905. case "(($ac_try" in
  18906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18907. *) ac_try_echo=$ac_try;;
  18908. esac
  18909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18910. (eval "$ac_link") 2>conftest.er1
  18911. ac_status=$?
  18912. grep -v '^ *+' conftest.er1 >conftest.err
  18913. rm -f conftest.er1
  18914. cat conftest.err >&5
  18915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18916. (exit $ac_status); } &&
  18917. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18918. { (case "(($ac_try" in
  18919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18920. *) ac_try_echo=$ac_try;;
  18921. esac
  18922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18923. (eval "$ac_try") 2>&5
  18924. ac_status=$?
  18925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18926. (exit $ac_status); }; } &&
  18927. { ac_try='test -s conftest$ac_exeext'
  18928. { (case "(($ac_try" in
  18929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18930. *) ac_try_echo=$ac_try;;
  18931. esac
  18932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18933. (eval "$ac_try") 2>&5
  18934. ac_status=$?
  18935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18936. (exit $ac_status); }; }; then
  18937. eval "$as_ac_var=yes"
  18938. else
  18939. echo "$as_me: failed program was:" >&5
  18940. sed 's/^/| /' conftest.$ac_ext >&5
  18941. eval "$as_ac_var=no"
  18942. fi
  18943. rm -f conftest.err conftest.$ac_objext \
  18944. conftest$ac_exeext conftest.$ac_ext
  18945. fi
  18946. ac_res=`eval echo '${'$as_ac_var'}'`
  18947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18948. echo "${ECHO_T}$ac_res" >&6; }
  18949. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18950. cat >>confdefs.h <<_ACEOF
  18951. @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18952. _ACEOF
  18953. else
  18954. # strftime is in -lintl on SCO UNIX.
  18955. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18956. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18957. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18958. echo $ECHO_N "(cached) $ECHO_C" >&6
  18959. else
  18960. ac_check_lib_save_LIBS=$LIBS
  18961. LIBS="-lintl $LIBS"
  18962. cat >conftest.$ac_ext <<_ACEOF
  18963. /* confdefs.h. */
  18964. _ACEOF
  18965. cat confdefs.h >>conftest.$ac_ext
  18966. cat >>conftest.$ac_ext <<_ACEOF
  18967. /* end confdefs.h. */
  18968. /* Override any GCC internal prototype to avoid an error.
  18969. Use char because int might match the return type of a GCC
  18970. builtin and then its argument prototype would still apply. */
  18971. #ifdef __cplusplus
  18972. extern "C"
  18973. #endif
  18974. char strftime ();
  18975. int
  18976. main ()
  18977. {
  18978. return strftime ();
  18979. ;
  18980. return 0;
  18981. }
  18982. _ACEOF
  18983. rm -f conftest.$ac_objext conftest$ac_exeext
  18984. if { (ac_try="$ac_link"
  18985. case "(($ac_try" in
  18986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18987. *) ac_try_echo=$ac_try;;
  18988. esac
  18989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18990. (eval "$ac_link") 2>conftest.er1
  18991. ac_status=$?
  18992. grep -v '^ *+' conftest.er1 >conftest.err
  18993. rm -f conftest.er1
  18994. cat conftest.err >&5
  18995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18996. (exit $ac_status); } &&
  18997. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18998. { (case "(($ac_try" in
  18999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19000. *) ac_try_echo=$ac_try;;
  19001. esac
  19002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19003. (eval "$ac_try") 2>&5
  19004. ac_status=$?
  19005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19006. (exit $ac_status); }; } &&
  19007. { ac_try='test -s conftest$ac_exeext'
  19008. { (case "(($ac_try" in
  19009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19010. *) ac_try_echo=$ac_try;;
  19011. esac
  19012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19013. (eval "$ac_try") 2>&5
  19014. ac_status=$?
  19015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19016. (exit $ac_status); }; }; then
  19017. ac_cv_lib_intl_strftime=yes
  19018. else
  19019. echo "$as_me: failed program was:" >&5
  19020. sed 's/^/| /' conftest.$ac_ext >&5
  19021. ac_cv_lib_intl_strftime=no
  19022. fi
  19023. rm -f conftest.err conftest.$ac_objext \
  19024. conftest$ac_exeext conftest.$ac_ext
  19025. LIBS=$ac_check_lib_save_LIBS
  19026. fi
  19027. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  19028. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  19029. if test $ac_cv_lib_intl_strftime = yes; then
  19030. cat >>confdefs.h <<\_ACEOF
  19031. @%:@define HAVE_STRFTIME 1
  19032. _ACEOF
  19033. LIBS="-lintl $LIBS"
  19034. fi
  19035. fi
  19036. done
  19037. for ac_header in sys/select.h sys/socket.h
  19038. do
  19039. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19040. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19041. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19042. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19043. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19044. echo $ECHO_N "(cached) $ECHO_C" >&6
  19045. fi
  19046. ac_res=`eval echo '${'$as_ac_Header'}'`
  19047. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19048. echo "${ECHO_T}$ac_res" >&6; }
  19049. else
  19050. # Is the header compilable?
  19051. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19052. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19053. cat >conftest.$ac_ext <<_ACEOF
  19054. /* confdefs.h. */
  19055. _ACEOF
  19056. cat confdefs.h >>conftest.$ac_ext
  19057. cat >>conftest.$ac_ext <<_ACEOF
  19058. /* end confdefs.h. */
  19059. $ac_includes_default
  19060. @%:@include <$ac_header>
  19061. _ACEOF
  19062. rm -f conftest.$ac_objext
  19063. if { (ac_try="$ac_compile"
  19064. case "(($ac_try" in
  19065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19066. *) ac_try_echo=$ac_try;;
  19067. esac
  19068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19069. (eval "$ac_compile") 2>conftest.er1
  19070. ac_status=$?
  19071. grep -v '^ *+' conftest.er1 >conftest.err
  19072. rm -f conftest.er1
  19073. cat conftest.err >&5
  19074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19075. (exit $ac_status); } &&
  19076. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19077. { (case "(($ac_try" in
  19078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19079. *) ac_try_echo=$ac_try;;
  19080. esac
  19081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19082. (eval "$ac_try") 2>&5
  19083. ac_status=$?
  19084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19085. (exit $ac_status); }; } &&
  19086. { ac_try='test -s conftest.$ac_objext'
  19087. { (case "(($ac_try" in
  19088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19089. *) ac_try_echo=$ac_try;;
  19090. esac
  19091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19092. (eval "$ac_try") 2>&5
  19093. ac_status=$?
  19094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19095. (exit $ac_status); }; }; then
  19096. ac_header_compiler=yes
  19097. else
  19098. echo "$as_me: failed program was:" >&5
  19099. sed 's/^/| /' conftest.$ac_ext >&5
  19100. ac_header_compiler=no
  19101. fi
  19102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19103. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19104. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19105. # Is the header present?
  19106. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19107. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19108. cat >conftest.$ac_ext <<_ACEOF
  19109. /* confdefs.h. */
  19110. _ACEOF
  19111. cat confdefs.h >>conftest.$ac_ext
  19112. cat >>conftest.$ac_ext <<_ACEOF
  19113. /* end confdefs.h. */
  19114. @%:@include <$ac_header>
  19115. _ACEOF
  19116. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19117. case "(($ac_try" in
  19118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19119. *) ac_try_echo=$ac_try;;
  19120. esac
  19121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19122. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19123. ac_status=$?
  19124. grep -v '^ *+' conftest.er1 >conftest.err
  19125. rm -f conftest.er1
  19126. cat conftest.err >&5
  19127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19128. (exit $ac_status); } >/dev/null; then
  19129. if test -s conftest.err; then
  19130. ac_cpp_err=$ac_c_preproc_warn_flag
  19131. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19132. else
  19133. ac_cpp_err=
  19134. fi
  19135. else
  19136. ac_cpp_err=yes
  19137. fi
  19138. if test -z "$ac_cpp_err"; then
  19139. ac_header_preproc=yes
  19140. else
  19141. echo "$as_me: failed program was:" >&5
  19142. sed 's/^/| /' conftest.$ac_ext >&5
  19143. ac_header_preproc=no
  19144. fi
  19145. rm -f conftest.err conftest.$ac_ext
  19146. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19147. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19148. # So? What about this header?
  19149. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19150. yes:no: )
  19151. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19152. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19153. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19154. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19155. ac_header_preproc=yes
  19156. ;;
  19157. no:yes:* )
  19158. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19159. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19160. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19161. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19162. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19163. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19164. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19165. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19166. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19167. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19168. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19169. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19170. ;;
  19171. esac
  19172. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19173. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19174. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19175. echo $ECHO_N "(cached) $ECHO_C" >&6
  19176. else
  19177. eval "$as_ac_Header=\$ac_header_preproc"
  19178. fi
  19179. ac_res=`eval echo '${'$as_ac_Header'}'`
  19180. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19181. echo "${ECHO_T}$ac_res" >&6; }
  19182. fi
  19183. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19184. cat >>confdefs.h <<_ACEOF
  19185. @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19186. _ACEOF
  19187. fi
  19188. done
  19189. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  19190. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  19191. if test "${ac_cv_func_select_args+set}" = set; then
  19192. echo $ECHO_N "(cached) $ECHO_C" >&6
  19193. else
  19194. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  19195. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  19196. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  19197. cat >conftest.$ac_ext <<_ACEOF
  19198. /* confdefs.h. */
  19199. _ACEOF
  19200. cat confdefs.h >>conftest.$ac_ext
  19201. cat >>conftest.$ac_ext <<_ACEOF
  19202. /* end confdefs.h. */
  19203. $ac_includes_default
  19204. #if HAVE_SYS_SELECT_H
  19205. # include <sys/select.h>
  19206. #endif
  19207. #if HAVE_SYS_SOCKET_H
  19208. # include <sys/socket.h>
  19209. #endif
  19210. int
  19211. main ()
  19212. {
  19213. extern int select ($ac_arg1,
  19214. $ac_arg234, $ac_arg234, $ac_arg234,
  19215. $ac_arg5);
  19216. ;
  19217. return 0;
  19218. }
  19219. _ACEOF
  19220. rm -f conftest.$ac_objext
  19221. if { (ac_try="$ac_compile"
  19222. case "(($ac_try" in
  19223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19224. *) ac_try_echo=$ac_try;;
  19225. esac
  19226. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19227. (eval "$ac_compile") 2>conftest.er1
  19228. ac_status=$?
  19229. grep -v '^ *+' conftest.er1 >conftest.err
  19230. rm -f conftest.er1
  19231. cat conftest.err >&5
  19232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19233. (exit $ac_status); } &&
  19234. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19235. { (case "(($ac_try" in
  19236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19237. *) ac_try_echo=$ac_try;;
  19238. esac
  19239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19240. (eval "$ac_try") 2>&5
  19241. ac_status=$?
  19242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19243. (exit $ac_status); }; } &&
  19244. { ac_try='test -s conftest.$ac_objext'
  19245. { (case "(($ac_try" in
  19246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19247. *) ac_try_echo=$ac_try;;
  19248. esac
  19249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19250. (eval "$ac_try") 2>&5
  19251. ac_status=$?
  19252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19253. (exit $ac_status); }; }; then
  19254. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  19255. else
  19256. echo "$as_me: failed program was:" >&5
  19257. sed 's/^/| /' conftest.$ac_ext >&5
  19258. fi
  19259. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19260. done
  19261. done
  19262. done
  19263. # Provide a safe default value.
  19264. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  19265. fi
  19266. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  19267. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  19268. ac_save_IFS=$IFS; IFS=','
  19269. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  19270. IFS=$ac_save_IFS
  19271. shift
  19272. cat >>confdefs.h <<_ACEOF
  19273. @%:@define SELECT_TYPE_ARG1 $1
  19274. _ACEOF
  19275. cat >>confdefs.h <<_ACEOF
  19276. @%:@define SELECT_TYPE_ARG234 ($2)
  19277. _ACEOF
  19278. cat >>confdefs.h <<_ACEOF
  19279. @%:@define SELECT_TYPE_ARG5 ($3)
  19280. _ACEOF
  19281. rm -f conftest*
  19282. for ac_func in gethostbyname inet_ntoa memmove memset mkdir select socket strchr strdup strncasecmp strpbrk strspn strstr strtol
  19283. do
  19284. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19285. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19286. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19287. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19288. echo $ECHO_N "(cached) $ECHO_C" >&6
  19289. else
  19290. cat >conftest.$ac_ext <<_ACEOF
  19291. /* confdefs.h. */
  19292. _ACEOF
  19293. cat confdefs.h >>conftest.$ac_ext
  19294. cat >>conftest.$ac_ext <<_ACEOF
  19295. /* end confdefs.h. */
  19296. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19297. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19298. #define $ac_func innocuous_$ac_func
  19299. /* System header to define __stub macros and hopefully few prototypes,
  19300. which can conflict with char $ac_func (); below.
  19301. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19302. <limits.h> exists even on freestanding compilers. */
  19303. #ifdef __STDC__
  19304. # include <limits.h>
  19305. #else
  19306. # include <assert.h>
  19307. #endif
  19308. #undef $ac_func
  19309. /* Override any GCC internal prototype to avoid an error.
  19310. Use char because int might match the return type of a GCC
  19311. builtin and then its argument prototype would still apply. */
  19312. #ifdef __cplusplus
  19313. extern "C"
  19314. #endif
  19315. char $ac_func ();
  19316. /* The GNU C library defines this for functions which it implements
  19317. to always fail with ENOSYS. Some functions are actually named
  19318. something starting with __ and the normal name is an alias. */
  19319. #if defined __stub_$ac_func || defined __stub___$ac_func
  19320. choke me
  19321. #endif
  19322. int
  19323. main ()
  19324. {
  19325. return $ac_func ();
  19326. ;
  19327. return 0;
  19328. }
  19329. _ACEOF
  19330. rm -f conftest.$ac_objext conftest$ac_exeext
  19331. if { (ac_try="$ac_link"
  19332. case "(($ac_try" in
  19333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19334. *) ac_try_echo=$ac_try;;
  19335. esac
  19336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19337. (eval "$ac_link") 2>conftest.er1
  19338. ac_status=$?
  19339. grep -v '^ *+' conftest.er1 >conftest.err
  19340. rm -f conftest.er1
  19341. cat conftest.err >&5
  19342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19343. (exit $ac_status); } &&
  19344. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19345. { (case "(($ac_try" in
  19346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19347. *) ac_try_echo=$ac_try;;
  19348. esac
  19349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19350. (eval "$ac_try") 2>&5
  19351. ac_status=$?
  19352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19353. (exit $ac_status); }; } &&
  19354. { ac_try='test -s conftest$ac_exeext'
  19355. { (case "(($ac_try" in
  19356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19357. *) ac_try_echo=$ac_try;;
  19358. esac
  19359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19360. (eval "$ac_try") 2>&5
  19361. ac_status=$?
  19362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19363. (exit $ac_status); }; }; then
  19364. eval "$as_ac_var=yes"
  19365. else
  19366. echo "$as_me: failed program was:" >&5
  19367. sed 's/^/| /' conftest.$ac_ext >&5
  19368. eval "$as_ac_var=no"
  19369. fi
  19370. rm -f conftest.err conftest.$ac_objext \
  19371. conftest$ac_exeext conftest.$ac_ext
  19372. fi
  19373. ac_res=`eval echo '${'$as_ac_var'}'`
  19374. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19375. echo "${ECHO_T}$ac_res" >&6; }
  19376. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19377. cat >>confdefs.h <<_ACEOF
  19378. @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19379. _ACEOF
  19380. fi
  19381. done
  19382. ac_ext=c
  19383. ac_cpp='$CPP $CPPFLAGS'
  19384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19387. acx_pthread_ok=no
  19388. # We used to check for pthread.h first, but this fails if pthread.h
  19389. # requires special compiler flags (e.g. on True64 or Sequent).
  19390. # It gets checked for in the link test anyway.
  19391. # First of all, check if the user has set any of the PTHREAD_LIBS,
  19392. # etcetera environment variables, and if threads linking works using
  19393. # them:
  19394. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  19395. save_CFLAGS="$CFLAGS"
  19396. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19397. save_LIBS="$LIBS"
  19398. LIBS="$PTHREAD_LIBS $LIBS"
  19399. { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  19400. echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
  19401. cat >conftest.$ac_ext <<_ACEOF
  19402. /* confdefs.h. */
  19403. _ACEOF
  19404. cat confdefs.h >>conftest.$ac_ext
  19405. cat >>conftest.$ac_ext <<_ACEOF
  19406. /* end confdefs.h. */
  19407. /* Override any GCC internal prototype to avoid an error.
  19408. Use char because int might match the return type of a GCC
  19409. builtin and then its argument prototype would still apply. */
  19410. #ifdef __cplusplus
  19411. extern "C"
  19412. #endif
  19413. char pthread_join ();
  19414. int
  19415. main ()
  19416. {
  19417. return pthread_join ();
  19418. ;
  19419. return 0;
  19420. }
  19421. _ACEOF
  19422. rm -f conftest.$ac_objext conftest$ac_exeext
  19423. if { (ac_try="$ac_link"
  19424. case "(($ac_try" in
  19425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19426. *) ac_try_echo=$ac_try;;
  19427. esac
  19428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19429. (eval "$ac_link") 2>conftest.er1
  19430. ac_status=$?
  19431. grep -v '^ *+' conftest.er1 >conftest.err
  19432. rm -f conftest.er1
  19433. cat conftest.err >&5
  19434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19435. (exit $ac_status); } &&
  19436. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19437. { (case "(($ac_try" in
  19438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19439. *) ac_try_echo=$ac_try;;
  19440. esac
  19441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19442. (eval "$ac_try") 2>&5
  19443. ac_status=$?
  19444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19445. (exit $ac_status); }; } &&
  19446. { ac_try='test -s conftest$ac_exeext'
  19447. { (case "(($ac_try" in
  19448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19449. *) ac_try_echo=$ac_try;;
  19450. esac
  19451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19452. (eval "$ac_try") 2>&5
  19453. ac_status=$?
  19454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19455. (exit $ac_status); }; }; then
  19456. acx_pthread_ok=yes
  19457. else
  19458. echo "$as_me: failed program was:" >&5
  19459. sed 's/^/| /' conftest.$ac_ext >&5
  19460. fi
  19461. rm -f conftest.err conftest.$ac_objext \
  19462. conftest$ac_exeext conftest.$ac_ext
  19463. { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  19464. echo "${ECHO_T}$acx_pthread_ok" >&6; }
  19465. if test x"$acx_pthread_ok" = xno; then
  19466. PTHREAD_LIBS=""
  19467. PTHREAD_CFLAGS=""
  19468. fi
  19469. LIBS="$save_LIBS"
  19470. CFLAGS="$save_CFLAGS"
  19471. fi
  19472. # We must check for the threads library under a number of different
  19473. # names; the ordering is very important because some systems
  19474. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  19475. # libraries is broken (non-POSIX).
  19476. # Create a list of thread flags to try. Items starting with a "-" are
  19477. # C compiler flags, and other items are library names, except for "none"
  19478. # which indicates that we try without any flags at all, and "pthread-config"
  19479. # which is a program returning the flags for the Pth emulation library.
  19480. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  19481. # The ordering *is* (sometimes) important. Some notes on the
  19482. # individual items follow:
  19483. # pthreads: AIX (must check this before -lpthread)
  19484. # none: in case threads are in libc; should be tried before -Kthread and
  19485. # other compiler flags to prevent continual compiler warnings
  19486. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  19487. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  19488. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  19489. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  19490. # -pthreads: Solaris/gcc
  19491. # -mthreads: Mingw32/gcc, Lynx/gcc
  19492. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  19493. # doesn't hurt to check since this sometimes defines pthreads too;
  19494. # also defines -D_REENTRANT)
  19495. # ... -mt is also the pthreads flag for HP/aCC
  19496. # pthread: Linux, etcetera
  19497. # --thread-safe: KAI C++
  19498. # pthread-config: use pthread-config program (for GNU Pth library)
  19499. case "${host_cpu}-${host_os}" in
  19500. *solaris*)
  19501. # On Solaris (at least, for some versions), libc contains stubbed
  19502. # (non-functional) versions of the pthreads routines, so link-based
  19503. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  19504. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  19505. # a function called by this macro, so we could check for that, but
  19506. # who knows whether they'll stub that too in a future libc.) So,
  19507. # we'll just look for -pthreads and -lpthread first:
  19508. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  19509. ;;
  19510. esac
  19511. if test x"$acx_pthread_ok" = xno; then
  19512. for flag in $acx_pthread_flags; do
  19513. case $flag in
  19514. none)
  19515. { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  19516. echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
  19517. ;;
  19518. -*)
  19519. { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  19520. echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
  19521. PTHREAD_CFLAGS="$flag"
  19522. ;;
  19523. pthread-config)
  19524. # Extract the first word of "pthread-config", so it can be a program name with args.
  19525. set dummy pthread-config; ac_word=$2
  19526. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19527. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19528. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  19529. echo $ECHO_N "(cached) $ECHO_C" >&6
  19530. else
  19531. if test -n "$acx_pthread_config"; then
  19532. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  19533. else
  19534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19535. for as_dir in $PATH
  19536. do
  19537. IFS=$as_save_IFS
  19538. test -z "$as_dir" && as_dir=.
  19539. for ac_exec_ext in '' $ac_executable_extensions; do
  19540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19541. ac_cv_prog_acx_pthread_config="yes"
  19542. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19543. break 2
  19544. fi
  19545. done
  19546. done
  19547. IFS=$as_save_IFS
  19548. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  19549. fi
  19550. fi
  19551. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  19552. if test -n "$acx_pthread_config"; then
  19553. { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  19554. echo "${ECHO_T}$acx_pthread_config" >&6; }
  19555. else
  19556. { echo "$as_me:$LINENO: result: no" >&5
  19557. echo "${ECHO_T}no" >&6; }
  19558. fi
  19559. if test x"$acx_pthread_config" = xno; then continue; fi
  19560. PTHREAD_CFLAGS="`pthread-config --cflags`"
  19561. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  19562. ;;
  19563. *)
  19564. { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  19565. echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
  19566. PTHREAD_LIBS="-l$flag"
  19567. ;;
  19568. esac
  19569. save_LIBS="$LIBS"
  19570. save_CFLAGS="$CFLAGS"
  19571. LIBS="$PTHREAD_LIBS $LIBS"
  19572. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19573. # Check for various functions. We must include pthread.h,
  19574. # since some functions may be macros. (On the Sequent, we
  19575. # need a special flag -Kthread to make this header compile.)
  19576. # We check for pthread_join because it is in -lpthread on IRIX
  19577. # while pthread_create is in libc. We check for pthread_attr_init
  19578. # due to DEC craziness with -lpthreads. We check for
  19579. # pthread_cleanup_push because it is one of the few pthread
  19580. # functions on Solaris that doesn't have a non-functional libc stub.
  19581. # We try pthread_create on general principles.
  19582. cat >conftest.$ac_ext <<_ACEOF
  19583. /* confdefs.h. */
  19584. _ACEOF
  19585. cat confdefs.h >>conftest.$ac_ext
  19586. cat >>conftest.$ac_ext <<_ACEOF
  19587. /* end confdefs.h. */
  19588. #include <pthread.h>
  19589. int
  19590. main ()
  19591. {
  19592. pthread_t th; pthread_join(th, 0);
  19593. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  19594. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  19595. ;
  19596. return 0;
  19597. }
  19598. _ACEOF
  19599. rm -f conftest.$ac_objext conftest$ac_exeext
  19600. if { (ac_try="$ac_link"
  19601. case "(($ac_try" in
  19602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19603. *) ac_try_echo=$ac_try;;
  19604. esac
  19605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19606. (eval "$ac_link") 2>conftest.er1
  19607. ac_status=$?
  19608. grep -v '^ *+' conftest.er1 >conftest.err
  19609. rm -f conftest.er1
  19610. cat conftest.err >&5
  19611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19612. (exit $ac_status); } &&
  19613. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19614. { (case "(($ac_try" in
  19615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19616. *) ac_try_echo=$ac_try;;
  19617. esac
  19618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19619. (eval "$ac_try") 2>&5
  19620. ac_status=$?
  19621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19622. (exit $ac_status); }; } &&
  19623. { ac_try='test -s conftest$ac_exeext'
  19624. { (case "(($ac_try" in
  19625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19626. *) ac_try_echo=$ac_try;;
  19627. esac
  19628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19629. (eval "$ac_try") 2>&5
  19630. ac_status=$?
  19631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19632. (exit $ac_status); }; }; then
  19633. acx_pthread_ok=yes
  19634. else
  19635. echo "$as_me: failed program was:" >&5
  19636. sed 's/^/| /' conftest.$ac_ext >&5
  19637. fi
  19638. rm -f conftest.err conftest.$ac_objext \
  19639. conftest$ac_exeext conftest.$ac_ext
  19640. LIBS="$save_LIBS"
  19641. CFLAGS="$save_CFLAGS"
  19642. { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  19643. echo "${ECHO_T}$acx_pthread_ok" >&6; }
  19644. if test "x$acx_pthread_ok" = xyes; then
  19645. break;
  19646. fi
  19647. PTHREAD_LIBS=""
  19648. PTHREAD_CFLAGS=""
  19649. done
  19650. fi
  19651. # Various other checks:
  19652. if test "x$acx_pthread_ok" = xyes; then
  19653. save_LIBS="$LIBS"
  19654. LIBS="$PTHREAD_LIBS $LIBS"
  19655. save_CFLAGS="$CFLAGS"
  19656. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19657. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  19658. { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  19659. echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
  19660. attr_name=unknown
  19661. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  19662. cat >conftest.$ac_ext <<_ACEOF
  19663. /* confdefs.h. */
  19664. _ACEOF
  19665. cat confdefs.h >>conftest.$ac_ext
  19666. cat >>conftest.$ac_ext <<_ACEOF
  19667. /* end confdefs.h. */
  19668. #include <pthread.h>
  19669. int
  19670. main ()
  19671. {
  19672. int attr=$attr; return attr;
  19673. ;
  19674. return 0;
  19675. }
  19676. _ACEOF
  19677. rm -f conftest.$ac_objext conftest$ac_exeext
  19678. if { (ac_try="$ac_link"
  19679. case "(($ac_try" in
  19680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19681. *) ac_try_echo=$ac_try;;
  19682. esac
  19683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19684. (eval "$ac_link") 2>conftest.er1
  19685. ac_status=$?
  19686. grep -v '^ *+' conftest.er1 >conftest.err
  19687. rm -f conftest.er1
  19688. cat conftest.err >&5
  19689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19690. (exit $ac_status); } &&
  19691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19692. { (case "(($ac_try" in
  19693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19694. *) ac_try_echo=$ac_try;;
  19695. esac
  19696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19697. (eval "$ac_try") 2>&5
  19698. ac_status=$?
  19699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19700. (exit $ac_status); }; } &&
  19701. { ac_try='test -s conftest$ac_exeext'
  19702. { (case "(($ac_try" in
  19703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19704. *) ac_try_echo=$ac_try;;
  19705. esac
  19706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19707. (eval "$ac_try") 2>&5
  19708. ac_status=$?
  19709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19710. (exit $ac_status); }; }; then
  19711. attr_name=$attr; break
  19712. else
  19713. echo "$as_me: failed program was:" >&5
  19714. sed 's/^/| /' conftest.$ac_ext >&5
  19715. fi
  19716. rm -f conftest.err conftest.$ac_objext \
  19717. conftest$ac_exeext conftest.$ac_ext
  19718. done
  19719. { echo "$as_me:$LINENO: result: $attr_name" >&5
  19720. echo "${ECHO_T}$attr_name" >&6; }
  19721. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  19722. cat >>confdefs.h <<_ACEOF
  19723. @%:@define PTHREAD_CREATE_JOINABLE $attr_name
  19724. _ACEOF
  19725. fi
  19726. { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  19727. echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
  19728. flag=no
  19729. case "${host_cpu}-${host_os}" in
  19730. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  19731. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  19732. esac
  19733. { echo "$as_me:$LINENO: result: ${flag}" >&5
  19734. echo "${ECHO_T}${flag}" >&6; }
  19735. if test "x$flag" != xno; then
  19736. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  19737. fi
  19738. LIBS="$save_LIBS"
  19739. CFLAGS="$save_CFLAGS"
  19740. # More AIX lossage: must compile with xlc_r or cc_r
  19741. if test x"$GCC" != xyes; then
  19742. for ac_prog in xlc_r cc_r
  19743. do
  19744. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19745. set dummy $ac_prog; ac_word=$2
  19746. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19747. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19748. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  19749. echo $ECHO_N "(cached) $ECHO_C" >&6
  19750. else
  19751. if test -n "$PTHREAD_CC"; then
  19752. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  19753. else
  19754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19755. for as_dir in $PATH
  19756. do
  19757. IFS=$as_save_IFS
  19758. test -z "$as_dir" && as_dir=.
  19759. for ac_exec_ext in '' $ac_executable_extensions; do
  19760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  19761. ac_cv_prog_PTHREAD_CC="$ac_prog"
  19762. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19763. break 2
  19764. fi
  19765. done
  19766. done
  19767. IFS=$as_save_IFS
  19768. fi
  19769. fi
  19770. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  19771. if test -n "$PTHREAD_CC"; then
  19772. { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  19773. echo "${ECHO_T}$PTHREAD_CC" >&6; }
  19774. else
  19775. { echo "$as_me:$LINENO: result: no" >&5
  19776. echo "${ECHO_T}no" >&6; }
  19777. fi
  19778. test -n "$PTHREAD_CC" && break
  19779. done
  19780. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  19781. else
  19782. PTHREAD_CC=$CC
  19783. fi
  19784. else
  19785. PTHREAD_CC="$CC"
  19786. fi
  19787. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  19788. if test x"$acx_pthread_ok" = xyes; then
  19789. LIBS="$PTHREAD_LIBS $LIBS"; CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  19790. :
  19791. else
  19792. acx_pthread_ok=no
  19793. fi
  19794. ac_ext=c
  19795. ac_cpp='$CPP $CPPFLAGS'
  19796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19799. for ac_func in localtime_r strtok_r
  19800. do
  19801. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19802. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19803. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19804. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19805. echo $ECHO_N "(cached) $ECHO_C" >&6
  19806. else
  19807. cat >conftest.$ac_ext <<_ACEOF
  19808. /* confdefs.h. */
  19809. _ACEOF
  19810. cat confdefs.h >>conftest.$ac_ext
  19811. cat >>conftest.$ac_ext <<_ACEOF
  19812. /* end confdefs.h. */
  19813. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19814. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19815. #define $ac_func innocuous_$ac_func
  19816. /* System header to define __stub macros and hopefully few prototypes,
  19817. which can conflict with char $ac_func (); below.
  19818. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19819. <limits.h> exists even on freestanding compilers. */
  19820. #ifdef __STDC__
  19821. # include <limits.h>
  19822. #else
  19823. # include <assert.h>
  19824. #endif
  19825. #undef $ac_func
  19826. /* Override any GCC internal prototype to avoid an error.
  19827. Use char because int might match the return type of a GCC
  19828. builtin and then its argument prototype would still apply. */
  19829. #ifdef __cplusplus
  19830. extern "C"
  19831. #endif
  19832. char $ac_func ();
  19833. /* The GNU C library defines this for functions which it implements
  19834. to always fail with ENOSYS. Some functions are actually named
  19835. something starting with __ and the normal name is an alias. */
  19836. #if defined __stub_$ac_func || defined __stub___$ac_func
  19837. choke me
  19838. #endif
  19839. int
  19840. main ()
  19841. {
  19842. return $ac_func ();
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. rm -f conftest.$ac_objext conftest$ac_exeext
  19848. if { (ac_try="$ac_link"
  19849. case "(($ac_try" in
  19850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19851. *) ac_try_echo=$ac_try;;
  19852. esac
  19853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19854. (eval "$ac_link") 2>conftest.er1
  19855. ac_status=$?
  19856. grep -v '^ *+' conftest.er1 >conftest.err
  19857. rm -f conftest.er1
  19858. cat conftest.err >&5
  19859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19860. (exit $ac_status); } &&
  19861. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19862. { (case "(($ac_try" in
  19863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19864. *) ac_try_echo=$ac_try;;
  19865. esac
  19866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19867. (eval "$ac_try") 2>&5
  19868. ac_status=$?
  19869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19870. (exit $ac_status); }; } &&
  19871. { ac_try='test -s conftest$ac_exeext'
  19872. { (case "(($ac_try" in
  19873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19874. *) ac_try_echo=$ac_try;;
  19875. esac
  19876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19877. (eval "$ac_try") 2>&5
  19878. ac_status=$?
  19879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19880. (exit $ac_status); }; }; then
  19881. eval "$as_ac_var=yes"
  19882. else
  19883. echo "$as_me: failed program was:" >&5
  19884. sed 's/^/| /' conftest.$ac_ext >&5
  19885. eval "$as_ac_var=no"
  19886. fi
  19887. rm -f conftest.err conftest.$ac_objext \
  19888. conftest$ac_exeext conftest.$ac_ext
  19889. fi
  19890. ac_res=`eval echo '${'$as_ac_var'}'`
  19891. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19892. echo "${ECHO_T}$ac_res" >&6; }
  19893. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19894. cat >>confdefs.h <<_ACEOF
  19895. @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19896. _ACEOF
  19897. fi
  19898. done
  19899. # ------------------------------------------
  19900. # Check socket library (for Solaris)
  19901. # ------------------------------------------
  19902. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  19903. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  19904. if test "${ac_cv_lib_socket_socket+set}" = set; then
  19905. echo $ECHO_N "(cached) $ECHO_C" >&6
  19906. else
  19907. ac_check_lib_save_LIBS=$LIBS
  19908. LIBS="-lsocket $LIBS"
  19909. cat >conftest.$ac_ext <<_ACEOF
  19910. /* confdefs.h. */
  19911. _ACEOF
  19912. cat confdefs.h >>conftest.$ac_ext
  19913. cat >>conftest.$ac_ext <<_ACEOF
  19914. /* end confdefs.h. */
  19915. /* Override any GCC internal prototype to avoid an error.
  19916. Use char because int might match the return type of a GCC
  19917. builtin and then its argument prototype would still apply. */
  19918. #ifdef __cplusplus
  19919. extern "C"
  19920. #endif
  19921. char socket ();
  19922. int
  19923. main ()
  19924. {
  19925. return socket ();
  19926. ;
  19927. return 0;
  19928. }
  19929. _ACEOF
  19930. rm -f conftest.$ac_objext conftest$ac_exeext
  19931. if { (ac_try="$ac_link"
  19932. case "(($ac_try" in
  19933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19934. *) ac_try_echo=$ac_try;;
  19935. esac
  19936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19937. (eval "$ac_link") 2>conftest.er1
  19938. ac_status=$?
  19939. grep -v '^ *+' conftest.er1 >conftest.err
  19940. rm -f conftest.er1
  19941. cat conftest.err >&5
  19942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19943. (exit $ac_status); } &&
  19944. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19945. { (case "(($ac_try" in
  19946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19947. *) ac_try_echo=$ac_try;;
  19948. esac
  19949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19950. (eval "$ac_try") 2>&5
  19951. ac_status=$?
  19952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19953. (exit $ac_status); }; } &&
  19954. { ac_try='test -s conftest$ac_exeext'
  19955. { (case "(($ac_try" in
  19956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19957. *) ac_try_echo=$ac_try;;
  19958. esac
  19959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19960. (eval "$ac_try") 2>&5
  19961. ac_status=$?
  19962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19963. (exit $ac_status); }; }; then
  19964. ac_cv_lib_socket_socket=yes
  19965. else
  19966. echo "$as_me: failed program was:" >&5
  19967. sed 's/^/| /' conftest.$ac_ext >&5
  19968. ac_cv_lib_socket_socket=no
  19969. fi
  19970. rm -f conftest.err conftest.$ac_objext \
  19971. conftest$ac_exeext conftest.$ac_ext
  19972. LIBS=$ac_check_lib_save_LIBS
  19973. fi
  19974. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  19975. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  19976. if test $ac_cv_lib_socket_socket = yes; then
  19977. LIBSOCKET="-lsocket"
  19978. fi
  19979. { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
  19980. echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
  19981. if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
  19982. echo $ECHO_N "(cached) $ECHO_C" >&6
  19983. else
  19984. ac_check_lib_save_LIBS=$LIBS
  19985. LIBS="-lnsl $LIBS"
  19986. cat >conftest.$ac_ext <<_ACEOF
  19987. /* confdefs.h. */
  19988. _ACEOF
  19989. cat confdefs.h >>conftest.$ac_ext
  19990. cat >>conftest.$ac_ext <<_ACEOF
  19991. /* end confdefs.h. */
  19992. /* Override any GCC internal prototype to avoid an error.
  19993. Use char because int might match the return type of a GCC
  19994. builtin and then its argument prototype would still apply. */
  19995. #ifdef __cplusplus
  19996. extern "C"
  19997. #endif
  19998. char inet_ntoa ();
  19999. int
  20000. main ()
  20001. {
  20002. return inet_ntoa ();
  20003. ;
  20004. return 0;
  20005. }
  20006. _ACEOF
  20007. rm -f conftest.$ac_objext conftest$ac_exeext
  20008. if { (ac_try="$ac_link"
  20009. case "(($ac_try" in
  20010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20011. *) ac_try_echo=$ac_try;;
  20012. esac
  20013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20014. (eval "$ac_link") 2>conftest.er1
  20015. ac_status=$?
  20016. grep -v '^ *+' conftest.er1 >conftest.err
  20017. rm -f conftest.er1
  20018. cat conftest.err >&5
  20019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20020. (exit $ac_status); } &&
  20021. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20022. { (case "(($ac_try" in
  20023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20024. *) ac_try_echo=$ac_try;;
  20025. esac
  20026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20027. (eval "$ac_try") 2>&5
  20028. ac_status=$?
  20029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20030. (exit $ac_status); }; } &&
  20031. { ac_try='test -s conftest$ac_exeext'
  20032. { (case "(($ac_try" in
  20033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20034. *) ac_try_echo=$ac_try;;
  20035. esac
  20036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20037. (eval "$ac_try") 2>&5
  20038. ac_status=$?
  20039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20040. (exit $ac_status); }; }; then
  20041. ac_cv_lib_nsl_inet_ntoa=yes
  20042. else
  20043. echo "$as_me: failed program was:" >&5
  20044. sed 's/^/| /' conftest.$ac_ext >&5
  20045. ac_cv_lib_nsl_inet_ntoa=no
  20046. fi
  20047. rm -f conftest.err conftest.$ac_objext \
  20048. conftest$ac_exeext conftest.$ac_ext
  20049. LIBS=$ac_check_lib_save_LIBS
  20050. fi
  20051. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
  20052. echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
  20053. if test $ac_cv_lib_nsl_inet_ntoa = yes; then
  20054. LIBNSL="-lnsl"
  20055. fi
  20056. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  20057. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  20058. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  20059. echo $ECHO_N "(cached) $ECHO_C" >&6
  20060. else
  20061. ac_check_lib_save_LIBS=$LIBS
  20062. LIBS="-lnsl $LIBS"
  20063. cat >conftest.$ac_ext <<_ACEOF
  20064. /* confdefs.h. */
  20065. _ACEOF
  20066. cat confdefs.h >>conftest.$ac_ext
  20067. cat >>conftest.$ac_ext <<_ACEOF
  20068. /* end confdefs.h. */
  20069. /* Override any GCC internal prototype to avoid an error.
  20070. Use char because int might match the return type of a GCC
  20071. builtin and then its argument prototype would still apply. */
  20072. #ifdef __cplusplus
  20073. extern "C"
  20074. #endif
  20075. char gethostbyname ();
  20076. int
  20077. main ()
  20078. {
  20079. return gethostbyname ();
  20080. ;
  20081. return 0;
  20082. }
  20083. _ACEOF
  20084. rm -f conftest.$ac_objext conftest$ac_exeext
  20085. if { (ac_try="$ac_link"
  20086. case "(($ac_try" in
  20087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20088. *) ac_try_echo=$ac_try;;
  20089. esac
  20090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20091. (eval "$ac_link") 2>conftest.er1
  20092. ac_status=$?
  20093. grep -v '^ *+' conftest.er1 >conftest.err
  20094. rm -f conftest.er1
  20095. cat conftest.err >&5
  20096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20097. (exit $ac_status); } &&
  20098. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20099. { (case "(($ac_try" in
  20100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20101. *) ac_try_echo=$ac_try;;
  20102. esac
  20103. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20104. (eval "$ac_try") 2>&5
  20105. ac_status=$?
  20106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20107. (exit $ac_status); }; } &&
  20108. { ac_try='test -s conftest$ac_exeext'
  20109. { (case "(($ac_try" in
  20110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20111. *) ac_try_echo=$ac_try;;
  20112. esac
  20113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20114. (eval "$ac_try") 2>&5
  20115. ac_status=$?
  20116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20117. (exit $ac_status); }; }; then
  20118. ac_cv_lib_nsl_gethostbyname=yes
  20119. else
  20120. echo "$as_me: failed program was:" >&5
  20121. sed 's/^/| /' conftest.$ac_ext >&5
  20122. ac_cv_lib_nsl_gethostbyname=no
  20123. fi
  20124. rm -f conftest.err conftest.$ac_objext \
  20125. conftest$ac_exeext conftest.$ac_ext
  20126. LIBS=$ac_check_lib_save_LIBS
  20127. fi
  20128. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20129. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  20130. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  20131. LIBNSL="-lnsl"
  20132. fi
  20133. # Check whether --with-xml-prefix was given.
  20134. if test "${with_xml_prefix+set}" = set; then
  20135. withval=$with_xml_prefix; xml_config_prefix="$withval"
  20136. else
  20137. xml_config_prefix=""
  20138. fi
  20139. # Check whether --with-xml-exec-prefix was given.
  20140. if test "${with_xml_exec_prefix+set}" = set; then
  20141. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  20142. else
  20143. xml_config_exec_prefix=""
  20144. fi
  20145. # Check whether --enable-xmltest was given.
  20146. if test "${enable_xmltest+set}" = set; then
  20147. enableval=$enable_xmltest;
  20148. else
  20149. enable_xmltest=yes
  20150. fi
  20151. if test x$xml_config_exec_prefix != x ; then
  20152. xml_config_args="$xml_config_args"
  20153. if test x${XML2_CONFIG+set} != xset ; then
  20154. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  20155. fi
  20156. fi
  20157. if test x$xml_config_prefix != x ; then
  20158. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  20159. if test x${XML2_CONFIG+set} != xset ; then
  20160. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  20161. fi
  20162. fi
  20163. # Extract the first word of "xml2-config", so it can be a program name with args.
  20164. set dummy xml2-config; ac_word=$2
  20165. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  20166. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20167. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  20168. echo $ECHO_N "(cached) $ECHO_C" >&6
  20169. else
  20170. case $XML2_CONFIG in
  20171. [\\/]* | ?:[\\/]*)
  20172. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  20173. ;;
  20174. *)
  20175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20176. for as_dir in $PATH
  20177. do
  20178. IFS=$as_save_IFS
  20179. test -z "$as_dir" && as_dir=.
  20180. for ac_exec_ext in '' $ac_executable_extensions; do
  20181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  20182. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20184. break 2
  20185. fi
  20186. done
  20187. done
  20188. IFS=$as_save_IFS
  20189. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  20190. ;;
  20191. esac
  20192. fi
  20193. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  20194. if test -n "$XML2_CONFIG"; then
  20195. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  20196. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  20197. else
  20198. { echo "$as_me:$LINENO: result: no" >&5
  20199. echo "${ECHO_T}no" >&6; }
  20200. fi
  20201. min_xml_version=2.6.0
  20202. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  20203. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  20204. no_xml=""
  20205. if test "$XML2_CONFIG" = "no" ; then
  20206. no_xml=yes
  20207. else
  20208. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  20209. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  20210. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  20211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  20212. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  20213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  20214. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  20215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  20216. if test "x$enable_xmltest" = "xyes" ; then
  20217. ac_save_CPPFLAGS="$CPPFLAGS"
  20218. ac_save_LIBS="$LIBS"
  20219. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  20220. LIBS="$XML_LIBS $LIBS"
  20221. rm -f conf.xmltest
  20222. if test "$cross_compiling" = yes; then
  20223. echo $ac_n "cross compiling; assumed OK... $ac_c"
  20224. else
  20225. cat >conftest.$ac_ext <<_ACEOF
  20226. /* confdefs.h. */
  20227. _ACEOF
  20228. cat confdefs.h >>conftest.$ac_ext
  20229. cat >>conftest.$ac_ext <<_ACEOF
  20230. /* end confdefs.h. */
  20231. #include <stdlib.h>
  20232. #include <stdio.h>
  20233. #include <string.h>
  20234. #include <libxml/xmlversion.h>
  20235. int
  20236. main()
  20237. {
  20238. int xml_major_version, xml_minor_version, xml_micro_version;
  20239. int major, minor, micro;
  20240. char *tmp_version;
  20241. system("touch conf.xmltest");
  20242. /* Capture xml2-config output via autoconf/configure variables */
  20243. /* HP/UX 9 (%@#!) writes to sscanf strings */
  20244. tmp_version = (char *)strdup("$min_xml_version");
  20245. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  20246. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  20247. exit(1);
  20248. }
  20249. free(tmp_version);
  20250. /* Capture the version information from the header files */
  20251. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  20252. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  20253. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  20254. exit(1);
  20255. }
  20256. free(tmp_version);
  20257. /* Compare xml2-config output to the libxml headers */
  20258. if ((xml_major_version != $xml_config_major_version) ||
  20259. (xml_minor_version != $xml_config_minor_version) ||
  20260. (xml_micro_version != $xml_config_micro_version))
  20261. {
  20262. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  20263. xml_major_version, xml_minor_version, xml_micro_version);
  20264. printf("*** xml2-config (version %d.%d.%d)\n",
  20265. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  20266. return 1;
  20267. }
  20268. /* Compare the headers to the library to make sure we match */
  20269. /* Less than ideal -- doesn't provide us with return value feedback,
  20270. * only exits if there's a serious mismatch between header and library.
  20271. */
  20272. LIBXML_TEST_VERSION;
  20273. /* Test that the library is greater than our minimum version */
  20274. if ((xml_major_version > major) ||
  20275. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  20276. ((xml_major_version == major) && (xml_minor_version == minor) &&
  20277. (xml_micro_version >= micro)))
  20278. {
  20279. return 0;
  20280. }
  20281. else
  20282. {
  20283. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  20284. xml_major_version, xml_minor_version, xml_micro_version);
  20285. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  20286. major, minor, micro);
  20287. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  20288. printf("***\n");
  20289. printf("*** If you have already installed a sufficiently new version, this error\n");
  20290. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  20291. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  20292. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  20293. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  20294. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  20295. printf("*** so that the correct libraries are found at run-time))\n");
  20296. }
  20297. return 1;
  20298. }
  20299. _ACEOF
  20300. rm -f conftest$ac_exeext
  20301. if { (ac_try="$ac_link"
  20302. case "(($ac_try" in
  20303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20304. *) ac_try_echo=$ac_try;;
  20305. esac
  20306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20307. (eval "$ac_link") 2>&5
  20308. ac_status=$?
  20309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20310. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20311. { (case "(($ac_try" in
  20312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20313. *) ac_try_echo=$ac_try;;
  20314. esac
  20315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20316. (eval "$ac_try") 2>&5
  20317. ac_status=$?
  20318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20319. (exit $ac_status); }; }; then
  20320. :
  20321. else
  20322. echo "$as_me: program exited with status $ac_status" >&5
  20323. echo "$as_me: failed program was:" >&5
  20324. sed 's/^/| /' conftest.$ac_ext >&5
  20325. ( exit $ac_status )
  20326. no_xml=yes
  20327. fi
  20328. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20329. fi
  20330. CPPFLAGS="$ac_save_CPPFLAGS"
  20331. LIBS="$ac_save_LIBS"
  20332. fi
  20333. fi
  20334. if test "x$no_xml" = x ; then
  20335. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  20336. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  20337. CFLAGS="$CFLAGS $XML_CPPFLAGS"; LDFLAGS="$LDFLAGS $XML_LIBS"
  20338. else
  20339. { echo "$as_me:$LINENO: result: no" >&5
  20340. echo "${ECHO_T}no" >&6; }
  20341. if test "$XML2_CONFIG" = "no" ; then
  20342. echo "*** The xml2-config script installed by LIBXML could not be found"
  20343. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  20344. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  20345. echo "*** full path to xml2-config."
  20346. else
  20347. if test -f conf.xmltest ; then
  20348. :
  20349. else
  20350. echo "*** Could not run libxml test program, checking why..."
  20351. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  20352. LIBS="$LIBS $XML_LIBS"
  20353. cat >conftest.$ac_ext <<_ACEOF
  20354. /* confdefs.h. */
  20355. _ACEOF
  20356. cat confdefs.h >>conftest.$ac_ext
  20357. cat >>conftest.$ac_ext <<_ACEOF
  20358. /* end confdefs.h. */
  20359. #include <libxml/xmlversion.h>
  20360. #include <stdio.h>
  20361. int
  20362. main ()
  20363. {
  20364. LIBXML_TEST_VERSION; return 0;
  20365. ;
  20366. return 0;
  20367. }
  20368. _ACEOF
  20369. rm -f conftest.$ac_objext conftest$ac_exeext
  20370. if { (ac_try="$ac_link"
  20371. case "(($ac_try" in
  20372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20373. *) ac_try_echo=$ac_try;;
  20374. esac
  20375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20376. (eval "$ac_link") 2>conftest.er1
  20377. ac_status=$?
  20378. grep -v '^ *+' conftest.er1 >conftest.err
  20379. rm -f conftest.er1
  20380. cat conftest.err >&5
  20381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20382. (exit $ac_status); } &&
  20383. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20384. { (case "(($ac_try" in
  20385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20386. *) ac_try_echo=$ac_try;;
  20387. esac
  20388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20389. (eval "$ac_try") 2>&5
  20390. ac_status=$?
  20391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20392. (exit $ac_status); }; } &&
  20393. { ac_try='test -s conftest$ac_exeext'
  20394. { (case "(($ac_try" in
  20395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20396. *) ac_try_echo=$ac_try;;
  20397. esac
  20398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20399. (eval "$ac_try") 2>&5
  20400. ac_status=$?
  20401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20402. (exit $ac_status); }; }; then
  20403. echo "*** The test program compiled, but did not run. This usually means"
  20404. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  20405. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  20406. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  20407. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  20408. echo "*** is required on your system"
  20409. echo "***"
  20410. echo "*** If you have an old version installed, it is best to remove it, although"
  20411. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  20412. else
  20413. echo "$as_me: failed program was:" >&5
  20414. sed 's/^/| /' conftest.$ac_ext >&5
  20415. echo "*** The test program failed to compile or link. See the file config.log for the"
  20416. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  20417. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  20418. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  20419. fi
  20420. rm -f conftest.err conftest.$ac_objext \
  20421. conftest$ac_exeext conftest.$ac_ext
  20422. CPPFLAGS="$ac_save_CPPFLAGS"
  20423. LIBS="$ac_save_LIBS"
  20424. fi
  20425. fi
  20426. XML_CPPFLAGS=""
  20427. XML_LIBS=""
  20428. exit 1
  20429. fi
  20430. rm -f conf.xmltest
  20431. # ------------------------------------------
  20432. # Check ssl library
  20433. # Original work at: http://autoconf-archive.cryp.to/check_ssl.html
  20434. # ------------------------------------------
  20435. { echo "$as_me:$LINENO: checking if ssl is wanted" >&5
  20436. echo $ECHO_N "checking if ssl is wanted... $ECHO_C" >&6; }
  20437. # Check whether --with-ssl was given.
  20438. if test "${with_ssl+set}" = set; then
  20439. withval=$with_ssl; { echo "$as_me:$LINENO: result: yes" >&5
  20440. echo "${ECHO_T}yes" >&6; }
  20441. for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
  20442. ssldir="$dir"
  20443. if test -f "$dir/include/openssl/ssl.h"; then
  20444. found_ssl="yes";
  20445. CFLAGS="$CFLAGS -I$ssldir/include/openssl";
  20446. break;
  20447. fi
  20448. if test -f "$dir/include/ssl.h"; then
  20449. found_ssl="yes";
  20450. CFLAGS="$CFLAGS -I$ssldir/include";
  20451. break
  20452. fi
  20453. done
  20454. if test x_$found_ssl != x_yes; then
  20455. { { echo "$as_me:$LINENO: error: Cannot find ssl libraries
  20456. Please goto http://www.openssl.org and install OpenSSL or
  20457. install it from your os distribution" >&5
  20458. echo "$as_me: error: Cannot find ssl libraries
  20459. Please goto http://www.openssl.org and install OpenSSL or
  20460. install it from your os distribution" >&2;}
  20461. { (exit 1); exit 1; }; }
  20462. else
  20463. printf "OpenSSL found in $ssldir\n";
  20464. LIBS="$LIBS -lssl -lcrypto";
  20465. LDFLAGS="$LDFLAGS -L$ssldir/lib";
  20466. cat >>confdefs.h <<\_ACEOF
  20467. @%:@define HAVE_SSL 1
  20468. _ACEOF
  20469. fi
  20470. else
  20471. { echo "$as_me:$LINENO: result: no" >&5
  20472. echo "${ECHO_T}no" >&6; }
  20473. fi
  20474. ac_config_files="$ac_config_files Makefile libcsoap/Makefile nanohttp/Makefile examples/Makefile examples/nanohttp/Makefile examples/csoap/Makefile libcsoap.pc csoap-config"
  20475. cat >confcache <<\_ACEOF
  20476. # This file is a shell script that caches the results of configure
  20477. # tests run on this system so they can be shared between configure
  20478. # scripts and configure runs, see configure's option --config-cache.
  20479. # It is not useful on other systems. If it contains results you don't
  20480. # want to keep, you may remove or edit it.
  20481. #
  20482. # config.status only pays attention to the cache file if you give it
  20483. # the --recheck option to rerun configure.
  20484. #
  20485. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20486. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20487. # following values.
  20488. _ACEOF
  20489. # The following way of writing the cache mishandles newlines in values,
  20490. # but we know of no workaround that is simple, portable, and efficient.
  20491. # So, we kill variables containing newlines.
  20492. # Ultrix sh set writes to stderr and can't be redirected directly,
  20493. # and sets the high bit in the cache file unless we assign to the vars.
  20494. (
  20495. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20496. eval ac_val=\$$ac_var
  20497. case $ac_val in #(
  20498. *${as_nl}*)
  20499. case $ac_var in #(
  20500. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  20501. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  20502. esac
  20503. case $ac_var in #(
  20504. _ | IFS | as_nl) ;; #(
  20505. *) $as_unset $ac_var ;;
  20506. esac ;;
  20507. esac
  20508. done
  20509. (set) 2>&1 |
  20510. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20511. *${as_nl}ac_space=\ *)
  20512. # `set' does not quote correctly, so add quotes (double-quote
  20513. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20514. sed -n \
  20515. "s/'/'\\\\''/g;
  20516. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20517. ;; #(
  20518. *)
  20519. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20520. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20521. ;;
  20522. esac |
  20523. sort
  20524. ) |
  20525. sed '
  20526. /^ac_cv_env_/b end
  20527. t clear
  20528. :clear
  20529. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20530. t end
  20531. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20532. :end' >>confcache
  20533. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20534. if test -w "$cache_file"; then
  20535. test "x$cache_file" != "x/dev/null" &&
  20536. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20537. echo "$as_me: updating cache $cache_file" >&6;}
  20538. cat confcache >$cache_file
  20539. else
  20540. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20541. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20542. fi
  20543. fi
  20544. rm -f confcache
  20545. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20546. # Let make expand exec_prefix.
  20547. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20548. DEFS=-DHAVE_CONFIG_H
  20549. ac_libobjs=
  20550. ac_ltlibobjs=
  20551. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  20552. # 1. Remove the extension, and $U if already installed.
  20553. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20554. ac_i=`echo "$ac_i" | sed "$ac_script"`
  20555. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20556. # will be set to the directory where LIBOBJS objects are built.
  20557. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20558. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20559. done
  20560. LIB@&t@OBJS=$ac_libobjs
  20561. LTLIBOBJS=$ac_ltlibobjs
  20562. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20563. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20564. Usually this means the macro was only invoked conditionally." >&5
  20565. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20566. Usually this means the macro was only invoked conditionally." >&2;}
  20567. { (exit 1); exit 1; }; }
  20568. fi
  20569. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20570. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20571. Usually this means the macro was only invoked conditionally." >&5
  20572. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20573. Usually this means the macro was only invoked conditionally." >&2;}
  20574. { (exit 1); exit 1; }; }
  20575. fi
  20576. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20577. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20578. Usually this means the macro was only invoked conditionally." >&5
  20579. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20580. Usually this means the macro was only invoked conditionally." >&2;}
  20581. { (exit 1); exit 1; }; }
  20582. fi
  20583. : ${CONFIG_STATUS=./config.status}
  20584. ac_clean_files_save=$ac_clean_files
  20585. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20586. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20587. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20588. cat >$CONFIG_STATUS <<_ACEOF
  20589. #! $SHELL
  20590. # Generated by $as_me.
  20591. # Run this file to recreate the current configuration.
  20592. # Compiler output produced by configure, useful for debugging
  20593. # configure, is in config.log if it exists.
  20594. debug=false
  20595. ac_cs_recheck=false
  20596. ac_cs_silent=false
  20597. SHELL=\${CONFIG_SHELL-$SHELL}
  20598. _ACEOF
  20599. cat >>$CONFIG_STATUS <<\_ACEOF
  20600. ## --------------------- ##
  20601. ## M4sh Initialization. ##
  20602. ## --------------------- ##
  20603. # Be Bourne compatible
  20604. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20605. emulate sh
  20606. NULLCMD=:
  20607. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20608. # is contrary to our usage. Disable this feature.
  20609. alias -g '${1+"$@"}'='"$@"'
  20610. setopt NO_GLOB_SUBST
  20611. else
  20612. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  20613. fi
  20614. BIN_SH=xpg4; export BIN_SH # for Tru64
  20615. DUALCASE=1; export DUALCASE # for MKS sh
  20616. # PATH needs CR
  20617. # Avoid depending upon Character Ranges.
  20618. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20619. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20620. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20621. as_cr_digits='0123456789'
  20622. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20623. # The user is always right.
  20624. if test "${PATH_SEPARATOR+set}" != set; then
  20625. echo "#! /bin/sh" >conf$$.sh
  20626. echo "exit 0" >>conf$$.sh
  20627. chmod +x conf$$.sh
  20628. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20629. PATH_SEPARATOR=';'
  20630. else
  20631. PATH_SEPARATOR=:
  20632. fi
  20633. rm -f conf$$.sh
  20634. fi
  20635. # Support unset when possible.
  20636. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20637. as_unset=unset
  20638. else
  20639. as_unset=false
  20640. fi
  20641. # IFS
  20642. # We need space, tab and new line, in precisely that order. Quoting is
  20643. # there to prevent editors from complaining about space-tab.
  20644. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20645. # splitting by setting IFS to empty value.)
  20646. as_nl='
  20647. '
  20648. IFS=" "" $as_nl"
  20649. # Find who we are. Look in the path if we contain no directory separator.
  20650. case $0 in
  20651. *[\\/]* ) as_myself=$0 ;;
  20652. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20653. for as_dir in $PATH
  20654. do
  20655. IFS=$as_save_IFS
  20656. test -z "$as_dir" && as_dir=.
  20657. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20658. done
  20659. IFS=$as_save_IFS
  20660. ;;
  20661. esac
  20662. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20663. # in which case we are not to be found in the path.
  20664. if test "x$as_myself" = x; then
  20665. as_myself=$0
  20666. fi
  20667. if test ! -f "$as_myself"; then
  20668. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20669. { (exit 1); exit 1; }
  20670. fi
  20671. # Work around bugs in pre-3.0 UWIN ksh.
  20672. for as_var in ENV MAIL MAILPATH
  20673. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20674. done
  20675. PS1='$ '
  20676. PS2='> '
  20677. PS4='+ '
  20678. # NLS nuisances.
  20679. for as_var in \
  20680. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20681. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20682. LC_TELEPHONE LC_TIME
  20683. do
  20684. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20685. eval $as_var=C; export $as_var
  20686. else
  20687. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20688. fi
  20689. done
  20690. # Required to use basename.
  20691. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20692. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20693. as_expr=expr
  20694. else
  20695. as_expr=false
  20696. fi
  20697. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20698. as_basename=basename
  20699. else
  20700. as_basename=false
  20701. fi
  20702. # Name of the executable.
  20703. as_me=`$as_basename -- "$0" ||
  20704. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20705. X"$0" : 'X\(//\)$' \| \
  20706. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20707. echo X/"$0" |
  20708. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20709. s//\1/
  20710. q
  20711. }
  20712. /^X\/\(\/\/\)$/{
  20713. s//\1/
  20714. q
  20715. }
  20716. /^X\/\(\/\).*/{
  20717. s//\1/
  20718. q
  20719. }
  20720. s/.*/./; q'`
  20721. # CDPATH.
  20722. $as_unset CDPATH
  20723. as_lineno_1=$LINENO
  20724. as_lineno_2=$LINENO
  20725. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20726. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20727. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20728. # uniformly replaced by the line number. The first 'sed' inserts a
  20729. # line-number line after each line using $LINENO; the second 'sed'
  20730. # does the real work. The second script uses 'N' to pair each
  20731. # line-number line with the line containing $LINENO, and appends
  20732. # trailing '-' during substitution so that $LINENO is not a special
  20733. # case at line end.
  20734. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20735. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20736. # E. McMahon (1931-1989) for sed's syntax. :-)
  20737. sed -n '
  20738. p
  20739. /[$]LINENO/=
  20740. ' <$as_myself |
  20741. sed '
  20742. s/[$]LINENO.*/&-/
  20743. t lineno
  20744. b
  20745. :lineno
  20746. N
  20747. :loop
  20748. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20749. t loop
  20750. s/-\n.*//
  20751. ' >$as_me.lineno &&
  20752. chmod +x "$as_me.lineno" ||
  20753. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20754. { (exit 1); exit 1; }; }
  20755. # Don't try to exec as it changes $[0], causing all sort of problems
  20756. # (the dirname of $[0] is not the place where we might find the
  20757. # original and so on. Autoconf is especially sensitive to this).
  20758. . "./$as_me.lineno"
  20759. # Exit status is that of the last command.
  20760. exit
  20761. }
  20762. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20763. as_dirname=dirname
  20764. else
  20765. as_dirname=false
  20766. fi
  20767. ECHO_C= ECHO_N= ECHO_T=
  20768. case `echo -n x` in
  20769. -n*)
  20770. case `echo 'x\c'` in
  20771. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20772. *) ECHO_C='\c';;
  20773. esac;;
  20774. *)
  20775. ECHO_N='-n';;
  20776. esac
  20777. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20778. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20779. as_expr=expr
  20780. else
  20781. as_expr=false
  20782. fi
  20783. rm -f conf$$ conf$$.exe conf$$.file
  20784. if test -d conf$$.dir; then
  20785. rm -f conf$$.dir/conf$$.file
  20786. else
  20787. rm -f conf$$.dir
  20788. mkdir conf$$.dir
  20789. fi
  20790. echo >conf$$.file
  20791. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20792. as_ln_s='ln -s'
  20793. # ... but there are two gotchas:
  20794. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20795. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20796. # In both cases, we have to default to `cp -p'.
  20797. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20798. as_ln_s='cp -p'
  20799. elif ln conf$$.file conf$$ 2>/dev/null; then
  20800. as_ln_s=ln
  20801. else
  20802. as_ln_s='cp -p'
  20803. fi
  20804. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20805. rmdir conf$$.dir 2>/dev/null
  20806. if mkdir -p . 2>/dev/null; then
  20807. as_mkdir_p=:
  20808. else
  20809. test -d ./-p && rmdir ./-p
  20810. as_mkdir_p=false
  20811. fi
  20812. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  20813. # systems may use methods other than mode bits to determine executability.
  20814. cat >conf$$.file <<_ASEOF
  20815. #! /bin/sh
  20816. exit 0
  20817. _ASEOF
  20818. chmod +x conf$$.file
  20819. if test -x conf$$.file >/dev/null 2>&1; then
  20820. as_executable_p="test -x"
  20821. else
  20822. as_executable_p=:
  20823. fi
  20824. rm -f conf$$.file
  20825. # Sed expression to map a string onto a valid CPP name.
  20826. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20827. # Sed expression to map a string onto a valid variable name.
  20828. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20829. exec 6>&1
  20830. # Save the log message, to keep $[0] and so on meaningful, and to
  20831. # report actual input values of CONFIG_FILES etc. instead of their
  20832. # values after options handling.
  20833. ac_log="
  20834. This file was extended by csoap $as_me 1.1.0, which was
  20835. generated by GNU Autoconf 2.59e. Invocation command line was
  20836. CONFIG_FILES = $CONFIG_FILES
  20837. CONFIG_HEADERS = $CONFIG_HEADERS
  20838. CONFIG_LINKS = $CONFIG_LINKS
  20839. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20840. $ $0 $@
  20841. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20842. "
  20843. _ACEOF
  20844. cat >>$CONFIG_STATUS <<_ACEOF
  20845. # Files that config.status was made for.
  20846. config_files="$ac_config_files"
  20847. config_headers="$ac_config_headers"
  20848. config_commands="$ac_config_commands"
  20849. _ACEOF
  20850. cat >>$CONFIG_STATUS <<\_ACEOF
  20851. ac_cs_usage="\
  20852. \`$as_me' instantiates files from templates according to the
  20853. current configuration.
  20854. Usage: $0 [OPTIONS] [FILE]...
  20855. -h, --help print this help, then exit
  20856. -V, --version print version number, then exit
  20857. -q, --quiet do not print progress messages
  20858. -d, --debug don't remove temporary files
  20859. --recheck update $as_me by reconfiguring in the same conditions
  20860. --file=FILE[:TEMPLATE]
  20861. instantiate the configuration file FILE
  20862. --header=FILE[:TEMPLATE]
  20863. instantiate the configuration header FILE
  20864. Configuration files:
  20865. $config_files
  20866. Configuration headers:
  20867. $config_headers
  20868. Configuration commands:
  20869. $config_commands
  20870. Report bugs to <bug-autoconf@gnu.org>."
  20871. _ACEOF
  20872. cat >>$CONFIG_STATUS <<_ACEOF
  20873. ac_cs_version="\\
  20874. csoap config.status 1.1.0
  20875. configured by $0, generated by GNU Autoconf 2.59e,
  20876. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20877. Copyright (C) 2006 Free Software Foundation, Inc.
  20878. This config.status script is free software; the Free Software Foundation
  20879. gives unlimited permission to copy, distribute and modify it."
  20880. ac_pwd='$ac_pwd'
  20881. srcdir='$srcdir'
  20882. INSTALL='$INSTALL'
  20883. _ACEOF
  20884. cat >>$CONFIG_STATUS <<\_ACEOF
  20885. # If no file are specified by the user, then we need to provide default
  20886. # value. By we need to know if files were specified by the user.
  20887. ac_need_defaults=:
  20888. while test $# != 0
  20889. do
  20890. case $1 in
  20891. --*=*)
  20892. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20893. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20894. ac_shift=:
  20895. ;;
  20896. *)
  20897. ac_option=$1
  20898. ac_optarg=$2
  20899. ac_shift=shift
  20900. ;;
  20901. esac
  20902. case $ac_option in
  20903. # Handling of the options.
  20904. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20905. ac_cs_recheck=: ;;
  20906. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20907. echo "$ac_cs_version"; exit ;;
  20908. --debug | --debu | --deb | --de | --d | -d )
  20909. debug=: ;;
  20910. --file | --fil | --fi | --f )
  20911. $ac_shift
  20912. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20913. ac_need_defaults=false;;
  20914. --header | --heade | --head | --hea )
  20915. $ac_shift
  20916. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20917. ac_need_defaults=false;;
  20918. --he | --h)
  20919. # Conflict between --help and --header
  20920. { echo "$as_me: error: ambiguous option: $1
  20921. Try \`$0 --help' for more information." >&2
  20922. { (exit 1); exit 1; }; };;
  20923. --help | --hel | -h )
  20924. echo "$ac_cs_usage"; exit ;;
  20925. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20926. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20927. ac_cs_silent=: ;;
  20928. # This is an error.
  20929. -*) { echo "$as_me: error: unrecognized option: $1
  20930. Try \`$0 --help' for more information." >&2
  20931. { (exit 1); exit 1; }; } ;;
  20932. *) ac_config_targets="$ac_config_targets $1"
  20933. ac_need_defaults=false ;;
  20934. esac
  20935. shift
  20936. done
  20937. ac_configure_extra_args=
  20938. if $ac_cs_silent; then
  20939. exec 6>/dev/null
  20940. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20941. fi
  20942. _ACEOF
  20943. cat >>$CONFIG_STATUS <<_ACEOF
  20944. if \$ac_cs_recheck; then
  20945. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20946. CONFIG_SHELL=$SHELL
  20947. export CONFIG_SHELL
  20948. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20949. fi
  20950. _ACEOF
  20951. cat >>$CONFIG_STATUS <<\_ACEOF
  20952. exec 5>>config.log
  20953. {
  20954. echo
  20955. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  20956. @%:@@%:@ Running $as_me. @%:@@%:@
  20957. _ASBOX
  20958. echo "$ac_log"
  20959. } >&5
  20960. _ACEOF
  20961. cat >>$CONFIG_STATUS <<_ACEOF
  20962. #
  20963. # INIT-COMMANDS
  20964. #
  20965. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20966. _ACEOF
  20967. cat >>$CONFIG_STATUS <<\_ACEOF
  20968. # Handling of arguments.
  20969. for ac_config_target in $ac_config_targets
  20970. do
  20971. case $ac_config_target in
  20972. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20973. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20974. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20975. "libcsoap/Makefile") CONFIG_FILES="$CONFIG_FILES libcsoap/Makefile" ;;
  20976. "nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES nanohttp/Makefile" ;;
  20977. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  20978. "examples/nanohttp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nanohttp/Makefile" ;;
  20979. "examples/csoap/Makefile") CONFIG_FILES="$CONFIG_FILES examples/csoap/Makefile" ;;
  20980. "libcsoap.pc") CONFIG_FILES="$CONFIG_FILES libcsoap.pc" ;;
  20981. "csoap-config") CONFIG_FILES="$CONFIG_FILES csoap-config" ;;
  20982. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20983. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20984. { (exit 1); exit 1; }; };;
  20985. esac
  20986. done
  20987. # If the user did not use the arguments to specify the items to instantiate,
  20988. # then the envvar interface is used. Set only those that are not.
  20989. # We use the long form for the default assignment because of an extremely
  20990. # bizarre bug on SunOS 4.1.3.
  20991. if $ac_need_defaults; then
  20992. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20993. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20994. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20995. fi
  20996. # Have a temporary directory for convenience. Make it in the build tree
  20997. # simply because there is no reason against having it here, and in addition,
  20998. # creating and moving files from /tmp can sometimes cause problems.
  20999. # Hook for its removal unless debugging.
  21000. # Note that there is a small window in which the directory will not be cleaned:
  21001. # after its creation but before its name has been assigned to `$tmp'.
  21002. $debug ||
  21003. {
  21004. tmp=
  21005. trap 'exit_status=$?
  21006. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21007. ' 0
  21008. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21009. }
  21010. # Create a (secure) tmp directory for tmp files.
  21011. {
  21012. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21013. test -n "$tmp" && test -d "$tmp"
  21014. } ||
  21015. {
  21016. tmp=./conf$$-$RANDOM
  21017. (umask 077 && mkdir "$tmp")
  21018. } ||
  21019. {
  21020. echo "$me: cannot create a temporary directory in ." >&2
  21021. { (exit 1); exit 1; }
  21022. }
  21023. #
  21024. # Set up the sed scripts for CONFIG_FILES section.
  21025. #
  21026. # No need to generate the scripts if there are no CONFIG_FILES.
  21027. # This happens for instance when ./config.status config.h
  21028. if test -n "$CONFIG_FILES"; then
  21029. _ACEOF
  21030. ac_delim='%!_!# '
  21031. for ac_last_try in false false false false false :; do
  21032. cat >conf$$subs.sed <<_ACEOF
  21033. SHELL!$SHELL$ac_delim
  21034. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  21035. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  21036. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  21037. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  21038. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  21039. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  21040. exec_prefix!$exec_prefix$ac_delim
  21041. prefix!$prefix$ac_delim
  21042. program_transform_name!$program_transform_name$ac_delim
  21043. bindir!$bindir$ac_delim
  21044. sbindir!$sbindir$ac_delim
  21045. libexecdir!$libexecdir$ac_delim
  21046. datarootdir!$datarootdir$ac_delim
  21047. datadir!$datadir$ac_delim
  21048. sysconfdir!$sysconfdir$ac_delim
  21049. sharedstatedir!$sharedstatedir$ac_delim
  21050. localstatedir!$localstatedir$ac_delim
  21051. includedir!$includedir$ac_delim
  21052. oldincludedir!$oldincludedir$ac_delim
  21053. docdir!$docdir$ac_delim
  21054. infodir!$infodir$ac_delim
  21055. htmldir!$htmldir$ac_delim
  21056. dvidir!$dvidir$ac_delim
  21057. pdfdir!$pdfdir$ac_delim
  21058. psdir!$psdir$ac_delim
  21059. libdir!$libdir$ac_delim
  21060. localedir!$localedir$ac_delim
  21061. mandir!$mandir$ac_delim
  21062. DEFS!$DEFS$ac_delim
  21063. ECHO_C!$ECHO_C$ac_delim
  21064. ECHO_N!$ECHO_N$ac_delim
  21065. ECHO_T!$ECHO_T$ac_delim
  21066. LIBS!$LIBS$ac_delim
  21067. build_alias!$build_alias$ac_delim
  21068. host_alias!$host_alias$ac_delim
  21069. target_alias!$target_alias$ac_delim
  21070. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21071. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21072. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21073. CYGPATH_W!$CYGPATH_W$ac_delim
  21074. PACKAGE!$PACKAGE$ac_delim
  21075. VERSION!$VERSION$ac_delim
  21076. ACLOCAL!$ACLOCAL$ac_delim
  21077. AUTOCONF!$AUTOCONF$ac_delim
  21078. AUTOMAKE!$AUTOMAKE$ac_delim
  21079. AUTOHEADER!$AUTOHEADER$ac_delim
  21080. MAKEINFO!$MAKEINFO$ac_delim
  21081. install_sh!$install_sh$ac_delim
  21082. STRIP!$STRIP$ac_delim
  21083. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21084. mkdir_p!$mkdir_p$ac_delim
  21085. AWK!$AWK$ac_delim
  21086. SET_MAKE!$SET_MAKE$ac_delim
  21087. am__leading_dot!$am__leading_dot$ac_delim
  21088. AMTAR!$AMTAR$ac_delim
  21089. am__tar!$am__tar$ac_delim
  21090. am__untar!$am__untar$ac_delim
  21091. CC!$CC$ac_delim
  21092. CFLAGS!$CFLAGS$ac_delim
  21093. LDFLAGS!$LDFLAGS$ac_delim
  21094. CPPFLAGS!$CPPFLAGS$ac_delim
  21095. ac_ct_CC!$ac_ct_CC$ac_delim
  21096. EXEEXT!$EXEEXT$ac_delim
  21097. OBJEXT!$OBJEXT$ac_delim
  21098. DEPDIR!$DEPDIR$ac_delim
  21099. am__include!$am__include$ac_delim
  21100. am__quote!$am__quote$ac_delim
  21101. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21102. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21103. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21104. CCDEPMODE!$CCDEPMODE$ac_delim
  21105. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21106. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21107. build!$build$ac_delim
  21108. build_cpu!$build_cpu$ac_delim
  21109. build_vendor!$build_vendor$ac_delim
  21110. build_os!$build_os$ac_delim
  21111. host!$host$ac_delim
  21112. host_cpu!$host_cpu$ac_delim
  21113. host_vendor!$host_vendor$ac_delim
  21114. host_os!$host_os$ac_delim
  21115. GREP!$GREP$ac_delim
  21116. EGREP!$EGREP$ac_delim
  21117. LN_S!$LN_S$ac_delim
  21118. ECHO!$ECHO$ac_delim
  21119. AR!$AR$ac_delim
  21120. RANLIB!$RANLIB$ac_delim
  21121. CPP!$CPP$ac_delim
  21122. CXX!$CXX$ac_delim
  21123. CXXFLAGS!$CXXFLAGS$ac_delim
  21124. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21125. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21126. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21127. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21128. CXXCPP!$CXXCPP$ac_delim
  21129. F77!$F77$ac_delim
  21130. _ACEOF
  21131. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21132. break
  21133. elif $ac_last_try; then
  21134. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21135. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21136. { (exit 1); exit 1; }; }
  21137. else
  21138. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21139. fi
  21140. done
  21141. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21142. if test -n "$ac_eof"; then
  21143. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21144. ac_eof=`expr $ac_eof + 1`
  21145. fi
  21146. cat >>$CONFIG_STATUS <<_ACEOF
  21147. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21148. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21149. _ACEOF
  21150. sed '
  21151. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21152. s/^/s,@/; s/!/@,|#_!!_#|/
  21153. :n
  21154. t n
  21155. s/'"$ac_delim"'$/,g/; t
  21156. s/$/\\/; p
  21157. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21158. ' >>$CONFIG_STATUS <conf$$subs.sed
  21159. rm -f conf$$subs.sed
  21160. cat >>$CONFIG_STATUS <<_ACEOF
  21161. CEOF$ac_eof
  21162. _ACEOF
  21163. ac_delim='%!_!# '
  21164. for ac_last_try in false false false false false :; do
  21165. cat >conf$$subs.sed <<_ACEOF
  21166. FFLAGS!$FFLAGS$ac_delim
  21167. ac_ct_F77!$ac_ct_F77$ac_delim
  21168. LIBTOOL!$LIBTOOL$ac_delim
  21169. csoap_major!$csoap_major$ac_delim
  21170. csoap_minor!$csoap_minor$ac_delim
  21171. csoap_patch!$csoap_patch$ac_delim
  21172. csoap_release!$csoap_release$ac_delim
  21173. csoap_version!$csoap_version$ac_delim
  21174. nanohttp_release!$nanohttp_release$ac_delim
  21175. nanohttp_version!$nanohttp_version$ac_delim
  21176. LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
  21177. acx_pthread_config!$acx_pthread_config$ac_delim
  21178. PTHREAD_CC!$PTHREAD_CC$ac_delim
  21179. PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
  21180. PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
  21181. LIBSOCKET!$LIBSOCKET$ac_delim
  21182. LIBNSL!$LIBNSL$ac_delim
  21183. XML2_CONFIG!$XML2_CONFIG$ac_delim
  21184. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  21185. XML_LIBS!$XML_LIBS$ac_delim
  21186. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21187. _ACEOF
  21188. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
  21189. break
  21190. elif $ac_last_try; then
  21191. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21192. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21193. { (exit 1); exit 1; }; }
  21194. else
  21195. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21196. fi
  21197. done
  21198. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21199. if test -n "$ac_eof"; then
  21200. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21201. ac_eof=`expr $ac_eof + 1`
  21202. fi
  21203. cat >>$CONFIG_STATUS <<_ACEOF
  21204. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  21205. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  21206. _ACEOF
  21207. sed '
  21208. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21209. s/^/s,@/; s/!/@,|#_!!_#|/
  21210. :n
  21211. t n
  21212. s/'"$ac_delim"'$/,g/; t
  21213. s/$/\\/; p
  21214. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21215. ' >>$CONFIG_STATUS <conf$$subs.sed
  21216. rm -f conf$$subs.sed
  21217. cat >>$CONFIG_STATUS <<_ACEOF
  21218. :end
  21219. s/|#_!!_#|//g
  21220. CEOF$ac_eof
  21221. _ACEOF
  21222. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21223. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21224. # trailing colons and then remove the whole line if VPATH becomes empty
  21225. # (actually we leave an empty line to preserve line numbers).
  21226. if test "x$srcdir" = x.; then
  21227. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21228. s/:*\$(srcdir):*/:/
  21229. s/:*\${srcdir}:*/:/
  21230. s/:*@srcdir@:*/:/
  21231. s/^\([^=]*=[ ]*\):*/\1/
  21232. s/:*$//
  21233. s/^[^=]*=[ ]*$//
  21234. }'
  21235. fi
  21236. cat >>$CONFIG_STATUS <<\_ACEOF
  21237. fi # test -n "$CONFIG_FILES"
  21238. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  21239. do
  21240. case $ac_tag in
  21241. :[FHLC]) ac_mode=$ac_tag; continue;;
  21242. esac
  21243. case $ac_mode$ac_tag in
  21244. :[FHL]*:*);;
  21245. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  21246. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  21247. { (exit 1); exit 1; }; };;
  21248. :[FH]-) ac_tag=-:-;;
  21249. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21250. esac
  21251. ac_save_IFS=$IFS
  21252. IFS=:
  21253. set x $ac_tag
  21254. IFS=$ac_save_IFS
  21255. shift
  21256. ac_file=$1
  21257. shift
  21258. case $ac_mode in
  21259. :L) ac_source=$1;;
  21260. :[FH])
  21261. ac_file_inputs=
  21262. for ac_f
  21263. do
  21264. case $ac_f in
  21265. -) ac_f="$tmp/stdin";;
  21266. *) # Look for the file first in the build tree, then in the source tree
  21267. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21268. # because $ac_f cannot contain `:'.
  21269. test -f "$ac_f" ||
  21270. case $ac_f in
  21271. [\\/$]*) false;;
  21272. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21273. esac ||
  21274. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21275. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21276. { (exit 1); exit 1; }; };;
  21277. esac
  21278. ac_file_inputs="$ac_file_inputs $ac_f"
  21279. done
  21280. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21281. # use $as_me), people would be surprised to read:
  21282. # /* config.h. Generated by config.status. */
  21283. configure_input="Generated from "`IFS=:
  21284. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  21285. if test x"$ac_file" != x-; then
  21286. configure_input="$ac_file. $configure_input"
  21287. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21288. echo "$as_me: creating $ac_file" >&6;}
  21289. fi
  21290. case $ac_tag in
  21291. *:-:* | *:-) cat >"$tmp/stdin";;
  21292. esac
  21293. ;;
  21294. esac
  21295. ac_dir=`$as_dirname -- "$ac_file" ||
  21296. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21297. X"$ac_file" : 'X\(//\)[^/]' \| \
  21298. X"$ac_file" : 'X\(//\)$' \| \
  21299. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21300. echo X"$ac_file" |
  21301. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21302. s//\1/
  21303. q
  21304. }
  21305. /^X\(\/\/\)[^/].*/{
  21306. s//\1/
  21307. q
  21308. }
  21309. /^X\(\/\/\)$/{
  21310. s//\1/
  21311. q
  21312. }
  21313. /^X\(\/\).*/{
  21314. s//\1/
  21315. q
  21316. }
  21317. s/.*/./; q'`
  21318. { as_dir="$ac_dir"
  21319. case $as_dir in #(
  21320. -*) as_dir=./$as_dir;;
  21321. esac
  21322. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21323. as_dirs=
  21324. while :; do
  21325. case $as_dir in #(
  21326. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21327. *) as_qdir=$as_dir;;
  21328. esac
  21329. as_dirs="'$as_qdir' $as_dirs"
  21330. as_dir=`$as_dirname -- "$as_dir" ||
  21331. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21332. X"$as_dir" : 'X\(//\)[^/]' \| \
  21333. X"$as_dir" : 'X\(//\)$' \| \
  21334. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21335. echo X"$as_dir" |
  21336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21337. s//\1/
  21338. q
  21339. }
  21340. /^X\(\/\/\)[^/].*/{
  21341. s//\1/
  21342. q
  21343. }
  21344. /^X\(\/\/\)$/{
  21345. s//\1/
  21346. q
  21347. }
  21348. /^X\(\/\).*/{
  21349. s//\1/
  21350. q
  21351. }
  21352. s/.*/./; q'`
  21353. test -d "$as_dir" && break
  21354. done
  21355. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21356. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21357. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21358. { (exit 1); exit 1; }; }; }
  21359. ac_builddir=.
  21360. case "$ac_dir" in
  21361. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21362. *)
  21363. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21364. # A ".." for each directory in $ac_dir_suffix.
  21365. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  21366. case $ac_top_builddir_sub in
  21367. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21368. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21369. esac ;;
  21370. esac
  21371. ac_abs_top_builddir=$ac_pwd
  21372. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21373. # for backward compatibility:
  21374. ac_top_builddir=$ac_top_build_prefix
  21375. case $srcdir in
  21376. .) # We are building in place.
  21377. ac_srcdir=.
  21378. ac_top_srcdir=$ac_top_builddir_sub
  21379. ac_abs_top_srcdir=$ac_pwd ;;
  21380. [\\/]* | ?:[\\/]* ) # Absolute name.
  21381. ac_srcdir=$srcdir$ac_dir_suffix;
  21382. ac_top_srcdir=$srcdir
  21383. ac_abs_top_srcdir=$srcdir ;;
  21384. *) # Relative name.
  21385. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21386. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21387. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21388. esac
  21389. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21390. case $ac_mode in
  21391. :F)
  21392. #
  21393. # CONFIG_FILE
  21394. #
  21395. case $INSTALL in
  21396. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21397. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21398. esac
  21399. _ACEOF
  21400. cat >>$CONFIG_STATUS <<\_ACEOF
  21401. # If the template does not know about datarootdir, expand it.
  21402. # FIXME: This hack should be removed a few years after 2.60.
  21403. ac_datarootdir_hack=; ac_datarootdir_seen=
  21404. case `sed -n '/datarootdir/ {
  21405. p
  21406. q
  21407. }
  21408. /@datadir@/p
  21409. /@docdir@/p
  21410. /@infodir@/p
  21411. /@localedir@/p
  21412. /@mandir@/p
  21413. ' $ac_file_inputs` in
  21414. *datarootdir*) ac_datarootdir_seen=yes;;
  21415. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21416. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21417. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21418. _ACEOF
  21419. cat >>$CONFIG_STATUS <<_ACEOF
  21420. ac_datarootdir_hack='
  21421. s&@datadir@&$datadir&g
  21422. s&@docdir@&$docdir&g
  21423. s&@infodir@&$infodir&g
  21424. s&@localedir@&$localedir&g
  21425. s&@mandir@&$mandir&g
  21426. s&\\\${datarootdir}&$datarootdir&g' ;;
  21427. esac
  21428. _ACEOF
  21429. # Neutralize VPATH when `$srcdir' = `.'.
  21430. # Shell code in configure.ac might set extrasub.
  21431. # FIXME: do we really want to maintain this feature?
  21432. cat >>$CONFIG_STATUS <<_ACEOF
  21433. sed "$ac_vpsub
  21434. $extrasub
  21435. _ACEOF
  21436. cat >>$CONFIG_STATUS <<\_ACEOF
  21437. :t
  21438. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21439. s&@configure_input@&$configure_input&;t t
  21440. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21441. s&@srcdir@&$ac_srcdir&;t t
  21442. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21443. s&@top_srcdir@&$ac_top_srcdir&;t t
  21444. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21445. s&@builddir@&$ac_builddir&;t t
  21446. s&@abs_builddir@&$ac_abs_builddir&;t t
  21447. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21448. s&@INSTALL@&$ac_INSTALL&;t t
  21449. $ac_datarootdir_hack
  21450. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  21451. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21452. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21453. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21454. which seems to be undefined. Please make sure it is defined." >&5
  21455. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21456. which seems to be undefined. Please make sure it is defined." >&2;}
  21457. rm -f "$tmp/stdin"
  21458. case $ac_file in
  21459. -) cat "$tmp/out"; rm -f "$tmp/out";;
  21460. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  21461. esac
  21462. ;;
  21463. :H)
  21464. #
  21465. # CONFIG_HEADER
  21466. #
  21467. _ACEOF
  21468. # Transform confdefs.h into a sed script `conftest.defines', that
  21469. # substitutes the proper values into config.h.in to produce config.h.
  21470. rm -f conftest.defines conftest.tail
  21471. # First, append a space to every undef/define line, to ease matching.
  21472. echo 's/$/ /' >conftest.defines
  21473. # Then, protect against being on the right side of a sed subst, or in
  21474. # an unquoted here document, in config.status. If some macros were
  21475. # called several times there might be several #defines for the same
  21476. # symbol, which is useless. But do not sort them, since the last
  21477. # AC_DEFINE must be honored.
  21478. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21479. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21480. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21481. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21482. # just an empty string.
  21483. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21484. ac_dB='\\)[ (].*,\\1define\\2'
  21485. ac_dC=' '
  21486. ac_dD=' ,'
  21487. uniq confdefs.h |
  21488. sed -n '
  21489. t rset
  21490. :rset
  21491. s/^[ ]*#[ ]*define[ ][ ]*//
  21492. t ok
  21493. d
  21494. :ok
  21495. s/[\\&,]/\\&/g
  21496. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21497. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21498. ' >>conftest.defines
  21499. # Remove the space that was appended to ease matching.
  21500. # Then replace #undef with comments. This is necessary, for
  21501. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21502. # on some systems where configure will not decide to define it.
  21503. # (The regexp can be short, since the line contains either #define or #undef.)
  21504. echo 's/ $//
  21505. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21506. # Break up conftest.defines:
  21507. ac_max_sed_lines=50
  21508. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  21509. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  21510. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  21511. # et cetera.
  21512. ac_in='$ac_file_inputs'
  21513. ac_out='"$tmp/out1"'
  21514. ac_nxt='"$tmp/out2"'
  21515. while :
  21516. do
  21517. # Write a here document:
  21518. cat >>$CONFIG_STATUS <<_ACEOF
  21519. # First, check the format of the line:
  21520. cat >"\$tmp/defines.sed" <<\\CEOF
  21521. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  21522. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  21523. b
  21524. :def
  21525. _ACEOF
  21526. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  21527. echo 'CEOF
  21528. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  21529. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  21530. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  21531. grep . conftest.tail >/dev/null || break
  21532. rm -f conftest.defines
  21533. mv conftest.tail conftest.defines
  21534. done
  21535. rm -f conftest.defines conftest.tail
  21536. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21537. cat >>$CONFIG_STATUS <<\_ACEOF
  21538. if test x"$ac_file" != x-; then
  21539. echo "/* $configure_input */" >"$tmp/config.h"
  21540. cat "$ac_result" >>"$tmp/config.h"
  21541. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21542. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21543. echo "$as_me: $ac_file is unchanged" >&6;}
  21544. else
  21545. rm -f $ac_file
  21546. mv "$tmp/config.h" $ac_file
  21547. fi
  21548. else
  21549. echo "/* $configure_input */"
  21550. cat "$ac_result"
  21551. fi
  21552. rm -f "$tmp/out12"
  21553. # Compute $ac_file's index in $config_headers.
  21554. _am_stamp_count=1
  21555. for _am_header in $config_headers :; do
  21556. case $_am_header in
  21557. $ac_file | $ac_file:* )
  21558. break ;;
  21559. * )
  21560. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21561. esac
  21562. done
  21563. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  21564. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21565. X$ac_file : 'X\(//\)[^/]' \| \
  21566. X$ac_file : 'X\(//\)$' \| \
  21567. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  21568. echo X$ac_file |
  21569. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21570. s//\1/
  21571. q
  21572. }
  21573. /^X\(\/\/\)[^/].*/{
  21574. s//\1/
  21575. q
  21576. }
  21577. /^X\(\/\/\)$/{
  21578. s//\1/
  21579. q
  21580. }
  21581. /^X\(\/\).*/{
  21582. s//\1/
  21583. q
  21584. }
  21585. s/.*/./; q'`/stamp-h$_am_stamp_count
  21586. ;;
  21587. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21588. echo "$as_me: executing $ac_file commands" >&6;}
  21589. ;;
  21590. esac
  21591. case $ac_file$ac_mode in
  21592. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21593. # Strip MF so we end up with the name of the file.
  21594. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21595. # Check whether this is an Automake generated Makefile or not.
  21596. # We used to match only the files named `Makefile.in', but
  21597. # some people rename them; so instead we look at the file content.
  21598. # Grep'ing the first line is not enough: some people post-process
  21599. # each Makefile.in and add a new line on top of each file to say so.
  21600. # So let's grep whole file.
  21601. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  21602. dirpart=`$as_dirname -- "$mf" ||
  21603. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21604. X"$mf" : 'X\(//\)[^/]' \| \
  21605. X"$mf" : 'X\(//\)$' \| \
  21606. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21607. echo X"$mf" |
  21608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21609. s//\1/
  21610. q
  21611. }
  21612. /^X\(\/\/\)[^/].*/{
  21613. s//\1/
  21614. q
  21615. }
  21616. /^X\(\/\/\)$/{
  21617. s//\1/
  21618. q
  21619. }
  21620. /^X\(\/\).*/{
  21621. s//\1/
  21622. q
  21623. }
  21624. s/.*/./; q'`
  21625. else
  21626. continue
  21627. fi
  21628. # Extract the definition of DEPDIR, am__include, and am__quote
  21629. # from the Makefile without running `make'.
  21630. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21631. test -z "$DEPDIR" && continue
  21632. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21633. test -z "am__include" && continue
  21634. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21635. # When using ansi2knr, U may be empty or an underscore; expand it
  21636. U=`sed -n 's/^U = //p' < "$mf"`
  21637. # Find all dependency output files, they are included files with
  21638. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21639. # simplest approach to changing $(DEPDIR) to its actual value in the
  21640. # expansion.
  21641. for file in `sed -n "
  21642. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21643. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21644. # Make sure the directory exists.
  21645. test -f "$dirpart/$file" && continue
  21646. fdir=`$as_dirname -- "$file" ||
  21647. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21648. X"$file" : 'X\(//\)[^/]' \| \
  21649. X"$file" : 'X\(//\)$' \| \
  21650. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21651. echo X"$file" |
  21652. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21653. s//\1/
  21654. q
  21655. }
  21656. /^X\(\/\/\)[^/].*/{
  21657. s//\1/
  21658. q
  21659. }
  21660. /^X\(\/\/\)$/{
  21661. s//\1/
  21662. q
  21663. }
  21664. /^X\(\/\).*/{
  21665. s//\1/
  21666. q
  21667. }
  21668. s/.*/./; q'`
  21669. { as_dir=$dirpart/$fdir
  21670. case $as_dir in #(
  21671. -*) as_dir=./$as_dir;;
  21672. esac
  21673. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21674. as_dirs=
  21675. while :; do
  21676. case $as_dir in #(
  21677. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21678. *) as_qdir=$as_dir;;
  21679. esac
  21680. as_dirs="'$as_qdir' $as_dirs"
  21681. as_dir=`$as_dirname -- "$as_dir" ||
  21682. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21683. X"$as_dir" : 'X\(//\)[^/]' \| \
  21684. X"$as_dir" : 'X\(//\)$' \| \
  21685. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21686. echo X"$as_dir" |
  21687. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21688. s//\1/
  21689. q
  21690. }
  21691. /^X\(\/\/\)[^/].*/{
  21692. s//\1/
  21693. q
  21694. }
  21695. /^X\(\/\/\)$/{
  21696. s//\1/
  21697. q
  21698. }
  21699. /^X\(\/\).*/{
  21700. s//\1/
  21701. q
  21702. }
  21703. s/.*/./; q'`
  21704. test -d "$as_dir" && break
  21705. done
  21706. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21707. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21708. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21709. { (exit 1); exit 1; }; }; }
  21710. # echo "creating $dirpart/$file"
  21711. echo '# dummy' > "$dirpart/$file"
  21712. done
  21713. done
  21714. ;;
  21715. esac
  21716. done # for ac_tag
  21717. { (exit 0); exit 0; }
  21718. _ACEOF
  21719. chmod +x $CONFIG_STATUS
  21720. ac_clean_files=$ac_clean_files_save
  21721. # configure is writing to config.log, and then calls config.status.
  21722. # config.status does its own redirection, appending to config.log.
  21723. # Unfortunately, on DOS this fails, as config.log is still kept open
  21724. # by configure, so config.status won't be able to write to it; its
  21725. # output is simply discarded. So we exec the FD to /dev/null,
  21726. # effectively closing config.log, so it can be properly (re)opened and
  21727. # appended to by config.status. When coming back to configure, we
  21728. # need to make the FD available again.
  21729. if test "$no_create" != yes; then
  21730. ac_cs_success=:
  21731. ac_config_status_args=
  21732. test "$silent" = yes &&
  21733. ac_config_status_args="$ac_config_status_args --quiet"
  21734. exec 5>/dev/null
  21735. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21736. exec 5>>config.log
  21737. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21738. # would make configure fail if this is the last instruction.
  21739. $ac_cs_success || { (exit 1); exit 1; }
  21740. fi
  21741. echo "Configured cSOAP $csoap_major.$csoap_minor.$csoap_patch for installation in $prefix";