/contrib/binutils/bfd/configure

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 22860 lines · 19143 code · 1957 blank · 1760 comment · 1555 complexity · 5409c422045c86a7403a70e5500b2fd6 MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$lt_ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. ECHO=${lt_ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $ECHO works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<_LT_EOF
  240. $*
  241. _LT_EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$lt_ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  253. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  254. then
  255. break
  256. fi
  257. done
  258. fi
  259. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  260. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  261. test "X$echo_testing_string" = "X$echo_test_string"; then
  262. :
  263. else
  264. # The Solaris, AIX, and Digital Unix default echo programs unquote
  265. # backslashes. This makes it impossible to quote backslashes using
  266. # echo "$something" | sed 's/\\/\\\\/g'
  267. #
  268. # So, first we look for a working echo in the user's PATH.
  269. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  270. for dir in $PATH /usr/ucb; do
  271. IFS="$lt_save_ifs"
  272. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  273. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  274. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  275. test "X$echo_testing_string" = "X$echo_test_string"; then
  276. ECHO="$dir/echo"
  277. break
  278. fi
  279. done
  280. IFS="$lt_save_ifs"
  281. if test "X$ECHO" = Xecho; then
  282. # We didn't find a better echo, so look for alternatives.
  283. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  284. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  285. test "X$echo_testing_string" = "X$echo_test_string"; then
  286. # This shell has a builtin print -r that does the trick.
  287. ECHO='print -r'
  288. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  289. test "X$CONFIG_SHELL" != X/bin/ksh; then
  290. # If we have ksh, try running configure again with it.
  291. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  292. export ORIGINAL_CONFIG_SHELL
  293. CONFIG_SHELL=/bin/ksh
  294. export CONFIG_SHELL
  295. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  296. else
  297. # Try using printf.
  298. ECHO='printf %s\n'
  299. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  300. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  301. test "X$echo_testing_string" = "X$echo_test_string"; then
  302. # Cool, printf works
  303. :
  304. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  305. test "X$echo_testing_string" = 'X\t' &&
  306. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  307. test "X$echo_testing_string" = "X$echo_test_string"; then
  308. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  309. export CONFIG_SHELL
  310. SHELL="$CONFIG_SHELL"
  311. export SHELL
  312. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  313. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  314. test "X$echo_testing_string" = 'X\t' &&
  315. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  316. test "X$echo_testing_string" = "X$echo_test_string"; then
  317. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  318. else
  319. # maybe with a smaller string...
  320. prev=:
  321. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  322. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  323. then
  324. break
  325. fi
  326. prev="$cmd"
  327. done
  328. if test "$prev" != 'sed 50q "$0"'; then
  329. echo_test_string=`eval $prev`
  330. export echo_test_string
  331. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  332. else
  333. # Oops. We lost completely, so just stick with echo.
  334. ECHO=echo
  335. fi
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. # Copy echo and quote the copy suitably for passing to libtool from
  342. # the Makefile, instead of quoting the original, which is used later.
  343. lt_ECHO=$ECHO
  344. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  345. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  346. fi
  347. # Name of the host.
  348. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  349. # so uname gets run too.
  350. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  351. exec 6>&1
  352. #
  353. # Initializations.
  354. #
  355. ac_default_prefix=/usr/local
  356. ac_config_libobj_dir=.
  357. cross_compiling=no
  358. subdirs=
  359. MFLAGS=
  360. MAKEFLAGS=
  361. SHELL=${CONFIG_SHELL-/bin/sh}
  362. # Maximum number of lines to put in a shell here document.
  363. # This variable seems obsolete. It should probably be removed, and
  364. # only ac_max_sed_lines should be used.
  365. : ${ac_max_here_lines=38}
  366. # Identity of this package.
  367. PACKAGE_NAME=
  368. PACKAGE_TARNAME=
  369. PACKAGE_VERSION=
  370. PACKAGE_STRING=
  371. PACKAGE_BUGREPORT=
  372. ac_unique_file="libbfd.c"
  373. # Factoring default headers for most tests.
  374. ac_includes_default="\
  375. #include <stdio.h>
  376. #if HAVE_SYS_TYPES_H
  377. # include <sys/types.h>
  378. #endif
  379. #if HAVE_SYS_STAT_H
  380. # include <sys/stat.h>
  381. #endif
  382. #if STDC_HEADERS
  383. # include <stdlib.h>
  384. # include <stddef.h>
  385. #else
  386. # if HAVE_STDLIB_H
  387. # include <stdlib.h>
  388. # endif
  389. #endif
  390. #if HAVE_STRING_H
  391. # if !STDC_HEADERS && HAVE_MEMORY_H
  392. # include <memory.h>
  393. # endif
  394. # include <string.h>
  395. #endif
  396. #if HAVE_STRINGS_H
  397. # include <strings.h>
  398. #endif
  399. #if HAVE_INTTYPES_H
  400. # include <inttypes.h>
  401. #else
  402. # if HAVE_STDINT_H
  403. # include <stdint.h>
  404. # endif
  405. #endif
  406. #if HAVE_UNISTD_H
  407. # include <unistd.h>
  408. #endif"
  409. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
  410. ac_subst_files=''
  411. # Initialize some variables set by options.
  412. ac_init_help=
  413. ac_init_version=false
  414. # The variables have the same names as the options, with
  415. # dashes changed to underlines.
  416. cache_file=/dev/null
  417. exec_prefix=NONE
  418. no_create=
  419. no_recursion=
  420. prefix=NONE
  421. program_prefix=NONE
  422. program_suffix=NONE
  423. program_transform_name=s,x,x,
  424. silent=
  425. site=
  426. srcdir=
  427. verbose=
  428. x_includes=NONE
  429. x_libraries=NONE
  430. # Installation directory options.
  431. # These are left unexpanded so users can "make install exec_prefix=/foo"
  432. # and all the variables that are supposed to be based on exec_prefix
  433. # by default will actually change.
  434. # Use braces instead of parens because sh, perl, etc. also accept them.
  435. bindir='${exec_prefix}/bin'
  436. sbindir='${exec_prefix}/sbin'
  437. libexecdir='${exec_prefix}/libexec'
  438. datadir='${prefix}/share'
  439. sysconfdir='${prefix}/etc'
  440. sharedstatedir='${prefix}/com'
  441. localstatedir='${prefix}/var'
  442. libdir='${exec_prefix}/lib'
  443. includedir='${prefix}/include'
  444. oldincludedir='/usr/include'
  445. infodir='${prefix}/info'
  446. mandir='${prefix}/man'
  447. ac_prev=
  448. for ac_option
  449. do
  450. # If the previous option needs an argument, assign it.
  451. if test -n "$ac_prev"; then
  452. eval "$ac_prev=\$ac_option"
  453. ac_prev=
  454. continue
  455. fi
  456. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  457. # Accept the important Cygnus configure options, so we can diagnose typos.
  458. case $ac_option in
  459. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  460. ac_prev=bindir ;;
  461. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  462. bindir=$ac_optarg ;;
  463. -build | --build | --buil | --bui | --bu)
  464. ac_prev=build_alias ;;
  465. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  466. build_alias=$ac_optarg ;;
  467. -cache-file | --cache-file | --cache-fil | --cache-fi \
  468. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  469. ac_prev=cache_file ;;
  470. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  471. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  472. cache_file=$ac_optarg ;;
  473. --config-cache | -C)
  474. cache_file=config.cache ;;
  475. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  476. ac_prev=datadir ;;
  477. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  478. | --da=*)
  479. datadir=$ac_optarg ;;
  480. -disable-* | --disable-*)
  481. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  482. # Reject names that are not valid shell variable names.
  483. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  484. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  485. { (exit 1); exit 1; }; }
  486. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  487. eval "enable_$ac_feature=no" ;;
  488. -enable-* | --enable-*)
  489. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  490. # Reject names that are not valid shell variable names.
  491. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  492. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  493. { (exit 1); exit 1; }; }
  494. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  495. case $ac_option in
  496. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  497. *) ac_optarg=yes ;;
  498. esac
  499. eval "enable_$ac_feature='$ac_optarg'" ;;
  500. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  501. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  502. | --exec | --exe | --ex)
  503. ac_prev=exec_prefix ;;
  504. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  505. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  506. | --exec=* | --exe=* | --ex=*)
  507. exec_prefix=$ac_optarg ;;
  508. -gas | --gas | --ga | --g)
  509. # Obsolete; use --with-gas.
  510. with_gas=yes ;;
  511. -help | --help | --hel | --he | -h)
  512. ac_init_help=long ;;
  513. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  514. ac_init_help=recursive ;;
  515. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  516. ac_init_help=short ;;
  517. -host | --host | --hos | --ho)
  518. ac_prev=host_alias ;;
  519. -host=* | --host=* | --hos=* | --ho=*)
  520. host_alias=$ac_optarg ;;
  521. -includedir | --includedir | --includedi | --included | --include \
  522. | --includ | --inclu | --incl | --inc)
  523. ac_prev=includedir ;;
  524. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  525. | --includ=* | --inclu=* | --incl=* | --inc=*)
  526. includedir=$ac_optarg ;;
  527. -infodir | --infodir | --infodi | --infod | --info | --inf)
  528. ac_prev=infodir ;;
  529. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  530. infodir=$ac_optarg ;;
  531. -libdir | --libdir | --libdi | --libd)
  532. ac_prev=libdir ;;
  533. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  534. libdir=$ac_optarg ;;
  535. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  536. | --libexe | --libex | --libe)
  537. ac_prev=libexecdir ;;
  538. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  539. | --libexe=* | --libex=* | --libe=*)
  540. libexecdir=$ac_optarg ;;
  541. -localstatedir | --localstatedir | --localstatedi | --localstated \
  542. | --localstate | --localstat | --localsta | --localst \
  543. | --locals | --local | --loca | --loc | --lo)
  544. ac_prev=localstatedir ;;
  545. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  546. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  547. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  548. localstatedir=$ac_optarg ;;
  549. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  550. ac_prev=mandir ;;
  551. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  552. mandir=$ac_optarg ;;
  553. -nfp | --nfp | --nf)
  554. # Obsolete; use --without-fp.
  555. with_fp=no ;;
  556. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  557. | --no-cr | --no-c | -n)
  558. no_create=yes ;;
  559. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  560. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  561. no_recursion=yes ;;
  562. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  563. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  564. | --oldin | --oldi | --old | --ol | --o)
  565. ac_prev=oldincludedir ;;
  566. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  567. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  568. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  569. oldincludedir=$ac_optarg ;;
  570. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  571. ac_prev=prefix ;;
  572. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  573. prefix=$ac_optarg ;;
  574. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  575. | --program-pre | --program-pr | --program-p)
  576. ac_prev=program_prefix ;;
  577. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  578. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  579. program_prefix=$ac_optarg ;;
  580. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  581. | --program-suf | --program-su | --program-s)
  582. ac_prev=program_suffix ;;
  583. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  584. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  585. program_suffix=$ac_optarg ;;
  586. -program-transform-name | --program-transform-name \
  587. | --program-transform-nam | --program-transform-na \
  588. | --program-transform-n | --program-transform- \
  589. | --program-transform | --program-transfor \
  590. | --program-transfo | --program-transf \
  591. | --program-trans | --program-tran \
  592. | --progr-tra | --program-tr | --program-t)
  593. ac_prev=program_transform_name ;;
  594. -program-transform-name=* | --program-transform-name=* \
  595. | --program-transform-nam=* | --program-transform-na=* \
  596. | --program-transform-n=* | --program-transform-=* \
  597. | --program-transform=* | --program-transfor=* \
  598. | --program-transfo=* | --program-transf=* \
  599. | --program-trans=* | --program-tran=* \
  600. | --progr-tra=* | --program-tr=* | --program-t=*)
  601. program_transform_name=$ac_optarg ;;
  602. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  603. | -silent | --silent | --silen | --sile | --sil)
  604. silent=yes ;;
  605. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  606. ac_prev=sbindir ;;
  607. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  608. | --sbi=* | --sb=*)
  609. sbindir=$ac_optarg ;;
  610. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  611. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  612. | --sharedst | --shareds | --shared | --share | --shar \
  613. | --sha | --sh)
  614. ac_prev=sharedstatedir ;;
  615. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  616. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  617. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  618. | --sha=* | --sh=*)
  619. sharedstatedir=$ac_optarg ;;
  620. -site | --site | --sit)
  621. ac_prev=site ;;
  622. -site=* | --site=* | --sit=*)
  623. site=$ac_optarg ;;
  624. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  625. ac_prev=srcdir ;;
  626. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  627. srcdir=$ac_optarg ;;
  628. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  629. | --syscon | --sysco | --sysc | --sys | --sy)
  630. ac_prev=sysconfdir ;;
  631. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  632. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  633. sysconfdir=$ac_optarg ;;
  634. -target | --target | --targe | --targ | --tar | --ta | --t)
  635. ac_prev=target_alias ;;
  636. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  637. target_alias=$ac_optarg ;;
  638. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  639. verbose=yes ;;
  640. -version | --version | --versio | --versi | --vers | -V)
  641. ac_init_version=: ;;
  642. -with-* | --with-*)
  643. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  644. # Reject names that are not valid shell variable names.
  645. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  646. { echo "$as_me: error: invalid package name: $ac_package" >&2
  647. { (exit 1); exit 1; }; }
  648. ac_package=`echo $ac_package| sed 's/-/_/g'`
  649. case $ac_option in
  650. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  651. *) ac_optarg=yes ;;
  652. esac
  653. eval "with_$ac_package='$ac_optarg'" ;;
  654. -without-* | --without-*)
  655. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  656. # Reject names that are not valid shell variable names.
  657. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  658. { echo "$as_me: error: invalid package name: $ac_package" >&2
  659. { (exit 1); exit 1; }; }
  660. ac_package=`echo $ac_package | sed 's/-/_/g'`
  661. eval "with_$ac_package=no" ;;
  662. --x)
  663. # Obsolete; use --with-x.
  664. with_x=yes ;;
  665. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  666. | --x-incl | --x-inc | --x-in | --x-i)
  667. ac_prev=x_includes ;;
  668. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  669. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  670. x_includes=$ac_optarg ;;
  671. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  672. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  673. ac_prev=x_libraries ;;
  674. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  675. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  676. x_libraries=$ac_optarg ;;
  677. -*) { echo "$as_me: error: unrecognized option: $ac_option
  678. Try \`$0 --help' for more information." >&2
  679. { (exit 1); exit 1; }; }
  680. ;;
  681. *=*)
  682. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  683. # Reject names that are not valid shell variable names.
  684. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  685. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  686. { (exit 1); exit 1; }; }
  687. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  688. eval "$ac_envvar='$ac_optarg'"
  689. export $ac_envvar ;;
  690. *)
  691. # FIXME: should be removed in autoconf 3.0.
  692. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  693. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  694. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  695. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  696. ;;
  697. esac
  698. done
  699. if test -n "$ac_prev"; then
  700. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  701. { echo "$as_me: error: missing argument to $ac_option" >&2
  702. { (exit 1); exit 1; }; }
  703. fi
  704. # Be sure to have absolute paths.
  705. for ac_var in exec_prefix prefix
  706. do
  707. eval ac_val=$`echo $ac_var`
  708. case $ac_val in
  709. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  710. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  711. { (exit 1); exit 1; }; };;
  712. esac
  713. done
  714. # Be sure to have absolute paths.
  715. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  716. localstatedir libdir includedir oldincludedir infodir mandir
  717. do
  718. eval ac_val=$`echo $ac_var`
  719. case $ac_val in
  720. [\\/$]* | ?:[\\/]* ) ;;
  721. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  722. { (exit 1); exit 1; }; };;
  723. esac
  724. done
  725. # There might be people who depend on the old broken behavior: `$host'
  726. # used to hold the argument of --host etc.
  727. # FIXME: To remove some day.
  728. build=$build_alias
  729. host=$host_alias
  730. target=$target_alias
  731. # FIXME: To remove some day.
  732. if test "x$host_alias" != x; then
  733. if test "x$build_alias" = x; then
  734. cross_compiling=maybe
  735. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  736. If a cross compiler is detected then cross compile mode will be used." >&2
  737. elif test "x$build_alias" != "x$host_alias"; then
  738. cross_compiling=yes
  739. fi
  740. fi
  741. ac_tool_prefix=
  742. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  743. test "$silent" = yes && exec 6>/dev/null
  744. # Find the source files, if location was not specified.
  745. if test -z "$srcdir"; then
  746. ac_srcdir_defaulted=yes
  747. # Try the directory containing this script, then its parent.
  748. ac_confdir=`(dirname "$0") 2>/dev/null ||
  749. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  750. X"$0" : 'X\(//\)[^/]' \| \
  751. X"$0" : 'X\(//\)$' \| \
  752. X"$0" : 'X\(/\)' \| \
  753. . : '\(.\)' 2>/dev/null ||
  754. echo X"$0" |
  755. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  756. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  757. /^X\(\/\/\)$/{ s//\1/; q; }
  758. /^X\(\/\).*/{ s//\1/; q; }
  759. s/.*/./; q'`
  760. srcdir=$ac_confdir
  761. if test ! -r $srcdir/$ac_unique_file; then
  762. srcdir=..
  763. fi
  764. else
  765. ac_srcdir_defaulted=no
  766. fi
  767. if test ! -r $srcdir/$ac_unique_file; then
  768. if test "$ac_srcdir_defaulted" = yes; then
  769. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  770. { (exit 1); exit 1; }; }
  771. else
  772. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  773. { (exit 1); exit 1; }; }
  774. fi
  775. fi
  776. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  777. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  778. { (exit 1); exit 1; }; }
  779. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  780. ac_env_build_alias_set=${build_alias+set}
  781. ac_env_build_alias_value=$build_alias
  782. ac_cv_env_build_alias_set=${build_alias+set}
  783. ac_cv_env_build_alias_value=$build_alias
  784. ac_env_host_alias_set=${host_alias+set}
  785. ac_env_host_alias_value=$host_alias
  786. ac_cv_env_host_alias_set=${host_alias+set}
  787. ac_cv_env_host_alias_value=$host_alias
  788. ac_env_target_alias_set=${target_alias+set}
  789. ac_env_target_alias_value=$target_alias
  790. ac_cv_env_target_alias_set=${target_alias+set}
  791. ac_cv_env_target_alias_value=$target_alias
  792. ac_env_CC_set=${CC+set}
  793. ac_env_CC_value=$CC
  794. ac_cv_env_CC_set=${CC+set}
  795. ac_cv_env_CC_value=$CC
  796. ac_env_CFLAGS_set=${CFLAGS+set}
  797. ac_env_CFLAGS_value=$CFLAGS
  798. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  799. ac_cv_env_CFLAGS_value=$CFLAGS
  800. ac_env_LDFLAGS_set=${LDFLAGS+set}
  801. ac_env_LDFLAGS_value=$LDFLAGS
  802. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  803. ac_cv_env_LDFLAGS_value=$LDFLAGS
  804. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  805. ac_env_CPPFLAGS_value=$CPPFLAGS
  806. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  807. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  808. ac_env_CPP_set=${CPP+set}
  809. ac_env_CPP_value=$CPP
  810. ac_cv_env_CPP_set=${CPP+set}
  811. ac_cv_env_CPP_value=$CPP
  812. #
  813. # Report the --help message.
  814. #
  815. if test "$ac_init_help" = "long"; then
  816. # Omit some internal or obsolete options to make the list less imposing.
  817. # This message is too long to be a string in the A/UX 3.1 sh.
  818. cat <<_ACEOF
  819. \`configure' configures this package to adapt to many kinds of systems.
  820. Usage: $0 [OPTION]... [VAR=VALUE]...
  821. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  822. VAR=VALUE. See below for descriptions of some of the useful variables.
  823. Defaults for the options are specified in brackets.
  824. Configuration:
  825. -h, --help display this help and exit
  826. --help=short display options specific to this package
  827. --help=recursive display the short help of all the included packages
  828. -V, --version display version information and exit
  829. -q, --quiet, --silent do not print \`checking...' messages
  830. --cache-file=FILE cache test results in FILE [disabled]
  831. -C, --config-cache alias for \`--cache-file=config.cache'
  832. -n, --no-create do not create output files
  833. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  834. _ACEOF
  835. cat <<_ACEOF
  836. Installation directories:
  837. --prefix=PREFIX install architecture-independent files in PREFIX
  838. [$ac_default_prefix]
  839. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  840. [PREFIX]
  841. By default, \`make install' will install all the files in
  842. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  843. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  844. for instance \`--prefix=\$HOME'.
  845. For better control, use the options below.
  846. Fine tuning of the installation directories:
  847. --bindir=DIR user executables [EPREFIX/bin]
  848. --sbindir=DIR system admin executables [EPREFIX/sbin]
  849. --libexecdir=DIR program executables [EPREFIX/libexec]
  850. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  851. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  852. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  853. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  854. --libdir=DIR object code libraries [EPREFIX/lib]
  855. --includedir=DIR C header files [PREFIX/include]
  856. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  857. --infodir=DIR info documentation [PREFIX/info]
  858. --mandir=DIR man documentation [PREFIX/man]
  859. _ACEOF
  860. cat <<\_ACEOF
  861. Program names:
  862. --program-prefix=PREFIX prepend PREFIX to installed program names
  863. --program-suffix=SUFFIX append SUFFIX to installed program names
  864. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  865. System types:
  866. --build=BUILD configure for building on BUILD [guessed]
  867. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  868. --target=TARGET configure for building compilers for TARGET [HOST]
  869. _ACEOF
  870. fi
  871. if test -n "$ac_init_help"; then
  872. cat <<\_ACEOF
  873. Optional Features:
  874. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  875. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  876. --disable-dependency-tracking speeds up one-time build
  877. --enable-dependency-tracking do not reject slow dependency extractors
  878. --enable-shared[=PKGS]
  879. build shared libraries [default=no]
  880. --enable-static[=PKGS]
  881. build static libraries [default=yes]
  882. --enable-fast-install[=PKGS]
  883. optimize for fast installation [default=yes]
  884. --disable-libtool-lock avoid locking (might break parallel builds)
  885. --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
  886. --enable-targets alternative target configurations
  887. --enable-commonbfdlib build shared BFD/opcodes/libiberty library
  888. --enable-secureplt Default to creating read-only plt entries
  889. --enable-werror treat compile warnings as errors
  890. --enable-build-warnings enable build-time compiler warnings
  891. --enable-maintainer-mode enable make rules and dependencies not useful
  892. (and sometimes confusing) to the casual installer
  893. --enable-install-libbfd controls installation of libbfd and related headers
  894. --disable-nls do not use Native Language Support
  895. Optional Packages:
  896. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  897. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  898. --with-pic try to use only PIC/non-PIC objects [default=use
  899. both]
  900. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  901. --with-mmap try using mmap for BFD input files if available
  902. --with-separate-debug-dir=DIR
  903. Look for global separate debug info in DIR
  904. [default=LIBDIR/debug]
  905. --with-pkgversion=PKG Use PKG in the version string in place of "GNU
  906. Binutils"
  907. --with-bugurl=URL Direct users to URL to report a bug
  908. Some influential environment variables:
  909. CC C compiler command
  910. CFLAGS C compiler flags
  911. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  912. nonstandard directory <lib dir>
  913. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  914. headers in a nonstandard directory <include dir>
  915. CPP C preprocessor
  916. Use these variables to override the choices made by `configure' or to help
  917. it to find libraries and programs with nonstandard names/locations.
  918. _ACEOF
  919. fi
  920. if test "$ac_init_help" = "recursive"; then
  921. # If there are subdirs, report their specific --help.
  922. ac_popdir=`pwd`
  923. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  924. test -d $ac_dir || continue
  925. ac_builddir=.
  926. if test "$ac_dir" != .; then
  927. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  928. # A "../" for each directory in $ac_dir_suffix.
  929. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  930. else
  931. ac_dir_suffix= ac_top_builddir=
  932. fi
  933. case $srcdir in
  934. .) # No --srcdir option. We are building in place.
  935. ac_srcdir=.
  936. if test -z "$ac_top_builddir"; then
  937. ac_top_srcdir=.
  938. else
  939. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  940. fi ;;
  941. [\\/]* | ?:[\\/]* ) # Absolute path.
  942. ac_srcdir=$srcdir$ac_dir_suffix;
  943. ac_top_srcdir=$srcdir ;;
  944. *) # Relative path.
  945. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  946. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  947. esac
  948. # Do not use `cd foo && pwd` to compute absolute paths, because
  949. # the directories may not exist.
  950. case `pwd` in
  951. .) ac_abs_builddir="$ac_dir";;
  952. *)
  953. case "$ac_dir" in
  954. .) ac_abs_builddir=`pwd`;;
  955. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  956. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  957. esac;;
  958. esac
  959. case $ac_abs_builddir in
  960. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  961. *)
  962. case ${ac_top_builddir}. in
  963. .) ac_abs_top_builddir=$ac_abs_builddir;;
  964. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  965. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  966. esac;;
  967. esac
  968. case $ac_abs_builddir in
  969. .) ac_abs_srcdir=$ac_srcdir;;
  970. *)
  971. case $ac_srcdir in
  972. .) ac_abs_srcdir=$ac_abs_builddir;;
  973. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  974. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  975. esac;;
  976. esac
  977. case $ac_abs_builddir in
  978. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  979. *)
  980. case $ac_top_srcdir in
  981. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  982. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  983. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  984. esac;;
  985. esac
  986. cd $ac_dir
  987. # Check for guested configure; otherwise get Cygnus style configure.
  988. if test -f $ac_srcdir/configure.gnu; then
  989. echo
  990. $SHELL $ac_srcdir/configure.gnu --help=recursive
  991. elif test -f $ac_srcdir/configure; then
  992. echo
  993. $SHELL $ac_srcdir/configure --help=recursive
  994. elif test -f $ac_srcdir/configure.ac ||
  995. test -f $ac_srcdir/configure.in; then
  996. echo
  997. $ac_configure --help
  998. else
  999. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1000. fi
  1001. cd $ac_popdir
  1002. done
  1003. fi
  1004. test -n "$ac_init_help" && exit 0
  1005. if $ac_init_version; then
  1006. cat <<\_ACEOF
  1007. Copyright (C) 2003 Free Software Foundation, Inc.
  1008. This configure script is free software; the Free Software Foundation
  1009. gives unlimited permission to copy, distribute and modify it.
  1010. _ACEOF
  1011. exit 0
  1012. fi
  1013. exec 5>config.log
  1014. cat >&5 <<_ACEOF
  1015. This file contains any messages produced by compilers while
  1016. running configure, to aid debugging if configure makes a mistake.
  1017. It was created by $as_me, which was
  1018. generated by GNU Autoconf 2.59. Invocation command line was
  1019. $ $0 $@
  1020. _ACEOF
  1021. {
  1022. cat <<_ASUNAME
  1023. ## --------- ##
  1024. ## Platform. ##
  1025. ## --------- ##
  1026. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1027. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1028. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1029. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1030. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1031. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1032. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1033. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1034. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1035. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1036. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1037. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1038. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1039. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1040. _ASUNAME
  1041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1042. for as_dir in $PATH
  1043. do
  1044. IFS=$as_save_IFS
  1045. test -z "$as_dir" && as_dir=.
  1046. echo "PATH: $as_dir"
  1047. done
  1048. } >&5
  1049. cat >&5 <<_ACEOF
  1050. ## ----------- ##
  1051. ## Core tests. ##
  1052. ## ----------- ##
  1053. _ACEOF
  1054. # Keep a trace of the command line.
  1055. # Strip out --no-create and --no-recursion so they do not pile up.
  1056. # Strip out --silent because we don't want to record it for future runs.
  1057. # Also quote any args containing shell meta-characters.
  1058. # Make two passes to allow for proper duplicate-argument suppression.
  1059. ac_configure_args=
  1060. ac_configure_args0=
  1061. ac_configure_args1=
  1062. ac_sep=
  1063. ac_must_keep_next=false
  1064. for ac_pass in 1 2
  1065. do
  1066. for ac_arg
  1067. do
  1068. case $ac_arg in
  1069. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1070. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1071. | -silent | --silent | --silen | --sile | --sil)
  1072. continue ;;
  1073. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1074. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1075. esac
  1076. case $ac_pass in
  1077. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1078. 2)
  1079. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1080. if test $ac_must_keep_next = true; then
  1081. ac_must_keep_next=false # Got value, back to normal.
  1082. else
  1083. case $ac_arg in
  1084. *=* | --config-cache | -C | -disable-* | --disable-* \
  1085. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1086. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1087. | -with-* | --with-* | -without-* | --without-* | --x)
  1088. case "$ac_configure_args0 " in
  1089. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1090. esac
  1091. ;;
  1092. -* ) ac_must_keep_next=true ;;
  1093. esac
  1094. fi
  1095. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1096. # Get rid of the leading space.
  1097. ac_sep=" "
  1098. ;;
  1099. esac
  1100. done
  1101. done
  1102. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1103. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1104. # When interrupted or exit'd, cleanup temporary files, and complete
  1105. # config.log. We remove comments because anyway the quotes in there
  1106. # would cause problems or look ugly.
  1107. # WARNING: Be sure not to use single quotes in there, as some shells,
  1108. # such as our DU 5.0 friend, will then `close' the trap.
  1109. trap 'exit_status=$?
  1110. # Save into config.log some information that might help in debugging.
  1111. {
  1112. echo
  1113. cat <<\_ASBOX
  1114. ## ---------------- ##
  1115. ## Cache variables. ##
  1116. ## ---------------- ##
  1117. _ASBOX
  1118. echo
  1119. # The following way of writing the cache mishandles newlines in values,
  1120. {
  1121. (set) 2>&1 |
  1122. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1123. *ac_space=\ *)
  1124. sed -n \
  1125. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1126. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1127. ;;
  1128. *)
  1129. sed -n \
  1130. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1131. ;;
  1132. esac;
  1133. }
  1134. echo
  1135. cat <<\_ASBOX
  1136. ## ----------------- ##
  1137. ## Output variables. ##
  1138. ## ----------------- ##
  1139. _ASBOX
  1140. echo
  1141. for ac_var in $ac_subst_vars
  1142. do
  1143. eval ac_val=$`echo $ac_var`
  1144. echo "$ac_var='"'"'$ac_val'"'"'"
  1145. done | sort
  1146. echo
  1147. if test -n "$ac_subst_files"; then
  1148. cat <<\_ASBOX
  1149. ## ------------- ##
  1150. ## Output files. ##
  1151. ## ------------- ##
  1152. _ASBOX
  1153. echo
  1154. for ac_var in $ac_subst_files
  1155. do
  1156. eval ac_val=$`echo $ac_var`
  1157. echo "$ac_var='"'"'$ac_val'"'"'"
  1158. done | sort
  1159. echo
  1160. fi
  1161. if test -s confdefs.h; then
  1162. cat <<\_ASBOX
  1163. ## ----------- ##
  1164. ## confdefs.h. ##
  1165. ## ----------- ##
  1166. _ASBOX
  1167. echo
  1168. sed "/^$/d" confdefs.h | sort
  1169. echo
  1170. fi
  1171. test "$ac_signal" != 0 &&
  1172. echo "$as_me: caught signal $ac_signal"
  1173. echo "$as_me: exit $exit_status"
  1174. } >&5
  1175. rm -f core *.core &&
  1176. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1177. exit $exit_status
  1178. ' 0
  1179. for ac_signal in 1 2 13 15; do
  1180. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1181. done
  1182. ac_signal=0
  1183. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1184. rm -rf conftest* confdefs.h
  1185. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1186. echo >confdefs.h
  1187. # Predefined preprocessor variables.
  1188. cat >>confdefs.h <<_ACEOF
  1189. #define PACKAGE_NAME "$PACKAGE_NAME"
  1190. _ACEOF
  1191. cat >>confdefs.h <<_ACEOF
  1192. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1193. _ACEOF
  1194. cat >>confdefs.h <<_ACEOF
  1195. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1196. _ACEOF
  1197. cat >>confdefs.h <<_ACEOF
  1198. #define PACKAGE_STRING "$PACKAGE_STRING"
  1199. _ACEOF
  1200. cat >>confdefs.h <<_ACEOF
  1201. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1202. _ACEOF
  1203. # Let the site file select an alternate cache file if it wants to.
  1204. # Prefer explicitly selected file to automatically selected ones.
  1205. if test -z "$CONFIG_SITE"; then
  1206. if test "x$prefix" != xNONE; then
  1207. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1208. else
  1209. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1210. fi
  1211. fi
  1212. for ac_site_file in $CONFIG_SITE; do
  1213. if test -r "$ac_site_file"; then
  1214. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1215. echo "$as_me: loading site script $ac_site_file" >&6;}
  1216. sed 's/^/| /' "$ac_site_file" >&5
  1217. . "$ac_site_file"
  1218. fi
  1219. done
  1220. if test -r "$cache_file"; then
  1221. # Some versions of bash will fail to source /dev/null (special
  1222. # files actually), so we avoid doing that.
  1223. if test -f "$cache_file"; then
  1224. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1225. echo "$as_me: loading cache $cache_file" >&6;}
  1226. case $cache_file in
  1227. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1228. *) . ./$cache_file;;
  1229. esac
  1230. fi
  1231. else
  1232. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1233. echo "$as_me: creating cache $cache_file" >&6;}
  1234. >$cache_file
  1235. fi
  1236. # Check that the precious variables saved in the cache have kept the same
  1237. # value.
  1238. ac_cache_corrupted=false
  1239. for ac_var in `(set) 2>&1 |
  1240. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1241. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1242. eval ac_new_set=\$ac_env_${ac_var}_set
  1243. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1244. eval ac_new_val="\$ac_env_${ac_var}_value"
  1245. case $ac_old_set,$ac_new_set in
  1246. set,)
  1247. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1248. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1249. ac_cache_corrupted=: ;;
  1250. ,set)
  1251. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1252. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1253. ac_cache_corrupted=: ;;
  1254. ,);;
  1255. *)
  1256. if test "x$ac_old_val" != "x$ac_new_val"; then
  1257. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1258. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1259. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1260. echo "$as_me: former value: $ac_old_val" >&2;}
  1261. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1262. echo "$as_me: current value: $ac_new_val" >&2;}
  1263. ac_cache_corrupted=:
  1264. fi;;
  1265. esac
  1266. # Pass precious variables to config.status.
  1267. if test "$ac_new_set" = set; then
  1268. case $ac_new_val in
  1269. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1270. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1271. *) ac_arg=$ac_var=$ac_new_val ;;
  1272. esac
  1273. case " $ac_configure_args " in
  1274. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1275. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1276. esac
  1277. fi
  1278. done
  1279. if $ac_cache_corrupted; then
  1280. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1281. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1282. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1283. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. ac_ext=c
  1287. ac_cpp='$CPP $CPPFLAGS'
  1288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1291. ac_aux_dir=
  1292. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1293. if test -f $ac_dir/install-sh; then
  1294. ac_aux_dir=$ac_dir
  1295. ac_install_sh="$ac_aux_dir/install-sh -c"
  1296. break
  1297. elif test -f $ac_dir/install.sh; then
  1298. ac_aux_dir=$ac_dir
  1299. ac_install_sh="$ac_aux_dir/install.sh -c"
  1300. break
  1301. elif test -f $ac_dir/shtool; then
  1302. ac_aux_dir=$ac_dir
  1303. ac_install_sh="$ac_aux_dir/shtool install -c"
  1304. break
  1305. fi
  1306. done
  1307. if test -z "$ac_aux_dir"; then
  1308. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1309. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1310. { (exit 1); exit 1; }; }
  1311. fi
  1312. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1313. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1314. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1315. # Make sure we can run config.sub.
  1316. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1317. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1318. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1319. { (exit 1); exit 1; }; }
  1320. echo "$as_me:$LINENO: checking build system type" >&5
  1321. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1322. if test "${ac_cv_build+set}" = set; then
  1323. echo $ECHO_N "(cached) $ECHO_C" >&6
  1324. else
  1325. ac_cv_build_alias=$build_alias
  1326. test -z "$ac_cv_build_alias" &&
  1327. ac_cv_build_alias=`$ac_config_guess`
  1328. test -z "$ac_cv_build_alias" &&
  1329. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1330. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1331. { (exit 1); exit 1; }; }
  1332. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1333. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1334. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1335. { (exit 1); exit 1; }; }
  1336. fi
  1337. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1338. echo "${ECHO_T}$ac_cv_build" >&6
  1339. build=$ac_cv_build
  1340. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1341. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1342. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1343. echo "$as_me:$LINENO: checking host system type" >&5
  1344. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1345. if test "${ac_cv_host+set}" = set; then
  1346. echo $ECHO_N "(cached) $ECHO_C" >&6
  1347. else
  1348. ac_cv_host_alias=$host_alias
  1349. test -z "$ac_cv_host_alias" &&
  1350. ac_cv_host_alias=$ac_cv_build_alias
  1351. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1352. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1353. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1354. { (exit 1); exit 1; }; }
  1355. fi
  1356. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1357. echo "${ECHO_T}$ac_cv_host" >&6
  1358. host=$ac_cv_host
  1359. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1360. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1361. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1362. echo "$as_me:$LINENO: checking target system type" >&5
  1363. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1364. if test "${ac_cv_target+set}" = set; then
  1365. echo $ECHO_N "(cached) $ECHO_C" >&6
  1366. else
  1367. ac_cv_target_alias=$target_alias
  1368. test "x$ac_cv_target_alias" = "x" &&
  1369. ac_cv_target_alias=$ac_cv_host_alias
  1370. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1371. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1372. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1373. { (exit 1); exit 1; }; }
  1374. fi
  1375. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1376. echo "${ECHO_T}$ac_cv_target" >&6
  1377. target=$ac_cv_target
  1378. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1379. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1380. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1381. # The aliases save the names the user supplied, while $host etc.
  1382. # will get canonicalized.
  1383. test -n "$target_alias" &&
  1384. test "$program_prefix$program_suffix$program_transform_name" = \
  1385. NONENONEs,x,x, &&
  1386. program_prefix=${target_alias}-
  1387. ac_ext=c
  1388. ac_cpp='$CPP $CPPFLAGS'
  1389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1392. if test -n "$ac_tool_prefix"; then
  1393. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1394. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1395. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1396. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1397. if test "${ac_cv_prog_CC+set}" = set; then
  1398. echo $ECHO_N "(cached) $ECHO_C" >&6
  1399. else
  1400. if test -n "$CC"; then
  1401. ac_cv_prog_CC="$CC" # Let the user override the test.
  1402. else
  1403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1404. for as_dir in $PATH
  1405. do
  1406. IFS=$as_save_IFS
  1407. test -z "$as_dir" && as_dir=.
  1408. for ac_exec_ext in '' $ac_executable_extensions; do
  1409. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1410. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1411. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1412. break 2
  1413. fi
  1414. done
  1415. done
  1416. fi
  1417. fi
  1418. CC=$ac_cv_prog_CC
  1419. if test -n "$CC"; then
  1420. echo "$as_me:$LINENO: result: $CC" >&5
  1421. echo "${ECHO_T}$CC" >&6
  1422. else
  1423. echo "$as_me:$LINENO: result: no" >&5
  1424. echo "${ECHO_T}no" >&6
  1425. fi
  1426. fi
  1427. if test -z "$ac_cv_prog_CC"; then
  1428. ac_ct_CC=$CC
  1429. # Extract the first word of "gcc", so it can be a program name with args.
  1430. set dummy gcc; ac_word=$2
  1431. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1432. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1433. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1434. echo $ECHO_N "(cached) $ECHO_C" >&6
  1435. else
  1436. if test -n "$ac_ct_CC"; then
  1437. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1438. else
  1439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1440. for as_dir in $PATH
  1441. do
  1442. IFS=$as_save_IFS
  1443. test -z "$as_dir" && as_dir=.
  1444. for ac_exec_ext in '' $ac_executable_extensions; do
  1445. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1446. ac_cv_prog_ac_ct_CC="gcc"
  1447. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1448. break 2
  1449. fi
  1450. done
  1451. done
  1452. fi
  1453. fi
  1454. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1455. if test -n "$ac_ct_CC"; then
  1456. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1457. echo "${ECHO_T}$ac_ct_CC" >&6
  1458. else
  1459. echo "$as_me:$LINENO: result: no" >&5
  1460. echo "${ECHO_T}no" >&6
  1461. fi
  1462. CC=$ac_ct_CC
  1463. else
  1464. CC="$ac_cv_prog_CC"
  1465. fi
  1466. if test -z "$CC"; then
  1467. if test -n "$ac_tool_prefix"; then
  1468. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1469. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1470. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1471. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1472. if test "${ac_cv_prog_CC+set}" = set; then
  1473. echo $ECHO_N "(cached) $ECHO_C" >&6
  1474. else
  1475. if test -n "$CC"; then
  1476. ac_cv_prog_CC="$CC" # Let the user override the test.
  1477. else
  1478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1479. for as_dir in $PATH
  1480. do
  1481. IFS=$as_save_IFS
  1482. test -z "$as_dir" && as_dir=.
  1483. for ac_exec_ext in '' $ac_executable_extensions; do
  1484. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1485. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1486. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1487. break 2
  1488. fi
  1489. done
  1490. done
  1491. fi
  1492. fi
  1493. CC=$ac_cv_prog_CC
  1494. if test -n "$CC"; then
  1495. echo "$as_me:$LINENO: result: $CC" >&5
  1496. echo "${ECHO_T}$CC" >&6
  1497. else
  1498. echo "$as_me:$LINENO: result: no" >&5
  1499. echo "${ECHO_T}no" >&6
  1500. fi
  1501. fi
  1502. if test -z "$ac_cv_prog_CC"; then
  1503. ac_ct_CC=$CC
  1504. # Extract the first word of "cc", so it can be a program name with args.
  1505. set dummy cc; ac_word=$2
  1506. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1507. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1508. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1509. echo $ECHO_N "(cached) $ECHO_C" >&6
  1510. else
  1511. if test -n "$ac_ct_CC"; then
  1512. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1513. else
  1514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1515. for as_dir in $PATH
  1516. do
  1517. IFS=$as_save_IFS
  1518. test -z "$as_dir" && as_dir=.
  1519. for ac_exec_ext in '' $ac_executable_extensions; do
  1520. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1521. ac_cv_prog_ac_ct_CC="cc"
  1522. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1523. break 2
  1524. fi
  1525. done
  1526. done
  1527. fi
  1528. fi
  1529. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1530. if test -n "$ac_ct_CC"; then
  1531. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1532. echo "${ECHO_T}$ac_ct_CC" >&6
  1533. else
  1534. echo "$as_me:$LINENO: result: no" >&5
  1535. echo "${ECHO_T}no" >&6
  1536. fi
  1537. CC=$ac_ct_CC
  1538. else
  1539. CC="$ac_cv_prog_CC"
  1540. fi
  1541. fi
  1542. if test -z "$CC"; then
  1543. # Extract the first word of "cc", so it can be a program name with args.
  1544. set dummy cc; ac_word=$2
  1545. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1546. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1547. if test "${ac_cv_prog_CC+set}" = set; then
  1548. echo $ECHO_N "(cached) $ECHO_C" >&6
  1549. else
  1550. if test -n "$CC"; then
  1551. ac_cv_prog_CC="$CC" # Let the user override the test.
  1552. else
  1553. ac_prog_rejected=no
  1554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1555. for as_dir in $PATH
  1556. do
  1557. IFS=$as_save_IFS
  1558. test -z "$as_dir" && as_dir=.
  1559. for ac_exec_ext in '' $ac_executable_extensions; do
  1560. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1561. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1562. ac_prog_rejected=yes
  1563. continue
  1564. fi
  1565. ac_cv_prog_CC="cc"
  1566. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1567. break 2
  1568. fi
  1569. done
  1570. done
  1571. if test $ac_prog_rejected = yes; then
  1572. # We found a bogon in the path, so make sure we never use it.
  1573. set dummy $ac_cv_prog_CC
  1574. shift
  1575. if test $# != 0; then
  1576. # We chose a different compiler from the bogus one.
  1577. # However, it has the same basename, so the bogon will be chosen
  1578. # first if we set CC to just the basename; use the full file name.
  1579. shift
  1580. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1581. fi
  1582. fi
  1583. fi
  1584. fi
  1585. CC=$ac_cv_prog_CC
  1586. if test -n "$CC"; then
  1587. echo "$as_me:$LINENO: result: $CC" >&5
  1588. echo "${ECHO_T}$CC" >&6
  1589. else
  1590. echo "$as_me:$LINENO: result: no" >&5
  1591. echo "${ECHO_T}no" >&6
  1592. fi
  1593. fi
  1594. if test -z "$CC"; then
  1595. if test -n "$ac_tool_prefix"; then
  1596. for ac_prog in cl
  1597. do
  1598. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1599. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1600. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1601. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1602. if test "${ac_cv_prog_CC+set}" = set; then
  1603. echo $ECHO_N "(cached) $ECHO_C" >&6
  1604. else
  1605. if test -n "$CC"; then
  1606. ac_cv_prog_CC="$CC" # Let the user override the test.
  1607. else
  1608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1609. for as_dir in $PATH
  1610. do
  1611. IFS=$as_save_IFS
  1612. test -z "$as_dir" && as_dir=.
  1613. for ac_exec_ext in '' $ac_executable_extensions; do
  1614. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1615. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1616. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1617. break 2
  1618. fi
  1619. done
  1620. done
  1621. fi
  1622. fi
  1623. CC=$ac_cv_prog_CC
  1624. if test -n "$CC"; then
  1625. echo "$as_me:$LINENO: result: $CC" >&5
  1626. echo "${ECHO_T}$CC" >&6
  1627. else
  1628. echo "$as_me:$LINENO: result: no" >&5
  1629. echo "${ECHO_T}no" >&6
  1630. fi
  1631. test -n "$CC" && break
  1632. done
  1633. fi
  1634. if test -z "$CC"; then
  1635. ac_ct_CC=$CC
  1636. for ac_prog in cl
  1637. do
  1638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1639. set dummy $ac_prog; ac_word=$2
  1640. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1641. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1642. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1643. echo $ECHO_N "(cached) $ECHO_C" >&6
  1644. else
  1645. if test -n "$ac_ct_CC"; then
  1646. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1647. else
  1648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1649. for as_dir in $PATH
  1650. do
  1651. IFS=$as_save_IFS
  1652. test -z "$as_dir" && as_dir=.
  1653. for ac_exec_ext in '' $ac_executable_extensions; do
  1654. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1655. ac_cv_prog_ac_ct_CC="$ac_prog"
  1656. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1657. break 2
  1658. fi
  1659. done
  1660. done
  1661. fi
  1662. fi
  1663. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1664. if test -n "$ac_ct_CC"; then
  1665. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1666. echo "${ECHO_T}$ac_ct_CC" >&6
  1667. else
  1668. echo "$as_me:$LINENO: result: no" >&5
  1669. echo "${ECHO_T}no" >&6
  1670. fi
  1671. test -n "$ac_ct_CC" && break
  1672. done
  1673. CC=$ac_ct_CC
  1674. fi
  1675. fi
  1676. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1677. See \`config.log' for more details." >&5
  1678. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1679. See \`config.log' for more details." >&2;}
  1680. { (exit 1); exit 1; }; }
  1681. # Provide some information about the compiler.
  1682. echo "$as_me:$LINENO:" \
  1683. "checking for C compiler version" >&5
  1684. ac_compiler=`set X $ac_compile; echo $2`
  1685. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1686. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1687. ac_status=$?
  1688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1689. (exit $ac_status); }
  1690. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1691. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1692. ac_status=$?
  1693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1694. (exit $ac_status); }
  1695. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1696. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1697. ac_status=$?
  1698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1699. (exit $ac_status); }
  1700. cat >conftest.$ac_ext <<_ACEOF
  1701. /* confdefs.h. */
  1702. _ACEOF
  1703. cat confdefs.h >>conftest.$ac_ext
  1704. cat >>conftest.$ac_ext <<_ACEOF
  1705. /* end confdefs.h. */
  1706. int
  1707. main ()
  1708. {
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. ac_clean_files_save=$ac_clean_files
  1714. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1715. # Try to create an executable without -o first, disregard a.out.
  1716. # It will help us diagnose broken compilers, and finding out an intuition
  1717. # of exeext.
  1718. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1719. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1720. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1721. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1722. (eval $ac_link_default) 2>&5
  1723. ac_status=$?
  1724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1725. (exit $ac_status); }; then
  1726. # Find the output, starting from the most likely. This scheme is
  1727. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1728. # resort.
  1729. # Be careful to initialize this variable, since it used to be cached.
  1730. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1731. ac_cv_exeext=
  1732. # b.out is created by i960 compilers.
  1733. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1734. do
  1735. test -f "$ac_file" || continue
  1736. case $ac_file in
  1737. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1738. ;;
  1739. conftest.$ac_ext )
  1740. # This is the source file.
  1741. ;;
  1742. [ab].out )
  1743. # We found the default executable, but exeext='' is most
  1744. # certainly right.
  1745. break;;
  1746. *.* )
  1747. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1748. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1749. # but it would be cool to find out if it's true. Does anybody
  1750. # maintain Libtool? --akim.
  1751. export ac_cv_exeext
  1752. break;;
  1753. * )
  1754. break;;
  1755. esac
  1756. done
  1757. else
  1758. echo "$as_me: failed program was:" >&5
  1759. sed 's/^/| /' conftest.$ac_ext >&5
  1760. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1761. See \`config.log' for more details." >&5
  1762. echo "$as_me: error: C compiler cannot create executables
  1763. See \`config.log' for more details." >&2;}
  1764. { (exit 77); exit 77; }; }
  1765. fi
  1766. ac_exeext=$ac_cv_exeext
  1767. echo "$as_me:$LINENO: result: $ac_file" >&5
  1768. echo "${ECHO_T}$ac_file" >&6
  1769. # Check the compiler produces executables we can run. If not, either
  1770. # the compiler is broken, or we cross compile.
  1771. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1772. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1773. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1774. # If not cross compiling, check that we can run a simple program.
  1775. if test "$cross_compiling" != yes; then
  1776. if { ac_try='./$ac_file'
  1777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1778. (eval $ac_try) 2>&5
  1779. ac_status=$?
  1780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1781. (exit $ac_status); }; }; then
  1782. cross_compiling=no
  1783. else
  1784. if test "$cross_compiling" = maybe; then
  1785. cross_compiling=yes
  1786. else
  1787. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1788. If you meant to cross compile, use \`--host'.
  1789. See \`config.log' for more details." >&5
  1790. echo "$as_me: error: cannot run C compiled programs.
  1791. If you meant to cross compile, use \`--host'.
  1792. See \`config.log' for more details." >&2;}
  1793. { (exit 1); exit 1; }; }
  1794. fi
  1795. fi
  1796. fi
  1797. echo "$as_me:$LINENO: result: yes" >&5
  1798. echo "${ECHO_T}yes" >&6
  1799. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1800. ac_clean_files=$ac_clean_files_save
  1801. # Check the compiler produces executables we can run. If not, either
  1802. # the compiler is broken, or we cross compile.
  1803. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1804. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1805. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1806. echo "${ECHO_T}$cross_compiling" >&6
  1807. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1808. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1810. (eval $ac_link) 2>&5
  1811. ac_status=$?
  1812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1813. (exit $ac_status); }; then
  1814. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1815. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1816. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1817. # `rm'.
  1818. for ac_file in conftest.exe conftest conftest.*; do
  1819. test -f "$ac_file" || continue
  1820. case $ac_file in
  1821. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1822. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1823. export ac_cv_exeext
  1824. break;;
  1825. * ) break;;
  1826. esac
  1827. done
  1828. else
  1829. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1830. See \`config.log' for more details." >&5
  1831. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1832. See \`config.log' for more details." >&2;}
  1833. { (exit 1); exit 1; }; }
  1834. fi
  1835. rm -f conftest$ac_cv_exeext
  1836. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1837. echo "${ECHO_T}$ac_cv_exeext" >&6
  1838. rm -f conftest.$ac_ext
  1839. EXEEXT=$ac_cv_exeext
  1840. ac_exeext=$EXEEXT
  1841. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1842. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1843. if test "${ac_cv_objext+set}" = set; then
  1844. echo $ECHO_N "(cached) $ECHO_C" >&6
  1845. else
  1846. cat >conftest.$ac_ext <<_ACEOF
  1847. /* confdefs.h. */
  1848. _ACEOF
  1849. cat confdefs.h >>conftest.$ac_ext
  1850. cat >>conftest.$ac_ext <<_ACEOF
  1851. /* end confdefs.h. */
  1852. int
  1853. main ()
  1854. {
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. rm -f conftest.o conftest.obj
  1860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1861. (eval $ac_compile) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; then
  1865. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1866. case $ac_file in
  1867. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1868. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1869. break;;
  1870. esac
  1871. done
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1876. See \`config.log' for more details." >&5
  1877. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1878. See \`config.log' for more details." >&2;}
  1879. { (exit 1); exit 1; }; }
  1880. fi
  1881. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1882. fi
  1883. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1884. echo "${ECHO_T}$ac_cv_objext" >&6
  1885. OBJEXT=$ac_cv_objext
  1886. ac_objext=$OBJEXT
  1887. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1888. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1889. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1890. echo $ECHO_N "(cached) $ECHO_C" >&6
  1891. else
  1892. cat >conftest.$ac_ext <<_ACEOF
  1893. /* confdefs.h. */
  1894. _ACEOF
  1895. cat confdefs.h >>conftest.$ac_ext
  1896. cat >>conftest.$ac_ext <<_ACEOF
  1897. /* end confdefs.h. */
  1898. int
  1899. main ()
  1900. {
  1901. #ifndef __GNUC__
  1902. choke me
  1903. #endif
  1904. ;
  1905. return 0;
  1906. }
  1907. _ACEOF
  1908. rm -f conftest.$ac_objext
  1909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1910. (eval $ac_compile) 2>conftest.er1
  1911. ac_status=$?
  1912. grep -v '^ *+' conftest.er1 >conftest.err
  1913. rm -f conftest.er1
  1914. cat conftest.err >&5
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); } &&
  1917. { ac_try='test -z "$ac_c_werror_flag"
  1918. || test ! -s conftest.err'
  1919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1920. (eval $ac_try) 2>&5
  1921. ac_status=$?
  1922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1923. (exit $ac_status); }; } &&
  1924. { ac_try='test -s conftest.$ac_objext'
  1925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1926. (eval $ac_try) 2>&5
  1927. ac_status=$?
  1928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1929. (exit $ac_status); }; }; then
  1930. ac_compiler_gnu=yes
  1931. else
  1932. echo "$as_me: failed program was:" >&5
  1933. sed 's/^/| /' conftest.$ac_ext >&5
  1934. ac_compiler_gnu=no
  1935. fi
  1936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1938. fi
  1939. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1940. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1941. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1942. ac_test_CFLAGS=${CFLAGS+set}
  1943. ac_save_CFLAGS=$CFLAGS
  1944. CFLAGS="-g"
  1945. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1946. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1947. if test "${ac_cv_prog_cc_g+set}" = set; then
  1948. echo $ECHO_N "(cached) $ECHO_C" >&6
  1949. else
  1950. cat >conftest.$ac_ext <<_ACEOF
  1951. /* confdefs.h. */
  1952. _ACEOF
  1953. cat confdefs.h >>conftest.$ac_ext
  1954. cat >>conftest.$ac_ext <<_ACEOF
  1955. /* end confdefs.h. */
  1956. int
  1957. main ()
  1958. {
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. rm -f conftest.$ac_objext
  1964. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1965. (eval $ac_compile) 2>conftest.er1
  1966. ac_status=$?
  1967. grep -v '^ *+' conftest.er1 >conftest.err
  1968. rm -f conftest.er1
  1969. cat conftest.err >&5
  1970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1971. (exit $ac_status); } &&
  1972. { ac_try='test -z "$ac_c_werror_flag"
  1973. || test ! -s conftest.err'
  1974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1975. (eval $ac_try) 2>&5
  1976. ac_status=$?
  1977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1978. (exit $ac_status); }; } &&
  1979. { ac_try='test -s conftest.$ac_objext'
  1980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1981. (eval $ac_try) 2>&5
  1982. ac_status=$?
  1983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1984. (exit $ac_status); }; }; then
  1985. ac_cv_prog_cc_g=yes
  1986. else
  1987. echo "$as_me: failed program was:" >&5
  1988. sed 's/^/| /' conftest.$ac_ext >&5
  1989. ac_cv_prog_cc_g=no
  1990. fi
  1991. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1992. fi
  1993. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1994. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1995. if test "$ac_test_CFLAGS" = set; then
  1996. CFLAGS=$ac_save_CFLAGS
  1997. elif test $ac_cv_prog_cc_g = yes; then
  1998. if test "$GCC" = yes; then
  1999. CFLAGS="-g -O2"
  2000. else
  2001. CFLAGS="-g"
  2002. fi
  2003. else
  2004. if test "$GCC" = yes; then
  2005. CFLAGS="-O2"
  2006. else
  2007. CFLAGS=
  2008. fi
  2009. fi
  2010. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2011. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2012. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2013. echo $ECHO_N "(cached) $ECHO_C" >&6
  2014. else
  2015. ac_cv_prog_cc_stdc=no
  2016. ac_save_CC=$CC
  2017. cat >conftest.$ac_ext <<_ACEOF
  2018. /* confdefs.h. */
  2019. _ACEOF
  2020. cat confdefs.h >>conftest.$ac_ext
  2021. cat >>conftest.$ac_ext <<_ACEOF
  2022. /* end confdefs.h. */
  2023. #include <stdarg.h>
  2024. #include <stdio.h>
  2025. #include <sys/types.h>
  2026. #include <sys/stat.h>
  2027. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2028. struct buf { int x; };
  2029. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2030. static char *e (p, i)
  2031. char **p;
  2032. int i;
  2033. {
  2034. return p[i];
  2035. }
  2036. static char *f (char * (*g) (char **, int), char **p, ...)
  2037. {
  2038. char *s;
  2039. va_list v;
  2040. va_start (v,p);
  2041. s = g (p, va_arg (v,int));
  2042. va_end (v);
  2043. return s;
  2044. }
  2045. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2046. function prototypes and stuff, but not '\xHH' hex character constants.
  2047. These don't provoke an error unfortunately, instead are silently treated
  2048. as 'x'. The following induces an error, until -std1 is added to get
  2049. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2050. array size at least. It's necessary to write '\x00'==0 to get something
  2051. that's true only with -std1. */
  2052. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2053. int test (int i, double x);
  2054. struct s1 {int (*f) (int a);};
  2055. struct s2 {int (*f) (double a);};
  2056. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2057. int argc;
  2058. char **argv;
  2059. int
  2060. main ()
  2061. {
  2062. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2063. ;
  2064. return 0;
  2065. }
  2066. _ACEOF
  2067. # Don't try gcc -ansi; that turns off useful extensions and
  2068. # breaks some systems' header files.
  2069. # AIX -qlanglvl=ansi
  2070. # Ultrix and OSF/1 -std1
  2071. # HP-UX 10.20 and later -Ae
  2072. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2073. # SVR4 -Xc -D__EXTENSIONS__
  2074. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2075. do
  2076. CC="$ac_save_CC $ac_arg"
  2077. rm -f conftest.$ac_objext
  2078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2079. (eval $ac_compile) 2>conftest.er1
  2080. ac_status=$?
  2081. grep -v '^ *+' conftest.er1 >conftest.err
  2082. rm -f conftest.er1
  2083. cat conftest.err >&5
  2084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2085. (exit $ac_status); } &&
  2086. { ac_try='test -z "$ac_c_werror_flag"
  2087. || test ! -s conftest.err'
  2088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2089. (eval $ac_try) 2>&5
  2090. ac_status=$?
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); }; } &&
  2093. { ac_try='test -s conftest.$ac_objext'
  2094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2095. (eval $ac_try) 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; }; then
  2099. ac_cv_prog_cc_stdc=$ac_arg
  2100. break
  2101. else
  2102. echo "$as_me: failed program was:" >&5
  2103. sed 's/^/| /' conftest.$ac_ext >&5
  2104. fi
  2105. rm -f conftest.err conftest.$ac_objext
  2106. done
  2107. rm -f conftest.$ac_ext conftest.$ac_objext
  2108. CC=$ac_save_CC
  2109. fi
  2110. case "x$ac_cv_prog_cc_stdc" in
  2111. x|xno)
  2112. echo "$as_me:$LINENO: result: none needed" >&5
  2113. echo "${ECHO_T}none needed" >&6 ;;
  2114. *)
  2115. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2116. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2117. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2118. esac
  2119. # Some people use a C++ compiler to compile C. Since we use `exit',
  2120. # in C++ we need to declare it. In case someone uses the same compiler
  2121. # for both compiling C and C++ we need to have the C++ compiler decide
  2122. # the declaration of exit, since it's the most demanding environment.
  2123. cat >conftest.$ac_ext <<_ACEOF
  2124. #ifndef __cplusplus
  2125. choke me
  2126. #endif
  2127. _ACEOF
  2128. rm -f conftest.$ac_objext
  2129. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2130. (eval $ac_compile) 2>conftest.er1
  2131. ac_status=$?
  2132. grep -v '^ *+' conftest.er1 >conftest.err
  2133. rm -f conftest.er1
  2134. cat conftest.err >&5
  2135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2136. (exit $ac_status); } &&
  2137. { ac_try='test -z "$ac_c_werror_flag"
  2138. || test ! -s conftest.err'
  2139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2140. (eval $ac_try) 2>&5
  2141. ac_status=$?
  2142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2143. (exit $ac_status); }; } &&
  2144. { ac_try='test -s conftest.$ac_objext'
  2145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2146. (eval $ac_try) 2>&5
  2147. ac_status=$?
  2148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2149. (exit $ac_status); }; }; then
  2150. for ac_declaration in \
  2151. '' \
  2152. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2153. 'extern "C" void std::exit (int); using std::exit;' \
  2154. 'extern "C" void exit (int) throw ();' \
  2155. 'extern "C" void exit (int);' \
  2156. 'void exit (int);'
  2157. do
  2158. cat >conftest.$ac_ext <<_ACEOF
  2159. /* confdefs.h. */
  2160. _ACEOF
  2161. cat confdefs.h >>conftest.$ac_ext
  2162. cat >>conftest.$ac_ext <<_ACEOF
  2163. /* end confdefs.h. */
  2164. $ac_declaration
  2165. #include <stdlib.h>
  2166. int
  2167. main ()
  2168. {
  2169. exit (42);
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. rm -f conftest.$ac_objext
  2175. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2176. (eval $ac_compile) 2>conftest.er1
  2177. ac_status=$?
  2178. grep -v '^ *+' conftest.er1 >conftest.err
  2179. rm -f conftest.er1
  2180. cat conftest.err >&5
  2181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2182. (exit $ac_status); } &&
  2183. { ac_try='test -z "$ac_c_werror_flag"
  2184. || test ! -s conftest.err'
  2185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2186. (eval $ac_try) 2>&5
  2187. ac_status=$?
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); }; } &&
  2190. { ac_try='test -s conftest.$ac_objext'
  2191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2192. (eval $ac_try) 2>&5
  2193. ac_status=$?
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); }; }; then
  2196. :
  2197. else
  2198. echo "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2203. cat >conftest.$ac_ext <<_ACEOF
  2204. /* confdefs.h. */
  2205. _ACEOF
  2206. cat confdefs.h >>conftest.$ac_ext
  2207. cat >>conftest.$ac_ext <<_ACEOF
  2208. /* end confdefs.h. */
  2209. $ac_declaration
  2210. int
  2211. main ()
  2212. {
  2213. exit (42);
  2214. ;
  2215. return 0;
  2216. }
  2217. _ACEOF
  2218. rm -f conftest.$ac_objext
  2219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2220. (eval $ac_compile) 2>conftest.er1
  2221. ac_status=$?
  2222. grep -v '^ *+' conftest.er1 >conftest.err
  2223. rm -f conftest.er1
  2224. cat conftest.err >&5
  2225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2226. (exit $ac_status); } &&
  2227. { ac_try='test -z "$ac_c_werror_flag"
  2228. || test ! -s conftest.err'
  2229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2230. (eval $ac_try) 2>&5
  2231. ac_status=$?
  2232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2233. (exit $ac_status); }; } &&
  2234. { ac_try='test -s conftest.$ac_objext'
  2235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2236. (eval $ac_try) 2>&5
  2237. ac_status=$?
  2238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2239. (exit $ac_status); }; }; then
  2240. break
  2241. else
  2242. echo "$as_me: failed program was:" >&5
  2243. sed 's/^/| /' conftest.$ac_ext >&5
  2244. fi
  2245. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2246. done
  2247. rm -f conftest*
  2248. if test -n "$ac_declaration"; then
  2249. echo '#ifdef __cplusplus' >>confdefs.h
  2250. echo $ac_declaration >>confdefs.h
  2251. echo '#endif' >>confdefs.h
  2252. fi
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. fi
  2257. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2264. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2265. if test "${ac_cv_search_strerror+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. ac_func_search_save_LIBS=$LIBS
  2269. ac_cv_search_strerror=no
  2270. cat >conftest.$ac_ext <<_ACEOF
  2271. /* confdefs.h. */
  2272. _ACEOF
  2273. cat confdefs.h >>conftest.$ac_ext
  2274. cat >>conftest.$ac_ext <<_ACEOF
  2275. /* end confdefs.h. */
  2276. /* Override any gcc2 internal prototype to avoid an error. */
  2277. #ifdef __cplusplus
  2278. extern "C"
  2279. #endif
  2280. /* We use char because int might match the return type of a gcc2
  2281. builtin and then its argument prototype would still apply. */
  2282. char strerror ();
  2283. int
  2284. main ()
  2285. {
  2286. strerror ();
  2287. ;
  2288. return 0;
  2289. }
  2290. _ACEOF
  2291. rm -f conftest.$ac_objext conftest$ac_exeext
  2292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2293. (eval $ac_link) 2>conftest.er1
  2294. ac_status=$?
  2295. grep -v '^ *+' conftest.er1 >conftest.err
  2296. rm -f conftest.er1
  2297. cat conftest.err >&5
  2298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2299. (exit $ac_status); } &&
  2300. { ac_try='test -z "$ac_c_werror_flag"
  2301. || test ! -s conftest.err'
  2302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2303. (eval $ac_try) 2>&5
  2304. ac_status=$?
  2305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2306. (exit $ac_status); }; } &&
  2307. { ac_try='test -s conftest$ac_exeext'
  2308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2309. (eval $ac_try) 2>&5
  2310. ac_status=$?
  2311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2312. (exit $ac_status); }; }; then
  2313. ac_cv_search_strerror="none required"
  2314. else
  2315. echo "$as_me: failed program was:" >&5
  2316. sed 's/^/| /' conftest.$ac_ext >&5
  2317. fi
  2318. rm -f conftest.err conftest.$ac_objext \
  2319. conftest$ac_exeext conftest.$ac_ext
  2320. if test "$ac_cv_search_strerror" = no; then
  2321. for ac_lib in cposix; do
  2322. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2323. cat >conftest.$ac_ext <<_ACEOF
  2324. /* confdefs.h. */
  2325. _ACEOF
  2326. cat confdefs.h >>conftest.$ac_ext
  2327. cat >>conftest.$ac_ext <<_ACEOF
  2328. /* end confdefs.h. */
  2329. /* Override any gcc2 internal prototype to avoid an error. */
  2330. #ifdef __cplusplus
  2331. extern "C"
  2332. #endif
  2333. /* We use char because int might match the return type of a gcc2
  2334. builtin and then its argument prototype would still apply. */
  2335. char strerror ();
  2336. int
  2337. main ()
  2338. {
  2339. strerror ();
  2340. ;
  2341. return 0;
  2342. }
  2343. _ACEOF
  2344. rm -f conftest.$ac_objext conftest$ac_exeext
  2345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2346. (eval $ac_link) 2>conftest.er1
  2347. ac_status=$?
  2348. grep -v '^ *+' conftest.er1 >conftest.err
  2349. rm -f conftest.er1
  2350. cat conftest.err >&5
  2351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2352. (exit $ac_status); } &&
  2353. { ac_try='test -z "$ac_c_werror_flag"
  2354. || test ! -s conftest.err'
  2355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2356. (eval $ac_try) 2>&5
  2357. ac_status=$?
  2358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2359. (exit $ac_status); }; } &&
  2360. { ac_try='test -s conftest$ac_exeext'
  2361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2362. (eval $ac_try) 2>&5
  2363. ac_status=$?
  2364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2365. (exit $ac_status); }; }; then
  2366. ac_cv_search_strerror="-l$ac_lib"
  2367. break
  2368. else
  2369. echo "$as_me: failed program was:" >&5
  2370. sed 's/^/| /' conftest.$ac_ext >&5
  2371. fi
  2372. rm -f conftest.err conftest.$ac_objext \
  2373. conftest$ac_exeext conftest.$ac_ext
  2374. done
  2375. fi
  2376. LIBS=$ac_func_search_save_LIBS
  2377. fi
  2378. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2379. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2380. if test "$ac_cv_search_strerror" != no; then
  2381. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2382. fi
  2383. am__api_version="1.9"
  2384. # Find a good install program. We prefer a C program (faster),
  2385. # so one script is as good as another. But avoid the broken or
  2386. # incompatible versions:
  2387. # SysV /etc/install, /usr/sbin/install
  2388. # SunOS /usr/etc/install
  2389. # IRIX /sbin/install
  2390. # AIX /bin/install
  2391. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2392. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2393. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2394. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2395. # OS/2's system install, which has a completely different semantic
  2396. # ./install, which can be erroneously created by make from ./install.sh.
  2397. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2398. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2399. if test -z "$INSTALL"; then
  2400. if test "${ac_cv_path_install+set}" = set; then
  2401. echo $ECHO_N "(cached) $ECHO_C" >&6
  2402. else
  2403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2404. for as_dir in $PATH
  2405. do
  2406. IFS=$as_save_IFS
  2407. test -z "$as_dir" && as_dir=.
  2408. # Account for people who put trailing slashes in PATH elements.
  2409. case $as_dir/ in
  2410. ./ | .// | /cC/* | \
  2411. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2412. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2413. /usr/ucb/* ) ;;
  2414. *)
  2415. # OSF1 and SCO ODT 3.0 have their own names for install.
  2416. # Don't use installbsd from OSF since it installs stuff as root
  2417. # by default.
  2418. for ac_prog in ginstall scoinst install; do
  2419. for ac_exec_ext in '' $ac_executable_extensions; do
  2420. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2421. if test $ac_prog = install &&
  2422. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2423. # AIX install. It has an incompatible calling convention.
  2424. :
  2425. elif test $ac_prog = install &&
  2426. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2427. # program-specific install script used by HP pwplus--don't use.
  2428. :
  2429. else
  2430. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2431. break 3
  2432. fi
  2433. fi
  2434. done
  2435. done
  2436. ;;
  2437. esac
  2438. done
  2439. fi
  2440. if test "${ac_cv_path_install+set}" = set; then
  2441. INSTALL=$ac_cv_path_install
  2442. else
  2443. # As a last resort, use the slow shell script. We don't cache a
  2444. # path for INSTALL within a source directory, because that will
  2445. # break other packages using the cache if that directory is
  2446. # removed, or if the path is relative.
  2447. INSTALL=$ac_install_sh
  2448. fi
  2449. fi
  2450. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2451. echo "${ECHO_T}$INSTALL" >&6
  2452. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2453. # It thinks the first close brace ends the variable substitution.
  2454. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2455. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2456. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2457. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2458. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  2459. # Just in case
  2460. sleep 1
  2461. echo timestamp > conftest.file
  2462. # Do `set' in a subshell so we don't clobber the current shell's
  2463. # arguments. Must try -L first in case configure is actually a
  2464. # symlink; some systems play weird games with the mod time of symlinks
  2465. # (eg FreeBSD returns the mod time of the symlink's containing
  2466. # directory).
  2467. if (
  2468. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2469. if test "$*" = "X"; then
  2470. # -L didn't work.
  2471. set X `ls -t $srcdir/configure conftest.file`
  2472. fi
  2473. rm -f conftest.file
  2474. if test "$*" != "X $srcdir/configure conftest.file" \
  2475. && test "$*" != "X conftest.file $srcdir/configure"; then
  2476. # If neither matched, then we have a broken ls. This can happen
  2477. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2478. # broken ls alias from the environment. This has actually
  2479. # happened. Such a system could not be considered "sane".
  2480. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2481. alias in your environment" >&5
  2482. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2483. alias in your environment" >&2;}
  2484. { (exit 1); exit 1; }; }
  2485. fi
  2486. test "$2" = conftest.file
  2487. )
  2488. then
  2489. # Ok.
  2490. :
  2491. else
  2492. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2493. Check your system clock" >&5
  2494. echo "$as_me: error: newly created file is older than distributed files!
  2495. Check your system clock" >&2;}
  2496. { (exit 1); exit 1; }; }
  2497. fi
  2498. echo "$as_me:$LINENO: result: yes" >&5
  2499. echo "${ECHO_T}yes" >&6
  2500. test "$program_prefix" != NONE &&
  2501. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  2502. # Use a double $ so make ignores it.
  2503. test "$program_suffix" != NONE &&
  2504. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  2505. # Double any \ or $. echo might interpret backslashes.
  2506. # By default was `s,x,x', remove it if useless.
  2507. cat <<\_ACEOF >conftest.sed
  2508. s/[\\$]/&&/g;s/;s,x,x,$//
  2509. _ACEOF
  2510. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2511. rm conftest.sed
  2512. # expand $ac_aux_dir to an absolute path
  2513. am_aux_dir=`cd $ac_aux_dir && pwd`
  2514. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2515. # Use eval to expand $SHELL
  2516. if eval "$MISSING --run true"; then
  2517. am_missing_run="$MISSING --run "
  2518. else
  2519. am_missing_run=
  2520. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2521. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2522. fi
  2523. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2524. # We used to keeping the `.' as first argument, in order to
  2525. # allow $(mkdir_p) to be used without argument. As in
  2526. # $(mkdir_p) $(somedir)
  2527. # where $(somedir) is conditionally defined. However this is wrong
  2528. # for two reasons:
  2529. # 1. if the package is installed by a user who cannot write `.'
  2530. # make install will fail,
  2531. # 2. the above comment should most certainly read
  2532. # $(mkdir_p) $(DESTDIR)$(somedir)
  2533. # so it does not work when $(somedir) is undefined and
  2534. # $(DESTDIR) is not.
  2535. # To support the latter case, we have to write
  2536. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2537. # so the `.' trick is pointless.
  2538. mkdir_p='mkdir -p --'
  2539. else
  2540. # On NextStep and OpenStep, the `mkdir' command does not
  2541. # recognize any option. It will interpret all options as
  2542. # directories to create, and then abort because `.' already
  2543. # exists.
  2544. for d in ./-p ./--version;
  2545. do
  2546. test -d $d && rmdir $d
  2547. done
  2548. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2549. if test -f "$ac_aux_dir/mkinstalldirs"; then
  2550. mkdir_p='$(mkinstalldirs)'
  2551. else
  2552. mkdir_p='$(install_sh) -d'
  2553. fi
  2554. fi
  2555. for ac_prog in gawk mawk nawk awk
  2556. do
  2557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2558. set dummy $ac_prog; ac_word=$2
  2559. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2560. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2561. if test "${ac_cv_prog_AWK+set}" = set; then
  2562. echo $ECHO_N "(cached) $ECHO_C" >&6
  2563. else
  2564. if test -n "$AWK"; then
  2565. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2566. else
  2567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2568. for as_dir in $PATH
  2569. do
  2570. IFS=$as_save_IFS
  2571. test -z "$as_dir" && as_dir=.
  2572. for ac_exec_ext in '' $ac_executable_extensions; do
  2573. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2574. ac_cv_prog_AWK="$ac_prog"
  2575. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2576. break 2
  2577. fi
  2578. done
  2579. done
  2580. fi
  2581. fi
  2582. AWK=$ac_cv_prog_AWK
  2583. if test -n "$AWK"; then
  2584. echo "$as_me:$LINENO: result: $AWK" >&5
  2585. echo "${ECHO_T}$AWK" >&6
  2586. else
  2587. echo "$as_me:$LINENO: result: no" >&5
  2588. echo "${ECHO_T}no" >&6
  2589. fi
  2590. test -n "$AWK" && break
  2591. done
  2592. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2593. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2594. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2595. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2596. echo $ECHO_N "(cached) $ECHO_C" >&6
  2597. else
  2598. cat >conftest.make <<\_ACEOF
  2599. all:
  2600. @echo 'ac_maketemp="$(MAKE)"'
  2601. _ACEOF
  2602. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2603. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2604. if test -n "$ac_maketemp"; then
  2605. eval ac_cv_prog_make_${ac_make}_set=yes
  2606. else
  2607. eval ac_cv_prog_make_${ac_make}_set=no
  2608. fi
  2609. rm -f conftest.make
  2610. fi
  2611. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2612. echo "$as_me:$LINENO: result: yes" >&5
  2613. echo "${ECHO_T}yes" >&6
  2614. SET_MAKE=
  2615. else
  2616. echo "$as_me:$LINENO: result: no" >&5
  2617. echo "${ECHO_T}no" >&6
  2618. SET_MAKE="MAKE=${MAKE-make}"
  2619. fi
  2620. rm -rf .tst 2>/dev/null
  2621. mkdir .tst 2>/dev/null
  2622. if test -d .tst; then
  2623. am__leading_dot=.
  2624. else
  2625. am__leading_dot=_
  2626. fi
  2627. rmdir .tst 2>/dev/null
  2628. DEPDIR="${am__leading_dot}deps"
  2629. ac_config_commands="$ac_config_commands depfiles"
  2630. am_make=${MAKE-make}
  2631. cat > confinc << 'END'
  2632. am__doit:
  2633. @echo done
  2634. .PHONY: am__doit
  2635. END
  2636. # If we don't find an include directive, just comment out the code.
  2637. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2638. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2639. am__include="#"
  2640. am__quote=
  2641. _am_result=none
  2642. # First try GNU make style include.
  2643. echo "include confinc" > confmf
  2644. # We grep out `Entering directory' and `Leaving directory'
  2645. # messages which can occur if `w' ends up in MAKEFLAGS.
  2646. # In particular we don't look at `^make:' because GNU make might
  2647. # be invoked under some other name (usually "gmake"), in which
  2648. # case it prints its new name instead of `make'.
  2649. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2650. am__include=include
  2651. am__quote=
  2652. _am_result=GNU
  2653. fi
  2654. # Now try BSD make style include.
  2655. if test "$am__include" = "#"; then
  2656. echo '.include "confinc"' > confmf
  2657. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2658. am__include=.include
  2659. am__quote="\""
  2660. _am_result=BSD
  2661. fi
  2662. fi
  2663. echo "$as_me:$LINENO: result: $_am_result" >&5
  2664. echo "${ECHO_T}$_am_result" >&6
  2665. rm -f confinc confmf
  2666. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2667. if test "${enable_dependency_tracking+set}" = set; then
  2668. enableval="$enable_dependency_tracking"
  2669. fi;
  2670. if test "x$enable_dependency_tracking" != xno; then
  2671. am_depcomp="$ac_aux_dir/depcomp"
  2672. AMDEPBACKSLASH='\'
  2673. fi
  2674. if test "x$enable_dependency_tracking" != xno; then
  2675. AMDEP_TRUE=
  2676. AMDEP_FALSE='#'
  2677. else
  2678. AMDEP_TRUE='#'
  2679. AMDEP_FALSE=
  2680. fi
  2681. # test to see if srcdir already configured
  2682. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2683. test -f $srcdir/config.status; then
  2684. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2685. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2686. { (exit 1); exit 1; }; }
  2687. fi
  2688. # test whether we have cygpath
  2689. if test -z "$CYGPATH_W"; then
  2690. if (cygpath --version) >/dev/null 2>/dev/null; then
  2691. CYGPATH_W='cygpath -w'
  2692. else
  2693. CYGPATH_W=echo
  2694. fi
  2695. fi
  2696. # Define the identity of the package.
  2697. PACKAGE=bfd
  2698. VERSION=2.17.50
  2699. cat >>confdefs.h <<_ACEOF
  2700. #define PACKAGE "$PACKAGE"
  2701. _ACEOF
  2702. cat >>confdefs.h <<_ACEOF
  2703. #define VERSION "$VERSION"
  2704. _ACEOF
  2705. # Some tools Automake needs.
  2706. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2707. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2708. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2709. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2710. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2711. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2712. # Installed binaries are usually stripped using `strip' when the user
  2713. # run `make install-strip'. However `strip' might not be the right
  2714. # tool to use in cross-compilation environments, therefore Automake
  2715. # will honor the `STRIP' environment variable to overrule this program.
  2716. if test "$cross_compiling" != no; then
  2717. if test -n "$ac_tool_prefix"; then
  2718. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2719. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2720. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2721. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2722. if test "${ac_cv_prog_STRIP+set}" = set; then
  2723. echo $ECHO_N "(cached) $ECHO_C" >&6
  2724. else
  2725. if test -n "$STRIP"; then
  2726. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2735. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2736. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. fi
  2742. fi
  2743. STRIP=$ac_cv_prog_STRIP
  2744. if test -n "$STRIP"; then
  2745. echo "$as_me:$LINENO: result: $STRIP" >&5
  2746. echo "${ECHO_T}$STRIP" >&6
  2747. else
  2748. echo "$as_me:$LINENO: result: no" >&5
  2749. echo "${ECHO_T}no" >&6
  2750. fi
  2751. fi
  2752. if test -z "$ac_cv_prog_STRIP"; then
  2753. ac_ct_STRIP=$STRIP
  2754. # Extract the first word of "strip", so it can be a program name with args.
  2755. set dummy strip; ac_word=$2
  2756. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2757. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2758. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. else
  2761. if test -n "$ac_ct_STRIP"; then
  2762. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2763. else
  2764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2765. for as_dir in $PATH
  2766. do
  2767. IFS=$as_save_IFS
  2768. test -z "$as_dir" && as_dir=.
  2769. for ac_exec_ext in '' $ac_executable_extensions; do
  2770. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2771. ac_cv_prog_ac_ct_STRIP="strip"
  2772. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2773. break 2
  2774. fi
  2775. done
  2776. done
  2777. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  2778. fi
  2779. fi
  2780. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2781. if test -n "$ac_ct_STRIP"; then
  2782. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2783. echo "${ECHO_T}$ac_ct_STRIP" >&6
  2784. else
  2785. echo "$as_me:$LINENO: result: no" >&5
  2786. echo "${ECHO_T}no" >&6
  2787. fi
  2788. STRIP=$ac_ct_STRIP
  2789. else
  2790. STRIP="$ac_cv_prog_STRIP"
  2791. fi
  2792. fi
  2793. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2794. # We need awk for the "check" target. The system "awk" is bad on
  2795. # some platforms.
  2796. # Always define AMTAR for backward compatibility.
  2797. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2798. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2799. depcc="$CC" am_compiler_list=
  2800. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2801. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2802. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2803. echo $ECHO_N "(cached) $ECHO_C" >&6
  2804. else
  2805. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2806. # We make a subdir and do the tests there. Otherwise we can end up
  2807. # making bogus files that we don't know about and never remove. For
  2808. # instance it was reported that on HP-UX the gcc test will end up
  2809. # making a dummy file named `D' -- because `-MD' means `put the output
  2810. # in D'.
  2811. mkdir conftest.dir
  2812. # Copy depcomp to subdir because otherwise we won't find it if we're
  2813. # using a relative directory.
  2814. cp "$am_depcomp" conftest.dir
  2815. cd conftest.dir
  2816. # We will build objects and dependencies in a subdirectory because
  2817. # it helps to detect inapplicable dependency modes. For instance
  2818. # both Tru64's cc and ICC support -MD to output dependencies as a
  2819. # side effect of compilation, but ICC will put the dependencies in
  2820. # the current directory while Tru64 will put them in the object
  2821. # directory.
  2822. mkdir sub
  2823. am_cv_CC_dependencies_compiler_type=none
  2824. if test "$am_compiler_list" = ""; then
  2825. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2826. fi
  2827. for depmode in $am_compiler_list; do
  2828. # Setup a source with many dependencies, because some compilers
  2829. # like to wrap large dependency lists on column 80 (with \), and
  2830. # we should not choose a depcomp mode which is confused by this.
  2831. #
  2832. # We need to recreate these files for each test, as the compiler may
  2833. # overwrite some of them when testing with obscure command lines.
  2834. # This happens at least with the AIX C compiler.
  2835. : > sub/conftest.c
  2836. for i in 1 2 3 4 5 6; do
  2837. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2838. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2839. # Solaris 8's {/usr,}/bin/sh.
  2840. touch sub/conftst$i.h
  2841. done
  2842. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2843. case $depmode in
  2844. nosideeffect)
  2845. # after this tag, mechanisms are not by side-effect, so they'll
  2846. # only be used when explicitly requested
  2847. if test "x$enable_dependency_tracking" = xyes; then
  2848. continue
  2849. else
  2850. break
  2851. fi
  2852. ;;
  2853. none) break ;;
  2854. esac
  2855. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2856. # mode. It turns out that the SunPro C++ compiler does not properly
  2857. # handle `-M -o', and we need to detect this.
  2858. if depmode=$depmode \
  2859. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2860. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2861. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2862. >/dev/null 2>conftest.err &&
  2863. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2864. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2865. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2866. # icc doesn't choke on unknown options, it will just issue warnings
  2867. # or remarks (even with -Werror). So we grep stderr for any message
  2868. # that says an option was ignored or not supported.
  2869. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2870. # icc: Command line warning: ignoring option '-M'; no argument required
  2871. # The diagnosis changed in icc 8.0:
  2872. # icc: Command line remark: option '-MP' not supported
  2873. if (grep 'ignoring option' conftest.err ||
  2874. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2875. am_cv_CC_dependencies_compiler_type=$depmode
  2876. break
  2877. fi
  2878. fi
  2879. done
  2880. cd ..
  2881. rm -rf conftest.dir
  2882. else
  2883. am_cv_CC_dependencies_compiler_type=none
  2884. fi
  2885. fi
  2886. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2887. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2888. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2889. if
  2890. test "x$enable_dependency_tracking" != xno \
  2891. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2892. am__fastdepCC_TRUE=
  2893. am__fastdepCC_FALSE='#'
  2894. else
  2895. am__fastdepCC_TRUE='#'
  2896. am__fastdepCC_FALSE=
  2897. fi
  2898. if test -n "$ac_tool_prefix"; then
  2899. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2900. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2901. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2902. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2903. if test "${ac_cv_prog_AR+set}" = set; then
  2904. echo $ECHO_N "(cached) $ECHO_C" >&6
  2905. else
  2906. if test -n "$AR"; then
  2907. ac_cv_prog_AR="$AR" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2916. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2917. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. fi
  2923. fi
  2924. AR=$ac_cv_prog_AR
  2925. if test -n "$AR"; then
  2926. echo "$as_me:$LINENO: result: $AR" >&5
  2927. echo "${ECHO_T}$AR" >&6
  2928. else
  2929. echo "$as_me:$LINENO: result: no" >&5
  2930. echo "${ECHO_T}no" >&6
  2931. fi
  2932. fi
  2933. if test -z "$ac_cv_prog_AR"; then
  2934. ac_ct_AR=$AR
  2935. # Extract the first word of "ar", so it can be a program name with args.
  2936. set dummy ar; ac_word=$2
  2937. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2938. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2939. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  2940. echo $ECHO_N "(cached) $ECHO_C" >&6
  2941. else
  2942. if test -n "$ac_ct_AR"; then
  2943. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2944. else
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. for as_dir in $PATH
  2947. do
  2948. IFS=$as_save_IFS
  2949. test -z "$as_dir" && as_dir=.
  2950. for ac_exec_ext in '' $ac_executable_extensions; do
  2951. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2952. ac_cv_prog_ac_ct_AR="ar"
  2953. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2954. break 2
  2955. fi
  2956. done
  2957. done
  2958. fi
  2959. fi
  2960. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2961. if test -n "$ac_ct_AR"; then
  2962. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  2963. echo "${ECHO_T}$ac_ct_AR" >&6
  2964. else
  2965. echo "$as_me:$LINENO: result: no" >&5
  2966. echo "${ECHO_T}no" >&6
  2967. fi
  2968. AR=$ac_ct_AR
  2969. else
  2970. AR="$ac_cv_prog_AR"
  2971. fi
  2972. if test -n "$ac_tool_prefix"; then
  2973. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2974. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2975. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2976. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2977. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2978. echo $ECHO_N "(cached) $ECHO_C" >&6
  2979. else
  2980. if test -n "$RANLIB"; then
  2981. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2990. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. fi
  2997. fi
  2998. RANLIB=$ac_cv_prog_RANLIB
  2999. if test -n "$RANLIB"; then
  3000. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3001. echo "${ECHO_T}$RANLIB" >&6
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. fi
  3007. if test -z "$ac_cv_prog_RANLIB"; then
  3008. ac_ct_RANLIB=$RANLIB
  3009. # Extract the first word of "ranlib", so it can be a program name with args.
  3010. set dummy ranlib; ac_word=$2
  3011. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3013. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3014. echo $ECHO_N "(cached) $ECHO_C" >&6
  3015. else
  3016. if test -n "$ac_ct_RANLIB"; then
  3017. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3018. else
  3019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3020. for as_dir in $PATH
  3021. do
  3022. IFS=$as_save_IFS
  3023. test -z "$as_dir" && as_dir=.
  3024. for ac_exec_ext in '' $ac_executable_extensions; do
  3025. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3026. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3028. break 2
  3029. fi
  3030. done
  3031. done
  3032. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3033. fi
  3034. fi
  3035. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3036. if test -n "$ac_ct_RANLIB"; then
  3037. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3038. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3039. else
  3040. echo "$as_me:$LINENO: result: no" >&5
  3041. echo "${ECHO_T}no" >&6
  3042. fi
  3043. RANLIB=$ac_ct_RANLIB
  3044. else
  3045. RANLIB="$ac_cv_prog_RANLIB"
  3046. fi
  3047. # Check whether --enable-shared or --disable-shared was given.
  3048. if test "${enable_shared+set}" = set; then
  3049. enableval="$enable_shared"
  3050. p=${PACKAGE-default}
  3051. case $enableval in
  3052. yes) enable_shared=yes ;;
  3053. no) enable_shared=no ;;
  3054. *)
  3055. enable_shared=no
  3056. # Look at the argument we got. We use all the common list separators.
  3057. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3058. for pkg in $enableval; do
  3059. IFS="$lt_save_ifs"
  3060. if test "X$pkg" = "X$p"; then
  3061. enable_shared=yes
  3062. fi
  3063. done
  3064. IFS="$lt_save_ifs"
  3065. ;;
  3066. esac
  3067. else
  3068. enable_shared=no
  3069. fi;
  3070. ac_ext=c
  3071. ac_cpp='$CPP $CPPFLAGS'
  3072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3075. if test -n "$ac_tool_prefix"; then
  3076. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3077. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3078. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3079. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3080. if test "${ac_cv_prog_CC+set}" = set; then
  3081. echo $ECHO_N "(cached) $ECHO_C" >&6
  3082. else
  3083. if test -n "$CC"; then
  3084. ac_cv_prog_CC="$CC" # Let the user override the test.
  3085. else
  3086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3087. for as_dir in $PATH
  3088. do
  3089. IFS=$as_save_IFS
  3090. test -z "$as_dir" && as_dir=.
  3091. for ac_exec_ext in '' $ac_executable_extensions; do
  3092. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3093. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3094. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3095. break 2
  3096. fi
  3097. done
  3098. done
  3099. fi
  3100. fi
  3101. CC=$ac_cv_prog_CC
  3102. if test -n "$CC"; then
  3103. echo "$as_me:$LINENO: result: $CC" >&5
  3104. echo "${ECHO_T}$CC" >&6
  3105. else
  3106. echo "$as_me:$LINENO: result: no" >&5
  3107. echo "${ECHO_T}no" >&6
  3108. fi
  3109. fi
  3110. if test -z "$ac_cv_prog_CC"; then
  3111. ac_ct_CC=$CC
  3112. # Extract the first word of "gcc", so it can be a program name with args.
  3113. set dummy gcc; ac_word=$2
  3114. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3115. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3116. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3117. echo $ECHO_N "(cached) $ECHO_C" >&6
  3118. else
  3119. if test -n "$ac_ct_CC"; then
  3120. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3121. else
  3122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3123. for as_dir in $PATH
  3124. do
  3125. IFS=$as_save_IFS
  3126. test -z "$as_dir" && as_dir=.
  3127. for ac_exec_ext in '' $ac_executable_extensions; do
  3128. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3129. ac_cv_prog_ac_ct_CC="gcc"
  3130. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3131. break 2
  3132. fi
  3133. done
  3134. done
  3135. fi
  3136. fi
  3137. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3138. if test -n "$ac_ct_CC"; then
  3139. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3140. echo "${ECHO_T}$ac_ct_CC" >&6
  3141. else
  3142. echo "$as_me:$LINENO: result: no" >&5
  3143. echo "${ECHO_T}no" >&6
  3144. fi
  3145. CC=$ac_ct_CC
  3146. else
  3147. CC="$ac_cv_prog_CC"
  3148. fi
  3149. if test -z "$CC"; then
  3150. if test -n "$ac_tool_prefix"; then
  3151. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3152. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3153. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3154. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3155. if test "${ac_cv_prog_CC+set}" = set; then
  3156. echo $ECHO_N "(cached) $ECHO_C" >&6
  3157. else
  3158. if test -n "$CC"; then
  3159. ac_cv_prog_CC="$CC" # Let the user override the test.
  3160. else
  3161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3162. for as_dir in $PATH
  3163. do
  3164. IFS=$as_save_IFS
  3165. test -z "$as_dir" && as_dir=.
  3166. for ac_exec_ext in '' $ac_executable_extensions; do
  3167. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3168. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3169. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3170. break 2
  3171. fi
  3172. done
  3173. done
  3174. fi
  3175. fi
  3176. CC=$ac_cv_prog_CC
  3177. if test -n "$CC"; then
  3178. echo "$as_me:$LINENO: result: $CC" >&5
  3179. echo "${ECHO_T}$CC" >&6
  3180. else
  3181. echo "$as_me:$LINENO: result: no" >&5
  3182. echo "${ECHO_T}no" >&6
  3183. fi
  3184. fi
  3185. if test -z "$ac_cv_prog_CC"; then
  3186. ac_ct_CC=$CC
  3187. # Extract the first word of "cc", so it can be a program name with args.
  3188. set dummy cc; ac_word=$2
  3189. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3190. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3191. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3192. echo $ECHO_N "(cached) $ECHO_C" >&6
  3193. else
  3194. if test -n "$ac_ct_CC"; then
  3195. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3196. else
  3197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3198. for as_dir in $PATH
  3199. do
  3200. IFS=$as_save_IFS
  3201. test -z "$as_dir" && as_dir=.
  3202. for ac_exec_ext in '' $ac_executable_extensions; do
  3203. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3204. ac_cv_prog_ac_ct_CC="cc"
  3205. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3206. break 2
  3207. fi
  3208. done
  3209. done
  3210. fi
  3211. fi
  3212. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3213. if test -n "$ac_ct_CC"; then
  3214. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3215. echo "${ECHO_T}$ac_ct_CC" >&6
  3216. else
  3217. echo "$as_me:$LINENO: result: no" >&5
  3218. echo "${ECHO_T}no" >&6
  3219. fi
  3220. CC=$ac_ct_CC
  3221. else
  3222. CC="$ac_cv_prog_CC"
  3223. fi
  3224. fi
  3225. if test -z "$CC"; then
  3226. # Extract the first word of "cc", so it can be a program name with args.
  3227. set dummy cc; ac_word=$2
  3228. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3229. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3230. if test "${ac_cv_prog_CC+set}" = set; then
  3231. echo $ECHO_N "(cached) $ECHO_C" >&6
  3232. else
  3233. if test -n "$CC"; then
  3234. ac_cv_prog_CC="$CC" # Let the user override the test.
  3235. else
  3236. ac_prog_rejected=no
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_exec_ext in '' $ac_executable_extensions; do
  3243. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3244. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3245. ac_prog_rejected=yes
  3246. continue
  3247. fi
  3248. ac_cv_prog_CC="cc"
  3249. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3250. break 2
  3251. fi
  3252. done
  3253. done
  3254. if test $ac_prog_rejected = yes; then
  3255. # We found a bogon in the path, so make sure we never use it.
  3256. set dummy $ac_cv_prog_CC
  3257. shift
  3258. if test $# != 0; then
  3259. # We chose a different compiler from the bogus one.
  3260. # However, it has the same basename, so the bogon will be chosen
  3261. # first if we set CC to just the basename; use the full file name.
  3262. shift
  3263. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3264. fi
  3265. fi
  3266. fi
  3267. fi
  3268. CC=$ac_cv_prog_CC
  3269. if test -n "$CC"; then
  3270. echo "$as_me:$LINENO: result: $CC" >&5
  3271. echo "${ECHO_T}$CC" >&6
  3272. else
  3273. echo "$as_me:$LINENO: result: no" >&5
  3274. echo "${ECHO_T}no" >&6
  3275. fi
  3276. fi
  3277. if test -z "$CC"; then
  3278. if test -n "$ac_tool_prefix"; then
  3279. for ac_prog in cl
  3280. do
  3281. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3282. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3283. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3285. if test "${ac_cv_prog_CC+set}" = set; then
  3286. echo $ECHO_N "(cached) $ECHO_C" >&6
  3287. else
  3288. if test -n "$CC"; then
  3289. ac_cv_prog_CC="$CC" # Let the user override the test.
  3290. else
  3291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3292. for as_dir in $PATH
  3293. do
  3294. IFS=$as_save_IFS
  3295. test -z "$as_dir" && as_dir=.
  3296. for ac_exec_ext in '' $ac_executable_extensions; do
  3297. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3298. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3300. break 2
  3301. fi
  3302. done
  3303. done
  3304. fi
  3305. fi
  3306. CC=$ac_cv_prog_CC
  3307. if test -n "$CC"; then
  3308. echo "$as_me:$LINENO: result: $CC" >&5
  3309. echo "${ECHO_T}$CC" >&6
  3310. else
  3311. echo "$as_me:$LINENO: result: no" >&5
  3312. echo "${ECHO_T}no" >&6
  3313. fi
  3314. test -n "$CC" && break
  3315. done
  3316. fi
  3317. if test -z "$CC"; then
  3318. ac_ct_CC=$CC
  3319. for ac_prog in cl
  3320. do
  3321. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3322. set dummy $ac_prog; ac_word=$2
  3323. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3324. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3325. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3326. echo $ECHO_N "(cached) $ECHO_C" >&6
  3327. else
  3328. if test -n "$ac_ct_CC"; then
  3329. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3330. else
  3331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3332. for as_dir in $PATH
  3333. do
  3334. IFS=$as_save_IFS
  3335. test -z "$as_dir" && as_dir=.
  3336. for ac_exec_ext in '' $ac_executable_extensions; do
  3337. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3338. ac_cv_prog_ac_ct_CC="$ac_prog"
  3339. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3340. break 2
  3341. fi
  3342. done
  3343. done
  3344. fi
  3345. fi
  3346. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3347. if test -n "$ac_ct_CC"; then
  3348. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3349. echo "${ECHO_T}$ac_ct_CC" >&6
  3350. else
  3351. echo "$as_me:$LINENO: result: no" >&5
  3352. echo "${ECHO_T}no" >&6
  3353. fi
  3354. test -n "$ac_ct_CC" && break
  3355. done
  3356. CC=$ac_ct_CC
  3357. fi
  3358. fi
  3359. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3360. See \`config.log' for more details." >&5
  3361. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3362. See \`config.log' for more details." >&2;}
  3363. { (exit 1); exit 1; }; }
  3364. # Provide some information about the compiler.
  3365. echo "$as_me:$LINENO:" \
  3366. "checking for C compiler version" >&5
  3367. ac_compiler=`set X $ac_compile; echo $2`
  3368. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3369. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3370. ac_status=$?
  3371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3372. (exit $ac_status); }
  3373. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3374. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3375. ac_status=$?
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); }
  3378. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3379. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3380. ac_status=$?
  3381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. (exit $ac_status); }
  3383. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3384. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  3385. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3386. echo $ECHO_N "(cached) $ECHO_C" >&6
  3387. else
  3388. cat >conftest.$ac_ext <<_ACEOF
  3389. /* confdefs.h. */
  3390. _ACEOF
  3391. cat confdefs.h >>conftest.$ac_ext
  3392. cat >>conftest.$ac_ext <<_ACEOF
  3393. /* end confdefs.h. */
  3394. int
  3395. main ()
  3396. {
  3397. #ifndef __GNUC__
  3398. choke me
  3399. #endif
  3400. ;
  3401. return 0;
  3402. }
  3403. _ACEOF
  3404. rm -f conftest.$ac_objext
  3405. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3406. (eval $ac_compile) 2>conftest.er1
  3407. ac_status=$?
  3408. grep -v '^ *+' conftest.er1 >conftest.err
  3409. rm -f conftest.er1
  3410. cat conftest.err >&5
  3411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3412. (exit $ac_status); } &&
  3413. { ac_try='test -z "$ac_c_werror_flag"
  3414. || test ! -s conftest.err'
  3415. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3416. (eval $ac_try) 2>&5
  3417. ac_status=$?
  3418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3419. (exit $ac_status); }; } &&
  3420. { ac_try='test -s conftest.$ac_objext'
  3421. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3422. (eval $ac_try) 2>&5
  3423. ac_status=$?
  3424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3425. (exit $ac_status); }; }; then
  3426. ac_compiler_gnu=yes
  3427. else
  3428. echo "$as_me: failed program was:" >&5
  3429. sed 's/^/| /' conftest.$ac_ext >&5
  3430. ac_compiler_gnu=no
  3431. fi
  3432. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3433. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3434. fi
  3435. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3436. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3437. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3438. ac_test_CFLAGS=${CFLAGS+set}
  3439. ac_save_CFLAGS=$CFLAGS
  3440. CFLAGS="-g"
  3441. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3442. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3443. if test "${ac_cv_prog_cc_g+set}" = set; then
  3444. echo $ECHO_N "(cached) $ECHO_C" >&6
  3445. else
  3446. cat >conftest.$ac_ext <<_ACEOF
  3447. /* confdefs.h. */
  3448. _ACEOF
  3449. cat confdefs.h >>conftest.$ac_ext
  3450. cat >>conftest.$ac_ext <<_ACEOF
  3451. /* end confdefs.h. */
  3452. int
  3453. main ()
  3454. {
  3455. ;
  3456. return 0;
  3457. }
  3458. _ACEOF
  3459. rm -f conftest.$ac_objext
  3460. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3461. (eval $ac_compile) 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } &&
  3468. { ac_try='test -z "$ac_c_werror_flag"
  3469. || test ! -s conftest.err'
  3470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3471. (eval $ac_try) 2>&5
  3472. ac_status=$?
  3473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3474. (exit $ac_status); }; } &&
  3475. { ac_try='test -s conftest.$ac_objext'
  3476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3477. (eval $ac_try) 2>&5
  3478. ac_status=$?
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); }; }; then
  3481. ac_cv_prog_cc_g=yes
  3482. else
  3483. echo "$as_me: failed program was:" >&5
  3484. sed 's/^/| /' conftest.$ac_ext >&5
  3485. ac_cv_prog_cc_g=no
  3486. fi
  3487. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3488. fi
  3489. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3490. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3491. if test "$ac_test_CFLAGS" = set; then
  3492. CFLAGS=$ac_save_CFLAGS
  3493. elif test $ac_cv_prog_cc_g = yes; then
  3494. if test "$GCC" = yes; then
  3495. CFLAGS="-g -O2"
  3496. else
  3497. CFLAGS="-g"
  3498. fi
  3499. else
  3500. if test "$GCC" = yes; then
  3501. CFLAGS="-O2"
  3502. else
  3503. CFLAGS=
  3504. fi
  3505. fi
  3506. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3507. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3508. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3509. echo $ECHO_N "(cached) $ECHO_C" >&6
  3510. else
  3511. ac_cv_prog_cc_stdc=no
  3512. ac_save_CC=$CC
  3513. cat >conftest.$ac_ext <<_ACEOF
  3514. /* confdefs.h. */
  3515. _ACEOF
  3516. cat confdefs.h >>conftest.$ac_ext
  3517. cat >>conftest.$ac_ext <<_ACEOF
  3518. /* end confdefs.h. */
  3519. #include <stdarg.h>
  3520. #include <stdio.h>
  3521. #include <sys/types.h>
  3522. #include <sys/stat.h>
  3523. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3524. struct buf { int x; };
  3525. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3526. static char *e (p, i)
  3527. char **p;
  3528. int i;
  3529. {
  3530. return p[i];
  3531. }
  3532. static char *f (char * (*g) (char **, int), char **p, ...)
  3533. {
  3534. char *s;
  3535. va_list v;
  3536. va_start (v,p);
  3537. s = g (p, va_arg (v,int));
  3538. va_end (v);
  3539. return s;
  3540. }
  3541. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3542. function prototypes and stuff, but not '\xHH' hex character constants.
  3543. These don't provoke an error unfortunately, instead are silently treated
  3544. as 'x'. The following induces an error, until -std1 is added to get
  3545. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3546. array size at least. It's necessary to write '\x00'==0 to get something
  3547. that's true only with -std1. */
  3548. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3549. int test (int i, double x);
  3550. struct s1 {int (*f) (int a);};
  3551. struct s2 {int (*f) (double a);};
  3552. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3553. int argc;
  3554. char **argv;
  3555. int
  3556. main ()
  3557. {
  3558. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3559. ;
  3560. return 0;
  3561. }
  3562. _ACEOF
  3563. # Don't try gcc -ansi; that turns off useful extensions and
  3564. # breaks some systems' header files.
  3565. # AIX -qlanglvl=ansi
  3566. # Ultrix and OSF/1 -std1
  3567. # HP-UX 10.20 and later -Ae
  3568. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3569. # SVR4 -Xc -D__EXTENSIONS__
  3570. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3571. do
  3572. CC="$ac_save_CC $ac_arg"
  3573. rm -f conftest.$ac_objext
  3574. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3575. (eval $ac_compile) 2>conftest.er1
  3576. ac_status=$?
  3577. grep -v '^ *+' conftest.er1 >conftest.err
  3578. rm -f conftest.er1
  3579. cat conftest.err >&5
  3580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3581. (exit $ac_status); } &&
  3582. { ac_try='test -z "$ac_c_werror_flag"
  3583. || test ! -s conftest.err'
  3584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3585. (eval $ac_try) 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }; } &&
  3589. { ac_try='test -s conftest.$ac_objext'
  3590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3591. (eval $ac_try) 2>&5
  3592. ac_status=$?
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }; }; then
  3595. ac_cv_prog_cc_stdc=$ac_arg
  3596. break
  3597. else
  3598. echo "$as_me: failed program was:" >&5
  3599. sed 's/^/| /' conftest.$ac_ext >&5
  3600. fi
  3601. rm -f conftest.err conftest.$ac_objext
  3602. done
  3603. rm -f conftest.$ac_ext conftest.$ac_objext
  3604. CC=$ac_save_CC
  3605. fi
  3606. case "x$ac_cv_prog_cc_stdc" in
  3607. x|xno)
  3608. echo "$as_me:$LINENO: result: none needed" >&5
  3609. echo "${ECHO_T}none needed" >&6 ;;
  3610. *)
  3611. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3612. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3613. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3614. esac
  3615. # Some people use a C++ compiler to compile C. Since we use `exit',
  3616. # in C++ we need to declare it. In case someone uses the same compiler
  3617. # for both compiling C and C++ we need to have the C++ compiler decide
  3618. # the declaration of exit, since it's the most demanding environment.
  3619. cat >conftest.$ac_ext <<_ACEOF
  3620. #ifndef __cplusplus
  3621. choke me
  3622. #endif
  3623. _ACEOF
  3624. rm -f conftest.$ac_objext
  3625. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3626. (eval $ac_compile) 2>conftest.er1
  3627. ac_status=$?
  3628. grep -v '^ *+' conftest.er1 >conftest.err
  3629. rm -f conftest.er1
  3630. cat conftest.err >&5
  3631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3632. (exit $ac_status); } &&
  3633. { ac_try='test -z "$ac_c_werror_flag"
  3634. || test ! -s conftest.err'
  3635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3636. (eval $ac_try) 2>&5
  3637. ac_status=$?
  3638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3639. (exit $ac_status); }; } &&
  3640. { ac_try='test -s conftest.$ac_objext'
  3641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3642. (eval $ac_try) 2>&5
  3643. ac_status=$?
  3644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3645. (exit $ac_status); }; }; then
  3646. for ac_declaration in \
  3647. '' \
  3648. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3649. 'extern "C" void std::exit (int); using std::exit;' \
  3650. 'extern "C" void exit (int) throw ();' \
  3651. 'extern "C" void exit (int);' \
  3652. 'void exit (int);'
  3653. do
  3654. cat >conftest.$ac_ext <<_ACEOF
  3655. /* confdefs.h. */
  3656. _ACEOF
  3657. cat confdefs.h >>conftest.$ac_ext
  3658. cat >>conftest.$ac_ext <<_ACEOF
  3659. /* end confdefs.h. */
  3660. $ac_declaration
  3661. #include <stdlib.h>
  3662. int
  3663. main ()
  3664. {
  3665. exit (42);
  3666. ;
  3667. return 0;
  3668. }
  3669. _ACEOF
  3670. rm -f conftest.$ac_objext
  3671. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3672. (eval $ac_compile) 2>conftest.er1
  3673. ac_status=$?
  3674. grep -v '^ *+' conftest.er1 >conftest.err
  3675. rm -f conftest.er1
  3676. cat conftest.err >&5
  3677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3678. (exit $ac_status); } &&
  3679. { ac_try='test -z "$ac_c_werror_flag"
  3680. || test ! -s conftest.err'
  3681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3682. (eval $ac_try) 2>&5
  3683. ac_status=$?
  3684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3685. (exit $ac_status); }; } &&
  3686. { ac_try='test -s conftest.$ac_objext'
  3687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3688. (eval $ac_try) 2>&5
  3689. ac_status=$?
  3690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3691. (exit $ac_status); }; }; then
  3692. :
  3693. else
  3694. echo "$as_me: failed program was:" >&5
  3695. sed 's/^/| /' conftest.$ac_ext >&5
  3696. continue
  3697. fi
  3698. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3699. cat >conftest.$ac_ext <<_ACEOF
  3700. /* confdefs.h. */
  3701. _ACEOF
  3702. cat confdefs.h >>conftest.$ac_ext
  3703. cat >>conftest.$ac_ext <<_ACEOF
  3704. /* end confdefs.h. */
  3705. $ac_declaration
  3706. int
  3707. main ()
  3708. {
  3709. exit (42);
  3710. ;
  3711. return 0;
  3712. }
  3713. _ACEOF
  3714. rm -f conftest.$ac_objext
  3715. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3716. (eval $ac_compile) 2>conftest.er1
  3717. ac_status=$?
  3718. grep -v '^ *+' conftest.er1 >conftest.err
  3719. rm -f conftest.er1
  3720. cat conftest.err >&5
  3721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3722. (exit $ac_status); } &&
  3723. { ac_try='test -z "$ac_c_werror_flag"
  3724. || test ! -s conftest.err'
  3725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3726. (eval $ac_try) 2>&5
  3727. ac_status=$?
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); }; } &&
  3730. { ac_try='test -s conftest.$ac_objext'
  3731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3732. (eval $ac_try) 2>&5
  3733. ac_status=$?
  3734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); }; }; then
  3736. break
  3737. else
  3738. echo "$as_me: failed program was:" >&5
  3739. sed 's/^/| /' conftest.$ac_ext >&5
  3740. fi
  3741. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. done
  3743. rm -f conftest*
  3744. if test -n "$ac_declaration"; then
  3745. echo '#ifdef __cplusplus' >>confdefs.h
  3746. echo $ac_declaration >>confdefs.h
  3747. echo '#endif' >>confdefs.h
  3748. fi
  3749. else
  3750. echo "$as_me: failed program was:" >&5
  3751. sed 's/^/| /' conftest.$ac_ext >&5
  3752. fi
  3753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3754. ac_ext=c
  3755. ac_cpp='$CPP $CPPFLAGS'
  3756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3759. cat >>confdefs.h <<\_ACEOF
  3760. #define _GNU_SOURCE 1
  3761. _ACEOF
  3762. macro_version='2.1a'
  3763. macro_revision='1.2435'
  3764. ltmain="$ac_aux_dir/ltmain.sh"
  3765. # Set options
  3766. enable_dlopen=no
  3767. enable_win32_dll=no
  3768. # Check whether --enable-static or --disable-static was given.
  3769. if test "${enable_static+set}" = set; then
  3770. enableval="$enable_static"
  3771. p=${PACKAGE-default}
  3772. case $enableval in
  3773. yes) enable_static=yes ;;
  3774. no) enable_static=no ;;
  3775. *)
  3776. enable_static=no
  3777. # Look at the argument we got. We use all the common list separators.
  3778. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3779. for pkg in $enableval; do
  3780. IFS="$lt_save_ifs"
  3781. if test "X$pkg" = "X$p"; then
  3782. enable_static=yes
  3783. fi
  3784. done
  3785. IFS="$lt_save_ifs"
  3786. ;;
  3787. esac
  3788. else
  3789. enable_static=yes
  3790. fi;
  3791. # Check whether --with-pic or --without-pic was given.
  3792. if test "${with_pic+set}" = set; then
  3793. withval="$with_pic"
  3794. pic_mode="$withval"
  3795. else
  3796. pic_mode=default
  3797. fi;
  3798. test -z "$pic_mode" && pic_mode=default
  3799. # Check whether --enable-fast-install or --disable-fast-install was given.
  3800. if test "${enable_fast_install+set}" = set; then
  3801. enableval="$enable_fast_install"
  3802. p=${PACKAGE-default}
  3803. case $enableval in
  3804. yes) enable_fast_install=yes ;;
  3805. no) enable_fast_install=no ;;
  3806. *)
  3807. enable_fast_install=no
  3808. # Look at the argument we got. We use all the common list separators.
  3809. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3810. for pkg in $enableval; do
  3811. IFS="$lt_save_ifs"
  3812. if test "X$pkg" = "X$p"; then
  3813. enable_fast_install=yes
  3814. fi
  3815. done
  3816. IFS="$lt_save_ifs"
  3817. ;;
  3818. esac
  3819. else
  3820. enable_fast_install=yes
  3821. fi;
  3822. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3823. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3824. if test "${lt_cv_path_SED+set}" = set; then
  3825. echo $ECHO_N "(cached) $ECHO_C" >&6
  3826. else
  3827. # Loop through the user's path and test for sed and gsed.
  3828. # Then use that list of sed's as ones to test for truncation.
  3829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3830. for as_dir in $PATH
  3831. do
  3832. IFS=$as_save_IFS
  3833. test -z "$as_dir" && as_dir=.
  3834. for lt_ac_prog in sed gsed; do
  3835. for ac_exec_ext in '' $ac_executable_extensions; do
  3836. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3837. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3838. fi
  3839. done
  3840. done
  3841. done
  3842. IFS=$as_save_IFS
  3843. lt_ac_max=0
  3844. lt_ac_count=0
  3845. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3846. # along with /bin/sed that truncates output.
  3847. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3848. test ! -f $lt_ac_sed && continue
  3849. cat /dev/null > conftest.in
  3850. lt_ac_count=0
  3851. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3852. # Check for GNU sed and select it if it is found.
  3853. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3854. lt_cv_path_SED=$lt_ac_sed
  3855. break
  3856. fi
  3857. while true; do
  3858. cat conftest.in conftest.in >conftest.tmp
  3859. mv conftest.tmp conftest.in
  3860. cp conftest.in conftest.nl
  3861. echo >>conftest.nl
  3862. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3863. cmp -s conftest.out conftest.nl || break
  3864. # 10000 chars as input seems more than enough
  3865. test $lt_ac_count -gt 10 && break
  3866. lt_ac_count=`expr $lt_ac_count + 1`
  3867. if test $lt_ac_count -gt $lt_ac_max; then
  3868. lt_ac_max=$lt_ac_count
  3869. lt_cv_path_SED=$lt_ac_sed
  3870. fi
  3871. done
  3872. done
  3873. fi
  3874. SED=$lt_cv_path_SED
  3875. echo "$as_me:$LINENO: result: $SED" >&5
  3876. echo "${ECHO_T}$SED" >&6
  3877. test -z "$SED" && SED=sed
  3878. Xsed="$SED -e 1s/^X//"
  3879. echo "$as_me:$LINENO: checking for egrep" >&5
  3880. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3881. if test "${ac_cv_prog_egrep+set}" = set; then
  3882. echo $ECHO_N "(cached) $ECHO_C" >&6
  3883. else
  3884. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3885. then ac_cv_prog_egrep='grep -E'
  3886. else ac_cv_prog_egrep='egrep'
  3887. fi
  3888. fi
  3889. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3890. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3891. EGREP=$ac_cv_prog_egrep
  3892. echo "$as_me:$LINENO: checking for fgrep" >&5
  3893. echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
  3894. if test "${ac_cv_prog_fgrep+set}" = set; then
  3895. echo $ECHO_N "(cached) $ECHO_C" >&6
  3896. else
  3897. if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
  3898. then ac_cv_prog_fgrep='grep -F'
  3899. else ac_cv_prog_fgrep='fgrep'
  3900. fi
  3901. fi
  3902. echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
  3903. echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
  3904. FGREP=$ac_cv_prog_fgrep
  3905. test -z "$GREP" && GREP=grep
  3906. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3907. if test "${with_gnu_ld+set}" = set; then
  3908. withval="$with_gnu_ld"
  3909. test "$withval" = no || with_gnu_ld=yes
  3910. else
  3911. with_gnu_ld=no
  3912. fi;
  3913. ac_prog=ld
  3914. if test "$GCC" = yes; then
  3915. # Check if gcc -print-prog-name=ld gives a path.
  3916. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3917. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3918. case $host in
  3919. *-*-mingw*)
  3920. # gcc leaves a trailing carriage return which upsets mingw
  3921. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3922. *)
  3923. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3924. esac
  3925. case $ac_prog in
  3926. # Accept absolute paths.
  3927. [\\/]* | ?:[\\/]*)
  3928. re_direlt='/[^/][^/]*/\.\./'
  3929. # Canonicalize the pathname of ld
  3930. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3931. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3932. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3933. done
  3934. test -z "$LD" && LD="$ac_prog"
  3935. ;;
  3936. "")
  3937. # If it fails, then pretend we aren't using GCC.
  3938. ac_prog=ld
  3939. ;;
  3940. *)
  3941. # If it is relative, then search for the first ld in PATH.
  3942. with_gnu_ld=unknown
  3943. ;;
  3944. esac
  3945. elif test "$with_gnu_ld" = yes; then
  3946. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3947. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3948. else
  3949. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3950. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3951. fi
  3952. if test "${lt_cv_path_LD+set}" = set; then
  3953. echo $ECHO_N "(cached) $ECHO_C" >&6
  3954. else
  3955. if test -z "$LD"; then
  3956. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3957. for ac_dir in $PATH; do
  3958. IFS="$lt_save_ifs"
  3959. test -z "$ac_dir" && ac_dir=.
  3960. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3961. lt_cv_path_LD="$ac_dir/$ac_prog"
  3962. # Check to see if the program is GNU ld. I'd rather use --version,
  3963. # but apparently some variants of GNU ld only accept -v.
  3964. # Break only if it was the GNU/non-GNU ld that we prefer.
  3965. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3966. *GNU* | *'with BFD'*)
  3967. test "$with_gnu_ld" != no && break
  3968. ;;
  3969. *)
  3970. test "$with_gnu_ld" != yes && break
  3971. ;;
  3972. esac
  3973. fi
  3974. done
  3975. IFS="$lt_save_ifs"
  3976. else
  3977. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3978. fi
  3979. fi
  3980. LD="$lt_cv_path_LD"
  3981. if test -n "$LD"; then
  3982. echo "$as_me:$LINENO: result: $LD" >&5
  3983. echo "${ECHO_T}$LD" >&6
  3984. else
  3985. echo "$as_me:$LINENO: result: no" >&5
  3986. echo "${ECHO_T}no" >&6
  3987. fi
  3988. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3989. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3990. { (exit 1); exit 1; }; }
  3991. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3992. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3993. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3994. echo $ECHO_N "(cached) $ECHO_C" >&6
  3995. else
  3996. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3997. case `$LD -v 2>&1 </dev/null` in
  3998. *GNU* | *'with BFD'*)
  3999. lt_cv_prog_gnu_ld=yes
  4000. ;;
  4001. *)
  4002. lt_cv_prog_gnu_ld=no
  4003. ;;
  4004. esac
  4005. fi
  4006. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4007. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4008. with_gnu_ld=$lt_cv_prog_gnu_ld
  4009. echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4010. echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
  4011. if test "${lt_cv_path_NM+set}" = set; then
  4012. echo $ECHO_N "(cached) $ECHO_C" >&6
  4013. else
  4014. if test -n "$NM"; then
  4015. # Let the user override the test.
  4016. lt_cv_path_NM="$NM"
  4017. else
  4018. lt_nm_to_check="${ac_tool_prefix}nm"
  4019. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4020. lt_nm_to_check="$lt_nm_to_check nm"
  4021. fi
  4022. for lt_tmp_nm in $lt_nm_to_check; do
  4023. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4024. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4025. IFS="$lt_save_ifs"
  4026. test -z "$ac_dir" && ac_dir=.
  4027. tmp_nm="$ac_dir/$lt_tmp_nm"
  4028. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4029. # Check to see if the nm accepts a BSD-compat flag.
  4030. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4031. # nm: unknown option "B" ignored
  4032. # Tru64's nm complains that /dev/null is an invalid object file
  4033. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4034. */dev/null* | *'Invalid file or object type'*)
  4035. lt_cv_path_NM="$tmp_nm -B"
  4036. break
  4037. ;;
  4038. *)
  4039. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4040. */dev/null*)
  4041. lt_cv_path_NM="$tmp_nm -p"
  4042. break
  4043. ;;
  4044. *)
  4045. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4046. continue # so that we can try to find one that supports BSD flags
  4047. ;;
  4048. esac
  4049. ;;
  4050. esac
  4051. fi
  4052. done
  4053. IFS="$lt_save_ifs"
  4054. done
  4055. : ${lt_cv_path_NM=no}
  4056. fi
  4057. fi
  4058. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4059. echo "${ECHO_T}$lt_cv_path_NM" >&6
  4060. if test "$lt_cv_path_NM" != "no"; then
  4061. NM="$lt_cv_path_NM"
  4062. else
  4063. # Didn't find any BSD compatible name lister, look for dumpbin.
  4064. if test -n "$ac_tool_prefix"; then
  4065. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4066. do
  4067. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4068. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4069. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4070. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4071. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. if test -n "$DUMPBIN"; then
  4075. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4084. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4085. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. fi
  4091. fi
  4092. DUMPBIN=$ac_cv_prog_DUMPBIN
  4093. if test -n "$DUMPBIN"; then
  4094. echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4095. echo "${ECHO_T}$DUMPBIN" >&6
  4096. else
  4097. echo "$as_me:$LINENO: result: no" >&5
  4098. echo "${ECHO_T}no" >&6
  4099. fi
  4100. test -n "$DUMPBIN" && break
  4101. done
  4102. fi
  4103. if test -z "$DUMPBIN"; then
  4104. ac_ct_DUMPBIN=$DUMPBIN
  4105. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4106. do
  4107. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4108. set dummy $ac_prog; ac_word=$2
  4109. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4110. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4111. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4112. echo $ECHO_N "(cached) $ECHO_C" >&6
  4113. else
  4114. if test -n "$ac_ct_DUMPBIN"; then
  4115. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4116. else
  4117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4118. for as_dir in $PATH
  4119. do
  4120. IFS=$as_save_IFS
  4121. test -z "$as_dir" && as_dir=.
  4122. for ac_exec_ext in '' $ac_executable_extensions; do
  4123. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4124. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4125. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4126. break 2
  4127. fi
  4128. done
  4129. done
  4130. fi
  4131. fi
  4132. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4133. if test -n "$ac_ct_DUMPBIN"; then
  4134. echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4135. echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
  4136. else
  4137. echo "$as_me:$LINENO: result: no" >&5
  4138. echo "${ECHO_T}no" >&6
  4139. fi
  4140. test -n "$ac_ct_DUMPBIN" && break
  4141. done
  4142. test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
  4143. DUMPBIN=$ac_ct_DUMPBIN
  4144. fi
  4145. if test "$DUMPBIN" != ":"; then
  4146. NM="$DUMPBIN"
  4147. fi
  4148. fi
  4149. test -z "$NM" && NM=nm
  4150. echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4151. echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
  4152. if test "${lt_cv_nm_interface+set}" = set; then
  4153. echo $ECHO_N "(cached) $ECHO_C" >&6
  4154. else
  4155. lt_cv_nm_interface="BSD nm"
  4156. echo "int some_variable = 0;" > conftest.$ac_ext
  4157. (eval echo "\"\$as_me:4668: $ac_compile\"" >&5)
  4158. (eval "$ac_compile" 2>conftest.err)
  4159. cat conftest.err >&5
  4160. (eval echo "\"\$as_me:4671: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4161. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4162. cat conftest.err >&5
  4163. (eval echo "\"\$as_me:4674: output\"" >&5)
  4164. cat conftest.out >&5
  4165. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4166. lt_cv_nm_interface="MS dumpbin"
  4167. fi
  4168. rm -f conftest*
  4169. fi
  4170. echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4171. echo "${ECHO_T}$lt_cv_nm_interface" >&6
  4172. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4173. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  4174. LN_S=$as_ln_s
  4175. if test "$LN_S" = "ln -s"; then
  4176. echo "$as_me:$LINENO: result: yes" >&5
  4177. echo "${ECHO_T}yes" >&6
  4178. else
  4179. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4180. echo "${ECHO_T}no, using $LN_S" >&6
  4181. fi
  4182. # find the maximum length of command line arguments
  4183. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4184. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4185. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4186. echo $ECHO_N "(cached) $ECHO_C" >&6
  4187. else
  4188. i=0
  4189. teststring="ABCD"
  4190. case $build_os in
  4191. msdosdjgpp*)
  4192. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4193. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4194. # during glob expansion). Even if it were fixed, the result of this
  4195. # check would be larger than it should be.
  4196. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4197. ;;
  4198. gnu*)
  4199. # Under GNU Hurd, this test is not required because there is
  4200. # no limit to the length of command line arguments.
  4201. # Libtool will interpret -1 as no limit whatsoever
  4202. lt_cv_sys_max_cmd_len=-1;
  4203. ;;
  4204. cygwin* | mingw*)
  4205. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4206. # about 5 minutes as the teststring grows exponentially.
  4207. # Worse, since 9x/ME are not pre-emptively multitasking,
  4208. # you end up with a "frozen" computer, even though with patience
  4209. # the test eventually succeeds (with a max line length of 256k).
  4210. # Instead, let's just punt: use the minimum linelength reported by
  4211. # all of the supported platforms: 8192 (on NT/2K/XP).
  4212. lt_cv_sys_max_cmd_len=8192;
  4213. ;;
  4214. amigaos*)
  4215. # On AmigaOS with pdksh, this test takes hours, literally.
  4216. # So we just punt and use a minimum line length of 8192.
  4217. lt_cv_sys_max_cmd_len=8192;
  4218. ;;
  4219. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4220. # This has been around since 386BSD, at least. Likely further.
  4221. if test -x /sbin/sysctl; then
  4222. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4223. elif test -x /usr/sbin/sysctl; then
  4224. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4225. else
  4226. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4227. fi
  4228. # And add a safety zone
  4229. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4230. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4231. ;;
  4232. interix*)
  4233. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4234. lt_cv_sys_max_cmd_len=196608
  4235. ;;
  4236. osf*)
  4237. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4238. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4239. # nice to cause kernel panics so lets avoid the loop below.
  4240. # First set a reasonable default.
  4241. lt_cv_sys_max_cmd_len=16384
  4242. #
  4243. if test -x /sbin/sysconfig; then
  4244. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4245. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4246. esac
  4247. fi
  4248. ;;
  4249. sco3.2v5*)
  4250. lt_cv_sys_max_cmd_len=102400
  4251. ;;
  4252. sysv5* | sco5v6* | sysv4.2uw2*)
  4253. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4254. if test -n "$kargmax"; then
  4255. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4256. else
  4257. lt_cv_sys_max_cmd_len=32768
  4258. fi
  4259. ;;
  4260. *)
  4261. lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
  4262. if test -n $lt_cv_sys_max_cmd_len; then
  4263. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4264. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4265. else
  4266. # Make teststring a little bigger before we do anything with it.
  4267. # a 1K string should be a reasonable start.
  4268. for i in 1 2 3 4 5 6 7 8 ; do
  4269. teststring=$teststring$teststring
  4270. done
  4271. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4272. # If test is not a shell built-in, we'll probably end up computing a
  4273. # maximum length that is only half of the actual maximum length, but
  4274. # we can't tell.
  4275. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4276. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4277. test $i != 17 # 1/2 MB should be enough
  4278. do
  4279. i=`expr $i + 1`
  4280. teststring=$teststring$teststring
  4281. done
  4282. # Only check the string length outside the loop.
  4283. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4284. teststring=
  4285. # Add a significant safety factor because C++ compilers can tack on
  4286. # massive amounts of additional arguments before passing them to the
  4287. # linker. It appears as though 1/2 is a usable value.
  4288. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4289. fi
  4290. ;;
  4291. esac
  4292. fi
  4293. if test -n $lt_cv_sys_max_cmd_len ; then
  4294. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4295. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4296. else
  4297. echo "$as_me:$LINENO: result: none" >&5
  4298. echo "${ECHO_T}none" >&6
  4299. fi
  4300. max_cmd_len=$lt_cv_sys_max_cmd_len
  4301. : ${CP="cp -f"}
  4302. : ${MV="mv -f"}
  4303. : ${RM="rm -f"}
  4304. echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4305. echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
  4306. # Try some XSI features
  4307. xsi_shell=no
  4308. ( _lt_dummy="a/b/c"
  4309. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4310. = c,a/b,, ) >/dev/null 2>&1 \
  4311. && xsi_shell=yes
  4312. echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4313. echo "${ECHO_T}$xsi_shell" >&6
  4314. echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4315. echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
  4316. lt_shell_append=no
  4317. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4318. >/dev/null 2>&1 \
  4319. && lt_shell_append=yes
  4320. echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4321. echo "${ECHO_T}$lt_shell_append" >&6
  4322. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4323. lt_unset=unset
  4324. else
  4325. lt_unset=false
  4326. fi
  4327. # test EBCDIC or ASCII
  4328. case `echo X|tr X '\101'` in
  4329. A) # ASCII based system
  4330. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4331. lt_SP2NL='tr \040 \012'
  4332. lt_NL2SP='tr \015\012 \040\040'
  4333. ;;
  4334. *) # EBCDIC based system
  4335. lt_SP2NL='tr \100 \n'
  4336. lt_NL2SP='tr \r\n \100\100'
  4337. ;;
  4338. esac
  4339. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4340. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4341. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4342. echo $ECHO_N "(cached) $ECHO_C" >&6
  4343. else
  4344. lt_cv_ld_reload_flag='-r'
  4345. fi
  4346. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4347. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4348. reload_flag=$lt_cv_ld_reload_flag
  4349. case $reload_flag in
  4350. "" | " "*) ;;
  4351. *) reload_flag=" $reload_flag" ;;
  4352. esac
  4353. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4354. case $host_os in
  4355. darwin*)
  4356. if test "$GCC" = yes; then
  4357. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4358. else
  4359. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4360. fi
  4361. ;;
  4362. esac
  4363. echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4364. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
  4365. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4366. echo $ECHO_N "(cached) $ECHO_C" >&6
  4367. else
  4368. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4369. lt_cv_file_magic_test_file=
  4370. lt_cv_deplibs_check_method='unknown'
  4371. # Need to set the preceding variable on all platforms that support
  4372. # interlibrary dependencies.
  4373. # 'none' -- dependencies not supported.
  4374. # `unknown' -- same as none, but documents that we really don't know.
  4375. # 'pass_all' -- all dependencies passed with no checks.
  4376. # 'test_compile' -- check by making test program.
  4377. # 'file_magic [[regex]]' -- check by looking for files in library path
  4378. # which responds to the $file_magic_cmd with a given extended regex.
  4379. # If you have `file' or equivalent on your system and you're not sure
  4380. # whether `pass_all' will *always* work, you probably want this one.
  4381. case $host_os in
  4382. aix4* | aix5*)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. beos*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. bsdi[45]*)
  4389. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4390. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4391. lt_cv_file_magic_test_file=/shlib/libc.so
  4392. ;;
  4393. cygwin*)
  4394. # func_win32_libid is a shell function defined in ltmain.sh
  4395. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4396. lt_cv_file_magic_cmd='func_win32_libid'
  4397. ;;
  4398. mingw* | pw32*)
  4399. # Base MSYS/MinGW do not provide the 'file' command needed by
  4400. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4401. # unless we find 'file', for example because we are cross-compiling.
  4402. if ( file / ) >/dev/null 2>&1; then
  4403. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4404. lt_cv_file_magic_cmd='func_win32_libid'
  4405. else
  4406. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4407. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4408. fi
  4409. ;;
  4410. darwin* | rhapsody*)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. freebsd* | dragonfly*)
  4414. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4415. case $host_cpu in
  4416. i*86 )
  4417. # Not sure whether the presence of OpenBSD here was a mistake.
  4418. # Let's accept both of them until this is cleared up.
  4419. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4420. lt_cv_file_magic_cmd=/usr/bin/file
  4421. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4422. ;;
  4423. esac
  4424. else
  4425. lt_cv_deplibs_check_method=pass_all
  4426. fi
  4427. ;;
  4428. gnu*)
  4429. lt_cv_deplibs_check_method=pass_all
  4430. ;;
  4431. hpux10.20* | hpux11*)
  4432. lt_cv_file_magic_cmd=/usr/bin/file
  4433. case $host_cpu in
  4434. ia64*)
  4435. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4436. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4437. ;;
  4438. hppa*64*)
  4439. 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]'
  4440. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4441. ;;
  4442. *)
  4443. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4444. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4445. ;;
  4446. esac
  4447. ;;
  4448. interix[3-9]*)
  4449. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4450. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4451. ;;
  4452. irix5* | irix6* | nonstopux*)
  4453. case $LD in
  4454. *-32|*"-32 ") libmagic=32-bit;;
  4455. *-n32|*"-n32 ") libmagic=N32;;
  4456. *-64|*"-64 ") libmagic=64-bit;;
  4457. *) libmagic=never-match;;
  4458. esac
  4459. lt_cv_deplibs_check_method=pass_all
  4460. ;;
  4461. # This must be Linux ELF.
  4462. linux* | k*bsd*-gnu)
  4463. lt_cv_deplibs_check_method=pass_all
  4464. ;;
  4465. netbsd*)
  4466. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4468. else
  4469. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4470. fi
  4471. ;;
  4472. newos6*)
  4473. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4474. lt_cv_file_magic_cmd=/usr/bin/file
  4475. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4476. ;;
  4477. *nto* | *qnx*)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. openbsd*)
  4481. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. osf3* | osf4* | osf5*)
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. rdos*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. solaris*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. sysv4 | sysv4.3*)
  4500. case $host_vendor in
  4501. motorola)
  4502. 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]'
  4503. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4504. ;;
  4505. ncr)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. sequent)
  4509. lt_cv_file_magic_cmd='/bin/file'
  4510. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4511. ;;
  4512. sni)
  4513. lt_cv_file_magic_cmd='/bin/file'
  4514. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4515. lt_cv_file_magic_test_file=/lib/libc.so
  4516. ;;
  4517. siemens)
  4518. lt_cv_deplibs_check_method=pass_all
  4519. ;;
  4520. pc)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. esac
  4524. ;;
  4525. tpf*)
  4526. lt_cv_deplibs_check_method=pass_all
  4527. ;;
  4528. esac
  4529. fi
  4530. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4531. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4532. file_magic_cmd=$lt_cv_file_magic_cmd
  4533. deplibs_check_method=$lt_cv_deplibs_check_method
  4534. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4535. if test -n "$ac_tool_prefix"; then
  4536. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4537. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4538. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4539. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4540. if test "${ac_cv_prog_AR+set}" = set; then
  4541. echo $ECHO_N "(cached) $ECHO_C" >&6
  4542. else
  4543. if test -n "$AR"; then
  4544. ac_cv_prog_AR="$AR" # Let the user override the test.
  4545. else
  4546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4547. for as_dir in $PATH
  4548. do
  4549. IFS=$as_save_IFS
  4550. test -z "$as_dir" && as_dir=.
  4551. for ac_exec_ext in '' $ac_executable_extensions; do
  4552. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4553. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4554. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4555. break 2
  4556. fi
  4557. done
  4558. done
  4559. fi
  4560. fi
  4561. AR=$ac_cv_prog_AR
  4562. if test -n "$AR"; then
  4563. echo "$as_me:$LINENO: result: $AR" >&5
  4564. echo "${ECHO_T}$AR" >&6
  4565. else
  4566. echo "$as_me:$LINENO: result: no" >&5
  4567. echo "${ECHO_T}no" >&6
  4568. fi
  4569. fi
  4570. if test -z "$ac_cv_prog_AR"; then
  4571. ac_ct_AR=$AR
  4572. # Extract the first word of "ar", so it can be a program name with args.
  4573. set dummy ar; ac_word=$2
  4574. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4576. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4577. echo $ECHO_N "(cached) $ECHO_C" >&6
  4578. else
  4579. if test -n "$ac_ct_AR"; then
  4580. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4581. else
  4582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. for as_dir in $PATH
  4584. do
  4585. IFS=$as_save_IFS
  4586. test -z "$as_dir" && as_dir=.
  4587. for ac_exec_ext in '' $ac_executable_extensions; do
  4588. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4589. ac_cv_prog_ac_ct_AR="ar"
  4590. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4591. break 2
  4592. fi
  4593. done
  4594. done
  4595. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  4596. fi
  4597. fi
  4598. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4599. if test -n "$ac_ct_AR"; then
  4600. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4601. echo "${ECHO_T}$ac_ct_AR" >&6
  4602. else
  4603. echo "$as_me:$LINENO: result: no" >&5
  4604. echo "${ECHO_T}no" >&6
  4605. fi
  4606. AR=$ac_ct_AR
  4607. else
  4608. AR="$ac_cv_prog_AR"
  4609. fi
  4610. test -z "$AR" && AR=ar
  4611. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4612. if test -n "$ac_tool_prefix"; then
  4613. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4614. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4615. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4616. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4617. if test "${ac_cv_prog_STRIP+set}" = set; then
  4618. echo $ECHO_N "(cached) $ECHO_C" >&6
  4619. else
  4620. if test -n "$STRIP"; then
  4621. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4622. else
  4623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4624. for as_dir in $PATH
  4625. do
  4626. IFS=$as_save_IFS
  4627. test -z "$as_dir" && as_dir=.
  4628. for ac_exec_ext in '' $ac_executable_extensions; do
  4629. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4630. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4631. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4632. break 2
  4633. fi
  4634. done
  4635. done
  4636. fi
  4637. fi
  4638. STRIP=$ac_cv_prog_STRIP
  4639. if test -n "$STRIP"; then
  4640. echo "$as_me:$LINENO: result: $STRIP" >&5
  4641. echo "${ECHO_T}$STRIP" >&6
  4642. else
  4643. echo "$as_me:$LINENO: result: no" >&5
  4644. echo "${ECHO_T}no" >&6
  4645. fi
  4646. fi
  4647. if test -z "$ac_cv_prog_STRIP"; then
  4648. ac_ct_STRIP=$STRIP
  4649. # Extract the first word of "strip", so it can be a program name with args.
  4650. set dummy strip; ac_word=$2
  4651. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4652. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4653. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4654. echo $ECHO_N "(cached) $ECHO_C" >&6
  4655. else
  4656. if test -n "$ac_ct_STRIP"; then
  4657. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4658. else
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH
  4661. do
  4662. IFS=$as_save_IFS
  4663. test -z "$as_dir" && as_dir=.
  4664. for ac_exec_ext in '' $ac_executable_extensions; do
  4665. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4666. ac_cv_prog_ac_ct_STRIP="strip"
  4667. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4668. break 2
  4669. fi
  4670. done
  4671. done
  4672. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4673. fi
  4674. fi
  4675. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4676. if test -n "$ac_ct_STRIP"; then
  4677. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4678. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4679. else
  4680. echo "$as_me:$LINENO: result: no" >&5
  4681. echo "${ECHO_T}no" >&6
  4682. fi
  4683. STRIP=$ac_ct_STRIP
  4684. else
  4685. STRIP="$ac_cv_prog_STRIP"
  4686. fi
  4687. test -z "$STRIP" && STRIP=:
  4688. if test -n "$ac_tool_prefix"; then
  4689. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4690. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4691. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4692. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4693. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4694. echo $ECHO_N "(cached) $ECHO_C" >&6
  4695. else
  4696. if test -n "$RANLIB"; then
  4697. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4698. else
  4699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4700. for as_dir in $PATH
  4701. do
  4702. IFS=$as_save_IFS
  4703. test -z "$as_dir" && as_dir=.
  4704. for ac_exec_ext in '' $ac_executable_extensions; do
  4705. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4706. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4707. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4708. break 2
  4709. fi
  4710. done
  4711. done
  4712. fi
  4713. fi
  4714. RANLIB=$ac_cv_prog_RANLIB
  4715. if test -n "$RANLIB"; then
  4716. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4717. echo "${ECHO_T}$RANLIB" >&6
  4718. else
  4719. echo "$as_me:$LINENO: result: no" >&5
  4720. echo "${ECHO_T}no" >&6
  4721. fi
  4722. fi
  4723. if test -z "$ac_cv_prog_RANLIB"; then
  4724. ac_ct_RANLIB=$RANLIB
  4725. # Extract the first word of "ranlib", so it can be a program name with args.
  4726. set dummy ranlib; ac_word=$2
  4727. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4728. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4729. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4730. echo $ECHO_N "(cached) $ECHO_C" >&6
  4731. else
  4732. if test -n "$ac_ct_RANLIB"; then
  4733. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4742. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4743. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4749. fi
  4750. fi
  4751. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4752. if test -n "$ac_ct_RANLIB"; then
  4753. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4754. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4755. else
  4756. echo "$as_me:$LINENO: result: no" >&5
  4757. echo "${ECHO_T}no" >&6
  4758. fi
  4759. RANLIB=$ac_ct_RANLIB
  4760. else
  4761. RANLIB="$ac_cv_prog_RANLIB"
  4762. fi
  4763. test -z "$RANLIB" && RANLIB=:
  4764. # Determine commands to create old-style static archives.
  4765. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4766. old_postinstall_cmds='chmod 644 $oldlib'
  4767. old_postuninstall_cmds=
  4768. if test -n "$RANLIB"; then
  4769. case $host_os in
  4770. openbsd*)
  4771. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4772. ;;
  4773. *)
  4774. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4775. ;;
  4776. esac
  4777. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4778. fi
  4779. # If no C compiler was specified, use CC.
  4780. LTCC=${LTCC-"$CC"}
  4781. # If no C compiler flags were specified, use CFLAGS.
  4782. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4783. # Allow CC to be a program name with arguments.
  4784. compiler=$CC
  4785. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4786. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4787. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4788. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4789. echo $ECHO_N "(cached) $ECHO_C" >&6
  4790. else
  4791. # These are sane defaults that work on at least a few old systems.
  4792. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4793. # Character class describing NM global symbol codes.
  4794. symcode='[BCDEGRST]'
  4795. # Regexp to match symbols that can be accessed directly from C.
  4796. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4797. # Define system-specific variables.
  4798. case $host_os in
  4799. aix*)
  4800. symcode='[BCDT]'
  4801. ;;
  4802. cygwin* | mingw* | pw32*)
  4803. symcode='[ABCDGISTW]'
  4804. ;;
  4805. hpux*)
  4806. if test "$host_cpu" = ia64; then
  4807. symcode='[ABCDEGRST]'
  4808. fi
  4809. ;;
  4810. irix* | nonstopux*)
  4811. symcode='[BCDEGRST]'
  4812. ;;
  4813. osf*)
  4814. symcode='[BCDEGQRST]'
  4815. ;;
  4816. solaris*)
  4817. symcode='[BDRT]'
  4818. ;;
  4819. sco3.2v5*)
  4820. symcode='[DT]'
  4821. ;;
  4822. sysv4.2uw2*)
  4823. symcode='[DT]'
  4824. ;;
  4825. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4826. symcode='[ABDT]'
  4827. ;;
  4828. sysv4)
  4829. symcode='[DFNSTU]'
  4830. ;;
  4831. esac
  4832. # If we're using GNU nm, then use its standard symbol codes.
  4833. case `$NM -V 2>&1` in
  4834. *GNU* | *'with BFD'*)
  4835. symcode='[ABCDGIRSTW]' ;;
  4836. esac
  4837. # Transform an extracted symbol line into a proper C declaration.
  4838. # Some systems (esp. on ia64) link data and code symbols differently,
  4839. # so use this general approach.
  4840. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4841. # Transform an extracted symbol line into symbol name and symbol address
  4842. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4843. # Handle CRLF in mingw tool chain
  4844. opt_cr=
  4845. case $build_os in
  4846. mingw*)
  4847. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4848. ;;
  4849. esac
  4850. # Try without a prefix underscore, then with it.
  4851. for ac_symprfx in "" "_"; do
  4852. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4853. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4854. # Write the raw and C identifiers.
  4855. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4856. # Fake it for dumpbin and say T for any non-static function
  4857. # and D for any global variable.
  4858. # Also find C++ and __fastcall symbols from MSVC++,
  4859. # which start with @ or ?.
  4860. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4861. " {last_section=section; section=\$ 3};"\
  4862. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4863. " \$ 0!~/External *\|/{next};"\
  4864. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4865. " {if(hide[section]) next};"\
  4866. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4867. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4868. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4869. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4870. " ' prfx=^$ac_symprfx"
  4871. else
  4872. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4873. fi
  4874. # Check to see that the pipe works correctly.
  4875. pipe_works=no
  4876. rm -f conftest*
  4877. cat > conftest.$ac_ext <<_LT_EOF
  4878. #ifdef __cplusplus
  4879. extern "C" {
  4880. #endif
  4881. char nm_test_var;
  4882. void nm_test_func(void);
  4883. void nm_test_func(void){}
  4884. #ifdef __cplusplus
  4885. }
  4886. #endif
  4887. int main(){nm_test_var='a';nm_test_func();return(0);}
  4888. _LT_EOF
  4889. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4890. (eval $ac_compile) 2>&5
  4891. ac_status=$?
  4892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893. (exit $ac_status); }; then
  4894. # Now try to grab the symbols.
  4895. nlist=conftest.nm
  4896. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4897. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4898. ac_status=$?
  4899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4900. (exit $ac_status); } && test -s "$nlist"; then
  4901. # Try sorting and uniquifying the output.
  4902. if sort "$nlist" | uniq > "$nlist"T; then
  4903. mv -f "$nlist"T "$nlist"
  4904. else
  4905. rm -f "$nlist"T
  4906. fi
  4907. # Make sure that we snagged all the symbols we need.
  4908. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4909. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4910. cat <<_LT_EOF > conftest.$ac_ext
  4911. #ifdef __cplusplus
  4912. extern "C" {
  4913. #endif
  4914. _LT_EOF
  4915. # Now generate the symbol file.
  4916. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4917. cat <<_LT_EOF >> conftest.$ac_ext
  4918. /* The mapping between symbol names and symbols. */
  4919. const struct {
  4920. const char *name;
  4921. void *address;
  4922. }
  4923. lt__PROGRAM__LTX_preloaded_symbols[] =
  4924. {
  4925. { "@PROGRAM@", (void *) 0 },
  4926. _LT_EOF
  4927. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4928. cat <<\_LT_EOF >> conftest.$ac_ext
  4929. {0, (void *) 0}
  4930. };
  4931. /* This works around a problem in FreeBSD linker */
  4932. #ifdef FREEBSD_WORKAROUND
  4933. static const void *lt_preloaded_setup() {
  4934. return lt__PROGRAM__LTX_preloaded_symbols;
  4935. }
  4936. #endif
  4937. #ifdef __cplusplus
  4938. }
  4939. #endif
  4940. _LT_EOF
  4941. # Now try linking the two files.
  4942. mv conftest.$ac_objext conftstm.$ac_objext
  4943. lt_save_LIBS="$LIBS"
  4944. lt_save_CFLAGS="$CFLAGS"
  4945. LIBS="conftstm.$ac_objext"
  4946. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4947. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4948. (eval $ac_link) 2>&5
  4949. ac_status=$?
  4950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4951. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4952. pipe_works=yes
  4953. fi
  4954. LIBS="$lt_save_LIBS"
  4955. CFLAGS="$lt_save_CFLAGS"
  4956. else
  4957. echo "cannot find nm_test_func in $nlist" >&5
  4958. fi
  4959. else
  4960. echo "cannot find nm_test_var in $nlist" >&5
  4961. fi
  4962. else
  4963. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4964. fi
  4965. else
  4966. echo "$progname: failed program was:" >&5
  4967. cat conftest.$ac_ext >&5
  4968. fi
  4969. rm -f conftest* conftst*
  4970. # Do not use the global_symbol_pipe unless it works.
  4971. if test "$pipe_works" = yes; then
  4972. break
  4973. else
  4974. lt_cv_sys_global_symbol_pipe=
  4975. fi
  4976. done
  4977. fi
  4978. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4979. lt_cv_sys_global_symbol_to_cdecl=
  4980. fi
  4981. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4982. echo "$as_me:$LINENO: result: failed" >&5
  4983. echo "${ECHO_T}failed" >&6
  4984. else
  4985. echo "$as_me:$LINENO: result: ok" >&5
  4986. echo "${ECHO_T}ok" >&6
  4987. fi
  4988. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4989. if test "${enable_libtool_lock+set}" = set; then
  4990. enableval="$enable_libtool_lock"
  4991. fi;
  4992. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4993. # Some flags need to be propagated to the compiler or linker for good
  4994. # libtool support.
  4995. case $host in
  4996. ia64-*-hpux*)
  4997. # Find out which ABI we are using.
  4998. echo 'int i;' > conftest.$ac_ext
  4999. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5000. (eval $ac_compile) 2>&5
  5001. ac_status=$?
  5002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5003. (exit $ac_status); }; then
  5004. case `/usr/bin/file conftest.$ac_objext` in
  5005. *ELF-32*)
  5006. HPUX_IA64_MODE="32"
  5007. ;;
  5008. *ELF-64*)
  5009. HPUX_IA64_MODE="64"
  5010. ;;
  5011. esac
  5012. fi
  5013. rm -rf conftest*
  5014. ;;
  5015. *-*-irix6*)
  5016. # Find out which ABI we are using.
  5017. echo '#line 5729 "configure"' > conftest.$ac_ext
  5018. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5019. (eval $ac_compile) 2>&5
  5020. ac_status=$?
  5021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5022. (exit $ac_status); }; then
  5023. if test "$lt_cv_prog_gnu_ld" = yes; then
  5024. case `/usr/bin/file conftest.$ac_objext` in
  5025. *32-bit*)
  5026. LD="${LD-ld} -melf32bsmip"
  5027. ;;
  5028. *N32*)
  5029. LD="${LD-ld} -melf32bmipn32"
  5030. ;;
  5031. *64-bit*)
  5032. LD="${LD-ld} -melf64bmip"
  5033. ;;
  5034. esac
  5035. else
  5036. case `/usr/bin/file conftest.$ac_objext` in
  5037. *32-bit*)
  5038. LD="${LD-ld} -32"
  5039. ;;
  5040. *N32*)
  5041. LD="${LD-ld} -n32"
  5042. ;;
  5043. *64-bit*)
  5044. LD="${LD-ld} -64"
  5045. ;;
  5046. esac
  5047. fi
  5048. fi
  5049. rm -rf conftest*
  5050. ;;
  5051. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5052. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5053. # Find out which ABI we are using.
  5054. echo 'int i;' > conftest.$ac_ext
  5055. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5056. (eval $ac_compile) 2>&5
  5057. ac_status=$?
  5058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5059. (exit $ac_status); }; then
  5060. case `/usr/bin/file conftest.o` in
  5061. *32-bit*)
  5062. case $host in
  5063. x86_64-*kfreebsd*-gnu)
  5064. LD="${LD-ld} -m elf_i386_fbsd"
  5065. ;;
  5066. x86_64-*linux*)
  5067. LD="${LD-ld} -m elf_i386"
  5068. ;;
  5069. ppc64-*linux*|powerpc64-*linux*)
  5070. LD="${LD-ld} -m elf32ppclinux"
  5071. ;;
  5072. s390x-*linux*)
  5073. LD="${LD-ld} -m elf_s390"
  5074. ;;
  5075. sparc64-*linux*)
  5076. LD="${LD-ld} -m elf32_sparc"
  5077. ;;
  5078. esac
  5079. ;;
  5080. *64-bit*)
  5081. case $host in
  5082. x86_64-*kfreebsd*-gnu)
  5083. LD="${LD-ld} -m elf_x86_64_fbsd"
  5084. ;;
  5085. x86_64-*linux*)
  5086. LD="${LD-ld} -m elf_x86_64"
  5087. ;;
  5088. ppc*-*linux*|powerpc*-*linux*)
  5089. LD="${LD-ld} -m elf64ppc"
  5090. ;;
  5091. s390*-*linux*|s390*-*tpf*)
  5092. LD="${LD-ld} -m elf64_s390"
  5093. ;;
  5094. sparc*-*linux*)
  5095. LD="${LD-ld} -m elf64_sparc"
  5096. ;;
  5097. esac
  5098. ;;
  5099. esac
  5100. fi
  5101. rm -rf conftest*
  5102. ;;
  5103. *-*-sco3.2v5*)
  5104. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5105. SAVE_CFLAGS="$CFLAGS"
  5106. CFLAGS="$CFLAGS -belf"
  5107. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5108. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  5109. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5110. echo $ECHO_N "(cached) $ECHO_C" >&6
  5111. else
  5112. ac_ext=c
  5113. ac_cpp='$CPP $CPPFLAGS'
  5114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5117. cat >conftest.$ac_ext <<_ACEOF
  5118. /* confdefs.h. */
  5119. _ACEOF
  5120. cat confdefs.h >>conftest.$ac_ext
  5121. cat >>conftest.$ac_ext <<_ACEOF
  5122. /* end confdefs.h. */
  5123. int
  5124. main ()
  5125. {
  5126. ;
  5127. return 0;
  5128. }
  5129. _ACEOF
  5130. rm -f conftest.$ac_objext conftest$ac_exeext
  5131. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5132. (eval $ac_link) 2>conftest.er1
  5133. ac_status=$?
  5134. grep -v '^ *+' conftest.er1 >conftest.err
  5135. rm -f conftest.er1
  5136. cat conftest.err >&5
  5137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5138. (exit $ac_status); } &&
  5139. { ac_try='test -z "$ac_c_werror_flag"
  5140. || test ! -s conftest.err'
  5141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5142. (eval $ac_try) 2>&5
  5143. ac_status=$?
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); }; } &&
  5146. { ac_try='test -s conftest$ac_exeext'
  5147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5148. (eval $ac_try) 2>&5
  5149. ac_status=$?
  5150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); }; }; then
  5152. lt_cv_cc_needs_belf=yes
  5153. else
  5154. echo "$as_me: failed program was:" >&5
  5155. sed 's/^/| /' conftest.$ac_ext >&5
  5156. lt_cv_cc_needs_belf=no
  5157. fi
  5158. rm -f conftest.err conftest.$ac_objext \
  5159. conftest$ac_exeext conftest.$ac_ext
  5160. ac_ext=c
  5161. ac_cpp='$CPP $CPPFLAGS'
  5162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5165. fi
  5166. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5167. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  5168. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5169. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5170. CFLAGS="$SAVE_CFLAGS"
  5171. fi
  5172. ;;
  5173. sparc*-*solaris*)
  5174. # Find out which ABI we are using.
  5175. echo 'int i;' > conftest.$ac_ext
  5176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5177. (eval $ac_compile) 2>&5
  5178. ac_status=$?
  5179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); }; then
  5181. case `/usr/bin/file conftest.o` in
  5182. *64-bit*)
  5183. case $lt_cv_prog_gnu_ld in
  5184. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5185. *) LD="${LD-ld} -64" ;;
  5186. esac
  5187. ;;
  5188. esac
  5189. fi
  5190. rm -rf conftest*
  5191. ;;
  5192. esac
  5193. need_locks="$enable_libtool_lock"
  5194. ac_ext=c
  5195. ac_cpp='$CPP $CPPFLAGS'
  5196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5199. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5200. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  5201. # On Suns, sometimes $CPP names a directory.
  5202. if test -n "$CPP" && test -d "$CPP"; then
  5203. CPP=
  5204. fi
  5205. if test -z "$CPP"; then
  5206. if test "${ac_cv_prog_CPP+set}" = set; then
  5207. echo $ECHO_N "(cached) $ECHO_C" >&6
  5208. else
  5209. # Double quotes because CPP needs to be expanded
  5210. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5211. do
  5212. ac_preproc_ok=false
  5213. for ac_c_preproc_warn_flag in '' yes
  5214. do
  5215. # Use a header file that comes with gcc, so configuring glibc
  5216. # with a fresh cross-compiler works.
  5217. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5218. # <limits.h> exists even on freestanding compilers.
  5219. # On the NeXT, cc -E runs the code through the compiler's parser,
  5220. # not just through cpp. "Syntax error" is here to catch this case.
  5221. cat >conftest.$ac_ext <<_ACEOF
  5222. /* confdefs.h. */
  5223. _ACEOF
  5224. cat confdefs.h >>conftest.$ac_ext
  5225. cat >>conftest.$ac_ext <<_ACEOF
  5226. /* end confdefs.h. */
  5227. #ifdef __STDC__
  5228. # include <limits.h>
  5229. #else
  5230. # include <assert.h>
  5231. #endif
  5232. Syntax error
  5233. _ACEOF
  5234. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5235. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5236. ac_status=$?
  5237. grep -v '^ *+' conftest.er1 >conftest.err
  5238. rm -f conftest.er1
  5239. cat conftest.err >&5
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); } >/dev/null; then
  5242. if test -s conftest.err; then
  5243. ac_cpp_err=$ac_c_preproc_warn_flag
  5244. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5245. else
  5246. ac_cpp_err=
  5247. fi
  5248. else
  5249. ac_cpp_err=yes
  5250. fi
  5251. if test -z "$ac_cpp_err"; then
  5252. :
  5253. else
  5254. echo "$as_me: failed program was:" >&5
  5255. sed 's/^/| /' conftest.$ac_ext >&5
  5256. # Broken: fails on valid input.
  5257. continue
  5258. fi
  5259. rm -f conftest.err conftest.$ac_ext
  5260. # OK, works on sane cases. Now check whether non-existent headers
  5261. # can be detected and how.
  5262. cat >conftest.$ac_ext <<_ACEOF
  5263. /* confdefs.h. */
  5264. _ACEOF
  5265. cat confdefs.h >>conftest.$ac_ext
  5266. cat >>conftest.$ac_ext <<_ACEOF
  5267. /* end confdefs.h. */
  5268. #include <ac_nonexistent.h>
  5269. _ACEOF
  5270. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5271. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5272. ac_status=$?
  5273. grep -v '^ *+' conftest.er1 >conftest.err
  5274. rm -f conftest.er1
  5275. cat conftest.err >&5
  5276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); } >/dev/null; then
  5278. if test -s conftest.err; then
  5279. ac_cpp_err=$ac_c_preproc_warn_flag
  5280. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5281. else
  5282. ac_cpp_err=
  5283. fi
  5284. else
  5285. ac_cpp_err=yes
  5286. fi
  5287. if test -z "$ac_cpp_err"; then
  5288. # Broken: success on invalid input.
  5289. continue
  5290. else
  5291. echo "$as_me: failed program was:" >&5
  5292. sed 's/^/| /' conftest.$ac_ext >&5
  5293. # Passes both tests.
  5294. ac_preproc_ok=:
  5295. break
  5296. fi
  5297. rm -f conftest.err conftest.$ac_ext
  5298. done
  5299. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5300. rm -f conftest.err conftest.$ac_ext
  5301. if $ac_preproc_ok; then
  5302. break
  5303. fi
  5304. done
  5305. ac_cv_prog_CPP=$CPP
  5306. fi
  5307. CPP=$ac_cv_prog_CPP
  5308. else
  5309. ac_cv_prog_CPP=$CPP
  5310. fi
  5311. echo "$as_me:$LINENO: result: $CPP" >&5
  5312. echo "${ECHO_T}$CPP" >&6
  5313. ac_preproc_ok=false
  5314. for ac_c_preproc_warn_flag in '' yes
  5315. do
  5316. # Use a header file that comes with gcc, so configuring glibc
  5317. # with a fresh cross-compiler works.
  5318. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5319. # <limits.h> exists even on freestanding compilers.
  5320. # On the NeXT, cc -E runs the code through the compiler's parser,
  5321. # not just through cpp. "Syntax error" is here to catch this case.
  5322. cat >conftest.$ac_ext <<_ACEOF
  5323. /* confdefs.h. */
  5324. _ACEOF
  5325. cat confdefs.h >>conftest.$ac_ext
  5326. cat >>conftest.$ac_ext <<_ACEOF
  5327. /* end confdefs.h. */
  5328. #ifdef __STDC__
  5329. # include <limits.h>
  5330. #else
  5331. # include <assert.h>
  5332. #endif
  5333. Syntax error
  5334. _ACEOF
  5335. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5336. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5337. ac_status=$?
  5338. grep -v '^ *+' conftest.er1 >conftest.err
  5339. rm -f conftest.er1
  5340. cat conftest.err >&5
  5341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5342. (exit $ac_status); } >/dev/null; then
  5343. if test -s conftest.err; then
  5344. ac_cpp_err=$ac_c_preproc_warn_flag
  5345. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5346. else
  5347. ac_cpp_err=
  5348. fi
  5349. else
  5350. ac_cpp_err=yes
  5351. fi
  5352. if test -z "$ac_cpp_err"; then
  5353. :
  5354. else
  5355. echo "$as_me: failed program was:" >&5
  5356. sed 's/^/| /' conftest.$ac_ext >&5
  5357. # Broken: fails on valid input.
  5358. continue
  5359. fi
  5360. rm -f conftest.err conftest.$ac_ext
  5361. # OK, works on sane cases. Now check whether non-existent headers
  5362. # can be detected and how.
  5363. cat >conftest.$ac_ext <<_ACEOF
  5364. /* confdefs.h. */
  5365. _ACEOF
  5366. cat confdefs.h >>conftest.$ac_ext
  5367. cat >>conftest.$ac_ext <<_ACEOF
  5368. /* end confdefs.h. */
  5369. #include <ac_nonexistent.h>
  5370. _ACEOF
  5371. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5372. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5373. ac_status=$?
  5374. grep -v '^ *+' conftest.er1 >conftest.err
  5375. rm -f conftest.er1
  5376. cat conftest.err >&5
  5377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5378. (exit $ac_status); } >/dev/null; then
  5379. if test -s conftest.err; then
  5380. ac_cpp_err=$ac_c_preproc_warn_flag
  5381. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5382. else
  5383. ac_cpp_err=
  5384. fi
  5385. else
  5386. ac_cpp_err=yes
  5387. fi
  5388. if test -z "$ac_cpp_err"; then
  5389. # Broken: success on invalid input.
  5390. continue
  5391. else
  5392. echo "$as_me: failed program was:" >&5
  5393. sed 's/^/| /' conftest.$ac_ext >&5
  5394. # Passes both tests.
  5395. ac_preproc_ok=:
  5396. break
  5397. fi
  5398. rm -f conftest.err conftest.$ac_ext
  5399. done
  5400. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5401. rm -f conftest.err conftest.$ac_ext
  5402. if $ac_preproc_ok; then
  5403. :
  5404. else
  5405. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5406. See \`config.log' for more details." >&5
  5407. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5408. See \`config.log' for more details." >&2;}
  5409. { (exit 1); exit 1; }; }
  5410. fi
  5411. ac_ext=c
  5412. ac_cpp='$CPP $CPPFLAGS'
  5413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5416. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5417. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5418. if test "${ac_cv_header_stdc+set}" = set; then
  5419. echo $ECHO_N "(cached) $ECHO_C" >&6
  5420. else
  5421. cat >conftest.$ac_ext <<_ACEOF
  5422. /* confdefs.h. */
  5423. _ACEOF
  5424. cat confdefs.h >>conftest.$ac_ext
  5425. cat >>conftest.$ac_ext <<_ACEOF
  5426. /* end confdefs.h. */
  5427. #include <stdlib.h>
  5428. #include <stdarg.h>
  5429. #include <string.h>
  5430. #include <float.h>
  5431. int
  5432. main ()
  5433. {
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. rm -f conftest.$ac_objext
  5439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5440. (eval $ac_compile) 2>conftest.er1
  5441. ac_status=$?
  5442. grep -v '^ *+' conftest.er1 >conftest.err
  5443. rm -f conftest.er1
  5444. cat conftest.err >&5
  5445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); } &&
  5447. { ac_try='test -z "$ac_c_werror_flag"
  5448. || test ! -s conftest.err'
  5449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5450. (eval $ac_try) 2>&5
  5451. ac_status=$?
  5452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5453. (exit $ac_status); }; } &&
  5454. { ac_try='test -s conftest.$ac_objext'
  5455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5456. (eval $ac_try) 2>&5
  5457. ac_status=$?
  5458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5459. (exit $ac_status); }; }; then
  5460. ac_cv_header_stdc=yes
  5461. else
  5462. echo "$as_me: failed program was:" >&5
  5463. sed 's/^/| /' conftest.$ac_ext >&5
  5464. ac_cv_header_stdc=no
  5465. fi
  5466. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5467. if test $ac_cv_header_stdc = yes; then
  5468. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5469. cat >conftest.$ac_ext <<_ACEOF
  5470. /* confdefs.h. */
  5471. _ACEOF
  5472. cat confdefs.h >>conftest.$ac_ext
  5473. cat >>conftest.$ac_ext <<_ACEOF
  5474. /* end confdefs.h. */
  5475. #include <string.h>
  5476. _ACEOF
  5477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5478. $EGREP "memchr" >/dev/null 2>&1; then
  5479. :
  5480. else
  5481. ac_cv_header_stdc=no
  5482. fi
  5483. rm -f conftest*
  5484. fi
  5485. if test $ac_cv_header_stdc = yes; then
  5486. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5487. cat >conftest.$ac_ext <<_ACEOF
  5488. /* confdefs.h. */
  5489. _ACEOF
  5490. cat confdefs.h >>conftest.$ac_ext
  5491. cat >>conftest.$ac_ext <<_ACEOF
  5492. /* end confdefs.h. */
  5493. #include <stdlib.h>
  5494. _ACEOF
  5495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5496. $EGREP "free" >/dev/null 2>&1; then
  5497. :
  5498. else
  5499. ac_cv_header_stdc=no
  5500. fi
  5501. rm -f conftest*
  5502. fi
  5503. if test $ac_cv_header_stdc = yes; then
  5504. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5505. if test "$cross_compiling" = yes; then
  5506. :
  5507. else
  5508. cat >conftest.$ac_ext <<_ACEOF
  5509. /* confdefs.h. */
  5510. _ACEOF
  5511. cat confdefs.h >>conftest.$ac_ext
  5512. cat >>conftest.$ac_ext <<_ACEOF
  5513. /* end confdefs.h. */
  5514. #include <ctype.h>
  5515. #if ((' ' & 0x0FF) == 0x020)
  5516. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5517. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5518. #else
  5519. # define ISLOWER(c) \
  5520. (('a' <= (c) && (c) <= 'i') \
  5521. || ('j' <= (c) && (c) <= 'r') \
  5522. || ('s' <= (c) && (c) <= 'z'))
  5523. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5524. #endif
  5525. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5526. int
  5527. main ()
  5528. {
  5529. int i;
  5530. for (i = 0; i < 256; i++)
  5531. if (XOR (islower (i), ISLOWER (i))
  5532. || toupper (i) != TOUPPER (i))
  5533. exit(2);
  5534. exit (0);
  5535. }
  5536. _ACEOF
  5537. rm -f conftest$ac_exeext
  5538. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5539. (eval $ac_link) 2>&5
  5540. ac_status=$?
  5541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5542. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5544. (eval $ac_try) 2>&5
  5545. ac_status=$?
  5546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5547. (exit $ac_status); }; }; then
  5548. :
  5549. else
  5550. echo "$as_me: program exited with status $ac_status" >&5
  5551. echo "$as_me: failed program was:" >&5
  5552. sed 's/^/| /' conftest.$ac_ext >&5
  5553. ( exit $ac_status )
  5554. ac_cv_header_stdc=no
  5555. fi
  5556. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5557. fi
  5558. fi
  5559. fi
  5560. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5561. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5562. if test $ac_cv_header_stdc = yes; then
  5563. cat >>confdefs.h <<\_ACEOF
  5564. #define STDC_HEADERS 1
  5565. _ACEOF
  5566. fi
  5567. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5568. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5569. inttypes.h stdint.h unistd.h
  5570. do
  5571. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5572. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5573. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5574. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5575. echo $ECHO_N "(cached) $ECHO_C" >&6
  5576. else
  5577. cat >conftest.$ac_ext <<_ACEOF
  5578. /* confdefs.h. */
  5579. _ACEOF
  5580. cat confdefs.h >>conftest.$ac_ext
  5581. cat >>conftest.$ac_ext <<_ACEOF
  5582. /* end confdefs.h. */
  5583. $ac_includes_default
  5584. #include <$ac_header>
  5585. _ACEOF
  5586. rm -f conftest.$ac_objext
  5587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5588. (eval $ac_compile) 2>conftest.er1
  5589. ac_status=$?
  5590. grep -v '^ *+' conftest.er1 >conftest.err
  5591. rm -f conftest.er1
  5592. cat conftest.err >&5
  5593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5594. (exit $ac_status); } &&
  5595. { ac_try='test -z "$ac_c_werror_flag"
  5596. || test ! -s conftest.err'
  5597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5598. (eval $ac_try) 2>&5
  5599. ac_status=$?
  5600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5601. (exit $ac_status); }; } &&
  5602. { ac_try='test -s conftest.$ac_objext'
  5603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5604. (eval $ac_try) 2>&5
  5605. ac_status=$?
  5606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5607. (exit $ac_status); }; }; then
  5608. eval "$as_ac_Header=yes"
  5609. else
  5610. echo "$as_me: failed program was:" >&5
  5611. sed 's/^/| /' conftest.$ac_ext >&5
  5612. eval "$as_ac_Header=no"
  5613. fi
  5614. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5615. fi
  5616. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5617. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5618. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5619. cat >>confdefs.h <<_ACEOF
  5620. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5621. _ACEOF
  5622. fi
  5623. done
  5624. for ac_header in dlfcn.h
  5625. do
  5626. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5627. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5628. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5629. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5630. echo $ECHO_N "(cached) $ECHO_C" >&6
  5631. else
  5632. cat >conftest.$ac_ext <<_ACEOF
  5633. /* confdefs.h. */
  5634. _ACEOF
  5635. cat confdefs.h >>conftest.$ac_ext
  5636. cat >>conftest.$ac_ext <<_ACEOF
  5637. /* end confdefs.h. */
  5638. $ac_includes_default
  5639. #include <$ac_header>
  5640. _ACEOF
  5641. rm -f conftest.$ac_objext
  5642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5643. (eval $ac_compile) 2>conftest.er1
  5644. ac_status=$?
  5645. grep -v '^ *+' conftest.er1 >conftest.err
  5646. rm -f conftest.er1
  5647. cat conftest.err >&5
  5648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5649. (exit $ac_status); } &&
  5650. { ac_try='test -z "$ac_c_werror_flag"
  5651. || test ! -s conftest.err'
  5652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5653. (eval $ac_try) 2>&5
  5654. ac_status=$?
  5655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656. (exit $ac_status); }; } &&
  5657. { ac_try='test -s conftest.$ac_objext'
  5658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5659. (eval $ac_try) 2>&5
  5660. ac_status=$?
  5661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); }; }; then
  5663. eval "$as_ac_Header=yes"
  5664. else
  5665. echo "$as_me: failed program was:" >&5
  5666. sed 's/^/| /' conftest.$ac_ext >&5
  5667. eval "$as_ac_Header=no"
  5668. fi
  5669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5670. fi
  5671. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5672. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5673. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5674. cat >>confdefs.h <<_ACEOF
  5675. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5676. _ACEOF
  5677. fi
  5678. done
  5679. # This can be used to rebuild libtool when needed
  5680. LIBTOOL_DEPS="$ltmain"
  5681. # Always use our own libtool.
  5682. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5683. test -z "$LN_S" && LN_S="ln -s"
  5684. if test -n "${ZSH_VERSION+set}" ; then
  5685. setopt NO_GLOB_SUBST
  5686. fi
  5687. echo "$as_me:$LINENO: checking for objdir" >&5
  5688. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5689. if test "${lt_cv_objdir+set}" = set; then
  5690. echo $ECHO_N "(cached) $ECHO_C" >&6
  5691. else
  5692. rm -f .libs 2>/dev/null
  5693. mkdir .libs 2>/dev/null
  5694. if test -d .libs; then
  5695. lt_cv_objdir=.libs
  5696. else
  5697. # MS-DOS does not allow filenames that begin with a dot.
  5698. lt_cv_objdir=_libs
  5699. fi
  5700. rmdir .libs 2>/dev/null
  5701. fi
  5702. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5703. echo "${ECHO_T}$lt_cv_objdir" >&6
  5704. objdir=$lt_cv_objdir
  5705. cat >>confdefs.h <<_ACEOF
  5706. #define LT_OBJDIR "$lt_cv_objdir/"
  5707. _ACEOF
  5708. case $host_os in
  5709. aix3*)
  5710. # AIX sometimes has problems with the GCC collect2 program. For some
  5711. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5712. # vanish in a puff of smoke.
  5713. if test "X${COLLECT_NAMES+set}" != Xset; then
  5714. COLLECT_NAMES=
  5715. export COLLECT_NAMES
  5716. fi
  5717. ;;
  5718. esac
  5719. # Sed substitution that helps us do robust quoting. It backslashifies
  5720. # metacharacters that are still active within double-quoted strings.
  5721. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5722. # Same as above, but do not quote variable references.
  5723. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5724. # Sed substitution to delay expansion of an escaped shell variable in a
  5725. # double_quote_subst'ed string.
  5726. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5727. # Sed substitution to delay expansion of an escaped single quote.
  5728. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5729. # Sed substitution to avoid accidental globbing in evaled expressions
  5730. no_glob_subst='s/\*/\\\*/g'
  5731. # Global variables:
  5732. ofile=libtool
  5733. can_build_shared=yes
  5734. # All known linkers require a `.a' archive for static linking (except MSVC,
  5735. # which needs '.lib').
  5736. libext=a
  5737. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5738. old_CC="$CC"
  5739. old_CFLAGS="$CFLAGS"
  5740. # Set sane defaults for various variables
  5741. test -z "$CC" && CC=cc
  5742. test -z "$LTCC" && LTCC=$CC
  5743. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5744. test -z "$LD" && LD=ld
  5745. test -z "$ac_objext" && ac_objext=o
  5746. for cc_temp in $compiler""; do
  5747. case $cc_temp in
  5748. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5749. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5750. \-*) ;;
  5751. *) break;;
  5752. esac
  5753. done
  5754. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5755. # Only perform the check for file, if the check method requires it
  5756. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5757. case $deplibs_check_method in
  5758. file_magic*)
  5759. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5760. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5761. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5762. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5763. echo $ECHO_N "(cached) $ECHO_C" >&6
  5764. else
  5765. case $MAGIC_CMD in
  5766. [\\/*] | ?:[\\/]*)
  5767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5768. ;;
  5769. *)
  5770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5773. for ac_dir in $ac_dummy; do
  5774. IFS="$lt_save_ifs"
  5775. test -z "$ac_dir" && ac_dir=.
  5776. if test -f $ac_dir/${ac_tool_prefix}file; then
  5777. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5778. if test -n "$file_magic_test_file"; then
  5779. case $deplibs_check_method in
  5780. "file_magic "*)
  5781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5784. $EGREP "$file_magic_regex" > /dev/null; then
  5785. :
  5786. else
  5787. cat <<_LT_EOF 1>&2
  5788. *** Warning: the command libtool uses to detect shared libraries,
  5789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5790. *** The result is that libtool may fail to recognize shared libraries
  5791. *** as such. This will affect the creation of libtool libraries that
  5792. *** depend on shared libraries, but programs linked with such libtool
  5793. *** libraries will work regardless of this problem. Nevertheless, you
  5794. *** may want to report the problem to your system manager and/or to
  5795. *** bug-libtool@gnu.org
  5796. _LT_EOF
  5797. fi ;;
  5798. esac
  5799. fi
  5800. break
  5801. fi
  5802. done
  5803. IFS="$lt_save_ifs"
  5804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5805. ;;
  5806. esac
  5807. fi
  5808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5809. if test -n "$MAGIC_CMD"; then
  5810. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5811. echo "${ECHO_T}$MAGIC_CMD" >&6
  5812. else
  5813. echo "$as_me:$LINENO: result: no" >&5
  5814. echo "${ECHO_T}no" >&6
  5815. fi
  5816. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5817. if test -n "$ac_tool_prefix"; then
  5818. echo "$as_me:$LINENO: checking for file" >&5
  5819. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5820. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5821. echo $ECHO_N "(cached) $ECHO_C" >&6
  5822. else
  5823. case $MAGIC_CMD in
  5824. [\\/*] | ?:[\\/]*)
  5825. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5826. ;;
  5827. *)
  5828. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5830. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5831. for ac_dir in $ac_dummy; do
  5832. IFS="$lt_save_ifs"
  5833. test -z "$ac_dir" && ac_dir=.
  5834. if test -f $ac_dir/file; then
  5835. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5836. if test -n "$file_magic_test_file"; then
  5837. case $deplibs_check_method in
  5838. "file_magic "*)
  5839. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5840. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5841. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5842. $EGREP "$file_magic_regex" > /dev/null; then
  5843. :
  5844. else
  5845. cat <<_LT_EOF 1>&2
  5846. *** Warning: the command libtool uses to detect shared libraries,
  5847. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5848. *** The result is that libtool may fail to recognize shared libraries
  5849. *** as such. This will affect the creation of libtool libraries that
  5850. *** depend on shared libraries, but programs linked with such libtool
  5851. *** libraries will work regardless of this problem. Nevertheless, you
  5852. *** may want to report the problem to your system manager and/or to
  5853. *** bug-libtool@gnu.org
  5854. _LT_EOF
  5855. fi ;;
  5856. esac
  5857. fi
  5858. break
  5859. fi
  5860. done
  5861. IFS="$lt_save_ifs"
  5862. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5863. ;;
  5864. esac
  5865. fi
  5866. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5867. if test -n "$MAGIC_CMD"; then
  5868. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5869. echo "${ECHO_T}$MAGIC_CMD" >&6
  5870. else
  5871. echo "$as_me:$LINENO: result: no" >&5
  5872. echo "${ECHO_T}no" >&6
  5873. fi
  5874. else
  5875. MAGIC_CMD=:
  5876. fi
  5877. fi
  5878. fi
  5879. ;;
  5880. esac
  5881. # Use C for the default configuration in the libtool script
  5882. lt_save_CC="$CC"
  5883. ac_ext=c
  5884. ac_cpp='$CPP $CPPFLAGS'
  5885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5888. # Source file extension for C test sources.
  5889. ac_ext=c
  5890. # Object file extension for compiled C test sources.
  5891. objext=o
  5892. objext=$objext
  5893. # Code to be used in simple compile tests
  5894. lt_simple_compile_test_code="int some_variable = 0;"
  5895. # Code to be used in simple link tests
  5896. lt_simple_link_test_code='int main(){return(0);}'
  5897. # If no C compiler was specified, use CC.
  5898. LTCC=${LTCC-"$CC"}
  5899. # If no C compiler flags were specified, use CFLAGS.
  5900. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5901. # Allow CC to be a program name with arguments.
  5902. compiler=$CC
  5903. # Save the default compiler, since it gets overwritten when the other
  5904. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5905. compiler_DEFAULT=$CC
  5906. # save warnings/boilerplate of simple test code
  5907. ac_outfile=conftest.$ac_objext
  5908. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  5909. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5910. _lt_compiler_boilerplate=`cat conftest.err`
  5911. $RM conftest*
  5912. ac_outfile=conftest.$ac_objext
  5913. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  5914. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5915. _lt_linker_boilerplate=`cat conftest.err`
  5916. $RM conftest*
  5917. ## CAVEAT EMPTOR:
  5918. ## There is no encapsulation within the following macros, do not change
  5919. ## the running order or otherwise move them around unless you know exactly
  5920. ## what you are doing...
  5921. if test -n "$compiler"; then
  5922. lt_prog_compiler_no_builtin_flag=
  5923. if test "$GCC" = yes; then
  5924. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5925. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5926. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5927. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5928. echo $ECHO_N "(cached) $ECHO_C" >&6
  5929. else
  5930. lt_cv_prog_compiler_rtti_exceptions=no
  5931. ac_outfile=conftest.$ac_objext
  5932. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5933. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5934. # Insert the option either (1) after the last *FLAGS variable, or
  5935. # (2) before a word containing "conftest.", or (3) at the end.
  5936. # Note that $ac_compile itself does not contain backslashes and begins
  5937. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5938. # The option is referenced via a variable to avoid confusing sed.
  5939. lt_compile=`echo "$ac_compile" | $SED \
  5940. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5941. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5942. -e 's:$: $lt_compiler_flag:'`
  5943. (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
  5944. (eval "$lt_compile" 2>conftest.err)
  5945. ac_status=$?
  5946. cat conftest.err >&5
  5947. echo "$as_me:6833: \$? = $ac_status" >&5
  5948. if (exit $ac_status) && test -s "$ac_outfile"; then
  5949. # The compiler can only warn and ignore the option if not recognized
  5950. # So say no if there are warnings other than the usual output.
  5951. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5952. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5953. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5954. lt_cv_prog_compiler_rtti_exceptions=yes
  5955. fi
  5956. fi
  5957. $RM conftest*
  5958. fi
  5959. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5960. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5961. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5962. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5963. else
  5964. :
  5965. fi
  5966. fi
  5967. lt_prog_compiler_wl=
  5968. lt_prog_compiler_pic=
  5969. lt_prog_compiler_static=
  5970. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5971. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5972. if test "$GCC" = yes; then
  5973. lt_prog_compiler_wl='-Wl,'
  5974. lt_prog_compiler_static='-static'
  5975. case $host_os in
  5976. aix*)
  5977. # All AIX code is PIC.
  5978. if test "$host_cpu" = ia64; then
  5979. # AIX 5 now supports IA64 processor
  5980. lt_prog_compiler_static='-Bstatic'
  5981. fi
  5982. ;;
  5983. amigaos*)
  5984. if test "$host_cpu" = m68k; then
  5985. # FIXME: we need at least 68020 code to build shared libraries, but
  5986. # adding the `-m68020' flag to GCC prevents building anything better,
  5987. # like `-m68040'.
  5988. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5989. fi
  5990. ;;
  5991. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5992. # PIC is the default for these OSes.
  5993. ;;
  5994. mingw* | cygwin* | pw32* | os2*)
  5995. # This hack is so that the source file can tell whether it is being
  5996. # built for inclusion in a dll (and should export symbols for example).
  5997. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5998. # (--disable-auto-import) libraries
  5999. lt_prog_compiler_pic='-DDLL_EXPORT'
  6000. ;;
  6001. darwin* | rhapsody*)
  6002. # PIC is the default on this platform
  6003. # Common symbols not allowed in MH_DYLIB files
  6004. lt_prog_compiler_pic='-fno-common'
  6005. ;;
  6006. hpux*)
  6007. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6008. # not for PA HP-UX.
  6009. case $host_cpu in
  6010. hppa*64*|ia64*)
  6011. # +Z the default
  6012. ;;
  6013. *)
  6014. lt_prog_compiler_pic='-fPIC'
  6015. ;;
  6016. esac
  6017. ;;
  6018. interix[3-9]*)
  6019. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6020. # Instead, we relocate shared libraries at runtime.
  6021. ;;
  6022. msdosdjgpp*)
  6023. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6024. # on systems that don't support them.
  6025. lt_prog_compiler_can_build_shared=no
  6026. enable_shared=no
  6027. ;;
  6028. *nto* | *qnx*)
  6029. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6030. # it will coredump.
  6031. lt_prog_compiler_pic='-fPIC -shared'
  6032. ;;
  6033. sysv4*MP*)
  6034. if test -d /usr/nec; then
  6035. lt_prog_compiler_pic=-Kconform_pic
  6036. fi
  6037. ;;
  6038. *)
  6039. lt_prog_compiler_pic='-fPIC'
  6040. ;;
  6041. esac
  6042. else
  6043. # PORTME Check for flag to pass linker flags through the system compiler.
  6044. case $host_os in
  6045. aix*)
  6046. lt_prog_compiler_wl='-Wl,'
  6047. if test "$host_cpu" = ia64; then
  6048. # AIX 5 now supports IA64 processor
  6049. lt_prog_compiler_static='-Bstatic'
  6050. else
  6051. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6052. fi
  6053. ;;
  6054. darwin*)
  6055. # PIC is the default on this platform
  6056. # Common symbols not allowed in MH_DYLIB files
  6057. case $cc_basename in
  6058. xlc*)
  6059. lt_prog_compiler_pic='-qnocommon'
  6060. lt_prog_compiler_wl='-Wl,'
  6061. ;;
  6062. esac
  6063. ;;
  6064. mingw* | cygwin* | pw32* | os2*)
  6065. # This hack is so that the source file can tell whether it is being
  6066. # built for inclusion in a dll (and should export symbols for example).
  6067. lt_prog_compiler_pic='-DDLL_EXPORT'
  6068. ;;
  6069. hpux9* | hpux10* | hpux11*)
  6070. lt_prog_compiler_wl='-Wl,'
  6071. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6072. # not for PA HP-UX.
  6073. case $host_cpu in
  6074. hppa*64*|ia64*)
  6075. # +Z the default
  6076. ;;
  6077. *)
  6078. lt_prog_compiler_pic='+Z'
  6079. ;;
  6080. esac
  6081. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6082. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6083. ;;
  6084. irix5* | irix6* | nonstopux*)
  6085. lt_prog_compiler_wl='-Wl,'
  6086. # PIC (with -KPIC) is the default.
  6087. lt_prog_compiler_static='-non_shared'
  6088. ;;
  6089. linux* | k*bsd*-gnu)
  6090. case $cc_basename in
  6091. icc* | ecc*)
  6092. lt_prog_compiler_wl='-Wl,'
  6093. lt_prog_compiler_pic='-KPIC'
  6094. lt_prog_compiler_static='-static'
  6095. ;;
  6096. pgcc* | pgf77* | pgf90* | pgf95*)
  6097. # Portland Group compilers (*not* the Pentium gcc compiler,
  6098. # which looks to be a dead project)
  6099. lt_prog_compiler_wl='-Wl,'
  6100. lt_prog_compiler_pic='-fpic'
  6101. lt_prog_compiler_static='-Bstatic'
  6102. ;;
  6103. ccc*)
  6104. lt_prog_compiler_wl='-Wl,'
  6105. # All Alpha code is PIC.
  6106. lt_prog_compiler_static='-non_shared'
  6107. ;;
  6108. *)
  6109. case `$CC -V 2>&1 | sed 5q` in
  6110. *Sun\ C*)
  6111. # Sun C 5.9
  6112. lt_prog_compiler_pic='-KPIC'
  6113. lt_prog_compiler_static='-Bstatic'
  6114. lt_prog_compiler_wl='-Wl,'
  6115. ;;
  6116. *Sun\ F*)
  6117. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6118. lt_prog_compiler_pic='-KPIC'
  6119. lt_prog_compiler_static='-Bstatic'
  6120. lt_prog_compiler_wl=''
  6121. ;;
  6122. esac
  6123. ;;
  6124. esac
  6125. ;;
  6126. newsos6)
  6127. lt_prog_compiler_pic='-KPIC'
  6128. lt_prog_compiler_static='-Bstatic'
  6129. ;;
  6130. *nto* | *qnx*)
  6131. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6132. # it will coredump.
  6133. lt_prog_compiler_pic='-fPIC -shared'
  6134. ;;
  6135. osf3* | osf4* | osf5*)
  6136. lt_prog_compiler_wl='-Wl,'
  6137. # All OSF/1 code is PIC.
  6138. lt_prog_compiler_static='-non_shared'
  6139. ;;
  6140. rdos*)
  6141. lt_prog_compiler_static='-non_shared'
  6142. ;;
  6143. solaris*)
  6144. lt_prog_compiler_pic='-KPIC'
  6145. lt_prog_compiler_static='-Bstatic'
  6146. case $cc_basename in
  6147. f77* | f90* | f95*)
  6148. lt_prog_compiler_wl='-Qoption ld ';;
  6149. *)
  6150. lt_prog_compiler_wl='-Wl,';;
  6151. esac
  6152. ;;
  6153. sunos4*)
  6154. lt_prog_compiler_wl='-Qoption ld '
  6155. lt_prog_compiler_pic='-PIC'
  6156. lt_prog_compiler_static='-Bstatic'
  6157. ;;
  6158. sysv4 | sysv4.2uw2* | sysv4.3*)
  6159. lt_prog_compiler_wl='-Wl,'
  6160. lt_prog_compiler_pic='-KPIC'
  6161. lt_prog_compiler_static='-Bstatic'
  6162. ;;
  6163. sysv4*MP*)
  6164. if test -d /usr/nec ;then
  6165. lt_prog_compiler_pic='-Kconform_pic'
  6166. lt_prog_compiler_static='-Bstatic'
  6167. fi
  6168. ;;
  6169. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6170. lt_prog_compiler_wl='-Wl,'
  6171. lt_prog_compiler_pic='-KPIC'
  6172. lt_prog_compiler_static='-Bstatic'
  6173. ;;
  6174. unicos*)
  6175. lt_prog_compiler_wl='-Wl,'
  6176. lt_prog_compiler_can_build_shared=no
  6177. ;;
  6178. uts4*)
  6179. lt_prog_compiler_pic='-pic'
  6180. lt_prog_compiler_static='-Bstatic'
  6181. ;;
  6182. *)
  6183. lt_prog_compiler_can_build_shared=no
  6184. ;;
  6185. esac
  6186. fi
  6187. case $host_os in
  6188. # For platforms which do not support PIC, -DPIC is meaningless:
  6189. *djgpp*)
  6190. lt_prog_compiler_pic=
  6191. ;;
  6192. *)
  6193. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6194. ;;
  6195. esac
  6196. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6197. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6198. #
  6199. # Check to make sure the PIC flag actually works.
  6200. #
  6201. if test -n "$lt_prog_compiler_pic"; then
  6202. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6203. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6204. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6205. echo $ECHO_N "(cached) $ECHO_C" >&6
  6206. else
  6207. lt_prog_compiler_pic_works=no
  6208. ac_outfile=conftest.$ac_objext
  6209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6210. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6211. # Insert the option either (1) after the last *FLAGS variable, or
  6212. # (2) before a word containing "conftest.", or (3) at the end.
  6213. # Note that $ac_compile itself does not contain backslashes and begins
  6214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6215. # The option is referenced via a variable to avoid confusing sed.
  6216. lt_compile=`echo "$ac_compile" | $SED \
  6217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6219. -e 's:$: $lt_compiler_flag:'`
  6220. (eval echo "\"\$as_me:7151: $lt_compile\"" >&5)
  6221. (eval "$lt_compile" 2>conftest.err)
  6222. ac_status=$?
  6223. cat conftest.err >&5
  6224. echo "$as_me:7155: \$? = $ac_status" >&5
  6225. if (exit $ac_status) && test -s "$ac_outfile"; then
  6226. # The compiler can only warn and ignore the option if not recognized
  6227. # So say no if there are warnings other than the usual output.
  6228. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6231. lt_prog_compiler_pic_works=yes
  6232. fi
  6233. fi
  6234. $RM conftest*
  6235. fi
  6236. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6237. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6238. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6239. case $lt_prog_compiler_pic in
  6240. "" | " "*) ;;
  6241. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6242. esac
  6243. else
  6244. lt_prog_compiler_pic=
  6245. lt_prog_compiler_can_build_shared=no
  6246. fi
  6247. fi
  6248. #
  6249. # Check to make sure the static flag actually works.
  6250. #
  6251. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6252. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6253. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6254. if test "${lt_prog_compiler_static_works+set}" = set; then
  6255. echo $ECHO_N "(cached) $ECHO_C" >&6
  6256. else
  6257. lt_prog_compiler_static_works=no
  6258. save_LDFLAGS="$LDFLAGS"
  6259. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6260. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6261. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6262. # The linker can only warn and ignore the option if not recognized
  6263. # So say no if there are warnings
  6264. if test -s conftest.err; then
  6265. # Append any errors to the config.log.
  6266. cat conftest.err 1>&5
  6267. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6268. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6269. if diff conftest.exp conftest.er2 >/dev/null; then
  6270. lt_prog_compiler_static_works=yes
  6271. fi
  6272. else
  6273. lt_prog_compiler_static_works=yes
  6274. fi
  6275. fi
  6276. $RM conftest*
  6277. LDFLAGS="$save_LDFLAGS"
  6278. fi
  6279. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6280. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6281. if test x"$lt_prog_compiler_static_works" = xyes; then
  6282. :
  6283. else
  6284. lt_prog_compiler_static=
  6285. fi
  6286. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6287. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6288. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6289. echo $ECHO_N "(cached) $ECHO_C" >&6
  6290. else
  6291. lt_cv_prog_compiler_c_o=no
  6292. $RM -r conftest 2>/dev/null
  6293. mkdir conftest
  6294. cd conftest
  6295. mkdir out
  6296. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6297. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6298. # Insert the option either (1) after the last *FLAGS variable, or
  6299. # (2) before a word containing "conftest.", or (3) at the end.
  6300. # Note that $ac_compile itself does not contain backslashes and begins
  6301. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6302. lt_compile=`echo "$ac_compile" | $SED \
  6303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6305. -e 's:$: $lt_compiler_flag:'`
  6306. (eval echo "\"\$as_me:7256: $lt_compile\"" >&5)
  6307. (eval "$lt_compile" 2>out/conftest.err)
  6308. ac_status=$?
  6309. cat out/conftest.err >&5
  6310. echo "$as_me:7260: \$? = $ac_status" >&5
  6311. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6312. then
  6313. # The compiler can only warn and ignore the option if not recognized
  6314. # So say no if there are warnings
  6315. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6316. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6317. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6318. lt_cv_prog_compiler_c_o=yes
  6319. fi
  6320. fi
  6321. chmod u+w . 2>&5
  6322. $RM conftest*
  6323. # SGI C++ compiler will create directory out/ii_files/ for
  6324. # template instantiation
  6325. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6326. $RM out/* && rmdir out
  6327. cd ..
  6328. $RM -r conftest
  6329. $RM conftest*
  6330. fi
  6331. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6332. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6333. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6334. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6335. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6336. echo $ECHO_N "(cached) $ECHO_C" >&6
  6337. else
  6338. lt_cv_prog_compiler_c_o=no
  6339. $RM -r conftest 2>/dev/null
  6340. mkdir conftest
  6341. cd conftest
  6342. mkdir out
  6343. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6344. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6345. # Insert the option either (1) after the last *FLAGS variable, or
  6346. # (2) before a word containing "conftest.", or (3) at the end.
  6347. # Note that $ac_compile itself does not contain backslashes and begins
  6348. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6349. lt_compile=`echo "$ac_compile" | $SED \
  6350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6352. -e 's:$: $lt_compiler_flag:'`
  6353. (eval echo "\"\$as_me:7311: $lt_compile\"" >&5)
  6354. (eval "$lt_compile" 2>out/conftest.err)
  6355. ac_status=$?
  6356. cat out/conftest.err >&5
  6357. echo "$as_me:7315: \$? = $ac_status" >&5
  6358. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6359. then
  6360. # The compiler can only warn and ignore the option if not recognized
  6361. # So say no if there are warnings
  6362. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6363. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6364. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6365. lt_cv_prog_compiler_c_o=yes
  6366. fi
  6367. fi
  6368. chmod u+w . 2>&5
  6369. $RM conftest*
  6370. # SGI C++ compiler will create directory out/ii_files/ for
  6371. # template instantiation
  6372. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6373. $RM out/* && rmdir out
  6374. cd ..
  6375. $RM -r conftest
  6376. $RM conftest*
  6377. fi
  6378. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6379. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6380. hard_links="nottested"
  6381. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6382. # do not overwrite the value of need_locks provided by the user
  6383. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6384. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6385. hard_links=yes
  6386. $RM conftest*
  6387. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6388. touch conftest.a
  6389. ln conftest.a conftest.b 2>&5 || hard_links=no
  6390. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6391. echo "$as_me:$LINENO: result: $hard_links" >&5
  6392. echo "${ECHO_T}$hard_links" >&6
  6393. if test "$hard_links" = no; then
  6394. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6395. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6396. need_locks=warn
  6397. fi
  6398. else
  6399. need_locks=no
  6400. fi
  6401. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6402. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6403. runpath_var=
  6404. allow_undefined_flag=
  6405. always_export_symbols=no
  6406. archive_cmds=
  6407. archive_expsym_cmds=
  6408. compiler_needs_object=no
  6409. enable_shared_with_static_runtimes=no
  6410. export_dynamic_flag_spec=
  6411. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6412. hardcode_automatic=no
  6413. hardcode_direct=no
  6414. hardcode_direct_absolute=no
  6415. hardcode_libdir_flag_spec=
  6416. hardcode_libdir_flag_spec_ld=
  6417. hardcode_libdir_separator=
  6418. hardcode_minus_L=no
  6419. hardcode_shlibpath_var=unsupported
  6420. inherit_rpath=no
  6421. link_all_deplibs=unknown
  6422. module_cmds=
  6423. module_expsym_cmds=
  6424. old_archive_from_new_cmds=
  6425. old_archive_from_expsyms_cmds=
  6426. thread_safe_flag_spec=
  6427. whole_archive_flag_spec=
  6428. # include_expsyms should be a list of space-separated symbols to be *always*
  6429. # included in the symbol list
  6430. include_expsyms=
  6431. # exclude_expsyms can be an extended regexp of symbols to exclude
  6432. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6433. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6434. # as well as any symbol that contains `d'.
  6435. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6436. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6437. # platforms (ab)use it in PIC code, but their linkers get confused if
  6438. # the symbol is explicitly referenced. Since portable code cannot
  6439. # rely on this symbol name, it's probably fine to never include it in
  6440. # preloaded symbol tables.
  6441. extract_expsyms_cmds=
  6442. case $host_os in
  6443. cygwin* | mingw* | pw32*)
  6444. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6445. # When not using gcc, we currently assume that we are using
  6446. # Microsoft Visual C++.
  6447. if test "$GCC" != yes; then
  6448. with_gnu_ld=no
  6449. fi
  6450. ;;
  6451. interix*)
  6452. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6453. with_gnu_ld=yes
  6454. ;;
  6455. openbsd*)
  6456. with_gnu_ld=no
  6457. ;;
  6458. esac
  6459. ld_shlibs=yes
  6460. if test "$with_gnu_ld" = yes; then
  6461. # If archive_cmds runs LD, not CC, wlarc should be empty
  6462. wlarc='${wl}'
  6463. # Set some defaults for GNU ld with shared library support. These
  6464. # are reset later if shared libraries are not supported. Putting them
  6465. # here allows them to be overridden if necessary.
  6466. runpath_var=LD_RUN_PATH
  6467. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6468. export_dynamic_flag_spec='${wl}--export-dynamic'
  6469. # ancient GNU ld didn't support --whole-archive et. al.
  6470. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6471. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6472. else
  6473. whole_archive_flag_spec=
  6474. fi
  6475. supports_anon_versioning=no
  6476. case `$LD -v 2>&1` in
  6477. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6478. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6479. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6480. *\ 2.11.*) ;; # other 2.11 versions
  6481. *) supports_anon_versioning=yes ;;
  6482. esac
  6483. # See if GNU ld supports shared libraries.
  6484. case $host_os in
  6485. aix3* | aix4* | aix5*)
  6486. # On AIX/PPC, the GNU linker is very broken
  6487. if test "$host_cpu" != ia64; then
  6488. ld_shlibs=no
  6489. cat <<_LT_EOF 1>&2
  6490. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6491. *** to be unable to reliably create shared libraries on AIX.
  6492. *** Therefore, libtool is disabling shared libraries support. If you
  6493. *** really care for shared libraries, you may want to modify your PATH
  6494. *** so that a non-GNU linker is found, and then restart.
  6495. _LT_EOF
  6496. fi
  6497. ;;
  6498. amigaos*)
  6499. if test "$host_cpu" = m68k; then
  6500. 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)'
  6501. hardcode_libdir_flag_spec='-L$libdir'
  6502. hardcode_minus_L=yes
  6503. fi
  6504. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6505. # that the semantics of dynamic libraries on AmigaOS, at least up
  6506. # to version 4, is to share data among multiple programs linked
  6507. # with the same dynamic library. Since this doesn't match the
  6508. # behavior of shared libraries on other platforms, we can't use
  6509. # them.
  6510. ld_shlibs=no
  6511. ;;
  6512. beos*)
  6513. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6514. allow_undefined_flag=unsupported
  6515. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6516. # support --undefined. This deserves some investigation. FIXME
  6517. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6518. else
  6519. ld_shlibs=no
  6520. fi
  6521. ;;
  6522. cygwin* | mingw* | pw32*)
  6523. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6524. # as there is no search path for DLLs.
  6525. hardcode_libdir_flag_spec='-L$libdir'
  6526. allow_undefined_flag=unsupported
  6527. always_export_symbols=no
  6528. enable_shared_with_static_runtimes=yes
  6529. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6530. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6531. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6532. # If the export-symbols file already is a .def file (1st line
  6533. # is EXPORTS), use it as is; otherwise, prepend...
  6534. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6535. cp $export_symbols $output_objdir/$soname.def;
  6536. else
  6537. echo EXPORTS > $output_objdir/$soname.def;
  6538. cat $export_symbols >> $output_objdir/$soname.def;
  6539. fi~
  6540. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6541. else
  6542. ld_shlibs=no
  6543. fi
  6544. ;;
  6545. interix[3-9]*)
  6546. hardcode_direct=no
  6547. hardcode_shlibpath_var=no
  6548. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6549. export_dynamic_flag_spec='${wl}-E'
  6550. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6551. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6552. # default) and relocated if they conflict, which is a slow very memory
  6553. # consuming and fragmenting process. To avoid this, we pick a random,
  6554. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6555. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6556. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6557. 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'
  6558. ;;
  6559. gnu* | linux* | tpf* | k*bsd*-gnu)
  6560. tmp_diet=no
  6561. if test "$host_os" = linux-dietlibc; then
  6562. case $cc_basename in
  6563. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6564. esac
  6565. fi
  6566. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6567. && test "$tmp_diet" = no
  6568. then
  6569. tmp_addflag=
  6570. case $cc_basename,$host_cpu in
  6571. pgcc*) # Portland Group C compiler
  6572. 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'
  6573. tmp_addflag=' $pic_flag'
  6574. ;;
  6575. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6576. 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'
  6577. tmp_addflag=' $pic_flag -Mnomain' ;;
  6578. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6579. tmp_addflag=' -i_dynamic' ;;
  6580. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6581. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6582. ifc* | ifort*) # Intel Fortran compiler
  6583. tmp_addflag=' -nofor_main' ;;
  6584. esac
  6585. case `$CC -V 2>&1 | sed 5q` in
  6586. *Sun\ C*) # Sun C 5.9
  6587. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6588. compiler_needs_object=yes
  6589. tmp_sharedflag='-G' ;;
  6590. *Sun\ F*) # Sun Fortran 8.3
  6591. tmp_sharedflag='-G' ;;
  6592. *)
  6593. tmp_sharedflag='-shared' ;;
  6594. esac
  6595. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6596. if test "x$supports_anon_versioning" = xyes; then
  6597. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6598. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6599. echo "local: *; };" >> $output_objdir/$libname.ver~
  6600. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6601. fi
  6602. else
  6603. ld_shlibs=no
  6604. fi
  6605. ;;
  6606. netbsd*)
  6607. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6608. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6609. wlarc=
  6610. else
  6611. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6612. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6613. fi
  6614. ;;
  6615. solaris*)
  6616. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6617. ld_shlibs=no
  6618. cat <<_LT_EOF 1>&2
  6619. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6620. *** create shared libraries on Solaris systems. Therefore, libtool
  6621. *** is disabling shared libraries support. We urge you to upgrade GNU
  6622. *** binutils to release 2.9.1 or newer. Another option is to modify
  6623. *** your PATH or compiler configuration so that the native linker is
  6624. *** used, and then restart.
  6625. _LT_EOF
  6626. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6627. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6628. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6629. else
  6630. ld_shlibs=no
  6631. fi
  6632. ;;
  6633. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6634. case `$LD -v 2>&1` in
  6635. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6636. ld_shlibs=no
  6637. cat <<_LT_EOF 1>&2
  6638. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6639. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6640. *** is disabling shared libraries support. We urge you to upgrade GNU
  6641. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6642. *** your PATH or compiler configuration so that the native linker is
  6643. *** used, and then restart.
  6644. _LT_EOF
  6645. ;;
  6646. *)
  6647. # For security reasons, it is highly recommended that you always
  6648. # use absolute paths for naming shared libraries, and exclude the
  6649. # DT_RUNPATH tag from executables and libraries. But doing so
  6650. # requires that you compile everything twice, which is a pain.
  6651. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6652. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6653. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6654. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6655. else
  6656. ld_shlibs=no
  6657. fi
  6658. ;;
  6659. esac
  6660. ;;
  6661. sunos4*)
  6662. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6663. wlarc=
  6664. hardcode_direct=yes
  6665. hardcode_shlibpath_var=no
  6666. ;;
  6667. *)
  6668. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6669. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6670. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6671. else
  6672. ld_shlibs=no
  6673. fi
  6674. ;;
  6675. esac
  6676. if test "$ld_shlibs" = no; then
  6677. runpath_var=
  6678. hardcode_libdir_flag_spec=
  6679. export_dynamic_flag_spec=
  6680. whole_archive_flag_spec=
  6681. fi
  6682. else
  6683. # PORTME fill in a description of your system's linker (not GNU ld)
  6684. case $host_os in
  6685. aix3*)
  6686. allow_undefined_flag=unsupported
  6687. always_export_symbols=yes
  6688. 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'
  6689. # Note: this linker hardcodes the directories in LIBPATH if there
  6690. # are no directories specified by -L.
  6691. hardcode_minus_L=yes
  6692. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6693. # Neither direct hardcoding nor static linking is supported with a
  6694. # broken collect2.
  6695. hardcode_direct=unsupported
  6696. fi
  6697. ;;
  6698. aix4* | aix5*)
  6699. if test "$host_cpu" = ia64; then
  6700. # On IA64, the linker does run time linking by default, so we don't
  6701. # have to do anything special.
  6702. aix_use_runtimelinking=no
  6703. exp_sym_flag='-Bexport'
  6704. no_entry_flag=""
  6705. else
  6706. # If we're using GNU nm, then we don't want the "-C" option.
  6707. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6708. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6709. 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'
  6710. else
  6711. 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'
  6712. fi
  6713. aix_use_runtimelinking=no
  6714. # Test if we are trying to use run time linking or normal
  6715. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6716. # need to do runtime linking.
  6717. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6718. for ld_flag in $LDFLAGS; do
  6719. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6720. aix_use_runtimelinking=yes
  6721. break
  6722. fi
  6723. done
  6724. ;;
  6725. esac
  6726. exp_sym_flag='-bexport'
  6727. no_entry_flag='-bnoentry'
  6728. fi
  6729. # When large executables or shared objects are built, AIX ld can
  6730. # have problems creating the table of contents. If linking a library
  6731. # or program results in "error TOC overflow" add -mminimal-toc to
  6732. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6733. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6734. archive_cmds=''
  6735. hardcode_direct=yes
  6736. hardcode_direct_absolute=yes
  6737. hardcode_libdir_separator=':'
  6738. link_all_deplibs=yes
  6739. file_list_spec='${wl}-f,'
  6740. if test "$GCC" = yes; then
  6741. case $host_os in aix4.[012]|aix4.[012].*)
  6742. # We only want to do this on AIX 4.2 and lower, the check
  6743. # below for broken collect2 doesn't work under 4.3+
  6744. collect2name=`${CC} -print-prog-name=collect2`
  6745. if test -f "$collect2name" &&
  6746. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6747. then
  6748. # We have reworked collect2
  6749. :
  6750. else
  6751. # We have old collect2
  6752. hardcode_direct=unsupported
  6753. # It fails to find uninstalled libraries when the uninstalled
  6754. # path is not listed in the libpath. Setting hardcode_minus_L
  6755. # to unsupported forces relinking
  6756. hardcode_minus_L=yes
  6757. hardcode_libdir_flag_spec='-L$libdir'
  6758. hardcode_libdir_separator=
  6759. fi
  6760. ;;
  6761. esac
  6762. shared_flag='-shared'
  6763. if test "$aix_use_runtimelinking" = yes; then
  6764. shared_flag="$shared_flag "'${wl}-G'
  6765. fi
  6766. else
  6767. # not using gcc
  6768. if test "$host_cpu" = ia64; then
  6769. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6770. # chokes on -Wl,-G. The following line is correct:
  6771. shared_flag='-G'
  6772. else
  6773. if test "$aix_use_runtimelinking" = yes; then
  6774. shared_flag='${wl}-G'
  6775. else
  6776. shared_flag='${wl}-bM:SRE'
  6777. fi
  6778. fi
  6779. fi
  6780. # It seems that -bexpall does not export symbols beginning with
  6781. # underscore (_), so it is better to generate a list of symbols to export.
  6782. always_export_symbols=yes
  6783. if test "$aix_use_runtimelinking" = yes; then
  6784. # Warning - without using the other runtime loading flags (-brtl),
  6785. # -berok will link without error, but may produce a broken library.
  6786. allow_undefined_flag='-berok'
  6787. # Determine the default libpath from the value encoded in an
  6788. # empty executable.
  6789. cat >conftest.$ac_ext <<_ACEOF
  6790. /* confdefs.h. */
  6791. _ACEOF
  6792. cat confdefs.h >>conftest.$ac_ext
  6793. cat >>conftest.$ac_ext <<_ACEOF
  6794. /* end confdefs.h. */
  6795. int
  6796. main ()
  6797. {
  6798. ;
  6799. return 0;
  6800. }
  6801. _ACEOF
  6802. rm -f conftest.$ac_objext conftest$ac_exeext
  6803. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6804. (eval $ac_link) 2>conftest.er1
  6805. ac_status=$?
  6806. grep -v '^ *+' conftest.er1 >conftest.err
  6807. rm -f conftest.er1
  6808. cat conftest.err >&5
  6809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); } &&
  6811. { ac_try='test -z "$ac_c_werror_flag"
  6812. || test ! -s conftest.err'
  6813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6814. (eval $ac_try) 2>&5
  6815. ac_status=$?
  6816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6817. (exit $ac_status); }; } &&
  6818. { ac_try='test -s conftest$ac_exeext'
  6819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6820. (eval $ac_try) 2>&5
  6821. ac_status=$?
  6822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6823. (exit $ac_status); }; }; then
  6824. lt_aix_libpath_sed='
  6825. /Import File Strings/,/^$/ {
  6826. /^0/ {
  6827. s/^0 *\(.*\)$/\1/
  6828. p
  6829. }
  6830. }'
  6831. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6832. # Check for a 64-bit object if we didn't find anything.
  6833. if test -z "$aix_libpath"; then
  6834. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6835. fi
  6836. else
  6837. echo "$as_me: failed program was:" >&5
  6838. sed 's/^/| /' conftest.$ac_ext >&5
  6839. fi
  6840. rm -f conftest.err conftest.$ac_objext \
  6841. conftest$ac_exeext conftest.$ac_ext
  6842. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6843. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6844. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6845. else
  6846. if test "$host_cpu" = ia64; then
  6847. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6848. allow_undefined_flag="-z nodefs"
  6849. 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"
  6850. else
  6851. # Determine the default libpath from the value encoded in an
  6852. # empty executable.
  6853. cat >conftest.$ac_ext <<_ACEOF
  6854. /* confdefs.h. */
  6855. _ACEOF
  6856. cat confdefs.h >>conftest.$ac_ext
  6857. cat >>conftest.$ac_ext <<_ACEOF
  6858. /* end confdefs.h. */
  6859. int
  6860. main ()
  6861. {
  6862. ;
  6863. return 0;
  6864. }
  6865. _ACEOF
  6866. rm -f conftest.$ac_objext conftest$ac_exeext
  6867. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6868. (eval $ac_link) 2>conftest.er1
  6869. ac_status=$?
  6870. grep -v '^ *+' conftest.er1 >conftest.err
  6871. rm -f conftest.er1
  6872. cat conftest.err >&5
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); } &&
  6875. { ac_try='test -z "$ac_c_werror_flag"
  6876. || test ! -s conftest.err'
  6877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6878. (eval $ac_try) 2>&5
  6879. ac_status=$?
  6880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6881. (exit $ac_status); }; } &&
  6882. { ac_try='test -s conftest$ac_exeext'
  6883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6884. (eval $ac_try) 2>&5
  6885. ac_status=$?
  6886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6887. (exit $ac_status); }; }; then
  6888. lt_aix_libpath_sed='
  6889. /Import File Strings/,/^$/ {
  6890. /^0/ {
  6891. s/^0 *\(.*\)$/\1/
  6892. p
  6893. }
  6894. }'
  6895. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6896. # Check for a 64-bit object if we didn't find anything.
  6897. if test -z "$aix_libpath"; then
  6898. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6899. fi
  6900. else
  6901. echo "$as_me: failed program was:" >&5
  6902. sed 's/^/| /' conftest.$ac_ext >&5
  6903. fi
  6904. rm -f conftest.err conftest.$ac_objext \
  6905. conftest$ac_exeext conftest.$ac_ext
  6906. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6907. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6908. # Warning - without using the other run time loading flags,
  6909. # -berok will link without error, but may produce a broken library.
  6910. no_undefined_flag=' ${wl}-bernotok'
  6911. allow_undefined_flag=' ${wl}-berok'
  6912. # Exported symbols can be pulled into shared objects from archives
  6913. whole_archive_flag_spec='$convenience'
  6914. archive_cmds_need_lc=yes
  6915. # This is similar to how AIX traditionally builds its shared libraries.
  6916. 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'
  6917. fi
  6918. fi
  6919. ;;
  6920. amigaos*)
  6921. if test "$host_cpu" = m68k; then
  6922. 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)'
  6923. hardcode_libdir_flag_spec='-L$libdir'
  6924. hardcode_minus_L=yes
  6925. fi
  6926. # see comment about different semantics on the GNU ld section
  6927. ld_shlibs=no
  6928. ;;
  6929. bsdi[45]*)
  6930. export_dynamic_flag_spec=-rdynamic
  6931. ;;
  6932. cygwin* | mingw* | pw32*)
  6933. # When not using gcc, we currently assume that we are using
  6934. # Microsoft Visual C++.
  6935. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6936. # no search path for DLLs.
  6937. hardcode_libdir_flag_spec=' '
  6938. allow_undefined_flag=unsupported
  6939. # Tell ltmain to make .lib files, not .a files.
  6940. libext=lib
  6941. # Tell ltmain to make .dll files, not .so files.
  6942. shrext_cmds=".dll"
  6943. # FIXME: Setting linknames here is a bad hack.
  6944. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6945. # The linker will automatically build a .lib file if we build a DLL.
  6946. old_archive_from_new_cmds='true'
  6947. # FIXME: Should let the user specify the lib program.
  6948. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6949. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6950. enable_shared_with_static_runtimes=yes
  6951. ;;
  6952. darwin* | rhapsody*)
  6953. case $host_os in
  6954. rhapsody* | darwin1.[012])
  6955. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6956. ;;
  6957. *) # Darwin 1.3 on
  6958. case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  6959. 10.[012])
  6960. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6961. ;;
  6962. 10.*)
  6963. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6964. ;;
  6965. esac
  6966. ;;
  6967. esac
  6968. archive_cmds_need_lc=no
  6969. hardcode_direct=no
  6970. hardcode_automatic=yes
  6971. hardcode_shlibpath_var=unsupported
  6972. whole_archive_flag_spec=''
  6973. link_all_deplibs=yes
  6974. if test "$GCC" = yes ; then
  6975. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6976. echo $ECHO_N "(cached) $ECHO_C" >&6
  6977. else
  6978. lt_cv_apple_cc_single_mod=no
  6979. if test -z "${LT_MULTI_MODULE}"; then
  6980. # By default we will add the -single_module flag. You can override
  6981. # by either setting the environment variable LT_MULTI_MODULE
  6982. # non-empty at configure time, or by adding -multi-module to the
  6983. # link flags.
  6984. echo "int foo(void){return 1;}" > conftest.c
  6985. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6986. -dynamiclib ${wl}-single_module conftest.c
  6987. if test -f libconftest.dylib; then
  6988. lt_cv_apple_cc_single_mod=yes
  6989. rm libconftest.dylib
  6990. fi
  6991. rm conftest.$ac_ext
  6992. fi
  6993. fi
  6994. output_verbose_link_cmd=echo
  6995. if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
  6996. archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6997. archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6998. else
  6999. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7000. archive_expsym_cmds='sed "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}'
  7001. fi
  7002. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7003. module_expsym_cmds='sed -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}'
  7004. else
  7005. case $cc_basename in
  7006. xlc*)
  7007. output_verbose_link_cmd=echo
  7008. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
  7009. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7010. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7011. archive_expsym_cmds='sed "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}'
  7012. module_expsym_cmds='sed "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}'
  7013. ;;
  7014. *)
  7015. ld_shlibs=no
  7016. ;;
  7017. esac
  7018. fi
  7019. ;;
  7020. dgux*)
  7021. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7022. hardcode_libdir_flag_spec='-L$libdir'
  7023. hardcode_shlibpath_var=no
  7024. ;;
  7025. freebsd1*)
  7026. ld_shlibs=no
  7027. ;;
  7028. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7029. # support. Future versions do this automatically, but an explicit c++rt0.o
  7030. # does not break anything, and helps significantly (at the cost of a little
  7031. # extra space).
  7032. freebsd2.2*)
  7033. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7034. hardcode_libdir_flag_spec='-R$libdir'
  7035. hardcode_direct=yes
  7036. hardcode_shlibpath_var=no
  7037. ;;
  7038. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7039. freebsd2*)
  7040. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7041. hardcode_direct=yes
  7042. hardcode_minus_L=yes
  7043. hardcode_shlibpath_var=no
  7044. ;;
  7045. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7046. freebsd* | dragonfly*)
  7047. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7048. hardcode_libdir_flag_spec='-R$libdir'
  7049. hardcode_direct=yes
  7050. hardcode_shlibpath_var=no
  7051. ;;
  7052. hpux9*)
  7053. if test "$GCC" = yes; then
  7054. 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'
  7055. else
  7056. 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'
  7057. fi
  7058. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7059. hardcode_libdir_separator=:
  7060. hardcode_direct=yes
  7061. # hardcode_minus_L: Not really in the search PATH,
  7062. # but as the default location of the library.
  7063. hardcode_minus_L=yes
  7064. export_dynamic_flag_spec='${wl}-E'
  7065. ;;
  7066. hpux10*)
  7067. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7068. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7069. else
  7070. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7071. fi
  7072. if test "$with_gnu_ld" = no; then
  7073. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7074. hardcode_libdir_flag_spec_ld='+b $libdir'
  7075. hardcode_libdir_separator=:
  7076. hardcode_direct=yes
  7077. hardcode_direct_absolute=yes
  7078. export_dynamic_flag_spec='${wl}-E'
  7079. # hardcode_minus_L: Not really in the search PATH,
  7080. # but as the default location of the library.
  7081. hardcode_minus_L=yes
  7082. fi
  7083. ;;
  7084. hpux11*)
  7085. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7086. case $host_cpu in
  7087. hppa*64*)
  7088. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7089. ;;
  7090. ia64*)
  7091. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7092. ;;
  7093. *)
  7094. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7095. ;;
  7096. esac
  7097. else
  7098. case $host_cpu in
  7099. hppa*64*)
  7100. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7101. ;;
  7102. ia64*)
  7103. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7104. ;;
  7105. *)
  7106. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7107. ;;
  7108. esac
  7109. fi
  7110. if test "$with_gnu_ld" = no; then
  7111. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7112. hardcode_libdir_separator=:
  7113. case $host_cpu in
  7114. hppa*64*|ia64*)
  7115. hardcode_direct=no
  7116. hardcode_shlibpath_var=no
  7117. ;;
  7118. *)
  7119. hardcode_direct=yes
  7120. hardcode_direct_absolute=yes
  7121. export_dynamic_flag_spec='${wl}-E'
  7122. # hardcode_minus_L: Not really in the search PATH,
  7123. # but as the default location of the library.
  7124. hardcode_minus_L=yes
  7125. ;;
  7126. esac
  7127. fi
  7128. ;;
  7129. irix5* | irix6* | nonstopux*)
  7130. if test "$GCC" = yes; then
  7131. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7132. # Try to use the -exported_symbol ld option, if it does not
  7133. # work, assume that -exports_file does not work either and
  7134. # implicitly export all symbols.
  7135. save_LDFLAGS="$LDFLAGS"
  7136. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7137. cat >conftest.$ac_ext <<_ACEOF
  7138. int foo(void) {}
  7139. _ACEOF
  7140. rm -f conftest.$ac_objext conftest$ac_exeext
  7141. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7142. (eval $ac_link) 2>conftest.er1
  7143. ac_status=$?
  7144. grep -v '^ *+' conftest.er1 >conftest.err
  7145. rm -f conftest.er1
  7146. cat conftest.err >&5
  7147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7148. (exit $ac_status); } &&
  7149. { ac_try='test -z "$ac_c_werror_flag"
  7150. || test ! -s conftest.err'
  7151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7152. (eval $ac_try) 2>&5
  7153. ac_status=$?
  7154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7155. (exit $ac_status); }; } &&
  7156. { ac_try='test -s conftest$ac_exeext'
  7157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7158. (eval $ac_try) 2>&5
  7159. ac_status=$?
  7160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7161. (exit $ac_status); }; }; then
  7162. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7163. else
  7164. echo "$as_me: failed program was:" >&5
  7165. sed 's/^/| /' conftest.$ac_ext >&5
  7166. fi
  7167. rm -f conftest.err conftest.$ac_objext \
  7168. conftest$ac_exeext conftest.$ac_ext
  7169. LDFLAGS="$save_LDFLAGS"
  7170. else
  7171. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7172. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7173. fi
  7174. archive_cmds_need_lc='no'
  7175. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7176. hardcode_libdir_separator=:
  7177. inherit_rpath=yes
  7178. link_all_deplibs=yes
  7179. ;;
  7180. netbsd*)
  7181. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7182. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7183. else
  7184. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7185. fi
  7186. hardcode_libdir_flag_spec='-R$libdir'
  7187. hardcode_direct=yes
  7188. hardcode_shlibpath_var=no
  7189. ;;
  7190. newsos6)
  7191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7192. hardcode_direct=yes
  7193. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7194. hardcode_libdir_separator=:
  7195. hardcode_shlibpath_var=no
  7196. ;;
  7197. *nto* | *qnx*)
  7198. ;;
  7199. openbsd*)
  7200. hardcode_direct=yes
  7201. hardcode_shlibpath_var=no
  7202. hardcode_direct_absolute=yes
  7203. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7204. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7205. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7206. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7207. export_dynamic_flag_spec='${wl}-E'
  7208. else
  7209. case $host_os in
  7210. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7211. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7212. hardcode_libdir_flag_spec='-R$libdir'
  7213. ;;
  7214. *)
  7215. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7216. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7217. ;;
  7218. esac
  7219. fi
  7220. ;;
  7221. os2*)
  7222. hardcode_libdir_flag_spec='-L$libdir'
  7223. hardcode_minus_L=yes
  7224. allow_undefined_flag=unsupported
  7225. 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'
  7226. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7227. ;;
  7228. osf3*)
  7229. if test "$GCC" = yes; then
  7230. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7231. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7232. else
  7233. allow_undefined_flag=' -expect_unresolved \*'
  7234. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7235. fi
  7236. archive_cmds_need_lc='no'
  7237. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7238. hardcode_libdir_separator=:
  7239. ;;
  7240. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7241. if test "$GCC" = yes; then
  7242. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7243. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7244. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7245. else
  7246. allow_undefined_flag=' -expect_unresolved \*'
  7247. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7248. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7249. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7250. # Both c and cxx compiler support -rpath directly
  7251. hardcode_libdir_flag_spec='-rpath $libdir'
  7252. fi
  7253. archive_cmds_need_lc='no'
  7254. hardcode_libdir_separator=:
  7255. ;;
  7256. solaris*)
  7257. no_undefined_flag=' -z defs'
  7258. if test "$GCC" = yes; then
  7259. wlarc='${wl}'
  7260. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7261. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7262. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7263. else
  7264. case `$CC -V 2>&1` in
  7265. *"Compilers 5.0"*)
  7266. wlarc=''
  7267. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7268. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7269. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7270. ;;
  7271. *)
  7272. wlarc='${wl}'
  7273. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7274. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7275. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7276. ;;
  7277. esac
  7278. fi
  7279. hardcode_libdir_flag_spec='-R$libdir'
  7280. hardcode_shlibpath_var=no
  7281. case $host_os in
  7282. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7283. *)
  7284. # The compiler driver will combine and reorder linker options,
  7285. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7286. # but is careful enough not to reorder.
  7287. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7288. if test "$GCC" = yes; then
  7289. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7290. else
  7291. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7292. fi
  7293. ;;
  7294. esac
  7295. link_all_deplibs=yes
  7296. ;;
  7297. sunos4*)
  7298. if test "x$host_vendor" = xsequent; then
  7299. # Use $CC to link under sequent, because it throws in some extra .o
  7300. # files that make .init and .fini sections work.
  7301. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7302. else
  7303. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7304. fi
  7305. hardcode_libdir_flag_spec='-L$libdir'
  7306. hardcode_direct=yes
  7307. hardcode_minus_L=yes
  7308. hardcode_shlibpath_var=no
  7309. ;;
  7310. sysv4)
  7311. case $host_vendor in
  7312. sni)
  7313. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7314. hardcode_direct=yes # is this really true???
  7315. ;;
  7316. siemens)
  7317. ## LD is ld it makes a PLAMLIB
  7318. ## CC just makes a GrossModule.
  7319. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7320. reload_cmds='$CC -r -o $output$reload_objs'
  7321. hardcode_direct=no
  7322. ;;
  7323. motorola)
  7324. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7325. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7326. ;;
  7327. esac
  7328. runpath_var='LD_RUN_PATH'
  7329. hardcode_shlibpath_var=no
  7330. ;;
  7331. sysv4.3*)
  7332. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7333. hardcode_shlibpath_var=no
  7334. export_dynamic_flag_spec='-Bexport'
  7335. ;;
  7336. sysv4*MP*)
  7337. if test -d /usr/nec; then
  7338. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7339. hardcode_shlibpath_var=no
  7340. runpath_var=LD_RUN_PATH
  7341. hardcode_runpath_var=yes
  7342. ld_shlibs=yes
  7343. fi
  7344. ;;
  7345. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7346. no_undefined_flag='${wl}-z,text'
  7347. archive_cmds_need_lc=no
  7348. hardcode_shlibpath_var=no
  7349. runpath_var='LD_RUN_PATH'
  7350. if test "$GCC" = yes; then
  7351. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7352. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7353. else
  7354. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7355. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7356. fi
  7357. ;;
  7358. sysv5* | sco3.2v5* | sco5v6*)
  7359. # Note: We can NOT use -z defs as we might desire, because we do not
  7360. # link with -lc, and that would cause any symbols used from libc to
  7361. # always be unresolved, which means just about no library would
  7362. # ever link correctly. If we're not using GNU ld we use -z text
  7363. # though, which does catch some bad symbols but isn't as heavy-handed
  7364. # as -z defs.
  7365. no_undefined_flag='${wl}-z,text'
  7366. allow_undefined_flag='${wl}-z,nodefs'
  7367. archive_cmds_need_lc=no
  7368. hardcode_shlibpath_var=no
  7369. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7370. hardcode_libdir_separator=':'
  7371. link_all_deplibs=yes
  7372. export_dynamic_flag_spec='${wl}-Bexport'
  7373. runpath_var='LD_RUN_PATH'
  7374. if test "$GCC" = yes; then
  7375. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7376. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7377. else
  7378. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7379. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7380. fi
  7381. ;;
  7382. uts4*)
  7383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7384. hardcode_libdir_flag_spec='-L$libdir'
  7385. hardcode_shlibpath_var=no
  7386. ;;
  7387. *)
  7388. ld_shlibs=no
  7389. ;;
  7390. esac
  7391. if test x$host_vendor = xsni; then
  7392. case $host in
  7393. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7394. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7395. ;;
  7396. esac
  7397. fi
  7398. fi
  7399. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7400. echo "${ECHO_T}$ld_shlibs" >&6
  7401. test "$ld_shlibs" = no && can_build_shared=no
  7402. with_gnu_ld=$with_gnu_ld
  7403. #
  7404. # Do we need to explicitly link libc?
  7405. #
  7406. case "x$archive_cmds_need_lc" in
  7407. x|xyes)
  7408. # Assume -lc should be added
  7409. archive_cmds_need_lc=yes
  7410. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7411. case $archive_cmds in
  7412. *'~'*)
  7413. # FIXME: we may have to deal with multi-command sequences.
  7414. ;;
  7415. '$CC '*)
  7416. # Test whether the compiler implicitly links with -lc since on some
  7417. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7418. # to ld, don't add -lc before -lgcc.
  7419. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7420. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7421. $RM conftest*
  7422. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7423. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7424. (eval $ac_compile) 2>&5
  7425. ac_status=$?
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. (exit $ac_status); } 2>conftest.err; then
  7428. soname=conftest
  7429. lib=conftest
  7430. libobjs=conftest.$ac_objext
  7431. deplibs=
  7432. wl=$lt_prog_compiler_wl
  7433. pic_flag=$lt_prog_compiler_pic
  7434. compiler_flags=-v
  7435. linker_flags=-v
  7436. verstring=
  7437. output_objdir=.
  7438. libname=conftest
  7439. lt_save_allow_undefined_flag=$allow_undefined_flag
  7440. allow_undefined_flag=
  7441. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7442. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7443. ac_status=$?
  7444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7445. (exit $ac_status); }
  7446. then
  7447. archive_cmds_need_lc=no
  7448. else
  7449. archive_cmds_need_lc=yes
  7450. fi
  7451. allow_undefined_flag=$lt_save_allow_undefined_flag
  7452. else
  7453. cat conftest.err 1>&5
  7454. fi
  7455. $RM conftest*
  7456. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7457. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7458. ;;
  7459. esac
  7460. fi
  7461. ;;
  7462. esac
  7463. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7464. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7465. withGCC=$GCC
  7466. if test "$withGCC" = yes; then
  7467. case $host_os in
  7468. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7469. *) lt_awk_arg="/^libraries:/" ;;
  7470. esac
  7471. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7472. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7473. # if the path contains ";" then we assume it to be the separator
  7474. # otherwise default to the standard path separator (i.e. ":") - it is
  7475. # assumed that no part of a normal pathname contains ";" but that should
  7476. # okay in the real world where ";" in dirpaths is itself problematic.
  7477. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7478. else
  7479. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7480. fi
  7481. # Ok, now we have the path, separated by spaces, we can step through it
  7482. # and add multilib dir if necessary.
  7483. lt_tmp_lt_search_path_spec=
  7484. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7485. for lt_sys_path in $lt_search_path_spec; do
  7486. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7487. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7488. else
  7489. test -d "$lt_sys_path" && \
  7490. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7491. fi
  7492. done
  7493. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7494. BEGIN {RS=" "; FS="/|\n";} {
  7495. lt_foo="";
  7496. lt_count=0;
  7497. for (lt_i = NF; lt_i > 0; lt_i--) {
  7498. if ($lt_i != "" && $lt_i != ".") {
  7499. if ($lt_i == "..") {
  7500. lt_count++;
  7501. } else {
  7502. if (lt_count == 0) {
  7503. lt_foo="/" $lt_i lt_foo;
  7504. } else {
  7505. lt_count--;
  7506. }
  7507. }
  7508. }
  7509. }
  7510. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7511. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7512. }'`
  7513. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7514. else
  7515. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7516. fi
  7517. library_names_spec=
  7518. libname_spec='lib$name'
  7519. soname_spec=
  7520. shrext_cmds=".so"
  7521. postinstall_cmds=
  7522. postuninstall_cmds=
  7523. finish_cmds=
  7524. finish_eval=
  7525. shlibpath_var=
  7526. shlibpath_overrides_runpath=unknown
  7527. version_type=none
  7528. dynamic_linker="$host_os ld.so"
  7529. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7530. need_lib_prefix=unknown
  7531. hardcode_into_libs=no
  7532. # when you set need_version to no, make sure it does not cause -set_version
  7533. # flags to be left without arguments
  7534. need_version=unknown
  7535. case $host_os in
  7536. aix3*)
  7537. version_type=linux
  7538. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7539. shlibpath_var=LIBPATH
  7540. # AIX 3 has no versioning support, so we append a major version to the name.
  7541. soname_spec='${libname}${release}${shared_ext}$major'
  7542. ;;
  7543. aix4* | aix5*)
  7544. version_type=linux
  7545. need_lib_prefix=no
  7546. need_version=no
  7547. hardcode_into_libs=yes
  7548. if test "$host_cpu" = ia64; then
  7549. # AIX 5 supports IA64
  7550. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7551. shlibpath_var=LD_LIBRARY_PATH
  7552. else
  7553. # With GCC up to 2.95.x, collect2 would create an import file
  7554. # for dependence libraries. The import file would start with
  7555. # the line `#! .'. This would cause the generated library to
  7556. # depend on `.', always an invalid library. This was fixed in
  7557. # development snapshots of GCC prior to 3.0.
  7558. case $host_os in
  7559. aix4 | aix4.[01] | aix4.[01].*)
  7560. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7561. echo ' yes '
  7562. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  7563. :
  7564. else
  7565. can_build_shared=no
  7566. fi
  7567. ;;
  7568. esac
  7569. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7570. # soname into executable. Probably we can add versioning support to
  7571. # collect2, so additional links can be useful in future.
  7572. if test "$aix_use_runtimelinking" = yes; then
  7573. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7574. # instead of lib<name>.a to let people know that these are not
  7575. # typical AIX shared libraries.
  7576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7577. else
  7578. # We preserve .a as extension for shared libraries through AIX4.2
  7579. # and later when we are not doing run time linking.
  7580. library_names_spec='${libname}${release}.a $libname.a'
  7581. soname_spec='${libname}${release}${shared_ext}$major'
  7582. fi
  7583. shlibpath_var=LIBPATH
  7584. fi
  7585. ;;
  7586. amigaos*)
  7587. if test "$host_cpu" = m68k; then
  7588. library_names_spec='$libname.ixlibrary $libname.a'
  7589. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7590. 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'
  7591. else
  7592. dynamic_linker=no
  7593. fi
  7594. ;;
  7595. beos*)
  7596. library_names_spec='${libname}${shared_ext}'
  7597. dynamic_linker="$host_os ld.so"
  7598. shlibpath_var=LIBRARY_PATH
  7599. ;;
  7600. bsdi[45]*)
  7601. version_type=linux
  7602. need_version=no
  7603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7604. soname_spec='${libname}${release}${shared_ext}$major'
  7605. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7606. shlibpath_var=LD_LIBRARY_PATH
  7607. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7608. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7609. # the default ld.so.conf also contains /usr/contrib/lib and
  7610. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7611. # libtool to hard-code these into programs
  7612. ;;
  7613. cygwin* | mingw* | pw32*)
  7614. version_type=windows
  7615. shrext_cmds=".dll"
  7616. need_version=no
  7617. need_lib_prefix=no
  7618. case $withGCC,$host_os in
  7619. yes,cygwin* | yes,mingw* | yes,pw32*)
  7620. library_names_spec='$libname.dll.a'
  7621. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7622. postinstall_cmds='base_file=`basename \${file}`~
  7623. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  7624. dldir=$destdir/`dirname \$dlpath`~
  7625. test -d \$dldir || mkdir -p \$dldir~
  7626. $install_prog $dir/$dlname \$dldir/$dlname~
  7627. chmod a+x \$dldir/$dlname~
  7628. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  7629. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  7630. fi'
  7631. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7632. dlpath=$dir/\$dldll~
  7633. $RM \$dlpath'
  7634. shlibpath_overrides_runpath=yes
  7635. case $host_os in
  7636. cygwin*)
  7637. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7638. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7639. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7640. ;;
  7641. mingw*)
  7642. # MinGW DLLs use traditional 'lib' prefix
  7643. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7644. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7645. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  7646. # It is most probably a Windows format PATH printed by
  7647. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7648. # path with ; separators, and with drive letters. We can handle the
  7649. # drive letters (cygwin fileutils understands them), so leave them,
  7650. # especially as we might pass files found there to a mingw objdump,
  7651. # which wouldn't understand a cygwinified path. Ahh.
  7652. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7653. else
  7654. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7655. fi
  7656. ;;
  7657. pw32*)
  7658. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7659. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7660. ;;
  7661. esac
  7662. ;;
  7663. *)
  7664. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7665. ;;
  7666. esac
  7667. dynamic_linker='Win32 ld.exe'
  7668. # FIXME: first we should search . and the directory the executable is in
  7669. shlibpath_var=PATH
  7670. ;;
  7671. darwin* | rhapsody*)
  7672. dynamic_linker="$host_os dyld"
  7673. version_type=darwin
  7674. need_lib_prefix=no
  7675. need_version=no
  7676. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7677. soname_spec='${libname}${release}${major}$shared_ext'
  7678. shlibpath_overrides_runpath=yes
  7679. shlibpath_var=DYLD_LIBRARY_PATH
  7680. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7681. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7682. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7683. ;;
  7684. dgux*)
  7685. version_type=linux
  7686. need_lib_prefix=no
  7687. need_version=no
  7688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7689. soname_spec='${libname}${release}${shared_ext}$major'
  7690. shlibpath_var=LD_LIBRARY_PATH
  7691. ;;
  7692. freebsd1*)
  7693. dynamic_linker=no
  7694. ;;
  7695. freebsd* | dragonfly*)
  7696. # DragonFly does not have aout. When/if they implement a new
  7697. # versioning mechanism, adjust this.
  7698. if test -x /usr/bin/objformat; then
  7699. objformat=`/usr/bin/objformat`
  7700. else
  7701. case $host_os in
  7702. freebsd[123]*) objformat=aout ;;
  7703. *) objformat=elf ;;
  7704. esac
  7705. fi
  7706. version_type=freebsd-$objformat
  7707. case $version_type in
  7708. freebsd-elf*)
  7709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7710. need_version=no
  7711. need_lib_prefix=no
  7712. ;;
  7713. freebsd-*)
  7714. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7715. need_version=yes
  7716. ;;
  7717. esac
  7718. shlibpath_var=LD_LIBRARY_PATH
  7719. case $host_os in
  7720. freebsd2*)
  7721. shlibpath_overrides_runpath=yes
  7722. ;;
  7723. freebsd3.[01]* | freebsdelf3.[01]*)
  7724. shlibpath_overrides_runpath=yes
  7725. hardcode_into_libs=yes
  7726. ;;
  7727. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7728. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7729. shlibpath_overrides_runpath=no
  7730. hardcode_into_libs=yes
  7731. ;;
  7732. *) # from 4.6 on, and DragonFly
  7733. shlibpath_overrides_runpath=yes
  7734. hardcode_into_libs=yes
  7735. ;;
  7736. esac
  7737. ;;
  7738. gnu*)
  7739. version_type=linux
  7740. need_lib_prefix=no
  7741. need_version=no
  7742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7743. soname_spec='${libname}${release}${shared_ext}$major'
  7744. shlibpath_var=LD_LIBRARY_PATH
  7745. hardcode_into_libs=yes
  7746. ;;
  7747. hpux9* | hpux10* | hpux11*)
  7748. # Give a soname corresponding to the major version so that dld.sl refuses to
  7749. # link against other versions.
  7750. version_type=sunos
  7751. need_lib_prefix=no
  7752. need_version=no
  7753. case $host_cpu in
  7754. ia64*)
  7755. shrext_cmds='.so'
  7756. hardcode_into_libs=yes
  7757. dynamic_linker="$host_os dld.so"
  7758. shlibpath_var=LD_LIBRARY_PATH
  7759. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7761. soname_spec='${libname}${release}${shared_ext}$major'
  7762. if test "X$HPUX_IA64_MODE" = X32; then
  7763. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7764. else
  7765. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7766. fi
  7767. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7768. ;;
  7769. hppa*64*)
  7770. shrext_cmds='.sl'
  7771. hardcode_into_libs=yes
  7772. dynamic_linker="$host_os dld.sl"
  7773. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7774. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7776. soname_spec='${libname}${release}${shared_ext}$major'
  7777. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7778. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7779. ;;
  7780. *)
  7781. shrext_cmds='.sl'
  7782. dynamic_linker="$host_os dld.sl"
  7783. shlibpath_var=SHLIB_PATH
  7784. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7786. soname_spec='${libname}${release}${shared_ext}$major'
  7787. ;;
  7788. esac
  7789. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7790. postinstall_cmds='chmod 555 $lib'
  7791. ;;
  7792. interix[3-9]*)
  7793. version_type=linux
  7794. need_lib_prefix=no
  7795. need_version=no
  7796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7797. soname_spec='${libname}${release}${shared_ext}$major'
  7798. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7799. shlibpath_var=LD_LIBRARY_PATH
  7800. shlibpath_overrides_runpath=no
  7801. hardcode_into_libs=yes
  7802. ;;
  7803. irix5* | irix6* | nonstopux*)
  7804. case $host_os in
  7805. nonstopux*) version_type=nonstopux ;;
  7806. *)
  7807. if test "$lt_cv_prog_gnu_ld" = yes; then
  7808. version_type=linux
  7809. else
  7810. version_type=irix
  7811. fi ;;
  7812. esac
  7813. need_lib_prefix=no
  7814. need_version=no
  7815. soname_spec='${libname}${release}${shared_ext}$major'
  7816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7817. case $host_os in
  7818. irix5* | nonstopux*)
  7819. libsuff= shlibsuff=
  7820. ;;
  7821. *)
  7822. case $LD in # libtool.m4 will add one of these switches to LD
  7823. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7824. libsuff= shlibsuff= libmagic=32-bit;;
  7825. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7826. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7827. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7828. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7829. *) libsuff= shlibsuff= libmagic=never-match;;
  7830. esac
  7831. ;;
  7832. esac
  7833. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7834. shlibpath_overrides_runpath=no
  7835. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7836. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7837. hardcode_into_libs=yes
  7838. ;;
  7839. # No shared lib support for Linux oldld, aout, or coff.
  7840. linux*oldld* | linux*aout* | linux*coff*)
  7841. dynamic_linker=no
  7842. ;;
  7843. # This must be Linux ELF.
  7844. linux* | k*bsd*-gnu)
  7845. version_type=linux
  7846. need_lib_prefix=no
  7847. need_version=no
  7848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7849. soname_spec='${libname}${release}${shared_ext}$major'
  7850. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7851. shlibpath_var=LD_LIBRARY_PATH
  7852. shlibpath_overrides_runpath=no
  7853. # Some binutils ld are patched to set DT_RUNPATH
  7854. save_LDFLAGS=$LDFLAGS
  7855. save_libdir=$libdir
  7856. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  7857. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  7858. cat >conftest.$ac_ext <<_ACEOF
  7859. /* confdefs.h. */
  7860. _ACEOF
  7861. cat confdefs.h >>conftest.$ac_ext
  7862. cat >>conftest.$ac_ext <<_ACEOF
  7863. /* end confdefs.h. */
  7864. int
  7865. main ()
  7866. {
  7867. ;
  7868. return 0;
  7869. }
  7870. _ACEOF
  7871. rm -f conftest.$ac_objext conftest$ac_exeext
  7872. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7873. (eval $ac_link) 2>conftest.er1
  7874. ac_status=$?
  7875. grep -v '^ *+' conftest.er1 >conftest.err
  7876. rm -f conftest.er1
  7877. cat conftest.err >&5
  7878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7879. (exit $ac_status); } &&
  7880. { ac_try='test -z "$ac_c_werror_flag"
  7881. || test ! -s conftest.err'
  7882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7883. (eval $ac_try) 2>&5
  7884. ac_status=$?
  7885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7886. (exit $ac_status); }; } &&
  7887. { ac_try='test -s conftest$ac_exeext'
  7888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7889. (eval $ac_try) 2>&5
  7890. ac_status=$?
  7891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7892. (exit $ac_status); }; }; then
  7893. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
  7894. shlibpath_overrides_runpath=yes
  7895. fi
  7896. else
  7897. echo "$as_me: failed program was:" >&5
  7898. sed 's/^/| /' conftest.$ac_ext >&5
  7899. fi
  7900. rm -f conftest.err conftest.$ac_objext \
  7901. conftest$ac_exeext conftest.$ac_ext
  7902. LDFLAGS=$save_LDFLAGS
  7903. libdir=$save_libdir
  7904. # This implies no fast_install, which is unacceptable.
  7905. # Some rework will be needed to allow for fast_install
  7906. # before this can be enabled.
  7907. hardcode_into_libs=yes
  7908. # Append ld.so.conf contents to the search path
  7909. if test -f /etc/ld.so.conf; then
  7910. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7911. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7912. fi
  7913. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7914. # powerpc, because MkLinux only supported shared libraries with the
  7915. # GNU dynamic linker. Since this was broken with cross compilers,
  7916. # most powerpc-linux boxes support dynamic linking these days and
  7917. # people can always --disable-shared, the test was removed, and we
  7918. # assume the GNU/Linux dynamic linker is in use.
  7919. dynamic_linker='GNU/Linux ld.so'
  7920. ;;
  7921. netbsd*)
  7922. version_type=sunos
  7923. need_lib_prefix=no
  7924. need_version=no
  7925. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7927. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7928. dynamic_linker='NetBSD (a.out) ld.so'
  7929. else
  7930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7931. soname_spec='${libname}${release}${shared_ext}$major'
  7932. dynamic_linker='NetBSD ld.elf_so'
  7933. fi
  7934. shlibpath_var=LD_LIBRARY_PATH
  7935. shlibpath_overrides_runpath=yes
  7936. hardcode_into_libs=yes
  7937. ;;
  7938. newsos6)
  7939. version_type=linux
  7940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7941. shlibpath_var=LD_LIBRARY_PATH
  7942. shlibpath_overrides_runpath=yes
  7943. ;;
  7944. *nto* | *qnx*)
  7945. version_type=qnx
  7946. need_lib_prefix=no
  7947. need_version=no
  7948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7949. soname_spec='${libname}${release}${shared_ext}$major'
  7950. shlibpath_var=LD_LIBRARY_PATH
  7951. shlibpath_overrides_runpath=no
  7952. hardcode_into_libs=yes
  7953. dynamic_linker='ldqnx.so'
  7954. ;;
  7955. openbsd*)
  7956. version_type=sunos
  7957. sys_lib_dlsearch_path_spec="/usr/lib"
  7958. need_lib_prefix=no
  7959. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7960. case $host_os in
  7961. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7962. *) need_version=no ;;
  7963. esac
  7964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7966. shlibpath_var=LD_LIBRARY_PATH
  7967. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7968. case $host_os in
  7969. openbsd2.[89] | openbsd2.[89].*)
  7970. shlibpath_overrides_runpath=no
  7971. ;;
  7972. *)
  7973. shlibpath_overrides_runpath=yes
  7974. ;;
  7975. esac
  7976. else
  7977. shlibpath_overrides_runpath=yes
  7978. fi
  7979. ;;
  7980. os2*)
  7981. libname_spec='$name'
  7982. shrext_cmds=".dll"
  7983. need_lib_prefix=no
  7984. library_names_spec='$libname${shared_ext} $libname.a'
  7985. dynamic_linker='OS/2 ld.exe'
  7986. shlibpath_var=LIBPATH
  7987. ;;
  7988. osf3* | osf4* | osf5*)
  7989. version_type=osf
  7990. need_lib_prefix=no
  7991. need_version=no
  7992. soname_spec='${libname}${release}${shared_ext}$major'
  7993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7994. shlibpath_var=LD_LIBRARY_PATH
  7995. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7996. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7997. ;;
  7998. rdos*)
  7999. dynamic_linker=no
  8000. ;;
  8001. solaris*)
  8002. version_type=linux
  8003. need_lib_prefix=no
  8004. need_version=no
  8005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8006. soname_spec='${libname}${release}${shared_ext}$major'
  8007. shlibpath_var=LD_LIBRARY_PATH
  8008. shlibpath_overrides_runpath=yes
  8009. hardcode_into_libs=yes
  8010. # ldd complains unless libraries are executable
  8011. postinstall_cmds='chmod +x $lib'
  8012. ;;
  8013. sunos4*)
  8014. version_type=sunos
  8015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8016. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8017. shlibpath_var=LD_LIBRARY_PATH
  8018. shlibpath_overrides_runpath=yes
  8019. if test "$with_gnu_ld" = yes; then
  8020. need_lib_prefix=no
  8021. fi
  8022. need_version=yes
  8023. ;;
  8024. sysv4 | sysv4.3*)
  8025. version_type=linux
  8026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8027. soname_spec='${libname}${release}${shared_ext}$major'
  8028. shlibpath_var=LD_LIBRARY_PATH
  8029. case $host_vendor in
  8030. sni)
  8031. shlibpath_overrides_runpath=no
  8032. need_lib_prefix=no
  8033. runpath_var=LD_RUN_PATH
  8034. ;;
  8035. siemens)
  8036. need_lib_prefix=no
  8037. ;;
  8038. motorola)
  8039. need_lib_prefix=no
  8040. need_version=no
  8041. shlibpath_overrides_runpath=no
  8042. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8043. ;;
  8044. esac
  8045. ;;
  8046. sysv4*MP*)
  8047. if test -d /usr/nec ;then
  8048. version_type=linux
  8049. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8050. soname_spec='$libname${shared_ext}.$major'
  8051. shlibpath_var=LD_LIBRARY_PATH
  8052. fi
  8053. ;;
  8054. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8055. version_type=freebsd-elf
  8056. need_lib_prefix=no
  8057. need_version=no
  8058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8059. soname_spec='${libname}${release}${shared_ext}$major'
  8060. shlibpath_var=LD_LIBRARY_PATH
  8061. shlibpath_overrides_runpath=yes
  8062. hardcode_into_libs=yes
  8063. if test "$with_gnu_ld" = yes; then
  8064. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8065. else
  8066. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8067. case $host_os in
  8068. sco3.2v5*)
  8069. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8070. ;;
  8071. esac
  8072. fi
  8073. sys_lib_dlsearch_path_spec='/usr/lib'
  8074. ;;
  8075. tpf*)
  8076. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8077. version_type=linux
  8078. need_lib_prefix=no
  8079. need_version=no
  8080. library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8081. shlibpath_var=LD_LIBRARY_PATH
  8082. shlibpath_overrides_runpath=no
  8083. hardcode_into_libs=yes
  8084. ;;
  8085. uts4*)
  8086. version_type=linux
  8087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8088. soname_spec='${libname}${release}${shared_ext}$major'
  8089. shlibpath_var=LD_LIBRARY_PATH
  8090. ;;
  8091. *)
  8092. dynamic_linker=no
  8093. ;;
  8094. esac
  8095. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8096. echo "${ECHO_T}$dynamic_linker" >&6
  8097. test "$dynamic_linker" = no && can_build_shared=no
  8098. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8099. if test "$GCC" = yes; then
  8100. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8101. fi
  8102. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8103. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8104. hardcode_action=
  8105. if test -n "$hardcode_libdir_flag_spec" ||
  8106. test -n "$runpath_var" ||
  8107. test "X$hardcode_automatic" = "Xyes" ; then
  8108. # We can hardcode non-existent directories.
  8109. if test "$hardcode_direct" != no &&
  8110. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8111. # have to relink, otherwise we might link with an installed library
  8112. # when we should be linking with a yet-to-be-installed one
  8113. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8114. test "$hardcode_minus_L" != no; then
  8115. # Linking always hardcodes the temporary library directory.
  8116. hardcode_action=relink
  8117. else
  8118. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8119. hardcode_action=immediate
  8120. fi
  8121. else
  8122. # We cannot hardcode anything, or else we can only hardcode existing
  8123. # directories.
  8124. hardcode_action=unsupported
  8125. fi
  8126. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8127. echo "${ECHO_T}$hardcode_action" >&6
  8128. if test "$hardcode_action" = relink ||
  8129. test "$inherit_rpath" = yes; then
  8130. # Fast installation is not supported
  8131. enable_fast_install=no
  8132. elif test "$shlibpath_overrides_runpath" = yes ||
  8133. test "$enable_shared" = no; then
  8134. # Fast installation is not necessary
  8135. enable_fast_install=needless
  8136. fi
  8137. if test "x$enable_dlopen" != xyes; then
  8138. enable_dlopen=unknown
  8139. enable_dlopen_self=unknown
  8140. enable_dlopen_self_static=unknown
  8141. else
  8142. lt_cv_dlopen=no
  8143. lt_cv_dlopen_libs=
  8144. case $host_os in
  8145. beos*)
  8146. lt_cv_dlopen="load_add_on"
  8147. lt_cv_dlopen_libs=
  8148. lt_cv_dlopen_self=yes
  8149. ;;
  8150. mingw* | pw32*)
  8151. lt_cv_dlopen="LoadLibrary"
  8152. lt_cv_dlopen_libs=
  8153. ;;
  8154. cygwin*)
  8155. lt_cv_dlopen="dlopen"
  8156. lt_cv_dlopen_libs=
  8157. ;;
  8158. darwin*)
  8159. # if libdl is installed we need to link against it
  8160. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8161. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8162. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8163. echo $ECHO_N "(cached) $ECHO_C" >&6
  8164. else
  8165. ac_check_lib_save_LIBS=$LIBS
  8166. LIBS="-ldl $LIBS"
  8167. cat >conftest.$ac_ext <<_ACEOF
  8168. /* confdefs.h. */
  8169. _ACEOF
  8170. cat confdefs.h >>conftest.$ac_ext
  8171. cat >>conftest.$ac_ext <<_ACEOF
  8172. /* end confdefs.h. */
  8173. /* Override any gcc2 internal prototype to avoid an error. */
  8174. #ifdef __cplusplus
  8175. extern "C"
  8176. #endif
  8177. /* We use char because int might match the return type of a gcc2
  8178. builtin and then its argument prototype would still apply. */
  8179. char dlopen ();
  8180. int
  8181. main ()
  8182. {
  8183. dlopen ();
  8184. ;
  8185. return 0;
  8186. }
  8187. _ACEOF
  8188. rm -f conftest.$ac_objext conftest$ac_exeext
  8189. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8190. (eval $ac_link) 2>conftest.er1
  8191. ac_status=$?
  8192. grep -v '^ *+' conftest.er1 >conftest.err
  8193. rm -f conftest.er1
  8194. cat conftest.err >&5
  8195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8196. (exit $ac_status); } &&
  8197. { ac_try='test -z "$ac_c_werror_flag"
  8198. || test ! -s conftest.err'
  8199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8200. (eval $ac_try) 2>&5
  8201. ac_status=$?
  8202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8203. (exit $ac_status); }; } &&
  8204. { ac_try='test -s conftest$ac_exeext'
  8205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8206. (eval $ac_try) 2>&5
  8207. ac_status=$?
  8208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8209. (exit $ac_status); }; }; then
  8210. ac_cv_lib_dl_dlopen=yes
  8211. else
  8212. echo "$as_me: failed program was:" >&5
  8213. sed 's/^/| /' conftest.$ac_ext >&5
  8214. ac_cv_lib_dl_dlopen=no
  8215. fi
  8216. rm -f conftest.err conftest.$ac_objext \
  8217. conftest$ac_exeext conftest.$ac_ext
  8218. LIBS=$ac_check_lib_save_LIBS
  8219. fi
  8220. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8221. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8222. if test $ac_cv_lib_dl_dlopen = yes; then
  8223. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8224. else
  8225. lt_cv_dlopen="dyld"
  8226. lt_cv_dlopen_libs=
  8227. lt_cv_dlopen_self=yes
  8228. fi
  8229. ;;
  8230. *)
  8231. echo "$as_me:$LINENO: checking for shl_load" >&5
  8232. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8233. if test "${ac_cv_func_shl_load+set}" = set; then
  8234. echo $ECHO_N "(cached) $ECHO_C" >&6
  8235. else
  8236. cat >conftest.$ac_ext <<_ACEOF
  8237. /* confdefs.h. */
  8238. _ACEOF
  8239. cat confdefs.h >>conftest.$ac_ext
  8240. cat >>conftest.$ac_ext <<_ACEOF
  8241. /* end confdefs.h. */
  8242. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8243. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8244. #define shl_load innocuous_shl_load
  8245. /* System header to define __stub macros and hopefully few prototypes,
  8246. which can conflict with char shl_load (); below.
  8247. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8248. <limits.h> exists even on freestanding compilers. */
  8249. #ifdef __STDC__
  8250. # include <limits.h>
  8251. #else
  8252. # include <assert.h>
  8253. #endif
  8254. #undef shl_load
  8255. /* Override any gcc2 internal prototype to avoid an error. */
  8256. #ifdef __cplusplus
  8257. extern "C"
  8258. {
  8259. #endif
  8260. /* We use char because int might match the return type of a gcc2
  8261. builtin and then its argument prototype would still apply. */
  8262. char shl_load ();
  8263. /* The GNU C library defines this for functions which it implements
  8264. to always fail with ENOSYS. Some functions are actually named
  8265. something starting with __ and the normal name is an alias. */
  8266. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8267. choke me
  8268. #else
  8269. char (*f) () = shl_load;
  8270. #endif
  8271. #ifdef __cplusplus
  8272. }
  8273. #endif
  8274. int
  8275. main ()
  8276. {
  8277. return f != shl_load;
  8278. ;
  8279. return 0;
  8280. }
  8281. _ACEOF
  8282. rm -f conftest.$ac_objext conftest$ac_exeext
  8283. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8284. (eval $ac_link) 2>conftest.er1
  8285. ac_status=$?
  8286. grep -v '^ *+' conftest.er1 >conftest.err
  8287. rm -f conftest.er1
  8288. cat conftest.err >&5
  8289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8290. (exit $ac_status); } &&
  8291. { ac_try='test -z "$ac_c_werror_flag"
  8292. || test ! -s conftest.err'
  8293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8294. (eval $ac_try) 2>&5
  8295. ac_status=$?
  8296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8297. (exit $ac_status); }; } &&
  8298. { ac_try='test -s conftest$ac_exeext'
  8299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8300. (eval $ac_try) 2>&5
  8301. ac_status=$?
  8302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8303. (exit $ac_status); }; }; then
  8304. ac_cv_func_shl_load=yes
  8305. else
  8306. echo "$as_me: failed program was:" >&5
  8307. sed 's/^/| /' conftest.$ac_ext >&5
  8308. ac_cv_func_shl_load=no
  8309. fi
  8310. rm -f conftest.err conftest.$ac_objext \
  8311. conftest$ac_exeext conftest.$ac_ext
  8312. fi
  8313. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8314. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8315. if test $ac_cv_func_shl_load = yes; then
  8316. lt_cv_dlopen="shl_load"
  8317. else
  8318. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8319. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8320. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8321. echo $ECHO_N "(cached) $ECHO_C" >&6
  8322. else
  8323. ac_check_lib_save_LIBS=$LIBS
  8324. LIBS="-ldld $LIBS"
  8325. cat >conftest.$ac_ext <<_ACEOF
  8326. /* confdefs.h. */
  8327. _ACEOF
  8328. cat confdefs.h >>conftest.$ac_ext
  8329. cat >>conftest.$ac_ext <<_ACEOF
  8330. /* end confdefs.h. */
  8331. /* Override any gcc2 internal prototype to avoid an error. */
  8332. #ifdef __cplusplus
  8333. extern "C"
  8334. #endif
  8335. /* We use char because int might match the return type of a gcc2
  8336. builtin and then its argument prototype would still apply. */
  8337. char shl_load ();
  8338. int
  8339. main ()
  8340. {
  8341. shl_load ();
  8342. ;
  8343. return 0;
  8344. }
  8345. _ACEOF
  8346. rm -f conftest.$ac_objext conftest$ac_exeext
  8347. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8348. (eval $ac_link) 2>conftest.er1
  8349. ac_status=$?
  8350. grep -v '^ *+' conftest.er1 >conftest.err
  8351. rm -f conftest.er1
  8352. cat conftest.err >&5
  8353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8354. (exit $ac_status); } &&
  8355. { ac_try='test -z "$ac_c_werror_flag"
  8356. || test ! -s conftest.err'
  8357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8358. (eval $ac_try) 2>&5
  8359. ac_status=$?
  8360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8361. (exit $ac_status); }; } &&
  8362. { ac_try='test -s conftest$ac_exeext'
  8363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8364. (eval $ac_try) 2>&5
  8365. ac_status=$?
  8366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8367. (exit $ac_status); }; }; then
  8368. ac_cv_lib_dld_shl_load=yes
  8369. else
  8370. echo "$as_me: failed program was:" >&5
  8371. sed 's/^/| /' conftest.$ac_ext >&5
  8372. ac_cv_lib_dld_shl_load=no
  8373. fi
  8374. rm -f conftest.err conftest.$ac_objext \
  8375. conftest$ac_exeext conftest.$ac_ext
  8376. LIBS=$ac_check_lib_save_LIBS
  8377. fi
  8378. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8379. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8380. if test $ac_cv_lib_dld_shl_load = yes; then
  8381. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8382. else
  8383. echo "$as_me:$LINENO: checking for dlopen" >&5
  8384. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8385. if test "${ac_cv_func_dlopen+set}" = set; then
  8386. echo $ECHO_N "(cached) $ECHO_C" >&6
  8387. else
  8388. cat >conftest.$ac_ext <<_ACEOF
  8389. /* confdefs.h. */
  8390. _ACEOF
  8391. cat confdefs.h >>conftest.$ac_ext
  8392. cat >>conftest.$ac_ext <<_ACEOF
  8393. /* end confdefs.h. */
  8394. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8395. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8396. #define dlopen innocuous_dlopen
  8397. /* System header to define __stub macros and hopefully few prototypes,
  8398. which can conflict with char dlopen (); below.
  8399. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8400. <limits.h> exists even on freestanding compilers. */
  8401. #ifdef __STDC__
  8402. # include <limits.h>
  8403. #else
  8404. # include <assert.h>
  8405. #endif
  8406. #undef dlopen
  8407. /* Override any gcc2 internal prototype to avoid an error. */
  8408. #ifdef __cplusplus
  8409. extern "C"
  8410. {
  8411. #endif
  8412. /* We use char because int might match the return type of a gcc2
  8413. builtin and then its argument prototype would still apply. */
  8414. char dlopen ();
  8415. /* The GNU C library defines this for functions which it implements
  8416. to always fail with ENOSYS. Some functions are actually named
  8417. something starting with __ and the normal name is an alias. */
  8418. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8419. choke me
  8420. #else
  8421. char (*f) () = dlopen;
  8422. #endif
  8423. #ifdef __cplusplus
  8424. }
  8425. #endif
  8426. int
  8427. main ()
  8428. {
  8429. return f != dlopen;
  8430. ;
  8431. return 0;
  8432. }
  8433. _ACEOF
  8434. rm -f conftest.$ac_objext conftest$ac_exeext
  8435. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8436. (eval $ac_link) 2>conftest.er1
  8437. ac_status=$?
  8438. grep -v '^ *+' conftest.er1 >conftest.err
  8439. rm -f conftest.er1
  8440. cat conftest.err >&5
  8441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8442. (exit $ac_status); } &&
  8443. { ac_try='test -z "$ac_c_werror_flag"
  8444. || test ! -s conftest.err'
  8445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8446. (eval $ac_try) 2>&5
  8447. ac_status=$?
  8448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); }; } &&
  8450. { ac_try='test -s conftest$ac_exeext'
  8451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8452. (eval $ac_try) 2>&5
  8453. ac_status=$?
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. (exit $ac_status); }; }; then
  8456. ac_cv_func_dlopen=yes
  8457. else
  8458. echo "$as_me: failed program was:" >&5
  8459. sed 's/^/| /' conftest.$ac_ext >&5
  8460. ac_cv_func_dlopen=no
  8461. fi
  8462. rm -f conftest.err conftest.$ac_objext \
  8463. conftest$ac_exeext conftest.$ac_ext
  8464. fi
  8465. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8466. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8467. if test $ac_cv_func_dlopen = yes; then
  8468. lt_cv_dlopen="dlopen"
  8469. else
  8470. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8471. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8472. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8473. echo $ECHO_N "(cached) $ECHO_C" >&6
  8474. else
  8475. ac_check_lib_save_LIBS=$LIBS
  8476. LIBS="-ldl $LIBS"
  8477. cat >conftest.$ac_ext <<_ACEOF
  8478. /* confdefs.h. */
  8479. _ACEOF
  8480. cat confdefs.h >>conftest.$ac_ext
  8481. cat >>conftest.$ac_ext <<_ACEOF
  8482. /* end confdefs.h. */
  8483. /* Override any gcc2 internal prototype to avoid an error. */
  8484. #ifdef __cplusplus
  8485. extern "C"
  8486. #endif
  8487. /* We use char because int might match the return type of a gcc2
  8488. builtin and then its argument prototype would still apply. */
  8489. char dlopen ();
  8490. int
  8491. main ()
  8492. {
  8493. dlopen ();
  8494. ;
  8495. return 0;
  8496. }
  8497. _ACEOF
  8498. rm -f conftest.$ac_objext conftest$ac_exeext
  8499. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8500. (eval $ac_link) 2>conftest.er1
  8501. ac_status=$?
  8502. grep -v '^ *+' conftest.er1 >conftest.err
  8503. rm -f conftest.er1
  8504. cat conftest.err >&5
  8505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8506. (exit $ac_status); } &&
  8507. { ac_try='test -z "$ac_c_werror_flag"
  8508. || test ! -s conftest.err'
  8509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8510. (eval $ac_try) 2>&5
  8511. ac_status=$?
  8512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8513. (exit $ac_status); }; } &&
  8514. { ac_try='test -s conftest$ac_exeext'
  8515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8516. (eval $ac_try) 2>&5
  8517. ac_status=$?
  8518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8519. (exit $ac_status); }; }; then
  8520. ac_cv_lib_dl_dlopen=yes
  8521. else
  8522. echo "$as_me: failed program was:" >&5
  8523. sed 's/^/| /' conftest.$ac_ext >&5
  8524. ac_cv_lib_dl_dlopen=no
  8525. fi
  8526. rm -f conftest.err conftest.$ac_objext \
  8527. conftest$ac_exeext conftest.$ac_ext
  8528. LIBS=$ac_check_lib_save_LIBS
  8529. fi
  8530. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8531. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8532. if test $ac_cv_lib_dl_dlopen = yes; then
  8533. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8534. else
  8535. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8536. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8537. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8538. echo $ECHO_N "(cached) $ECHO_C" >&6
  8539. else
  8540. ac_check_lib_save_LIBS=$LIBS
  8541. LIBS="-lsvld $LIBS"
  8542. cat >conftest.$ac_ext <<_ACEOF
  8543. /* confdefs.h. */
  8544. _ACEOF
  8545. cat confdefs.h >>conftest.$ac_ext
  8546. cat >>conftest.$ac_ext <<_ACEOF
  8547. /* end confdefs.h. */
  8548. /* Override any gcc2 internal prototype to avoid an error. */
  8549. #ifdef __cplusplus
  8550. extern "C"
  8551. #endif
  8552. /* We use char because int might match the return type of a gcc2
  8553. builtin and then its argument prototype would still apply. */
  8554. char dlopen ();
  8555. int
  8556. main ()
  8557. {
  8558. dlopen ();
  8559. ;
  8560. return 0;
  8561. }
  8562. _ACEOF
  8563. rm -f conftest.$ac_objext conftest$ac_exeext
  8564. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8565. (eval $ac_link) 2>conftest.er1
  8566. ac_status=$?
  8567. grep -v '^ *+' conftest.er1 >conftest.err
  8568. rm -f conftest.er1
  8569. cat conftest.err >&5
  8570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8571. (exit $ac_status); } &&
  8572. { ac_try='test -z "$ac_c_werror_flag"
  8573. || test ! -s conftest.err'
  8574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8575. (eval $ac_try) 2>&5
  8576. ac_status=$?
  8577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8578. (exit $ac_status); }; } &&
  8579. { ac_try='test -s conftest$ac_exeext'
  8580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8581. (eval $ac_try) 2>&5
  8582. ac_status=$?
  8583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8584. (exit $ac_status); }; }; then
  8585. ac_cv_lib_svld_dlopen=yes
  8586. else
  8587. echo "$as_me: failed program was:" >&5
  8588. sed 's/^/| /' conftest.$ac_ext >&5
  8589. ac_cv_lib_svld_dlopen=no
  8590. fi
  8591. rm -f conftest.err conftest.$ac_objext \
  8592. conftest$ac_exeext conftest.$ac_ext
  8593. LIBS=$ac_check_lib_save_LIBS
  8594. fi
  8595. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8596. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8597. if test $ac_cv_lib_svld_dlopen = yes; then
  8598. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8599. else
  8600. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8601. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8602. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8603. echo $ECHO_N "(cached) $ECHO_C" >&6
  8604. else
  8605. ac_check_lib_save_LIBS=$LIBS
  8606. LIBS="-ldld $LIBS"
  8607. cat >conftest.$ac_ext <<_ACEOF
  8608. /* confdefs.h. */
  8609. _ACEOF
  8610. cat confdefs.h >>conftest.$ac_ext
  8611. cat >>conftest.$ac_ext <<_ACEOF
  8612. /* end confdefs.h. */
  8613. /* Override any gcc2 internal prototype to avoid an error. */
  8614. #ifdef __cplusplus
  8615. extern "C"
  8616. #endif
  8617. /* We use char because int might match the return type of a gcc2
  8618. builtin and then its argument prototype would still apply. */
  8619. char dld_link ();
  8620. int
  8621. main ()
  8622. {
  8623. dld_link ();
  8624. ;
  8625. return 0;
  8626. }
  8627. _ACEOF
  8628. rm -f conftest.$ac_objext conftest$ac_exeext
  8629. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8630. (eval $ac_link) 2>conftest.er1
  8631. ac_status=$?
  8632. grep -v '^ *+' conftest.er1 >conftest.err
  8633. rm -f conftest.er1
  8634. cat conftest.err >&5
  8635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8636. (exit $ac_status); } &&
  8637. { ac_try='test -z "$ac_c_werror_flag"
  8638. || test ! -s conftest.err'
  8639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8640. (eval $ac_try) 2>&5
  8641. ac_status=$?
  8642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8643. (exit $ac_status); }; } &&
  8644. { ac_try='test -s conftest$ac_exeext'
  8645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8646. (eval $ac_try) 2>&5
  8647. ac_status=$?
  8648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8649. (exit $ac_status); }; }; then
  8650. ac_cv_lib_dld_dld_link=yes
  8651. else
  8652. echo "$as_me: failed program was:" >&5
  8653. sed 's/^/| /' conftest.$ac_ext >&5
  8654. ac_cv_lib_dld_dld_link=no
  8655. fi
  8656. rm -f conftest.err conftest.$ac_objext \
  8657. conftest$ac_exeext conftest.$ac_ext
  8658. LIBS=$ac_check_lib_save_LIBS
  8659. fi
  8660. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8661. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8662. if test $ac_cv_lib_dld_dld_link = yes; then
  8663. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8664. fi
  8665. fi
  8666. fi
  8667. fi
  8668. fi
  8669. fi
  8670. ;;
  8671. esac
  8672. if test "x$lt_cv_dlopen" != xno; then
  8673. enable_dlopen=yes
  8674. else
  8675. enable_dlopen=no
  8676. fi
  8677. case $lt_cv_dlopen in
  8678. dlopen)
  8679. save_CPPFLAGS="$CPPFLAGS"
  8680. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8681. save_LDFLAGS="$LDFLAGS"
  8682. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8683. save_LIBS="$LIBS"
  8684. LIBS="$lt_cv_dlopen_libs $LIBS"
  8685. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8686. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8687. if test "${lt_cv_dlopen_self+set}" = set; then
  8688. echo $ECHO_N "(cached) $ECHO_C" >&6
  8689. else
  8690. if test "$cross_compiling" = yes; then :
  8691. lt_cv_dlopen_self=cross
  8692. else
  8693. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8694. lt_status=$lt_dlunknown
  8695. cat > conftest.$ac_ext <<_LT_EOF
  8696. #line 10108 "configure"
  8697. #include "confdefs.h"
  8698. #if HAVE_DLFCN_H
  8699. #include <dlfcn.h>
  8700. #endif
  8701. #include <stdio.h>
  8702. #ifdef RTLD_GLOBAL
  8703. # define LT_DLGLOBAL RTLD_GLOBAL
  8704. #else
  8705. # ifdef DL_GLOBAL
  8706. # define LT_DLGLOBAL DL_GLOBAL
  8707. # else
  8708. # define LT_DLGLOBAL 0
  8709. # endif
  8710. #endif
  8711. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8712. find out it does not work in some platform. */
  8713. #ifndef LT_DLLAZY_OR_NOW
  8714. # ifdef RTLD_LAZY
  8715. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8716. # else
  8717. # ifdef DL_LAZY
  8718. # define LT_DLLAZY_OR_NOW DL_LAZY
  8719. # else
  8720. # ifdef RTLD_NOW
  8721. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8722. # else
  8723. # ifdef DL_NOW
  8724. # define LT_DLLAZY_OR_NOW DL_NOW
  8725. # else
  8726. # define LT_DLLAZY_OR_NOW 0
  8727. # endif
  8728. # endif
  8729. # endif
  8730. # endif
  8731. #endif
  8732. #ifdef __cplusplus
  8733. extern "C" void exit (int);
  8734. #endif
  8735. void fnord() { int i=42;}
  8736. int main ()
  8737. {
  8738. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8739. int status = $lt_dlunknown;
  8740. if (self)
  8741. {
  8742. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8743. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8744. /* dlclose (self); */
  8745. }
  8746. else
  8747. puts (dlerror ());
  8748. exit (status);
  8749. }
  8750. _LT_EOF
  8751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8752. (eval $ac_link) 2>&5
  8753. ac_status=$?
  8754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8755. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8756. (./conftest; exit; ) >&5 2>/dev/null
  8757. lt_status=$?
  8758. case x$lt_status in
  8759. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8760. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8761. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8762. esac
  8763. else :
  8764. # compilation failed
  8765. lt_cv_dlopen_self=no
  8766. fi
  8767. fi
  8768. rm -fr conftest*
  8769. fi
  8770. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8771. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8772. if test "x$lt_cv_dlopen_self" = xyes; then
  8773. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8774. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8775. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8776. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8777. echo $ECHO_N "(cached) $ECHO_C" >&6
  8778. else
  8779. if test "$cross_compiling" = yes; then :
  8780. lt_cv_dlopen_self_static=cross
  8781. else
  8782. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8783. lt_status=$lt_dlunknown
  8784. cat > conftest.$ac_ext <<_LT_EOF
  8785. #line 10208 "configure"
  8786. #include "confdefs.h"
  8787. #if HAVE_DLFCN_H
  8788. #include <dlfcn.h>
  8789. #endif
  8790. #include <stdio.h>
  8791. #ifdef RTLD_GLOBAL
  8792. # define LT_DLGLOBAL RTLD_GLOBAL
  8793. #else
  8794. # ifdef DL_GLOBAL
  8795. # define LT_DLGLOBAL DL_GLOBAL
  8796. # else
  8797. # define LT_DLGLOBAL 0
  8798. # endif
  8799. #endif
  8800. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8801. find out it does not work in some platform. */
  8802. #ifndef LT_DLLAZY_OR_NOW
  8803. # ifdef RTLD_LAZY
  8804. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8805. # else
  8806. # ifdef DL_LAZY
  8807. # define LT_DLLAZY_OR_NOW DL_LAZY
  8808. # else
  8809. # ifdef RTLD_NOW
  8810. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8811. # else
  8812. # ifdef DL_NOW
  8813. # define LT_DLLAZY_OR_NOW DL_NOW
  8814. # else
  8815. # define LT_DLLAZY_OR_NOW 0
  8816. # endif
  8817. # endif
  8818. # endif
  8819. # endif
  8820. #endif
  8821. #ifdef __cplusplus
  8822. extern "C" void exit (int);
  8823. #endif
  8824. void fnord() { int i=42;}
  8825. int main ()
  8826. {
  8827. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8828. int status = $lt_dlunknown;
  8829. if (self)
  8830. {
  8831. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8832. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8833. /* dlclose (self); */
  8834. }
  8835. else
  8836. puts (dlerror ());
  8837. exit (status);
  8838. }
  8839. _LT_EOF
  8840. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8841. (eval $ac_link) 2>&5
  8842. ac_status=$?
  8843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8844. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8845. (./conftest; exit; ) >&5 2>/dev/null
  8846. lt_status=$?
  8847. case x$lt_status in
  8848. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8849. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8850. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8851. esac
  8852. else :
  8853. # compilation failed
  8854. lt_cv_dlopen_self_static=no
  8855. fi
  8856. fi
  8857. rm -fr conftest*
  8858. fi
  8859. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8860. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8861. fi
  8862. CPPFLAGS="$save_CPPFLAGS"
  8863. LDFLAGS="$save_LDFLAGS"
  8864. LIBS="$save_LIBS"
  8865. ;;
  8866. esac
  8867. case $lt_cv_dlopen_self in
  8868. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8869. *) enable_dlopen_self=unknown ;;
  8870. esac
  8871. case $lt_cv_dlopen_self_static in
  8872. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8873. *) enable_dlopen_self_static=unknown ;;
  8874. esac
  8875. fi
  8876. striplib=
  8877. old_striplib=
  8878. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8879. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8880. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  8881. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8882. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8883. echo "$as_me:$LINENO: result: yes" >&5
  8884. echo "${ECHO_T}yes" >&6
  8885. else
  8886. # FIXME - insert some real tests, host_os isn't really good enough
  8887. case $host_os in
  8888. darwin*)
  8889. if test -n "$STRIP" ; then
  8890. striplib="$STRIP -x"
  8891. old_striplib="$STRIP -S"
  8892. echo "$as_me:$LINENO: result: yes" >&5
  8893. echo "${ECHO_T}yes" >&6
  8894. else
  8895. echo "$as_me:$LINENO: result: no" >&5
  8896. echo "${ECHO_T}no" >&6
  8897. fi
  8898. ;;
  8899. *)
  8900. echo "$as_me:$LINENO: result: no" >&5
  8901. echo "${ECHO_T}no" >&6
  8902. ;;
  8903. esac
  8904. fi
  8905. # Report which library types will actually be built
  8906. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8907. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8908. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8909. echo "${ECHO_T}$can_build_shared" >&6
  8910. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8911. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8912. test "$can_build_shared" = "no" && enable_shared=no
  8913. # On AIX, shared libraries and static libraries use the same namespace, and
  8914. # are all built from PIC.
  8915. case $host_os in
  8916. aix3*)
  8917. test "$enable_shared" = yes && enable_static=no
  8918. if test -n "$RANLIB"; then
  8919. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8920. postinstall_cmds='$RANLIB $lib'
  8921. fi
  8922. ;;
  8923. aix4* | aix5*)
  8924. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8925. test "$enable_shared" = yes && enable_static=no
  8926. fi
  8927. ;;
  8928. esac
  8929. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8930. echo "${ECHO_T}$enable_shared" >&6
  8931. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8932. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8933. # Make sure either enable_shared or enable_static is yes.
  8934. test "$enable_shared" = yes || enable_static=yes
  8935. echo "$as_me:$LINENO: result: $enable_static" >&5
  8936. echo "${ECHO_T}$enable_static" >&6
  8937. fi
  8938. ac_ext=c
  8939. ac_cpp='$CPP $CPPFLAGS'
  8940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8943. CC="$lt_save_CC"
  8944. ac_config_commands="$ac_config_commands libtool"
  8945. # Only expand once:
  8946. # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
  8947. if test "${enable_64_bit_bfd+set}" = set; then
  8948. enableval="$enable_64_bit_bfd"
  8949. case "${enableval}" in
  8950. yes) want64=true ;;
  8951. no) want64=false ;;
  8952. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
  8953. echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
  8954. { (exit 1); exit 1; }; } ;;
  8955. esac
  8956. else
  8957. want64=false
  8958. fi; # Check whether --enable-targets or --disable-targets was given.
  8959. if test "${enable_targets+set}" = set; then
  8960. enableval="$enable_targets"
  8961. case "${enableval}" in
  8962. yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
  8963. echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
  8964. { (exit 1); exit 1; }; }
  8965. ;;
  8966. no) enable_targets= ;;
  8967. *) enable_targets=$enableval ;;
  8968. esac
  8969. fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
  8970. if test "${enable_commonbfdlib+set}" = set; then
  8971. enableval="$enable_commonbfdlib"
  8972. case "${enableval}" in
  8973. yes) commonbfdlib=true ;;
  8974. no) commonbfdlib=false ;;
  8975. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
  8976. echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
  8977. { (exit 1); exit 1; }; } ;;
  8978. esac
  8979. fi;
  8980. # Check whether --with-mmap or --without-mmap was given.
  8981. if test "${with_mmap+set}" = set; then
  8982. withval="$with_mmap"
  8983. case "${withval}" in
  8984. yes) want_mmap=true ;;
  8985. no) want_mmap=false ;;
  8986. *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
  8987. echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
  8988. { (exit 1); exit 1; }; } ;;
  8989. esac
  8990. else
  8991. want_mmap=false
  8992. fi;
  8993. # Check whether --enable-secureplt or --disable-secureplt was given.
  8994. if test "${enable_secureplt+set}" = set; then
  8995. enableval="$enable_secureplt"
  8996. case "${enableval}" in
  8997. yes) use_secureplt=true ;;
  8998. no) use_secureplt=false ;;
  8999. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
  9000. echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
  9001. { (exit 1); exit 1; }; } ;;
  9002. esac
  9003. else
  9004. use_secureplt=false
  9005. fi; if test $use_secureplt = true; then
  9006. cat >>confdefs.h <<\_ACEOF
  9007. #define USE_SECUREPLT 1
  9008. _ACEOF
  9009. fi
  9010. DEBUGDIR=${libdir}/debug
  9011. # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
  9012. if test "${with_separate_debug_dir+set}" = set; then
  9013. withval="$with_separate_debug_dir"
  9014. DEBUGDIR="${withval}"
  9015. fi;
  9016. # Check whether --with-pkgversion or --without-pkgversion was given.
  9017. if test "${with_pkgversion+set}" = set; then
  9018. withval="$with_pkgversion"
  9019. case "$withval" in
  9020. yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
  9021. echo "$as_me: error: package version not specified" >&2;}
  9022. { (exit 1); exit 1; }; } ;;
  9023. no) PKGVERSION= ;;
  9024. *) PKGVERSION="($withval) " ;;
  9025. esac
  9026. else
  9027. PKGVERSION="(GNU Binutils) "
  9028. fi;
  9029. # Check whether --with-bugurl or --without-bugurl was given.
  9030. if test "${with_bugurl+set}" = set; then
  9031. withval="$with_bugurl"
  9032. case "$withval" in
  9033. yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
  9034. echo "$as_me: error: bug URL not specified" >&2;}
  9035. { (exit 1); exit 1; }; } ;;
  9036. no) BUGURL=
  9037. ;;
  9038. *) BUGURL="$withval"
  9039. ;;
  9040. esac
  9041. else
  9042. BUGURL="http://www.sourceware.org/bugzilla/"
  9043. fi;
  9044. case ${BUGURL} in
  9045. "")
  9046. REPORT_BUGS_TO=
  9047. REPORT_BUGS_TEXI=
  9048. ;;
  9049. *)
  9050. REPORT_BUGS_TO="<$BUGURL>"
  9051. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  9052. ;;
  9053. esac;
  9054. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  9055. # Check whether --enable-werror or --disable-werror was given.
  9056. if test "${enable_werror+set}" = set; then
  9057. enableval="$enable_werror"
  9058. case "${enableval}" in
  9059. yes | y) ERROR_ON_WARNING="yes" ;;
  9060. no | n) ERROR_ON_WARNING="no" ;;
  9061. *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
  9062. echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
  9063. { (exit 1); exit 1; }; } ;;
  9064. esac
  9065. fi;
  9066. # Enable -Werror by default when using gcc
  9067. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  9068. ERROR_ON_WARNING=yes
  9069. fi
  9070. NO_WERROR=
  9071. if test "${ERROR_ON_WARNING}" = yes ; then
  9072. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  9073. NO_WERROR="-Wno-error"
  9074. fi
  9075. if test "${GCC}" = yes ; then
  9076. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  9077. fi
  9078. # Check whether --enable-build-warnings or --disable-build-warnings was given.
  9079. if test "${enable_build_warnings+set}" = set; then
  9080. enableval="$enable_build_warnings"
  9081. case "${enableval}" in
  9082. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  9083. no) if test "${GCC}" = yes ; then
  9084. WARN_CFLAGS="-w"
  9085. fi;;
  9086. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9087. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  9088. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9089. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  9090. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  9091. esac
  9092. fi;
  9093. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  9094. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  9095. fi
  9096. ac_config_headers="$ac_config_headers config.h:config.in"
  9097. if test -z "$target" ; then
  9098. { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
  9099. echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
  9100. { (exit 1); exit 1; }; }
  9101. fi
  9102. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9103. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  9104. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  9105. if test "${enable_maintainer_mode+set}" = set; then
  9106. enableval="$enable_maintainer_mode"
  9107. USE_MAINTAINER_MODE=$enableval
  9108. else
  9109. USE_MAINTAINER_MODE=no
  9110. fi;
  9111. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  9112. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  9113. if test $USE_MAINTAINER_MODE = yes; then
  9114. MAINTAINER_MODE_TRUE=
  9115. MAINTAINER_MODE_FALSE='#'
  9116. else
  9117. MAINTAINER_MODE_TRUE='#'
  9118. MAINTAINER_MODE_FALSE=
  9119. fi
  9120. MAINT=$MAINTAINER_MODE_TRUE
  9121. if false; then
  9122. GENINSRC_NEVER_TRUE=
  9123. GENINSRC_NEVER_FALSE='#'
  9124. else
  9125. GENINSRC_NEVER_TRUE='#'
  9126. GENINSRC_NEVER_FALSE=
  9127. fi
  9128. case ${build_alias} in
  9129. "") build_noncanonical=${build} ;;
  9130. *) build_noncanonical=${build_alias} ;;
  9131. esac
  9132. case ${host_alias} in
  9133. "") host_noncanonical=${build_noncanonical} ;;
  9134. *) host_noncanonical=${host_alias} ;;
  9135. esac
  9136. case ${target_alias} in
  9137. "") target_noncanonical=${host_noncanonical} ;;
  9138. *) target_noncanonical=${target_alias} ;;
  9139. esac
  9140. echo "$as_me:$LINENO: checking whether to install libbfd" >&5
  9141. echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
  9142. # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
  9143. if test "${enable_install_libbfd+set}" = set; then
  9144. enableval="$enable_install_libbfd"
  9145. install_libbfd_p=$enableval
  9146. else
  9147. if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
  9148. install_libbfd_p=yes
  9149. else
  9150. install_libbfd_p=no
  9151. fi
  9152. fi;
  9153. echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
  9154. echo "${ECHO_T}$install_libbfd_p" >&6
  9155. if test $install_libbfd_p = yes; then
  9156. INSTALL_LIBBFD_TRUE=
  9157. INSTALL_LIBBFD_FALSE='#'
  9158. else
  9159. INSTALL_LIBBFD_TRUE='#'
  9160. INSTALL_LIBBFD_FALSE=
  9161. fi
  9162. # Need _noncanonical variables for this.
  9163. # libbfd.a is a host library containing target dependent code
  9164. bfdlibdir='$(libdir)'
  9165. bfdincludedir='$(includedir)'
  9166. if test "${host}" != "${target}"; then
  9167. bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
  9168. bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
  9169. fi
  9170. host64=false
  9171. target64=false
  9172. bfd_default_target_size=32
  9173. # host stuff:
  9174. ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
  9175. # If we haven't got the data from the intl directory,
  9176. # assume NLS is disabled.
  9177. USE_NLS=no
  9178. LIBINTL=
  9179. LIBINTL_DEP=
  9180. INCINTL=
  9181. XGETTEXT=
  9182. GMSGFMT=
  9183. POSUB=
  9184. if test -f ../intl/config.intl; then
  9185. . ../intl/config.intl
  9186. fi
  9187. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9188. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  9189. if test x"$USE_NLS" != xyes; then
  9190. echo "$as_me:$LINENO: result: no" >&5
  9191. echo "${ECHO_T}no" >&6
  9192. else
  9193. echo "$as_me:$LINENO: result: yes" >&5
  9194. echo "${ECHO_T}yes" >&6
  9195. cat >>confdefs.h <<\_ACEOF
  9196. #define ENABLE_NLS 1
  9197. _ACEOF
  9198. echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  9199. echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
  9200. # Look for .po and .gmo files in the source directory.
  9201. CATALOGS=
  9202. XLINGUAS=
  9203. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  9204. # If there aren't any .gmo files the shell will give us the
  9205. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  9206. # weeded out.
  9207. case "$cat" in *\**)
  9208. continue;;
  9209. esac
  9210. # The quadruple backslash is collapsed to a double backslash
  9211. # by the backticks, then collapsed again by the double quotes,
  9212. # leaving us with one backslash in the sed expression (right
  9213. # before the dot that mustn't act as a wildcard).
  9214. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  9215. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  9216. # The user is allowed to set LINGUAS to a list of languages to
  9217. # install catalogs for. If it's empty that means "all of them."
  9218. if test "x$LINGUAS" = x; then
  9219. CATALOGS="$CATALOGS $cat"
  9220. XLINGUAS="$XLINGUAS $lang"
  9221. else
  9222. case "$LINGUAS" in *$lang*)
  9223. CATALOGS="$CATALOGS $cat"
  9224. XLINGUAS="$XLINGUAS $lang"
  9225. ;;
  9226. esac
  9227. fi
  9228. done
  9229. LINGUAS="$XLINGUAS"
  9230. echo "$as_me:$LINENO: result: $LINGUAS" >&5
  9231. echo "${ECHO_T}$LINGUAS" >&6
  9232. DATADIRNAME=share
  9233. INSTOBJEXT=.mo
  9234. GENCAT=gencat
  9235. CATOBJEXT=.gmo
  9236. fi
  9237. MKINSTALLDIRS=
  9238. if test -n "$ac_aux_dir"; then
  9239. case "$ac_aux_dir" in
  9240. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  9241. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  9242. esac
  9243. fi
  9244. if test -z "$MKINSTALLDIRS"; then
  9245. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  9246. fi
  9247. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9248. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  9249. # Check whether --enable-nls or --disable-nls was given.
  9250. if test "${enable_nls+set}" = set; then
  9251. enableval="$enable_nls"
  9252. USE_NLS=$enableval
  9253. else
  9254. USE_NLS=yes
  9255. fi;
  9256. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9257. echo "${ECHO_T}$USE_NLS" >&6
  9258. # Prepare PATH_SEPARATOR.
  9259. # The user is always right.
  9260. if test "${PATH_SEPARATOR+set}" != set; then
  9261. echo "#! /bin/sh" >conf$$.sh
  9262. echo "exit 0" >>conf$$.sh
  9263. chmod +x conf$$.sh
  9264. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9265. PATH_SEPARATOR=';'
  9266. else
  9267. PATH_SEPARATOR=:
  9268. fi
  9269. rm -f conf$$.sh
  9270. fi
  9271. # Find out how to test for executable files. Don't use a zero-byte file,
  9272. # as systems may use methods other than mode bits to determine executability.
  9273. cat >conf$$.file <<_ASEOF
  9274. #! /bin/sh
  9275. exit 0
  9276. _ASEOF
  9277. chmod +x conf$$.file
  9278. if test -x conf$$.file >/dev/null 2>&1; then
  9279. ac_executable_p="test -x"
  9280. else
  9281. ac_executable_p="test -f"
  9282. fi
  9283. rm -f conf$$.file
  9284. # Extract the first word of "msgfmt", so it can be a program name with args.
  9285. set dummy msgfmt; ac_word=$2
  9286. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9287. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9288. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9289. echo $ECHO_N "(cached) $ECHO_C" >&6
  9290. else
  9291. case "$MSGFMT" in
  9292. [\\/]* | ?:[\\/]*)
  9293. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9294. ;;
  9295. *)
  9296. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9297. for ac_dir in $PATH; do
  9298. IFS="$ac_save_IFS"
  9299. test -z "$ac_dir" && ac_dir=.
  9300. for ac_exec_ext in '' $ac_executable_extensions; do
  9301. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9302. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  9303. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9304. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9305. break 2
  9306. fi
  9307. fi
  9308. done
  9309. done
  9310. IFS="$ac_save_IFS"
  9311. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9312. ;;
  9313. esac
  9314. fi
  9315. MSGFMT="$ac_cv_path_MSGFMT"
  9316. if test "$MSGFMT" != ":"; then
  9317. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9318. echo "${ECHO_T}$MSGFMT" >&6
  9319. else
  9320. echo "$as_me:$LINENO: result: no" >&5
  9321. echo "${ECHO_T}no" >&6
  9322. fi
  9323. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9324. set dummy gmsgfmt; ac_word=$2
  9325. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9326. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9327. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9328. echo $ECHO_N "(cached) $ECHO_C" >&6
  9329. else
  9330. case $GMSGFMT in
  9331. [\\/]* | ?:[\\/]*)
  9332. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9333. ;;
  9334. *)
  9335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9336. for as_dir in $PATH
  9337. do
  9338. IFS=$as_save_IFS
  9339. test -z "$as_dir" && as_dir=.
  9340. for ac_exec_ext in '' $ac_executable_extensions; do
  9341. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9342. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9343. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9344. break 2
  9345. fi
  9346. done
  9347. done
  9348. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9349. ;;
  9350. esac
  9351. fi
  9352. GMSGFMT=$ac_cv_path_GMSGFMT
  9353. if test -n "$GMSGFMT"; then
  9354. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9355. echo "${ECHO_T}$GMSGFMT" >&6
  9356. else
  9357. echo "$as_me:$LINENO: result: no" >&5
  9358. echo "${ECHO_T}no" >&6
  9359. fi
  9360. # Prepare PATH_SEPARATOR.
  9361. # The user is always right.
  9362. if test "${PATH_SEPARATOR+set}" != set; then
  9363. echo "#! /bin/sh" >conf$$.sh
  9364. echo "exit 0" >>conf$$.sh
  9365. chmod +x conf$$.sh
  9366. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9367. PATH_SEPARATOR=';'
  9368. else
  9369. PATH_SEPARATOR=:
  9370. fi
  9371. rm -f conf$$.sh
  9372. fi
  9373. # Find out how to test for executable files. Don't use a zero-byte file,
  9374. # as systems may use methods other than mode bits to determine executability.
  9375. cat >conf$$.file <<_ASEOF
  9376. #! /bin/sh
  9377. exit 0
  9378. _ASEOF
  9379. chmod +x conf$$.file
  9380. if test -x conf$$.file >/dev/null 2>&1; then
  9381. ac_executable_p="test -x"
  9382. else
  9383. ac_executable_p="test -f"
  9384. fi
  9385. rm -f conf$$.file
  9386. # Extract the first word of "xgettext", so it can be a program name with args.
  9387. set dummy xgettext; ac_word=$2
  9388. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9389. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9390. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9391. echo $ECHO_N "(cached) $ECHO_C" >&6
  9392. else
  9393. case "$XGETTEXT" in
  9394. [\\/]* | ?:[\\/]*)
  9395. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9396. ;;
  9397. *)
  9398. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9399. for ac_dir in $PATH; do
  9400. IFS="$ac_save_IFS"
  9401. test -z "$ac_dir" && ac_dir=.
  9402. for ac_exec_ext in '' $ac_executable_extensions; do
  9403. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9404. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  9405. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9406. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9407. break 2
  9408. fi
  9409. fi
  9410. done
  9411. done
  9412. IFS="$ac_save_IFS"
  9413. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9414. ;;
  9415. esac
  9416. fi
  9417. XGETTEXT="$ac_cv_path_XGETTEXT"
  9418. if test "$XGETTEXT" != ":"; then
  9419. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9420. echo "${ECHO_T}$XGETTEXT" >&6
  9421. else
  9422. echo "$as_me:$LINENO: result: no" >&5
  9423. echo "${ECHO_T}no" >&6
  9424. fi
  9425. rm -f messages.po
  9426. # Prepare PATH_SEPARATOR.
  9427. # The user is always right.
  9428. if test "${PATH_SEPARATOR+set}" != set; then
  9429. echo "#! /bin/sh" >conf$$.sh
  9430. echo "exit 0" >>conf$$.sh
  9431. chmod +x conf$$.sh
  9432. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9433. PATH_SEPARATOR=';'
  9434. else
  9435. PATH_SEPARATOR=:
  9436. fi
  9437. rm -f conf$$.sh
  9438. fi
  9439. # Find out how to test for executable files. Don't use a zero-byte file,
  9440. # as systems may use methods other than mode bits to determine executability.
  9441. cat >conf$$.file <<_ASEOF
  9442. #! /bin/sh
  9443. exit 0
  9444. _ASEOF
  9445. chmod +x conf$$.file
  9446. if test -x conf$$.file >/dev/null 2>&1; then
  9447. ac_executable_p="test -x"
  9448. else
  9449. ac_executable_p="test -f"
  9450. fi
  9451. rm -f conf$$.file
  9452. # Extract the first word of "msgmerge", so it can be a program name with args.
  9453. set dummy msgmerge; ac_word=$2
  9454. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9455. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9456. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9457. echo $ECHO_N "(cached) $ECHO_C" >&6
  9458. else
  9459. case "$MSGMERGE" in
  9460. [\\/]* | ?:[\\/]*)
  9461. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9462. ;;
  9463. *)
  9464. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9465. for ac_dir in $PATH; do
  9466. IFS="$ac_save_IFS"
  9467. test -z "$ac_dir" && ac_dir=.
  9468. for ac_exec_ext in '' $ac_executable_extensions; do
  9469. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9470. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  9471. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9472. break 2
  9473. fi
  9474. fi
  9475. done
  9476. done
  9477. IFS="$ac_save_IFS"
  9478. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9479. ;;
  9480. esac
  9481. fi
  9482. MSGMERGE="$ac_cv_path_MSGMERGE"
  9483. if test "$MSGMERGE" != ":"; then
  9484. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9485. echo "${ECHO_T}$MSGMERGE" >&6
  9486. else
  9487. echo "$as_me:$LINENO: result: no" >&5
  9488. echo "${ECHO_T}no" >&6
  9489. fi
  9490. if test "$GMSGFMT" != ":"; then
  9491. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  9492. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9493. : ;
  9494. else
  9495. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  9496. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  9497. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  9498. GMSGFMT=":"
  9499. fi
  9500. fi
  9501. if test "$XGETTEXT" != ":"; then
  9502. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  9503. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9504. : ;
  9505. else
  9506. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  9507. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  9508. XGETTEXT=":"
  9509. fi
  9510. rm -f messages.po
  9511. fi
  9512. ac_config_commands="$ac_config_commands default-1"
  9513. # Permit host specific settings.
  9514. . ${srcdir}/configure.host
  9515. # Find a good install program. We prefer a C program (faster),
  9516. # so one script is as good as another. But avoid the broken or
  9517. # incompatible versions:
  9518. # SysV /etc/install, /usr/sbin/install
  9519. # SunOS /usr/etc/install
  9520. # IRIX /sbin/install
  9521. # AIX /bin/install
  9522. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9523. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9524. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9525. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9526. # OS/2's system install, which has a completely different semantic
  9527. # ./install, which can be erroneously created by make from ./install.sh.
  9528. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  9529. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  9530. if test -z "$INSTALL"; then
  9531. if test "${ac_cv_path_install+set}" = set; then
  9532. echo $ECHO_N "(cached) $ECHO_C" >&6
  9533. else
  9534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9535. for as_dir in $PATH
  9536. do
  9537. IFS=$as_save_IFS
  9538. test -z "$as_dir" && as_dir=.
  9539. # Account for people who put trailing slashes in PATH elements.
  9540. case $as_dir/ in
  9541. ./ | .// | /cC/* | \
  9542. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9543. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  9544. /usr/ucb/* ) ;;
  9545. *)
  9546. # OSF1 and SCO ODT 3.0 have their own names for install.
  9547. # Don't use installbsd from OSF since it installs stuff as root
  9548. # by default.
  9549. for ac_prog in ginstall scoinst install; do
  9550. for ac_exec_ext in '' $ac_executable_extensions; do
  9551. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9552. if test $ac_prog = install &&
  9553. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9554. # AIX install. It has an incompatible calling convention.
  9555. :
  9556. elif test $ac_prog = install &&
  9557. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9558. # program-specific install script used by HP pwplus--don't use.
  9559. :
  9560. else
  9561. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9562. break 3
  9563. fi
  9564. fi
  9565. done
  9566. done
  9567. ;;
  9568. esac
  9569. done
  9570. fi
  9571. if test "${ac_cv_path_install+set}" = set; then
  9572. INSTALL=$ac_cv_path_install
  9573. else
  9574. # As a last resort, use the slow shell script. We don't cache a
  9575. # path for INSTALL within a source directory, because that will
  9576. # break other packages using the cache if that directory is
  9577. # removed, or if the path is relative.
  9578. INSTALL=$ac_install_sh
  9579. fi
  9580. fi
  9581. echo "$as_me:$LINENO: result: $INSTALL" >&5
  9582. echo "${ECHO_T}$INSTALL" >&6
  9583. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9584. # It thinks the first close brace ends the variable substitution.
  9585. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9586. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9587. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9588. BFD_HOST_64BIT_LONG=0
  9589. BFD_HOST_LONG_LONG=0
  9590. BFD_HOST_64_BIT_DEFINED=0
  9591. BFD_HOST_64_BIT=
  9592. BFD_HOST_U_64_BIT=
  9593. echo "$as_me:$LINENO: checking for long long" >&5
  9594. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  9595. if test "${bfd_cv_has_long_long+set}" = set; then
  9596. echo $ECHO_N "(cached) $ECHO_C" >&6
  9597. else
  9598. cat >conftest.$ac_ext <<_ACEOF
  9599. /* confdefs.h. */
  9600. _ACEOF
  9601. cat confdefs.h >>conftest.$ac_ext
  9602. cat >>conftest.$ac_ext <<_ACEOF
  9603. /* end confdefs.h. */
  9604. int
  9605. main ()
  9606. {
  9607. unsigned long long ll = 18446744073709551615ULL;
  9608. ;
  9609. return 0;
  9610. }
  9611. _ACEOF
  9612. rm -f conftest.$ac_objext
  9613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9614. (eval $ac_compile) 2>conftest.er1
  9615. ac_status=$?
  9616. grep -v '^ *+' conftest.er1 >conftest.err
  9617. rm -f conftest.er1
  9618. cat conftest.err >&5
  9619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9620. (exit $ac_status); } &&
  9621. { ac_try='test -z "$ac_c_werror_flag"
  9622. || test ! -s conftest.err'
  9623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9624. (eval $ac_try) 2>&5
  9625. ac_status=$?
  9626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9627. (exit $ac_status); }; } &&
  9628. { ac_try='test -s conftest.$ac_objext'
  9629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9630. (eval $ac_try) 2>&5
  9631. ac_status=$?
  9632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9633. (exit $ac_status); }; }; then
  9634. bfd_cv_has_long_long=yes
  9635. else
  9636. echo "$as_me: failed program was:" >&5
  9637. sed 's/^/| /' conftest.$ac_ext >&5
  9638. bfd_cv_has_long_long=no
  9639. fi
  9640. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9641. fi
  9642. echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
  9643. echo "${ECHO_T}$bfd_cv_has_long_long" >&6
  9644. if test $bfd_cv_has_long_long = yes; then
  9645. BFD_HOST_LONG_LONG=1
  9646. echo "$as_me:$LINENO: checking for long long" >&5
  9647. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  9648. if test "${ac_cv_type_long_long+set}" = set; then
  9649. echo $ECHO_N "(cached) $ECHO_C" >&6
  9650. else
  9651. cat >conftest.$ac_ext <<_ACEOF
  9652. /* confdefs.h. */
  9653. _ACEOF
  9654. cat confdefs.h >>conftest.$ac_ext
  9655. cat >>conftest.$ac_ext <<_ACEOF
  9656. /* end confdefs.h. */
  9657. $ac_includes_default
  9658. int
  9659. main ()
  9660. {
  9661. if ((long long *) 0)
  9662. return 0;
  9663. if (sizeof (long long))
  9664. return 0;
  9665. ;
  9666. return 0;
  9667. }
  9668. _ACEOF
  9669. rm -f conftest.$ac_objext
  9670. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9671. (eval $ac_compile) 2>conftest.er1
  9672. ac_status=$?
  9673. grep -v '^ *+' conftest.er1 >conftest.err
  9674. rm -f conftest.er1
  9675. cat conftest.err >&5
  9676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9677. (exit $ac_status); } &&
  9678. { ac_try='test -z "$ac_c_werror_flag"
  9679. || test ! -s conftest.err'
  9680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9681. (eval $ac_try) 2>&5
  9682. ac_status=$?
  9683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9684. (exit $ac_status); }; } &&
  9685. { ac_try='test -s conftest.$ac_objext'
  9686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9687. (eval $ac_try) 2>&5
  9688. ac_status=$?
  9689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9690. (exit $ac_status); }; }; then
  9691. ac_cv_type_long_long=yes
  9692. else
  9693. echo "$as_me: failed program was:" >&5
  9694. sed 's/^/| /' conftest.$ac_ext >&5
  9695. ac_cv_type_long_long=no
  9696. fi
  9697. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9698. fi
  9699. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  9700. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  9701. echo "$as_me:$LINENO: checking size of long long" >&5
  9702. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  9703. if test "${ac_cv_sizeof_long_long+set}" = set; then
  9704. echo $ECHO_N "(cached) $ECHO_C" >&6
  9705. else
  9706. if test "$ac_cv_type_long_long" = yes; then
  9707. # The cast to unsigned long works around a bug in the HP C Compiler
  9708. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  9709. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  9710. # This bug is HP SR number 8606223364.
  9711. if test "$cross_compiling" = yes; then
  9712. # Depending upon the size, compute the lo and hi bounds.
  9713. cat >conftest.$ac_ext <<_ACEOF
  9714. /* confdefs.h. */
  9715. _ACEOF
  9716. cat confdefs.h >>conftest.$ac_ext
  9717. cat >>conftest.$ac_ext <<_ACEOF
  9718. /* end confdefs.h. */
  9719. $ac_includes_default
  9720. int
  9721. main ()
  9722. {
  9723. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  9724. test_array [0] = 0
  9725. ;
  9726. return 0;
  9727. }
  9728. _ACEOF
  9729. rm -f conftest.$ac_objext
  9730. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9731. (eval $ac_compile) 2>conftest.er1
  9732. ac_status=$?
  9733. grep -v '^ *+' conftest.er1 >conftest.err
  9734. rm -f conftest.er1
  9735. cat conftest.err >&5
  9736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9737. (exit $ac_status); } &&
  9738. { ac_try='test -z "$ac_c_werror_flag"
  9739. || test ! -s conftest.err'
  9740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9741. (eval $ac_try) 2>&5
  9742. ac_status=$?
  9743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); }; } &&
  9745. { ac_try='test -s conftest.$ac_objext'
  9746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9747. (eval $ac_try) 2>&5
  9748. ac_status=$?
  9749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9750. (exit $ac_status); }; }; then
  9751. ac_lo=0 ac_mid=0
  9752. while :; do
  9753. cat >conftest.$ac_ext <<_ACEOF
  9754. /* confdefs.h. */
  9755. _ACEOF
  9756. cat confdefs.h >>conftest.$ac_ext
  9757. cat >>conftest.$ac_ext <<_ACEOF
  9758. /* end confdefs.h. */
  9759. $ac_includes_default
  9760. int
  9761. main ()
  9762. {
  9763. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  9764. test_array [0] = 0
  9765. ;
  9766. return 0;
  9767. }
  9768. _ACEOF
  9769. rm -f conftest.$ac_objext
  9770. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9771. (eval $ac_compile) 2>conftest.er1
  9772. ac_status=$?
  9773. grep -v '^ *+' conftest.er1 >conftest.err
  9774. rm -f conftest.er1
  9775. cat conftest.err >&5
  9776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9777. (exit $ac_status); } &&
  9778. { ac_try='test -z "$ac_c_werror_flag"
  9779. || test ! -s conftest.err'
  9780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9781. (eval $ac_try) 2>&5
  9782. ac_status=$?
  9783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9784. (exit $ac_status); }; } &&
  9785. { ac_try='test -s conftest.$ac_objext'
  9786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9787. (eval $ac_try) 2>&5
  9788. ac_status=$?
  9789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9790. (exit $ac_status); }; }; then
  9791. ac_hi=$ac_mid; break
  9792. else
  9793. echo "$as_me: failed program was:" >&5
  9794. sed 's/^/| /' conftest.$ac_ext >&5
  9795. ac_lo=`expr $ac_mid + 1`
  9796. if test $ac_lo -le $ac_mid; then
  9797. ac_lo= ac_hi=
  9798. break
  9799. fi
  9800. ac_mid=`expr 2 '*' $ac_mid + 1`
  9801. fi
  9802. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9803. done
  9804. else
  9805. echo "$as_me: failed program was:" >&5
  9806. sed 's/^/| /' conftest.$ac_ext >&5
  9807. cat >conftest.$ac_ext <<_ACEOF
  9808. /* confdefs.h. */
  9809. _ACEOF
  9810. cat confdefs.h >>conftest.$ac_ext
  9811. cat >>conftest.$ac_ext <<_ACEOF
  9812. /* end confdefs.h. */
  9813. $ac_includes_default
  9814. int
  9815. main ()
  9816. {
  9817. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  9818. test_array [0] = 0
  9819. ;
  9820. return 0;
  9821. }
  9822. _ACEOF
  9823. rm -f conftest.$ac_objext
  9824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9825. (eval $ac_compile) 2>conftest.er1
  9826. ac_status=$?
  9827. grep -v '^ *+' conftest.er1 >conftest.err
  9828. rm -f conftest.er1
  9829. cat conftest.err >&5
  9830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9831. (exit $ac_status); } &&
  9832. { ac_try='test -z "$ac_c_werror_flag"
  9833. || test ! -s conftest.err'
  9834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9835. (eval $ac_try) 2>&5
  9836. ac_status=$?
  9837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9838. (exit $ac_status); }; } &&
  9839. { ac_try='test -s conftest.$ac_objext'
  9840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9841. (eval $ac_try) 2>&5
  9842. ac_status=$?
  9843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9844. (exit $ac_status); }; }; then
  9845. ac_hi=-1 ac_mid=-1
  9846. while :; do
  9847. cat >conftest.$ac_ext <<_ACEOF
  9848. /* confdefs.h. */
  9849. _ACEOF
  9850. cat confdefs.h >>conftest.$ac_ext
  9851. cat >>conftest.$ac_ext <<_ACEOF
  9852. /* end confdefs.h. */
  9853. $ac_includes_default
  9854. int
  9855. main ()
  9856. {
  9857. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  9858. test_array [0] = 0
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. rm -f conftest.$ac_objext
  9864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9865. (eval $ac_compile) 2>conftest.er1
  9866. ac_status=$?
  9867. grep -v '^ *+' conftest.er1 >conftest.err
  9868. rm -f conftest.er1
  9869. cat conftest.err >&5
  9870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9871. (exit $ac_status); } &&
  9872. { ac_try='test -z "$ac_c_werror_flag"
  9873. || test ! -s conftest.err'
  9874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9875. (eval $ac_try) 2>&5
  9876. ac_status=$?
  9877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9878. (exit $ac_status); }; } &&
  9879. { ac_try='test -s conftest.$ac_objext'
  9880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9881. (eval $ac_try) 2>&5
  9882. ac_status=$?
  9883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9884. (exit $ac_status); }; }; then
  9885. ac_lo=$ac_mid; break
  9886. else
  9887. echo "$as_me: failed program was:" >&5
  9888. sed 's/^/| /' conftest.$ac_ext >&5
  9889. ac_hi=`expr '(' $ac_mid ')' - 1`
  9890. if test $ac_mid -le $ac_hi; then
  9891. ac_lo= ac_hi=
  9892. break
  9893. fi
  9894. ac_mid=`expr 2 '*' $ac_mid`
  9895. fi
  9896. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9897. done
  9898. else
  9899. echo "$as_me: failed program was:" >&5
  9900. sed 's/^/| /' conftest.$ac_ext >&5
  9901. ac_lo= ac_hi=
  9902. fi
  9903. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9904. fi
  9905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9906. # Binary search between lo and hi bounds.
  9907. while test "x$ac_lo" != "x$ac_hi"; do
  9908. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9909. cat >conftest.$ac_ext <<_ACEOF
  9910. /* confdefs.h. */
  9911. _ACEOF
  9912. cat confdefs.h >>conftest.$ac_ext
  9913. cat >>conftest.$ac_ext <<_ACEOF
  9914. /* end confdefs.h. */
  9915. $ac_includes_default
  9916. int
  9917. main ()
  9918. {
  9919. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  9920. test_array [0] = 0
  9921. ;
  9922. return 0;
  9923. }
  9924. _ACEOF
  9925. rm -f conftest.$ac_objext
  9926. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9927. (eval $ac_compile) 2>conftest.er1
  9928. ac_status=$?
  9929. grep -v '^ *+' conftest.er1 >conftest.err
  9930. rm -f conftest.er1
  9931. cat conftest.err >&5
  9932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9933. (exit $ac_status); } &&
  9934. { ac_try='test -z "$ac_c_werror_flag"
  9935. || test ! -s conftest.err'
  9936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9937. (eval $ac_try) 2>&5
  9938. ac_status=$?
  9939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9940. (exit $ac_status); }; } &&
  9941. { ac_try='test -s conftest.$ac_objext'
  9942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9943. (eval $ac_try) 2>&5
  9944. ac_status=$?
  9945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9946. (exit $ac_status); }; }; then
  9947. ac_hi=$ac_mid
  9948. else
  9949. echo "$as_me: failed program was:" >&5
  9950. sed 's/^/| /' conftest.$ac_ext >&5
  9951. ac_lo=`expr '(' $ac_mid ')' + 1`
  9952. fi
  9953. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9954. done
  9955. case $ac_lo in
  9956. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  9957. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  9958. See \`config.log' for more details." >&5
  9959. echo "$as_me: error: cannot compute sizeof (long long), 77
  9960. See \`config.log' for more details." >&2;}
  9961. { (exit 1); exit 1; }; } ;;
  9962. esac
  9963. else
  9964. if test "$cross_compiling" = yes; then
  9965. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  9966. See \`config.log' for more details." >&5
  9967. echo "$as_me: error: cannot run test program while cross compiling
  9968. See \`config.log' for more details." >&2;}
  9969. { (exit 1); exit 1; }; }
  9970. else
  9971. cat >conftest.$ac_ext <<_ACEOF
  9972. /* confdefs.h. */
  9973. _ACEOF
  9974. cat confdefs.h >>conftest.$ac_ext
  9975. cat >>conftest.$ac_ext <<_ACEOF
  9976. /* end confdefs.h. */
  9977. $ac_includes_default
  9978. long longval () { return (long) (sizeof (long long)); }
  9979. unsigned long ulongval () { return (long) (sizeof (long long)); }
  9980. #include <stdio.h>
  9981. #include <stdlib.h>
  9982. int
  9983. main ()
  9984. {
  9985. FILE *f = fopen ("conftest.val", "w");
  9986. if (! f)
  9987. exit (1);
  9988. if (((long) (sizeof (long long))) < 0)
  9989. {
  9990. long i = longval ();
  9991. if (i != ((long) (sizeof (long long))))
  9992. exit (1);
  9993. fprintf (f, "%ld\n", i);
  9994. }
  9995. else
  9996. {
  9997. unsigned long i = ulongval ();
  9998. if (i != ((long) (sizeof (long long))))
  9999. exit (1);
  10000. fprintf (f, "%lu\n", i);
  10001. }
  10002. exit (ferror (f) || fclose (f) != 0);
  10003. ;
  10004. return 0;
  10005. }
  10006. _ACEOF
  10007. rm -f conftest$ac_exeext
  10008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10009. (eval $ac_link) 2>&5
  10010. ac_status=$?
  10011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10012. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10014. (eval $ac_try) 2>&5
  10015. ac_status=$?
  10016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10017. (exit $ac_status); }; }; then
  10018. ac_cv_sizeof_long_long=`cat conftest.val`
  10019. else
  10020. echo "$as_me: program exited with status $ac_status" >&5
  10021. echo "$as_me: failed program was:" >&5
  10022. sed 's/^/| /' conftest.$ac_ext >&5
  10023. ( exit $ac_status )
  10024. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  10025. See \`config.log' for more details." >&5
  10026. echo "$as_me: error: cannot compute sizeof (long long), 77
  10027. See \`config.log' for more details." >&2;}
  10028. { (exit 1); exit 1; }; }
  10029. fi
  10030. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10031. fi
  10032. fi
  10033. rm -f conftest.val
  10034. else
  10035. ac_cv_sizeof_long_long=0
  10036. fi
  10037. fi
  10038. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  10039. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  10040. cat >>confdefs.h <<_ACEOF
  10041. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10042. _ACEOF
  10043. fi
  10044. echo "$as_me:$LINENO: checking for long" >&5
  10045. echo $ECHO_N "checking for long... $ECHO_C" >&6
  10046. if test "${ac_cv_type_long+set}" = set; then
  10047. echo $ECHO_N "(cached) $ECHO_C" >&6
  10048. else
  10049. cat >conftest.$ac_ext <<_ACEOF
  10050. /* confdefs.h. */
  10051. _ACEOF
  10052. cat confdefs.h >>conftest.$ac_ext
  10053. cat >>conftest.$ac_ext <<_ACEOF
  10054. /* end confdefs.h. */
  10055. $ac_includes_default
  10056. int
  10057. main ()
  10058. {
  10059. if ((long *) 0)
  10060. return 0;
  10061. if (sizeof (long))
  10062. return 0;
  10063. ;
  10064. return 0;
  10065. }
  10066. _ACEOF
  10067. rm -f conftest.$ac_objext
  10068. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10069. (eval $ac_compile) 2>conftest.er1
  10070. ac_status=$?
  10071. grep -v '^ *+' conftest.er1 >conftest.err
  10072. rm -f conftest.er1
  10073. cat conftest.err >&5
  10074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10075. (exit $ac_status); } &&
  10076. { ac_try='test -z "$ac_c_werror_flag"
  10077. || test ! -s conftest.err'
  10078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10079. (eval $ac_try) 2>&5
  10080. ac_status=$?
  10081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10082. (exit $ac_status); }; } &&
  10083. { ac_try='test -s conftest.$ac_objext'
  10084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10085. (eval $ac_try) 2>&5
  10086. ac_status=$?
  10087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10088. (exit $ac_status); }; }; then
  10089. ac_cv_type_long=yes
  10090. else
  10091. echo "$as_me: failed program was:" >&5
  10092. sed 's/^/| /' conftest.$ac_ext >&5
  10093. ac_cv_type_long=no
  10094. fi
  10095. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10096. fi
  10097. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  10098. echo "${ECHO_T}$ac_cv_type_long" >&6
  10099. echo "$as_me:$LINENO: checking size of long" >&5
  10100. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  10101. if test "${ac_cv_sizeof_long+set}" = set; then
  10102. echo $ECHO_N "(cached) $ECHO_C" >&6
  10103. else
  10104. if test "$ac_cv_type_long" = yes; then
  10105. # The cast to unsigned long works around a bug in the HP C Compiler
  10106. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10107. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10108. # This bug is HP SR number 8606223364.
  10109. if test "$cross_compiling" = yes; then
  10110. # Depending upon the size, compute the lo and hi bounds.
  10111. cat >conftest.$ac_ext <<_ACEOF
  10112. /* confdefs.h. */
  10113. _ACEOF
  10114. cat confdefs.h >>conftest.$ac_ext
  10115. cat >>conftest.$ac_ext <<_ACEOF
  10116. /* end confdefs.h. */
  10117. $ac_includes_default
  10118. int
  10119. main ()
  10120. {
  10121. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  10122. test_array [0] = 0
  10123. ;
  10124. return 0;
  10125. }
  10126. _ACEOF
  10127. rm -f conftest.$ac_objext
  10128. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10129. (eval $ac_compile) 2>conftest.er1
  10130. ac_status=$?
  10131. grep -v '^ *+' conftest.er1 >conftest.err
  10132. rm -f conftest.er1
  10133. cat conftest.err >&5
  10134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10135. (exit $ac_status); } &&
  10136. { ac_try='test -z "$ac_c_werror_flag"
  10137. || test ! -s conftest.err'
  10138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10139. (eval $ac_try) 2>&5
  10140. ac_status=$?
  10141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10142. (exit $ac_status); }; } &&
  10143. { ac_try='test -s conftest.$ac_objext'
  10144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10145. (eval $ac_try) 2>&5
  10146. ac_status=$?
  10147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10148. (exit $ac_status); }; }; then
  10149. ac_lo=0 ac_mid=0
  10150. while :; do
  10151. cat >conftest.$ac_ext <<_ACEOF
  10152. /* confdefs.h. */
  10153. _ACEOF
  10154. cat confdefs.h >>conftest.$ac_ext
  10155. cat >>conftest.$ac_ext <<_ACEOF
  10156. /* end confdefs.h. */
  10157. $ac_includes_default
  10158. int
  10159. main ()
  10160. {
  10161. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  10162. test_array [0] = 0
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. rm -f conftest.$ac_objext
  10168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10169. (eval $ac_compile) 2>conftest.er1
  10170. ac_status=$?
  10171. grep -v '^ *+' conftest.er1 >conftest.err
  10172. rm -f conftest.er1
  10173. cat conftest.err >&5
  10174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10175. (exit $ac_status); } &&
  10176. { ac_try='test -z "$ac_c_werror_flag"
  10177. || test ! -s conftest.err'
  10178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10179. (eval $ac_try) 2>&5
  10180. ac_status=$?
  10181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10182. (exit $ac_status); }; } &&
  10183. { ac_try='test -s conftest.$ac_objext'
  10184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10185. (eval $ac_try) 2>&5
  10186. ac_status=$?
  10187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10188. (exit $ac_status); }; }; then
  10189. ac_hi=$ac_mid; break
  10190. else
  10191. echo "$as_me: failed program was:" >&5
  10192. sed 's/^/| /' conftest.$ac_ext >&5
  10193. ac_lo=`expr $ac_mid + 1`
  10194. if test $ac_lo -le $ac_mid; then
  10195. ac_lo= ac_hi=
  10196. break
  10197. fi
  10198. ac_mid=`expr 2 '*' $ac_mid + 1`
  10199. fi
  10200. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. done
  10202. else
  10203. echo "$as_me: failed program was:" >&5
  10204. sed 's/^/| /' conftest.$ac_ext >&5
  10205. cat >conftest.$ac_ext <<_ACEOF
  10206. /* confdefs.h. */
  10207. _ACEOF
  10208. cat confdefs.h >>conftest.$ac_ext
  10209. cat >>conftest.$ac_ext <<_ACEOF
  10210. /* end confdefs.h. */
  10211. $ac_includes_default
  10212. int
  10213. main ()
  10214. {
  10215. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  10216. test_array [0] = 0
  10217. ;
  10218. return 0;
  10219. }
  10220. _ACEOF
  10221. rm -f conftest.$ac_objext
  10222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10223. (eval $ac_compile) 2>conftest.er1
  10224. ac_status=$?
  10225. grep -v '^ *+' conftest.er1 >conftest.err
  10226. rm -f conftest.er1
  10227. cat conftest.err >&5
  10228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10229. (exit $ac_status); } &&
  10230. { ac_try='test -z "$ac_c_werror_flag"
  10231. || test ! -s conftest.err'
  10232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10233. (eval $ac_try) 2>&5
  10234. ac_status=$?
  10235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10236. (exit $ac_status); }; } &&
  10237. { ac_try='test -s conftest.$ac_objext'
  10238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10239. (eval $ac_try) 2>&5
  10240. ac_status=$?
  10241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10242. (exit $ac_status); }; }; then
  10243. ac_hi=-1 ac_mid=-1
  10244. while :; do
  10245. cat >conftest.$ac_ext <<_ACEOF
  10246. /* confdefs.h. */
  10247. _ACEOF
  10248. cat confdefs.h >>conftest.$ac_ext
  10249. cat >>conftest.$ac_ext <<_ACEOF
  10250. /* end confdefs.h. */
  10251. $ac_includes_default
  10252. int
  10253. main ()
  10254. {
  10255. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  10256. test_array [0] = 0
  10257. ;
  10258. return 0;
  10259. }
  10260. _ACEOF
  10261. rm -f conftest.$ac_objext
  10262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10263. (eval $ac_compile) 2>conftest.er1
  10264. ac_status=$?
  10265. grep -v '^ *+' conftest.er1 >conftest.err
  10266. rm -f conftest.er1
  10267. cat conftest.err >&5
  10268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10269. (exit $ac_status); } &&
  10270. { ac_try='test -z "$ac_c_werror_flag"
  10271. || test ! -s conftest.err'
  10272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10273. (eval $ac_try) 2>&5
  10274. ac_status=$?
  10275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10276. (exit $ac_status); }; } &&
  10277. { ac_try='test -s conftest.$ac_objext'
  10278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10279. (eval $ac_try) 2>&5
  10280. ac_status=$?
  10281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10282. (exit $ac_status); }; }; then
  10283. ac_lo=$ac_mid; break
  10284. else
  10285. echo "$as_me: failed program was:" >&5
  10286. sed 's/^/| /' conftest.$ac_ext >&5
  10287. ac_hi=`expr '(' $ac_mid ')' - 1`
  10288. if test $ac_mid -le $ac_hi; then
  10289. ac_lo= ac_hi=
  10290. break
  10291. fi
  10292. ac_mid=`expr 2 '*' $ac_mid`
  10293. fi
  10294. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10295. done
  10296. else
  10297. echo "$as_me: failed program was:" >&5
  10298. sed 's/^/| /' conftest.$ac_ext >&5
  10299. ac_lo= ac_hi=
  10300. fi
  10301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10302. fi
  10303. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10304. # Binary search between lo and hi bounds.
  10305. while test "x$ac_lo" != "x$ac_hi"; do
  10306. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10307. cat >conftest.$ac_ext <<_ACEOF
  10308. /* confdefs.h. */
  10309. _ACEOF
  10310. cat confdefs.h >>conftest.$ac_ext
  10311. cat >>conftest.$ac_ext <<_ACEOF
  10312. /* end confdefs.h. */
  10313. $ac_includes_default
  10314. int
  10315. main ()
  10316. {
  10317. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  10318. test_array [0] = 0
  10319. ;
  10320. return 0;
  10321. }
  10322. _ACEOF
  10323. rm -f conftest.$ac_objext
  10324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10325. (eval $ac_compile) 2>conftest.er1
  10326. ac_status=$?
  10327. grep -v '^ *+' conftest.er1 >conftest.err
  10328. rm -f conftest.er1
  10329. cat conftest.err >&5
  10330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10331. (exit $ac_status); } &&
  10332. { ac_try='test -z "$ac_c_werror_flag"
  10333. || test ! -s conftest.err'
  10334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10335. (eval $ac_try) 2>&5
  10336. ac_status=$?
  10337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10338. (exit $ac_status); }; } &&
  10339. { ac_try='test -s conftest.$ac_objext'
  10340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10341. (eval $ac_try) 2>&5
  10342. ac_status=$?
  10343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10344. (exit $ac_status); }; }; then
  10345. ac_hi=$ac_mid
  10346. else
  10347. echo "$as_me: failed program was:" >&5
  10348. sed 's/^/| /' conftest.$ac_ext >&5
  10349. ac_lo=`expr '(' $ac_mid ')' + 1`
  10350. fi
  10351. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10352. done
  10353. case $ac_lo in
  10354. ?*) ac_cv_sizeof_long=$ac_lo;;
  10355. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  10356. See \`config.log' for more details." >&5
  10357. echo "$as_me: error: cannot compute sizeof (long), 77
  10358. See \`config.log' for more details." >&2;}
  10359. { (exit 1); exit 1; }; } ;;
  10360. esac
  10361. else
  10362. if test "$cross_compiling" = yes; then
  10363. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10364. See \`config.log' for more details." >&5
  10365. echo "$as_me: error: cannot run test program while cross compiling
  10366. See \`config.log' for more details." >&2;}
  10367. { (exit 1); exit 1; }; }
  10368. else
  10369. cat >conftest.$ac_ext <<_ACEOF
  10370. /* confdefs.h. */
  10371. _ACEOF
  10372. cat confdefs.h >>conftest.$ac_ext
  10373. cat >>conftest.$ac_ext <<_ACEOF
  10374. /* end confdefs.h. */
  10375. $ac_includes_default
  10376. long longval () { return (long) (sizeof (long)); }
  10377. unsigned long ulongval () { return (long) (sizeof (long)); }
  10378. #include <stdio.h>
  10379. #include <stdlib.h>
  10380. int
  10381. main ()
  10382. {
  10383. FILE *f = fopen ("conftest.val", "w");
  10384. if (! f)
  10385. exit (1);
  10386. if (((long) (sizeof (long))) < 0)
  10387. {
  10388. long i = longval ();
  10389. if (i != ((long) (sizeof (long))))
  10390. exit (1);
  10391. fprintf (f, "%ld\n", i);
  10392. }
  10393. else
  10394. {
  10395. unsigned long i = ulongval ();
  10396. if (i != ((long) (sizeof (long))))
  10397. exit (1);
  10398. fprintf (f, "%lu\n", i);
  10399. }
  10400. exit (ferror (f) || fclose (f) != 0);
  10401. ;
  10402. return 0;
  10403. }
  10404. _ACEOF
  10405. rm -f conftest$ac_exeext
  10406. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10407. (eval $ac_link) 2>&5
  10408. ac_status=$?
  10409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10410. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10412. (eval $ac_try) 2>&5
  10413. ac_status=$?
  10414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. (exit $ac_status); }; }; then
  10416. ac_cv_sizeof_long=`cat conftest.val`
  10417. else
  10418. echo "$as_me: program exited with status $ac_status" >&5
  10419. echo "$as_me: failed program was:" >&5
  10420. sed 's/^/| /' conftest.$ac_ext >&5
  10421. ( exit $ac_status )
  10422. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  10423. See \`config.log' for more details." >&5
  10424. echo "$as_me: error: cannot compute sizeof (long), 77
  10425. See \`config.log' for more details." >&2;}
  10426. { (exit 1); exit 1; }; }
  10427. fi
  10428. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10429. fi
  10430. fi
  10431. rm -f conftest.val
  10432. else
  10433. ac_cv_sizeof_long=0
  10434. fi
  10435. fi
  10436. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  10437. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  10438. cat >>confdefs.h <<_ACEOF
  10439. #define SIZEOF_LONG $ac_cv_sizeof_long
  10440. _ACEOF
  10441. if test "x${ac_cv_sizeof_long}" = "x8"; then
  10442. host64=true
  10443. BFD_HOST_64BIT_LONG=1
  10444. test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
  10445. test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
  10446. elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
  10447. test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
  10448. test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
  10449. fi
  10450. if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
  10451. BFD_HOST_64_BIT_DEFINED=1
  10452. BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
  10453. BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
  10454. fi
  10455. # Put a plausible default for CC_FOR_BUILD in Makefile.
  10456. if test -z "$CC_FOR_BUILD"; then
  10457. if test "x$cross_compiling" = "xno"; then
  10458. CC_FOR_BUILD='$(CC)'
  10459. else
  10460. CC_FOR_BUILD=gcc
  10461. fi
  10462. fi
  10463. # Also set EXEEXT_FOR_BUILD.
  10464. if test "x$cross_compiling" = "xno"; then
  10465. EXEEXT_FOR_BUILD='$(EXEEXT)'
  10466. else
  10467. echo "$as_me:$LINENO: checking for build system executable suffix" >&5
  10468. echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
  10469. if test "${bfd_cv_build_exeext+set}" = set; then
  10470. echo $ECHO_N "(cached) $ECHO_C" >&6
  10471. else
  10472. rm -f conftest*
  10473. echo 'int main () { return 0; }' > conftest.c
  10474. bfd_cv_build_exeext=
  10475. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  10476. for file in conftest.*; do
  10477. case $file in
  10478. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  10479. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  10480. esac
  10481. done
  10482. rm -f conftest*
  10483. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  10484. fi
  10485. echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
  10486. echo "${ECHO_T}$bfd_cv_build_exeext" >&6
  10487. EXEEXT_FOR_BUILD=""
  10488. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  10489. fi
  10490. for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
  10491. do
  10492. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10493. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10494. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10495. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10496. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10497. echo $ECHO_N "(cached) $ECHO_C" >&6
  10498. fi
  10499. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10500. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10501. else
  10502. # Is the header compilable?
  10503. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10504. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10505. cat >conftest.$ac_ext <<_ACEOF
  10506. /* confdefs.h. */
  10507. _ACEOF
  10508. cat confdefs.h >>conftest.$ac_ext
  10509. cat >>conftest.$ac_ext <<_ACEOF
  10510. /* end confdefs.h. */
  10511. $ac_includes_default
  10512. #include <$ac_header>
  10513. _ACEOF
  10514. rm -f conftest.$ac_objext
  10515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10516. (eval $ac_compile) 2>conftest.er1
  10517. ac_status=$?
  10518. grep -v '^ *+' conftest.er1 >conftest.err
  10519. rm -f conftest.er1
  10520. cat conftest.err >&5
  10521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10522. (exit $ac_status); } &&
  10523. { ac_try='test -z "$ac_c_werror_flag"
  10524. || test ! -s conftest.err'
  10525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10526. (eval $ac_try) 2>&5
  10527. ac_status=$?
  10528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10529. (exit $ac_status); }; } &&
  10530. { ac_try='test -s conftest.$ac_objext'
  10531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10532. (eval $ac_try) 2>&5
  10533. ac_status=$?
  10534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10535. (exit $ac_status); }; }; then
  10536. ac_header_compiler=yes
  10537. else
  10538. echo "$as_me: failed program was:" >&5
  10539. sed 's/^/| /' conftest.$ac_ext >&5
  10540. ac_header_compiler=no
  10541. fi
  10542. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10543. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10544. echo "${ECHO_T}$ac_header_compiler" >&6
  10545. # Is the header present?
  10546. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10547. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10548. cat >conftest.$ac_ext <<_ACEOF
  10549. /* confdefs.h. */
  10550. _ACEOF
  10551. cat confdefs.h >>conftest.$ac_ext
  10552. cat >>conftest.$ac_ext <<_ACEOF
  10553. /* end confdefs.h. */
  10554. #include <$ac_header>
  10555. _ACEOF
  10556. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10557. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10558. ac_status=$?
  10559. grep -v '^ *+' conftest.er1 >conftest.err
  10560. rm -f conftest.er1
  10561. cat conftest.err >&5
  10562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10563. (exit $ac_status); } >/dev/null; then
  10564. if test -s conftest.err; then
  10565. ac_cpp_err=$ac_c_preproc_warn_flag
  10566. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10567. else
  10568. ac_cpp_err=
  10569. fi
  10570. else
  10571. ac_cpp_err=yes
  10572. fi
  10573. if test -z "$ac_cpp_err"; then
  10574. ac_header_preproc=yes
  10575. else
  10576. echo "$as_me: failed program was:" >&5
  10577. sed 's/^/| /' conftest.$ac_ext >&5
  10578. ac_header_preproc=no
  10579. fi
  10580. rm -f conftest.err conftest.$ac_ext
  10581. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10582. echo "${ECHO_T}$ac_header_preproc" >&6
  10583. # So? What about this header?
  10584. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10585. yes:no: )
  10586. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10587. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10588. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10589. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10590. ac_header_preproc=yes
  10591. ;;
  10592. no:yes:* )
  10593. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10594. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10595. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10596. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10597. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10598. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10599. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10600. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10601. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10602. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10603. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10604. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10605. (
  10606. cat <<\_ASBOX
  10607. ## ------------------------------------------ ##
  10608. ## Report this to the AC_PACKAGE_NAME lists. ##
  10609. ## ------------------------------------------ ##
  10610. _ASBOX
  10611. ) |
  10612. sed "s/^/$as_me: WARNING: /" >&2
  10613. ;;
  10614. esac
  10615. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10616. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10617. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10618. echo $ECHO_N "(cached) $ECHO_C" >&6
  10619. else
  10620. eval "$as_ac_Header=\$ac_header_preproc"
  10621. fi
  10622. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10623. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10624. fi
  10625. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10626. cat >>confdefs.h <<_ACEOF
  10627. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10628. _ACEOF
  10629. fi
  10630. done
  10631. for ac_header in fcntl.h sys/file.h sys/time.h
  10632. do
  10633. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10634. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10635. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10636. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10637. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10638. echo $ECHO_N "(cached) $ECHO_C" >&6
  10639. fi
  10640. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10641. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10642. else
  10643. # Is the header compilable?
  10644. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10645. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10646. cat >conftest.$ac_ext <<_ACEOF
  10647. /* confdefs.h. */
  10648. _ACEOF
  10649. cat confdefs.h >>conftest.$ac_ext
  10650. cat >>conftest.$ac_ext <<_ACEOF
  10651. /* end confdefs.h. */
  10652. $ac_includes_default
  10653. #include <$ac_header>
  10654. _ACEOF
  10655. rm -f conftest.$ac_objext
  10656. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10657. (eval $ac_compile) 2>conftest.er1
  10658. ac_status=$?
  10659. grep -v '^ *+' conftest.er1 >conftest.err
  10660. rm -f conftest.er1
  10661. cat conftest.err >&5
  10662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10663. (exit $ac_status); } &&
  10664. { ac_try='test -z "$ac_c_werror_flag"
  10665. || test ! -s conftest.err'
  10666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10667. (eval $ac_try) 2>&5
  10668. ac_status=$?
  10669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10670. (exit $ac_status); }; } &&
  10671. { ac_try='test -s conftest.$ac_objext'
  10672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10673. (eval $ac_try) 2>&5
  10674. ac_status=$?
  10675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10676. (exit $ac_status); }; }; then
  10677. ac_header_compiler=yes
  10678. else
  10679. echo "$as_me: failed program was:" >&5
  10680. sed 's/^/| /' conftest.$ac_ext >&5
  10681. ac_header_compiler=no
  10682. fi
  10683. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10684. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10685. echo "${ECHO_T}$ac_header_compiler" >&6
  10686. # Is the header present?
  10687. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10688. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10689. cat >conftest.$ac_ext <<_ACEOF
  10690. /* confdefs.h. */
  10691. _ACEOF
  10692. cat confdefs.h >>conftest.$ac_ext
  10693. cat >>conftest.$ac_ext <<_ACEOF
  10694. /* end confdefs.h. */
  10695. #include <$ac_header>
  10696. _ACEOF
  10697. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10698. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10699. ac_status=$?
  10700. grep -v '^ *+' conftest.er1 >conftest.err
  10701. rm -f conftest.er1
  10702. cat conftest.err >&5
  10703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10704. (exit $ac_status); } >/dev/null; then
  10705. if test -s conftest.err; then
  10706. ac_cpp_err=$ac_c_preproc_warn_flag
  10707. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10708. else
  10709. ac_cpp_err=
  10710. fi
  10711. else
  10712. ac_cpp_err=yes
  10713. fi
  10714. if test -z "$ac_cpp_err"; then
  10715. ac_header_preproc=yes
  10716. else
  10717. echo "$as_me: failed program was:" >&5
  10718. sed 's/^/| /' conftest.$ac_ext >&5
  10719. ac_header_preproc=no
  10720. fi
  10721. rm -f conftest.err conftest.$ac_ext
  10722. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10723. echo "${ECHO_T}$ac_header_preproc" >&6
  10724. # So? What about this header?
  10725. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10726. yes:no: )
  10727. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10728. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10729. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10730. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10731. ac_header_preproc=yes
  10732. ;;
  10733. no:yes:* )
  10734. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10735. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10736. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10737. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10738. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10739. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10740. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10741. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10742. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10743. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10744. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10745. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10746. (
  10747. cat <<\_ASBOX
  10748. ## ------------------------------------------ ##
  10749. ## Report this to the AC_PACKAGE_NAME lists. ##
  10750. ## ------------------------------------------ ##
  10751. _ASBOX
  10752. ) |
  10753. sed "s/^/$as_me: WARNING: /" >&2
  10754. ;;
  10755. esac
  10756. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10757. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10758. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10759. echo $ECHO_N "(cached) $ECHO_C" >&6
  10760. else
  10761. eval "$as_ac_Header=\$ac_header_preproc"
  10762. fi
  10763. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10764. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10765. fi
  10766. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10767. cat >>confdefs.h <<_ACEOF
  10768. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10769. _ACEOF
  10770. fi
  10771. done
  10772. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  10773. acx_cv_header_stdint=stddef.h
  10774. acx_cv_header_stdint_kind="(already complete)"
  10775. for i in stdint.h $inttype_headers; do
  10776. unset ac_cv_type_uintptr_t
  10777. unset ac_cv_type_uintmax_t
  10778. unset ac_cv_type_int_least32_t
  10779. unset ac_cv_type_int_fast32_t
  10780. unset ac_cv_type_uint64_t
  10781. echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
  10782. echo "$as_me:$LINENO: checking for uintmax_t" >&5
  10783. echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
  10784. if test "${ac_cv_type_uintmax_t+set}" = set; then
  10785. echo $ECHO_N "(cached) $ECHO_C" >&6
  10786. else
  10787. cat >conftest.$ac_ext <<_ACEOF
  10788. /* confdefs.h. */
  10789. _ACEOF
  10790. cat confdefs.h >>conftest.$ac_ext
  10791. cat >>conftest.$ac_ext <<_ACEOF
  10792. /* end confdefs.h. */
  10793. #include <sys/types.h>
  10794. #include <$i>
  10795. int
  10796. main ()
  10797. {
  10798. if ((uintmax_t *) 0)
  10799. return 0;
  10800. if (sizeof (uintmax_t))
  10801. return 0;
  10802. ;
  10803. return 0;
  10804. }
  10805. _ACEOF
  10806. rm -f conftest.$ac_objext
  10807. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10808. (eval $ac_compile) 2>conftest.er1
  10809. ac_status=$?
  10810. grep -v '^ *+' conftest.er1 >conftest.err
  10811. rm -f conftest.er1
  10812. cat conftest.err >&5
  10813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10814. (exit $ac_status); } &&
  10815. { ac_try='test -z "$ac_c_werror_flag"
  10816. || test ! -s conftest.err'
  10817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10818. (eval $ac_try) 2>&5
  10819. ac_status=$?
  10820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10821. (exit $ac_status); }; } &&
  10822. { ac_try='test -s conftest.$ac_objext'
  10823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10824. (eval $ac_try) 2>&5
  10825. ac_status=$?
  10826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10827. (exit $ac_status); }; }; then
  10828. ac_cv_type_uintmax_t=yes
  10829. else
  10830. echo "$as_me: failed program was:" >&5
  10831. sed 's/^/| /' conftest.$ac_ext >&5
  10832. ac_cv_type_uintmax_t=no
  10833. fi
  10834. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10835. fi
  10836. echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
  10837. echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
  10838. if test $ac_cv_type_uintmax_t = yes; then
  10839. acx_cv_header_stdint=$i
  10840. else
  10841. continue
  10842. fi
  10843. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  10844. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  10845. if test "${ac_cv_type_uintptr_t+set}" = set; then
  10846. echo $ECHO_N "(cached) $ECHO_C" >&6
  10847. else
  10848. cat >conftest.$ac_ext <<_ACEOF
  10849. /* confdefs.h. */
  10850. _ACEOF
  10851. cat confdefs.h >>conftest.$ac_ext
  10852. cat >>conftest.$ac_ext <<_ACEOF
  10853. /* end confdefs.h. */
  10854. #include <sys/types.h>
  10855. #include <$i>
  10856. int
  10857. main ()
  10858. {
  10859. if ((uintptr_t *) 0)
  10860. return 0;
  10861. if (sizeof (uintptr_t))
  10862. return 0;
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. rm -f conftest.$ac_objext
  10868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10869. (eval $ac_compile) 2>conftest.er1
  10870. ac_status=$?
  10871. grep -v '^ *+' conftest.er1 >conftest.err
  10872. rm -f conftest.er1
  10873. cat conftest.err >&5
  10874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10875. (exit $ac_status); } &&
  10876. { ac_try='test -z "$ac_c_werror_flag"
  10877. || test ! -s conftest.err'
  10878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10879. (eval $ac_try) 2>&5
  10880. ac_status=$?
  10881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10882. (exit $ac_status); }; } &&
  10883. { ac_try='test -s conftest.$ac_objext'
  10884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10885. (eval $ac_try) 2>&5
  10886. ac_status=$?
  10887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10888. (exit $ac_status); }; }; then
  10889. ac_cv_type_uintptr_t=yes
  10890. else
  10891. echo "$as_me: failed program was:" >&5
  10892. sed 's/^/| /' conftest.$ac_ext >&5
  10893. ac_cv_type_uintptr_t=no
  10894. fi
  10895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10896. fi
  10897. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  10898. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  10899. if test $ac_cv_type_uintptr_t = yes; then
  10900. :
  10901. else
  10902. acx_cv_header_stdint_kind="(mostly complete)"
  10903. fi
  10904. echo "$as_me:$LINENO: checking for int_least32_t" >&5
  10905. echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
  10906. if test "${ac_cv_type_int_least32_t+set}" = set; then
  10907. echo $ECHO_N "(cached) $ECHO_C" >&6
  10908. else
  10909. cat >conftest.$ac_ext <<_ACEOF
  10910. /* confdefs.h. */
  10911. _ACEOF
  10912. cat confdefs.h >>conftest.$ac_ext
  10913. cat >>conftest.$ac_ext <<_ACEOF
  10914. /* end confdefs.h. */
  10915. #include <sys/types.h>
  10916. #include <$i>
  10917. int
  10918. main ()
  10919. {
  10920. if ((int_least32_t *) 0)
  10921. return 0;
  10922. if (sizeof (int_least32_t))
  10923. return 0;
  10924. ;
  10925. return 0;
  10926. }
  10927. _ACEOF
  10928. rm -f conftest.$ac_objext
  10929. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10930. (eval $ac_compile) 2>conftest.er1
  10931. ac_status=$?
  10932. grep -v '^ *+' conftest.er1 >conftest.err
  10933. rm -f conftest.er1
  10934. cat conftest.err >&5
  10935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10936. (exit $ac_status); } &&
  10937. { ac_try='test -z "$ac_c_werror_flag"
  10938. || test ! -s conftest.err'
  10939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10940. (eval $ac_try) 2>&5
  10941. ac_status=$?
  10942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10943. (exit $ac_status); }; } &&
  10944. { ac_try='test -s conftest.$ac_objext'
  10945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10946. (eval $ac_try) 2>&5
  10947. ac_status=$?
  10948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10949. (exit $ac_status); }; }; then
  10950. ac_cv_type_int_least32_t=yes
  10951. else
  10952. echo "$as_me: failed program was:" >&5
  10953. sed 's/^/| /' conftest.$ac_ext >&5
  10954. ac_cv_type_int_least32_t=no
  10955. fi
  10956. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10957. fi
  10958. echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
  10959. echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
  10960. if test $ac_cv_type_int_least32_t = yes; then
  10961. :
  10962. else
  10963. acx_cv_header_stdint_kind="(mostly complete)"
  10964. fi
  10965. echo "$as_me:$LINENO: checking for int_fast32_t" >&5
  10966. echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
  10967. if test "${ac_cv_type_int_fast32_t+set}" = set; then
  10968. echo $ECHO_N "(cached) $ECHO_C" >&6
  10969. else
  10970. cat >conftest.$ac_ext <<_ACEOF
  10971. /* confdefs.h. */
  10972. _ACEOF
  10973. cat confdefs.h >>conftest.$ac_ext
  10974. cat >>conftest.$ac_ext <<_ACEOF
  10975. /* end confdefs.h. */
  10976. #include <sys/types.h>
  10977. #include <$i>
  10978. int
  10979. main ()
  10980. {
  10981. if ((int_fast32_t *) 0)
  10982. return 0;
  10983. if (sizeof (int_fast32_t))
  10984. return 0;
  10985. ;
  10986. return 0;
  10987. }
  10988. _ACEOF
  10989. rm -f conftest.$ac_objext
  10990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10991. (eval $ac_compile) 2>conftest.er1
  10992. ac_status=$?
  10993. grep -v '^ *+' conftest.er1 >conftest.err
  10994. rm -f conftest.er1
  10995. cat conftest.err >&5
  10996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10997. (exit $ac_status); } &&
  10998. { ac_try='test -z "$ac_c_werror_flag"
  10999. || test ! -s conftest.err'
  11000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11001. (eval $ac_try) 2>&5
  11002. ac_status=$?
  11003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11004. (exit $ac_status); }; } &&
  11005. { ac_try='test -s conftest.$ac_objext'
  11006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11007. (eval $ac_try) 2>&5
  11008. ac_status=$?
  11009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11010. (exit $ac_status); }; }; then
  11011. ac_cv_type_int_fast32_t=yes
  11012. else
  11013. echo "$as_me: failed program was:" >&5
  11014. sed 's/^/| /' conftest.$ac_ext >&5
  11015. ac_cv_type_int_fast32_t=no
  11016. fi
  11017. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11018. fi
  11019. echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
  11020. echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
  11021. if test $ac_cv_type_int_fast32_t = yes; then
  11022. :
  11023. else
  11024. acx_cv_header_stdint_kind="(mostly complete)"
  11025. fi
  11026. echo "$as_me:$LINENO: checking for uint64_t" >&5
  11027. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  11028. if test "${ac_cv_type_uint64_t+set}" = set; then
  11029. echo $ECHO_N "(cached) $ECHO_C" >&6
  11030. else
  11031. cat >conftest.$ac_ext <<_ACEOF
  11032. /* confdefs.h. */
  11033. _ACEOF
  11034. cat confdefs.h >>conftest.$ac_ext
  11035. cat >>conftest.$ac_ext <<_ACEOF
  11036. /* end confdefs.h. */
  11037. #include <sys/types.h>
  11038. #include <$i>
  11039. int
  11040. main ()
  11041. {
  11042. if ((uint64_t *) 0)
  11043. return 0;
  11044. if (sizeof (uint64_t))
  11045. return 0;
  11046. ;
  11047. return 0;
  11048. }
  11049. _ACEOF
  11050. rm -f conftest.$ac_objext
  11051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11052. (eval $ac_compile) 2>conftest.er1
  11053. ac_status=$?
  11054. grep -v '^ *+' conftest.er1 >conftest.err
  11055. rm -f conftest.er1
  11056. cat conftest.err >&5
  11057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11058. (exit $ac_status); } &&
  11059. { ac_try='test -z "$ac_c_werror_flag"
  11060. || test ! -s conftest.err'
  11061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11062. (eval $ac_try) 2>&5
  11063. ac_status=$?
  11064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11065. (exit $ac_status); }; } &&
  11066. { ac_try='test -s conftest.$ac_objext'
  11067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11068. (eval $ac_try) 2>&5
  11069. ac_status=$?
  11070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11071. (exit $ac_status); }; }; then
  11072. ac_cv_type_uint64_t=yes
  11073. else
  11074. echo "$as_me: failed program was:" >&5
  11075. sed 's/^/| /' conftest.$ac_ext >&5
  11076. ac_cv_type_uint64_t=no
  11077. fi
  11078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11079. fi
  11080. echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  11081. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  11082. if test $ac_cv_type_uint64_t = yes; then
  11083. :
  11084. else
  11085. acx_cv_header_stdint_kind="(lacks uint64_t)"
  11086. fi
  11087. break
  11088. done
  11089. if test "$acx_cv_header_stdint" = stddef.h; then
  11090. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  11091. for i in stdint.h $inttype_headers; do
  11092. unset ac_cv_type_uintptr_t
  11093. unset ac_cv_type_uint32_t
  11094. unset ac_cv_type_uint64_t
  11095. echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
  11096. echo "$as_me:$LINENO: checking for uint32_t" >&5
  11097. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  11098. if test "${ac_cv_type_uint32_t+set}" = set; then
  11099. echo $ECHO_N "(cached) $ECHO_C" >&6
  11100. else
  11101. cat >conftest.$ac_ext <<_ACEOF
  11102. /* confdefs.h. */
  11103. _ACEOF
  11104. cat confdefs.h >>conftest.$ac_ext
  11105. cat >>conftest.$ac_ext <<_ACEOF
  11106. /* end confdefs.h. */
  11107. #include <sys/types.h>
  11108. #include <$i>
  11109. int
  11110. main ()
  11111. {
  11112. if ((uint32_t *) 0)
  11113. return 0;
  11114. if (sizeof (uint32_t))
  11115. return 0;
  11116. ;
  11117. return 0;
  11118. }
  11119. _ACEOF
  11120. rm -f conftest.$ac_objext
  11121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11122. (eval $ac_compile) 2>conftest.er1
  11123. ac_status=$?
  11124. grep -v '^ *+' conftest.er1 >conftest.err
  11125. rm -f conftest.er1
  11126. cat conftest.err >&5
  11127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11128. (exit $ac_status); } &&
  11129. { ac_try='test -z "$ac_c_werror_flag"
  11130. || test ! -s conftest.err'
  11131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11132. (eval $ac_try) 2>&5
  11133. ac_status=$?
  11134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11135. (exit $ac_status); }; } &&
  11136. { ac_try='test -s conftest.$ac_objext'
  11137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11138. (eval $ac_try) 2>&5
  11139. ac_status=$?
  11140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11141. (exit $ac_status); }; }; then
  11142. ac_cv_type_uint32_t=yes
  11143. else
  11144. echo "$as_me: failed program was:" >&5
  11145. sed 's/^/| /' conftest.$ac_ext >&5
  11146. ac_cv_type_uint32_t=no
  11147. fi
  11148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11149. fi
  11150. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  11151. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  11152. if test $ac_cv_type_uint32_t = yes; then
  11153. acx_cv_header_stdint=$i
  11154. else
  11155. continue
  11156. fi
  11157. echo "$as_me:$LINENO: checking for uint64_t" >&5
  11158. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  11159. if test "${ac_cv_type_uint64_t+set}" = set; then
  11160. echo $ECHO_N "(cached) $ECHO_C" >&6
  11161. else
  11162. cat >conftest.$ac_ext <<_ACEOF
  11163. /* confdefs.h. */
  11164. _ACEOF
  11165. cat confdefs.h >>conftest.$ac_ext
  11166. cat >>conftest.$ac_ext <<_ACEOF
  11167. /* end confdefs.h. */
  11168. #include <sys/types.h>
  11169. #include <$i>
  11170. int
  11171. main ()
  11172. {
  11173. if ((uint64_t *) 0)
  11174. return 0;
  11175. if (sizeof (uint64_t))
  11176. return 0;
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. rm -f conftest.$ac_objext
  11182. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11183. (eval $ac_compile) 2>conftest.er1
  11184. ac_status=$?
  11185. grep -v '^ *+' conftest.er1 >conftest.err
  11186. rm -f conftest.er1
  11187. cat conftest.err >&5
  11188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11189. (exit $ac_status); } &&
  11190. { ac_try='test -z "$ac_c_werror_flag"
  11191. || test ! -s conftest.err'
  11192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11193. (eval $ac_try) 2>&5
  11194. ac_status=$?
  11195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11196. (exit $ac_status); }; } &&
  11197. { ac_try='test -s conftest.$ac_objext'
  11198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11199. (eval $ac_try) 2>&5
  11200. ac_status=$?
  11201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11202. (exit $ac_status); }; }; then
  11203. ac_cv_type_uint64_t=yes
  11204. else
  11205. echo "$as_me: failed program was:" >&5
  11206. sed 's/^/| /' conftest.$ac_ext >&5
  11207. ac_cv_type_uint64_t=no
  11208. fi
  11209. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11210. fi
  11211. echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  11212. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  11213. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  11214. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  11215. if test "${ac_cv_type_uintptr_t+set}" = set; then
  11216. echo $ECHO_N "(cached) $ECHO_C" >&6
  11217. else
  11218. cat >conftest.$ac_ext <<_ACEOF
  11219. /* confdefs.h. */
  11220. _ACEOF
  11221. cat confdefs.h >>conftest.$ac_ext
  11222. cat >>conftest.$ac_ext <<_ACEOF
  11223. /* end confdefs.h. */
  11224. #include <sys/types.h>
  11225. #include <$i>
  11226. int
  11227. main ()
  11228. {
  11229. if ((uintptr_t *) 0)
  11230. return 0;
  11231. if (sizeof (uintptr_t))
  11232. return 0;
  11233. ;
  11234. return 0;
  11235. }
  11236. _ACEOF
  11237. rm -f conftest.$ac_objext
  11238. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11239. (eval $ac_compile) 2>conftest.er1
  11240. ac_status=$?
  11241. grep -v '^ *+' conftest.er1 >conftest.err
  11242. rm -f conftest.er1
  11243. cat conftest.err >&5
  11244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11245. (exit $ac_status); } &&
  11246. { ac_try='test -z "$ac_c_werror_flag"
  11247. || test ! -s conftest.err'
  11248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11249. (eval $ac_try) 2>&5
  11250. ac_status=$?
  11251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11252. (exit $ac_status); }; } &&
  11253. { ac_try='test -s conftest.$ac_objext'
  11254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11255. (eval $ac_try) 2>&5
  11256. ac_status=$?
  11257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11258. (exit $ac_status); }; }; then
  11259. ac_cv_type_uintptr_t=yes
  11260. else
  11261. echo "$as_me: failed program was:" >&5
  11262. sed 's/^/| /' conftest.$ac_ext >&5
  11263. ac_cv_type_uintptr_t=no
  11264. fi
  11265. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11266. fi
  11267. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  11268. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  11269. break
  11270. done
  11271. fi
  11272. if test "$acx_cv_header_stdint" = stddef.h; then
  11273. acx_cv_header_stdint_kind="(u_intXX_t style)"
  11274. for i in sys/types.h $inttype_headers; do
  11275. unset ac_cv_type_u_int32_t
  11276. unset ac_cv_type_u_int64_t
  11277. echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
  11278. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  11279. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  11280. if test "${ac_cv_type_u_int32_t+set}" = set; then
  11281. echo $ECHO_N "(cached) $ECHO_C" >&6
  11282. else
  11283. cat >conftest.$ac_ext <<_ACEOF
  11284. /* confdefs.h. */
  11285. _ACEOF
  11286. cat confdefs.h >>conftest.$ac_ext
  11287. cat >>conftest.$ac_ext <<_ACEOF
  11288. /* end confdefs.h. */
  11289. #include <sys/types.h>
  11290. #include <$i>
  11291. int
  11292. main ()
  11293. {
  11294. if ((u_int32_t *) 0)
  11295. return 0;
  11296. if (sizeof (u_int32_t))
  11297. return 0;
  11298. ;
  11299. return 0;
  11300. }
  11301. _ACEOF
  11302. rm -f conftest.$ac_objext
  11303. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11304. (eval $ac_compile) 2>conftest.er1
  11305. ac_status=$?
  11306. grep -v '^ *+' conftest.er1 >conftest.err
  11307. rm -f conftest.er1
  11308. cat conftest.err >&5
  11309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11310. (exit $ac_status); } &&
  11311. { ac_try='test -z "$ac_c_werror_flag"
  11312. || test ! -s conftest.err'
  11313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11314. (eval $ac_try) 2>&5
  11315. ac_status=$?
  11316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11317. (exit $ac_status); }; } &&
  11318. { ac_try='test -s conftest.$ac_objext'
  11319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11320. (eval $ac_try) 2>&5
  11321. ac_status=$?
  11322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11323. (exit $ac_status); }; }; then
  11324. ac_cv_type_u_int32_t=yes
  11325. else
  11326. echo "$as_me: failed program was:" >&5
  11327. sed 's/^/| /' conftest.$ac_ext >&5
  11328. ac_cv_type_u_int32_t=no
  11329. fi
  11330. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11331. fi
  11332. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  11333. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  11334. if test $ac_cv_type_u_int32_t = yes; then
  11335. acx_cv_header_stdint=$i
  11336. else
  11337. continue
  11338. fi
  11339. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  11340. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  11341. if test "${ac_cv_type_u_int64_t+set}" = set; then
  11342. echo $ECHO_N "(cached) $ECHO_C" >&6
  11343. else
  11344. cat >conftest.$ac_ext <<_ACEOF
  11345. /* confdefs.h. */
  11346. _ACEOF
  11347. cat confdefs.h >>conftest.$ac_ext
  11348. cat >>conftest.$ac_ext <<_ACEOF
  11349. /* end confdefs.h. */
  11350. #include <sys/types.h>
  11351. #include <$i>
  11352. int
  11353. main ()
  11354. {
  11355. if ((u_int64_t *) 0)
  11356. return 0;
  11357. if (sizeof (u_int64_t))
  11358. return 0;
  11359. ;
  11360. return 0;
  11361. }
  11362. _ACEOF
  11363. rm -f conftest.$ac_objext
  11364. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11365. (eval $ac_compile) 2>conftest.er1
  11366. ac_status=$?
  11367. grep -v '^ *+' conftest.er1 >conftest.err
  11368. rm -f conftest.er1
  11369. cat conftest.err >&5
  11370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11371. (exit $ac_status); } &&
  11372. { ac_try='test -z "$ac_c_werror_flag"
  11373. || test ! -s conftest.err'
  11374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11375. (eval $ac_try) 2>&5
  11376. ac_status=$?
  11377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11378. (exit $ac_status); }; } &&
  11379. { ac_try='test -s conftest.$ac_objext'
  11380. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11381. (eval $ac_try) 2>&5
  11382. ac_status=$?
  11383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11384. (exit $ac_status); }; }; then
  11385. ac_cv_type_u_int64_t=yes
  11386. else
  11387. echo "$as_me: failed program was:" >&5
  11388. sed 's/^/| /' conftest.$ac_ext >&5
  11389. ac_cv_type_u_int64_t=no
  11390. fi
  11391. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11392. fi
  11393. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  11394. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  11395. break
  11396. done
  11397. fi
  11398. if test "$acx_cv_header_stdint" = stddef.h; then
  11399. acx_cv_header_stdint_kind="(using manual detection)"
  11400. fi
  11401. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  11402. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  11403. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  11404. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  11405. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  11406. # ----------------- Summarize what we found so far
  11407. echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
  11408. echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
  11409. case `$as_basename bfd_stdint.h ||
  11410. $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
  11411. Xbfd_stdint.h : 'X\(//\)$' \| \
  11412. Xbfd_stdint.h : 'X\(/\)$' \| \
  11413. . : '\(.\)' 2>/dev/null ||
  11414. echo X/bfd_stdint.h |
  11415. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11416. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11417. /^X\/\(\/\).*/{ s//\1/; q; }
  11418. s/.*/./; q'` in
  11419. stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
  11420. echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  11421. inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
  11422. echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  11423. *) ;;
  11424. esac
  11425. echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  11426. echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
  11427. # ----------------- done included file, check C basic types --------
  11428. # Lacking an uintptr_t? Test size of void *
  11429. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  11430. stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
  11431. echo $ECHO_N "checking for void *... $ECHO_C" >&6
  11432. if test "${ac_cv_type_void_p+set}" = set; then
  11433. echo $ECHO_N "(cached) $ECHO_C" >&6
  11434. else
  11435. cat >conftest.$ac_ext <<_ACEOF
  11436. /* confdefs.h. */
  11437. _ACEOF
  11438. cat confdefs.h >>conftest.$ac_ext
  11439. cat >>conftest.$ac_ext <<_ACEOF
  11440. /* end confdefs.h. */
  11441. $ac_includes_default
  11442. int
  11443. main ()
  11444. {
  11445. if ((void * *) 0)
  11446. return 0;
  11447. if (sizeof (void *))
  11448. return 0;
  11449. ;
  11450. return 0;
  11451. }
  11452. _ACEOF
  11453. rm -f conftest.$ac_objext
  11454. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11455. (eval $ac_compile) 2>conftest.er1
  11456. ac_status=$?
  11457. grep -v '^ *+' conftest.er1 >conftest.err
  11458. rm -f conftest.er1
  11459. cat conftest.err >&5
  11460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11461. (exit $ac_status); } &&
  11462. { ac_try='test -z "$ac_c_werror_flag"
  11463. || test ! -s conftest.err'
  11464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11465. (eval $ac_try) 2>&5
  11466. ac_status=$?
  11467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11468. (exit $ac_status); }; } &&
  11469. { ac_try='test -s conftest.$ac_objext'
  11470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11471. (eval $ac_try) 2>&5
  11472. ac_status=$?
  11473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11474. (exit $ac_status); }; }; then
  11475. ac_cv_type_void_p=yes
  11476. else
  11477. echo "$as_me: failed program was:" >&5
  11478. sed 's/^/| /' conftest.$ac_ext >&5
  11479. ac_cv_type_void_p=no
  11480. fi
  11481. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11482. fi
  11483. echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  11484. echo "${ECHO_T}$ac_cv_type_void_p" >&6
  11485. echo "$as_me:$LINENO: checking size of void *" >&5
  11486. echo $ECHO_N "checking size of void *... $ECHO_C" >&6
  11487. if test "${ac_cv_sizeof_void_p+set}" = set; then
  11488. echo $ECHO_N "(cached) $ECHO_C" >&6
  11489. else
  11490. if test "$ac_cv_type_void_p" = yes; then
  11491. # The cast to unsigned long works around a bug in the HP C Compiler
  11492. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11493. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11494. # This bug is HP SR number 8606223364.
  11495. if test "$cross_compiling" = yes; then
  11496. # Depending upon the size, compute the lo and hi bounds.
  11497. cat >conftest.$ac_ext <<_ACEOF
  11498. /* confdefs.h. */
  11499. _ACEOF
  11500. cat confdefs.h >>conftest.$ac_ext
  11501. cat >>conftest.$ac_ext <<_ACEOF
  11502. /* end confdefs.h. */
  11503. $ac_includes_default
  11504. int
  11505. main ()
  11506. {
  11507. static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
  11508. test_array [0] = 0
  11509. ;
  11510. return 0;
  11511. }
  11512. _ACEOF
  11513. rm -f conftest.$ac_objext
  11514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11515. (eval $ac_compile) 2>conftest.er1
  11516. ac_status=$?
  11517. grep -v '^ *+' conftest.er1 >conftest.err
  11518. rm -f conftest.er1
  11519. cat conftest.err >&5
  11520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11521. (exit $ac_status); } &&
  11522. { ac_try='test -z "$ac_c_werror_flag"
  11523. || test ! -s conftest.err'
  11524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11525. (eval $ac_try) 2>&5
  11526. ac_status=$?
  11527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11528. (exit $ac_status); }; } &&
  11529. { ac_try='test -s conftest.$ac_objext'
  11530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11531. (eval $ac_try) 2>&5
  11532. ac_status=$?
  11533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11534. (exit $ac_status); }; }; then
  11535. ac_lo=0 ac_mid=0
  11536. while :; do
  11537. cat >conftest.$ac_ext <<_ACEOF
  11538. /* confdefs.h. */
  11539. _ACEOF
  11540. cat confdefs.h >>conftest.$ac_ext
  11541. cat >>conftest.$ac_ext <<_ACEOF
  11542. /* end confdefs.h. */
  11543. $ac_includes_default
  11544. int
  11545. main ()
  11546. {
  11547. static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
  11548. test_array [0] = 0
  11549. ;
  11550. return 0;
  11551. }
  11552. _ACEOF
  11553. rm -f conftest.$ac_objext
  11554. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11555. (eval $ac_compile) 2>conftest.er1
  11556. ac_status=$?
  11557. grep -v '^ *+' conftest.er1 >conftest.err
  11558. rm -f conftest.er1
  11559. cat conftest.err >&5
  11560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11561. (exit $ac_status); } &&
  11562. { ac_try='test -z "$ac_c_werror_flag"
  11563. || test ! -s conftest.err'
  11564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11565. (eval $ac_try) 2>&5
  11566. ac_status=$?
  11567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11568. (exit $ac_status); }; } &&
  11569. { ac_try='test -s conftest.$ac_objext'
  11570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11571. (eval $ac_try) 2>&5
  11572. ac_status=$?
  11573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11574. (exit $ac_status); }; }; then
  11575. ac_hi=$ac_mid; break
  11576. else
  11577. echo "$as_me: failed program was:" >&5
  11578. sed 's/^/| /' conftest.$ac_ext >&5
  11579. ac_lo=`expr $ac_mid + 1`
  11580. if test $ac_lo -le $ac_mid; then
  11581. ac_lo= ac_hi=
  11582. break
  11583. fi
  11584. ac_mid=`expr 2 '*' $ac_mid + 1`
  11585. fi
  11586. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11587. done
  11588. else
  11589. echo "$as_me: failed program was:" >&5
  11590. sed 's/^/| /' conftest.$ac_ext >&5
  11591. cat >conftest.$ac_ext <<_ACEOF
  11592. /* confdefs.h. */
  11593. _ACEOF
  11594. cat confdefs.h >>conftest.$ac_ext
  11595. cat >>conftest.$ac_ext <<_ACEOF
  11596. /* end confdefs.h. */
  11597. $ac_includes_default
  11598. int
  11599. main ()
  11600. {
  11601. static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
  11602. test_array [0] = 0
  11603. ;
  11604. return 0;
  11605. }
  11606. _ACEOF
  11607. rm -f conftest.$ac_objext
  11608. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11609. (eval $ac_compile) 2>conftest.er1
  11610. ac_status=$?
  11611. grep -v '^ *+' conftest.er1 >conftest.err
  11612. rm -f conftest.er1
  11613. cat conftest.err >&5
  11614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11615. (exit $ac_status); } &&
  11616. { ac_try='test -z "$ac_c_werror_flag"
  11617. || test ! -s conftest.err'
  11618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11619. (eval $ac_try) 2>&5
  11620. ac_status=$?
  11621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11622. (exit $ac_status); }; } &&
  11623. { ac_try='test -s conftest.$ac_objext'
  11624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11625. (eval $ac_try) 2>&5
  11626. ac_status=$?
  11627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11628. (exit $ac_status); }; }; then
  11629. ac_hi=-1 ac_mid=-1
  11630. while :; do
  11631. cat >conftest.$ac_ext <<_ACEOF
  11632. /* confdefs.h. */
  11633. _ACEOF
  11634. cat confdefs.h >>conftest.$ac_ext
  11635. cat >>conftest.$ac_ext <<_ACEOF
  11636. /* end confdefs.h. */
  11637. $ac_includes_default
  11638. int
  11639. main ()
  11640. {
  11641. static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
  11642. test_array [0] = 0
  11643. ;
  11644. return 0;
  11645. }
  11646. _ACEOF
  11647. rm -f conftest.$ac_objext
  11648. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11649. (eval $ac_compile) 2>conftest.er1
  11650. ac_status=$?
  11651. grep -v '^ *+' conftest.er1 >conftest.err
  11652. rm -f conftest.er1
  11653. cat conftest.err >&5
  11654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11655. (exit $ac_status); } &&
  11656. { ac_try='test -z "$ac_c_werror_flag"
  11657. || test ! -s conftest.err'
  11658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11659. (eval $ac_try) 2>&5
  11660. ac_status=$?
  11661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11662. (exit $ac_status); }; } &&
  11663. { ac_try='test -s conftest.$ac_objext'
  11664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11665. (eval $ac_try) 2>&5
  11666. ac_status=$?
  11667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11668. (exit $ac_status); }; }; then
  11669. ac_lo=$ac_mid; break
  11670. else
  11671. echo "$as_me: failed program was:" >&5
  11672. sed 's/^/| /' conftest.$ac_ext >&5
  11673. ac_hi=`expr '(' $ac_mid ')' - 1`
  11674. if test $ac_mid -le $ac_hi; then
  11675. ac_lo= ac_hi=
  11676. break
  11677. fi
  11678. ac_mid=`expr 2 '*' $ac_mid`
  11679. fi
  11680. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11681. done
  11682. else
  11683. echo "$as_me: failed program was:" >&5
  11684. sed 's/^/| /' conftest.$ac_ext >&5
  11685. ac_lo= ac_hi=
  11686. fi
  11687. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11688. fi
  11689. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11690. # Binary search between lo and hi bounds.
  11691. while test "x$ac_lo" != "x$ac_hi"; do
  11692. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11693. cat >conftest.$ac_ext <<_ACEOF
  11694. /* confdefs.h. */
  11695. _ACEOF
  11696. cat confdefs.h >>conftest.$ac_ext
  11697. cat >>conftest.$ac_ext <<_ACEOF
  11698. /* end confdefs.h. */
  11699. $ac_includes_default
  11700. int
  11701. main ()
  11702. {
  11703. static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
  11704. test_array [0] = 0
  11705. ;
  11706. return 0;
  11707. }
  11708. _ACEOF
  11709. rm -f conftest.$ac_objext
  11710. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11711. (eval $ac_compile) 2>conftest.er1
  11712. ac_status=$?
  11713. grep -v '^ *+' conftest.er1 >conftest.err
  11714. rm -f conftest.er1
  11715. cat conftest.err >&5
  11716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11717. (exit $ac_status); } &&
  11718. { ac_try='test -z "$ac_c_werror_flag"
  11719. || test ! -s conftest.err'
  11720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11721. (eval $ac_try) 2>&5
  11722. ac_status=$?
  11723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11724. (exit $ac_status); }; } &&
  11725. { ac_try='test -s conftest.$ac_objext'
  11726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11727. (eval $ac_try) 2>&5
  11728. ac_status=$?
  11729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11730. (exit $ac_status); }; }; then
  11731. ac_hi=$ac_mid
  11732. else
  11733. echo "$as_me: failed program was:" >&5
  11734. sed 's/^/| /' conftest.$ac_ext >&5
  11735. ac_lo=`expr '(' $ac_mid ')' + 1`
  11736. fi
  11737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11738. done
  11739. case $ac_lo in
  11740. ?*) ac_cv_sizeof_void_p=$ac_lo;;
  11741. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
  11742. See \`config.log' for more details." >&5
  11743. echo "$as_me: error: cannot compute sizeof (void *), 77
  11744. See \`config.log' for more details." >&2;}
  11745. { (exit 1); exit 1; }; } ;;
  11746. esac
  11747. else
  11748. if test "$cross_compiling" = yes; then
  11749. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  11750. See \`config.log' for more details." >&5
  11751. echo "$as_me: error: cannot run test program while cross compiling
  11752. See \`config.log' for more details." >&2;}
  11753. { (exit 1); exit 1; }; }
  11754. else
  11755. cat >conftest.$ac_ext <<_ACEOF
  11756. /* confdefs.h. */
  11757. _ACEOF
  11758. cat confdefs.h >>conftest.$ac_ext
  11759. cat >>conftest.$ac_ext <<_ACEOF
  11760. /* end confdefs.h. */
  11761. $ac_includes_default
  11762. long longval () { return (long) (sizeof (void *)); }
  11763. unsigned long ulongval () { return (long) (sizeof (void *)); }
  11764. #include <stdio.h>
  11765. #include <stdlib.h>
  11766. int
  11767. main ()
  11768. {
  11769. FILE *f = fopen ("conftest.val", "w");
  11770. if (! f)
  11771. exit (1);
  11772. if (((long) (sizeof (void *))) < 0)
  11773. {
  11774. long i = longval ();
  11775. if (i != ((long) (sizeof (void *))))
  11776. exit (1);
  11777. fprintf (f, "%ld\n", i);
  11778. }
  11779. else
  11780. {
  11781. unsigned long i = ulongval ();
  11782. if (i != ((long) (sizeof (void *))))
  11783. exit (1);
  11784. fprintf (f, "%lu\n", i);
  11785. }
  11786. exit (ferror (f) || fclose (f) != 0);
  11787. ;
  11788. return 0;
  11789. }
  11790. _ACEOF
  11791. rm -f conftest$ac_exeext
  11792. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11793. (eval $ac_link) 2>&5
  11794. ac_status=$?
  11795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11796. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11798. (eval $ac_try) 2>&5
  11799. ac_status=$?
  11800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11801. (exit $ac_status); }; }; then
  11802. ac_cv_sizeof_void_p=`cat conftest.val`
  11803. else
  11804. echo "$as_me: program exited with status $ac_status" >&5
  11805. echo "$as_me: failed program was:" >&5
  11806. sed 's/^/| /' conftest.$ac_ext >&5
  11807. ( exit $ac_status )
  11808. { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
  11809. See \`config.log' for more details." >&5
  11810. echo "$as_me: error: cannot compute sizeof (void *), 77
  11811. See \`config.log' for more details." >&2;}
  11812. { (exit 1); exit 1; }; }
  11813. fi
  11814. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11815. fi
  11816. fi
  11817. rm -f conftest.val
  11818. else
  11819. ac_cv_sizeof_void_p=0
  11820. fi
  11821. fi
  11822. echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  11823. echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
  11824. cat >>confdefs.h <<_ACEOF
  11825. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  11826. _ACEOF
  11827. ;;
  11828. esac
  11829. # Lacking an uint64_t? Test size of long
  11830. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  11831. stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
  11832. echo $ECHO_N "checking for long... $ECHO_C" >&6
  11833. if test "${ac_cv_type_long+set}" = set; then
  11834. echo $ECHO_N "(cached) $ECHO_C" >&6
  11835. else
  11836. cat >conftest.$ac_ext <<_ACEOF
  11837. /* confdefs.h. */
  11838. _ACEOF
  11839. cat confdefs.h >>conftest.$ac_ext
  11840. cat >>conftest.$ac_ext <<_ACEOF
  11841. /* end confdefs.h. */
  11842. $ac_includes_default
  11843. int
  11844. main ()
  11845. {
  11846. if ((long *) 0)
  11847. return 0;
  11848. if (sizeof (long))
  11849. return 0;
  11850. ;
  11851. return 0;
  11852. }
  11853. _ACEOF
  11854. rm -f conftest.$ac_objext
  11855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11856. (eval $ac_compile) 2>conftest.er1
  11857. ac_status=$?
  11858. grep -v '^ *+' conftest.er1 >conftest.err
  11859. rm -f conftest.er1
  11860. cat conftest.err >&5
  11861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11862. (exit $ac_status); } &&
  11863. { ac_try='test -z "$ac_c_werror_flag"
  11864. || test ! -s conftest.err'
  11865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11866. (eval $ac_try) 2>&5
  11867. ac_status=$?
  11868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11869. (exit $ac_status); }; } &&
  11870. { ac_try='test -s conftest.$ac_objext'
  11871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11872. (eval $ac_try) 2>&5
  11873. ac_status=$?
  11874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11875. (exit $ac_status); }; }; then
  11876. ac_cv_type_long=yes
  11877. else
  11878. echo "$as_me: failed program was:" >&5
  11879. sed 's/^/| /' conftest.$ac_ext >&5
  11880. ac_cv_type_long=no
  11881. fi
  11882. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11883. fi
  11884. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  11885. echo "${ECHO_T}$ac_cv_type_long" >&6
  11886. echo "$as_me:$LINENO: checking size of long" >&5
  11887. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  11888. if test "${ac_cv_sizeof_long+set}" = set; then
  11889. echo $ECHO_N "(cached) $ECHO_C" >&6
  11890. else
  11891. if test "$ac_cv_type_long" = yes; then
  11892. # The cast to unsigned long works around a bug in the HP C Compiler
  11893. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11894. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11895. # This bug is HP SR number 8606223364.
  11896. if test "$cross_compiling" = yes; then
  11897. # Depending upon the size, compute the lo and hi bounds.
  11898. cat >conftest.$ac_ext <<_ACEOF
  11899. /* confdefs.h. */
  11900. _ACEOF
  11901. cat confdefs.h >>conftest.$ac_ext
  11902. cat >>conftest.$ac_ext <<_ACEOF
  11903. /* end confdefs.h. */
  11904. $ac_includes_default
  11905. int
  11906. main ()
  11907. {
  11908. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  11909. test_array [0] = 0
  11910. ;
  11911. return 0;
  11912. }
  11913. _ACEOF
  11914. rm -f conftest.$ac_objext
  11915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11916. (eval $ac_compile) 2>conftest.er1
  11917. ac_status=$?
  11918. grep -v '^ *+' conftest.er1 >conftest.err
  11919. rm -f conftest.er1
  11920. cat conftest.err >&5
  11921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11922. (exit $ac_status); } &&
  11923. { ac_try='test -z "$ac_c_werror_flag"
  11924. || test ! -s conftest.err'
  11925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11926. (eval $ac_try) 2>&5
  11927. ac_status=$?
  11928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); }; } &&
  11930. { ac_try='test -s conftest.$ac_objext'
  11931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11932. (eval $ac_try) 2>&5
  11933. ac_status=$?
  11934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11935. (exit $ac_status); }; }; then
  11936. ac_lo=0 ac_mid=0
  11937. while :; do
  11938. cat >conftest.$ac_ext <<_ACEOF
  11939. /* confdefs.h. */
  11940. _ACEOF
  11941. cat confdefs.h >>conftest.$ac_ext
  11942. cat >>conftest.$ac_ext <<_ACEOF
  11943. /* end confdefs.h. */
  11944. $ac_includes_default
  11945. int
  11946. main ()
  11947. {
  11948. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  11949. test_array [0] = 0
  11950. ;
  11951. return 0;
  11952. }
  11953. _ACEOF
  11954. rm -f conftest.$ac_objext
  11955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11956. (eval $ac_compile) 2>conftest.er1
  11957. ac_status=$?
  11958. grep -v '^ *+' conftest.er1 >conftest.err
  11959. rm -f conftest.er1
  11960. cat conftest.err >&5
  11961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11962. (exit $ac_status); } &&
  11963. { ac_try='test -z "$ac_c_werror_flag"
  11964. || test ! -s conftest.err'
  11965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11966. (eval $ac_try) 2>&5
  11967. ac_status=$?
  11968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11969. (exit $ac_status); }; } &&
  11970. { ac_try='test -s conftest.$ac_objext'
  11971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11972. (eval $ac_try) 2>&5
  11973. ac_status=$?
  11974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11975. (exit $ac_status); }; }; then
  11976. ac_hi=$ac_mid; break
  11977. else
  11978. echo "$as_me: failed program was:" >&5
  11979. sed 's/^/| /' conftest.$ac_ext >&5
  11980. ac_lo=`expr $ac_mid + 1`
  11981. if test $ac_lo -le $ac_mid; then
  11982. ac_lo= ac_hi=
  11983. break
  11984. fi
  11985. ac_mid=`expr 2 '*' $ac_mid + 1`
  11986. fi
  11987. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11988. done
  11989. else
  11990. echo "$as_me: failed program was:" >&5
  11991. sed 's/^/| /' conftest.$ac_ext >&5
  11992. cat >conftest.$ac_ext <<_ACEOF
  11993. /* confdefs.h. */
  11994. _ACEOF
  11995. cat confdefs.h >>conftest.$ac_ext
  11996. cat >>conftest.$ac_ext <<_ACEOF
  11997. /* end confdefs.h. */
  11998. $ac_includes_default
  11999. int
  12000. main ()
  12001. {
  12002. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  12003. test_array [0] = 0
  12004. ;
  12005. return 0;
  12006. }
  12007. _ACEOF
  12008. rm -f conftest.$ac_objext
  12009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12010. (eval $ac_compile) 2>conftest.er1
  12011. ac_status=$?
  12012. grep -v '^ *+' conftest.er1 >conftest.err
  12013. rm -f conftest.er1
  12014. cat conftest.err >&5
  12015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12016. (exit $ac_status); } &&
  12017. { ac_try='test -z "$ac_c_werror_flag"
  12018. || test ! -s conftest.err'
  12019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12020. (eval $ac_try) 2>&5
  12021. ac_status=$?
  12022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. (exit $ac_status); }; } &&
  12024. { ac_try='test -s conftest.$ac_objext'
  12025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12026. (eval $ac_try) 2>&5
  12027. ac_status=$?
  12028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12029. (exit $ac_status); }; }; then
  12030. ac_hi=-1 ac_mid=-1
  12031. while :; do
  12032. cat >conftest.$ac_ext <<_ACEOF
  12033. /* confdefs.h. */
  12034. _ACEOF
  12035. cat confdefs.h >>conftest.$ac_ext
  12036. cat >>conftest.$ac_ext <<_ACEOF
  12037. /* end confdefs.h. */
  12038. $ac_includes_default
  12039. int
  12040. main ()
  12041. {
  12042. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  12043. test_array [0] = 0
  12044. ;
  12045. return 0;
  12046. }
  12047. _ACEOF
  12048. rm -f conftest.$ac_objext
  12049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12050. (eval $ac_compile) 2>conftest.er1
  12051. ac_status=$?
  12052. grep -v '^ *+' conftest.er1 >conftest.err
  12053. rm -f conftest.er1
  12054. cat conftest.err >&5
  12055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12056. (exit $ac_status); } &&
  12057. { ac_try='test -z "$ac_c_werror_flag"
  12058. || test ! -s conftest.err'
  12059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12060. (eval $ac_try) 2>&5
  12061. ac_status=$?
  12062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12063. (exit $ac_status); }; } &&
  12064. { ac_try='test -s conftest.$ac_objext'
  12065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12066. (eval $ac_try) 2>&5
  12067. ac_status=$?
  12068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12069. (exit $ac_status); }; }; then
  12070. ac_lo=$ac_mid; break
  12071. else
  12072. echo "$as_me: failed program was:" >&5
  12073. sed 's/^/| /' conftest.$ac_ext >&5
  12074. ac_hi=`expr '(' $ac_mid ')' - 1`
  12075. if test $ac_mid -le $ac_hi; then
  12076. ac_lo= ac_hi=
  12077. break
  12078. fi
  12079. ac_mid=`expr 2 '*' $ac_mid`
  12080. fi
  12081. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12082. done
  12083. else
  12084. echo "$as_me: failed program was:" >&5
  12085. sed 's/^/| /' conftest.$ac_ext >&5
  12086. ac_lo= ac_hi=
  12087. fi
  12088. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12089. fi
  12090. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12091. # Binary search between lo and hi bounds.
  12092. while test "x$ac_lo" != "x$ac_hi"; do
  12093. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12094. cat >conftest.$ac_ext <<_ACEOF
  12095. /* confdefs.h. */
  12096. _ACEOF
  12097. cat confdefs.h >>conftest.$ac_ext
  12098. cat >>conftest.$ac_ext <<_ACEOF
  12099. /* end confdefs.h. */
  12100. $ac_includes_default
  12101. int
  12102. main ()
  12103. {
  12104. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  12105. test_array [0] = 0
  12106. ;
  12107. return 0;
  12108. }
  12109. _ACEOF
  12110. rm -f conftest.$ac_objext
  12111. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12112. (eval $ac_compile) 2>conftest.er1
  12113. ac_status=$?
  12114. grep -v '^ *+' conftest.er1 >conftest.err
  12115. rm -f conftest.er1
  12116. cat conftest.err >&5
  12117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. (exit $ac_status); } &&
  12119. { ac_try='test -z "$ac_c_werror_flag"
  12120. || test ! -s conftest.err'
  12121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12122. (eval $ac_try) 2>&5
  12123. ac_status=$?
  12124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12125. (exit $ac_status); }; } &&
  12126. { ac_try='test -s conftest.$ac_objext'
  12127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12128. (eval $ac_try) 2>&5
  12129. ac_status=$?
  12130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12131. (exit $ac_status); }; }; then
  12132. ac_hi=$ac_mid
  12133. else
  12134. echo "$as_me: failed program was:" >&5
  12135. sed 's/^/| /' conftest.$ac_ext >&5
  12136. ac_lo=`expr '(' $ac_mid ')' + 1`
  12137. fi
  12138. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12139. done
  12140. case $ac_lo in
  12141. ?*) ac_cv_sizeof_long=$ac_lo;;
  12142. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  12143. See \`config.log' for more details." >&5
  12144. echo "$as_me: error: cannot compute sizeof (long), 77
  12145. See \`config.log' for more details." >&2;}
  12146. { (exit 1); exit 1; }; } ;;
  12147. esac
  12148. else
  12149. if test "$cross_compiling" = yes; then
  12150. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  12151. See \`config.log' for more details." >&5
  12152. echo "$as_me: error: cannot run test program while cross compiling
  12153. See \`config.log' for more details." >&2;}
  12154. { (exit 1); exit 1; }; }
  12155. else
  12156. cat >conftest.$ac_ext <<_ACEOF
  12157. /* confdefs.h. */
  12158. _ACEOF
  12159. cat confdefs.h >>conftest.$ac_ext
  12160. cat >>conftest.$ac_ext <<_ACEOF
  12161. /* end confdefs.h. */
  12162. $ac_includes_default
  12163. long longval () { return (long) (sizeof (long)); }
  12164. unsigned long ulongval () { return (long) (sizeof (long)); }
  12165. #include <stdio.h>
  12166. #include <stdlib.h>
  12167. int
  12168. main ()
  12169. {
  12170. FILE *f = fopen ("conftest.val", "w");
  12171. if (! f)
  12172. exit (1);
  12173. if (((long) (sizeof (long))) < 0)
  12174. {
  12175. long i = longval ();
  12176. if (i != ((long) (sizeof (long))))
  12177. exit (1);
  12178. fprintf (f, "%ld\n", i);
  12179. }
  12180. else
  12181. {
  12182. unsigned long i = ulongval ();
  12183. if (i != ((long) (sizeof (long))))
  12184. exit (1);
  12185. fprintf (f, "%lu\n", i);
  12186. }
  12187. exit (ferror (f) || fclose (f) != 0);
  12188. ;
  12189. return 0;
  12190. }
  12191. _ACEOF
  12192. rm -f conftest$ac_exeext
  12193. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12194. (eval $ac_link) 2>&5
  12195. ac_status=$?
  12196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12197. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12199. (eval $ac_try) 2>&5
  12200. ac_status=$?
  12201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12202. (exit $ac_status); }; }; then
  12203. ac_cv_sizeof_long=`cat conftest.val`
  12204. else
  12205. echo "$as_me: program exited with status $ac_status" >&5
  12206. echo "$as_me: failed program was:" >&5
  12207. sed 's/^/| /' conftest.$ac_ext >&5
  12208. ( exit $ac_status )
  12209. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  12210. See \`config.log' for more details." >&5
  12211. echo "$as_me: error: cannot compute sizeof (long), 77
  12212. See \`config.log' for more details." >&2;}
  12213. { (exit 1); exit 1; }; }
  12214. fi
  12215. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12216. fi
  12217. fi
  12218. rm -f conftest.val
  12219. else
  12220. ac_cv_sizeof_long=0
  12221. fi
  12222. fi
  12223. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  12224. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  12225. cat >>confdefs.h <<_ACEOF
  12226. #define SIZEOF_LONG $ac_cv_sizeof_long
  12227. _ACEOF
  12228. ;;
  12229. esac
  12230. if test $acx_cv_header_stdint = stddef.h; then
  12231. # Lacking a good header? Test size of everything and deduce all types.
  12232. echo "$as_me:$LINENO: checking for int" >&5
  12233. echo $ECHO_N "checking for int... $ECHO_C" >&6
  12234. if test "${ac_cv_type_int+set}" = set; then
  12235. echo $ECHO_N "(cached) $ECHO_C" >&6
  12236. else
  12237. cat >conftest.$ac_ext <<_ACEOF
  12238. /* confdefs.h. */
  12239. _ACEOF
  12240. cat confdefs.h >>conftest.$ac_ext
  12241. cat >>conftest.$ac_ext <<_ACEOF
  12242. /* end confdefs.h. */
  12243. $ac_includes_default
  12244. int
  12245. main ()
  12246. {
  12247. if ((int *) 0)
  12248. return 0;
  12249. if (sizeof (int))
  12250. return 0;
  12251. ;
  12252. return 0;
  12253. }
  12254. _ACEOF
  12255. rm -f conftest.$ac_objext
  12256. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12257. (eval $ac_compile) 2>conftest.er1
  12258. ac_status=$?
  12259. grep -v '^ *+' conftest.er1 >conftest.err
  12260. rm -f conftest.er1
  12261. cat conftest.err >&5
  12262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12263. (exit $ac_status); } &&
  12264. { ac_try='test -z "$ac_c_werror_flag"
  12265. || test ! -s conftest.err'
  12266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12267. (eval $ac_try) 2>&5
  12268. ac_status=$?
  12269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12270. (exit $ac_status); }; } &&
  12271. { ac_try='test -s conftest.$ac_objext'
  12272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12273. (eval $ac_try) 2>&5
  12274. ac_status=$?
  12275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12276. (exit $ac_status); }; }; then
  12277. ac_cv_type_int=yes
  12278. else
  12279. echo "$as_me: failed program was:" >&5
  12280. sed 's/^/| /' conftest.$ac_ext >&5
  12281. ac_cv_type_int=no
  12282. fi
  12283. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12284. fi
  12285. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  12286. echo "${ECHO_T}$ac_cv_type_int" >&6
  12287. echo "$as_me:$LINENO: checking size of int" >&5
  12288. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  12289. if test "${ac_cv_sizeof_int+set}" = set; then
  12290. echo $ECHO_N "(cached) $ECHO_C" >&6
  12291. else
  12292. if test "$ac_cv_type_int" = yes; then
  12293. # The cast to unsigned long works around a bug in the HP C Compiler
  12294. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12295. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12296. # This bug is HP SR number 8606223364.
  12297. if test "$cross_compiling" = yes; then
  12298. # Depending upon the size, compute the lo and hi bounds.
  12299. cat >conftest.$ac_ext <<_ACEOF
  12300. /* confdefs.h. */
  12301. _ACEOF
  12302. cat confdefs.h >>conftest.$ac_ext
  12303. cat >>conftest.$ac_ext <<_ACEOF
  12304. /* end confdefs.h. */
  12305. $ac_includes_default
  12306. int
  12307. main ()
  12308. {
  12309. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  12310. test_array [0] = 0
  12311. ;
  12312. return 0;
  12313. }
  12314. _ACEOF
  12315. rm -f conftest.$ac_objext
  12316. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12317. (eval $ac_compile) 2>conftest.er1
  12318. ac_status=$?
  12319. grep -v '^ *+' conftest.er1 >conftest.err
  12320. rm -f conftest.er1
  12321. cat conftest.err >&5
  12322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12323. (exit $ac_status); } &&
  12324. { ac_try='test -z "$ac_c_werror_flag"
  12325. || test ! -s conftest.err'
  12326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12327. (eval $ac_try) 2>&5
  12328. ac_status=$?
  12329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12330. (exit $ac_status); }; } &&
  12331. { ac_try='test -s conftest.$ac_objext'
  12332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12333. (eval $ac_try) 2>&5
  12334. ac_status=$?
  12335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12336. (exit $ac_status); }; }; then
  12337. ac_lo=0 ac_mid=0
  12338. while :; do
  12339. cat >conftest.$ac_ext <<_ACEOF
  12340. /* confdefs.h. */
  12341. _ACEOF
  12342. cat confdefs.h >>conftest.$ac_ext
  12343. cat >>conftest.$ac_ext <<_ACEOF
  12344. /* end confdefs.h. */
  12345. $ac_includes_default
  12346. int
  12347. main ()
  12348. {
  12349. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  12350. test_array [0] = 0
  12351. ;
  12352. return 0;
  12353. }
  12354. _ACEOF
  12355. rm -f conftest.$ac_objext
  12356. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12357. (eval $ac_compile) 2>conftest.er1
  12358. ac_status=$?
  12359. grep -v '^ *+' conftest.er1 >conftest.err
  12360. rm -f conftest.er1
  12361. cat conftest.err >&5
  12362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12363. (exit $ac_status); } &&
  12364. { ac_try='test -z "$ac_c_werror_flag"
  12365. || test ! -s conftest.err'
  12366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12367. (eval $ac_try) 2>&5
  12368. ac_status=$?
  12369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. (exit $ac_status); }; } &&
  12371. { ac_try='test -s conftest.$ac_objext'
  12372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12373. (eval $ac_try) 2>&5
  12374. ac_status=$?
  12375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12376. (exit $ac_status); }; }; then
  12377. ac_hi=$ac_mid; break
  12378. else
  12379. echo "$as_me: failed program was:" >&5
  12380. sed 's/^/| /' conftest.$ac_ext >&5
  12381. ac_lo=`expr $ac_mid + 1`
  12382. if test $ac_lo -le $ac_mid; then
  12383. ac_lo= ac_hi=
  12384. break
  12385. fi
  12386. ac_mid=`expr 2 '*' $ac_mid + 1`
  12387. fi
  12388. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12389. done
  12390. else
  12391. echo "$as_me: failed program was:" >&5
  12392. sed 's/^/| /' conftest.$ac_ext >&5
  12393. cat >conftest.$ac_ext <<_ACEOF
  12394. /* confdefs.h. */
  12395. _ACEOF
  12396. cat confdefs.h >>conftest.$ac_ext
  12397. cat >>conftest.$ac_ext <<_ACEOF
  12398. /* end confdefs.h. */
  12399. $ac_includes_default
  12400. int
  12401. main ()
  12402. {
  12403. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  12404. test_array [0] = 0
  12405. ;
  12406. return 0;
  12407. }
  12408. _ACEOF
  12409. rm -f conftest.$ac_objext
  12410. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12411. (eval $ac_compile) 2>conftest.er1
  12412. ac_status=$?
  12413. grep -v '^ *+' conftest.er1 >conftest.err
  12414. rm -f conftest.er1
  12415. cat conftest.err >&5
  12416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12417. (exit $ac_status); } &&
  12418. { ac_try='test -z "$ac_c_werror_flag"
  12419. || test ! -s conftest.err'
  12420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12421. (eval $ac_try) 2>&5
  12422. ac_status=$?
  12423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12424. (exit $ac_status); }; } &&
  12425. { ac_try='test -s conftest.$ac_objext'
  12426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12427. (eval $ac_try) 2>&5
  12428. ac_status=$?
  12429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12430. (exit $ac_status); }; }; then
  12431. ac_hi=-1 ac_mid=-1
  12432. while :; do
  12433. cat >conftest.$ac_ext <<_ACEOF
  12434. /* confdefs.h. */
  12435. _ACEOF
  12436. cat confdefs.h >>conftest.$ac_ext
  12437. cat >>conftest.$ac_ext <<_ACEOF
  12438. /* end confdefs.h. */
  12439. $ac_includes_default
  12440. int
  12441. main ()
  12442. {
  12443. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  12444. test_array [0] = 0
  12445. ;
  12446. return 0;
  12447. }
  12448. _ACEOF
  12449. rm -f conftest.$ac_objext
  12450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12451. (eval $ac_compile) 2>conftest.er1
  12452. ac_status=$?
  12453. grep -v '^ *+' conftest.er1 >conftest.err
  12454. rm -f conftest.er1
  12455. cat conftest.err >&5
  12456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12457. (exit $ac_status); } &&
  12458. { ac_try='test -z "$ac_c_werror_flag"
  12459. || test ! -s conftest.err'
  12460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12461. (eval $ac_try) 2>&5
  12462. ac_status=$?
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. (exit $ac_status); }; } &&
  12465. { ac_try='test -s conftest.$ac_objext'
  12466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12467. (eval $ac_try) 2>&5
  12468. ac_status=$?
  12469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12470. (exit $ac_status); }; }; then
  12471. ac_lo=$ac_mid; break
  12472. else
  12473. echo "$as_me: failed program was:" >&5
  12474. sed 's/^/| /' conftest.$ac_ext >&5
  12475. ac_hi=`expr '(' $ac_mid ')' - 1`
  12476. if test $ac_mid -le $ac_hi; then
  12477. ac_lo= ac_hi=
  12478. break
  12479. fi
  12480. ac_mid=`expr 2 '*' $ac_mid`
  12481. fi
  12482. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12483. done
  12484. else
  12485. echo "$as_me: failed program was:" >&5
  12486. sed 's/^/| /' conftest.$ac_ext >&5
  12487. ac_lo= ac_hi=
  12488. fi
  12489. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12490. fi
  12491. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12492. # Binary search between lo and hi bounds.
  12493. while test "x$ac_lo" != "x$ac_hi"; do
  12494. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12495. cat >conftest.$ac_ext <<_ACEOF
  12496. /* confdefs.h. */
  12497. _ACEOF
  12498. cat confdefs.h >>conftest.$ac_ext
  12499. cat >>conftest.$ac_ext <<_ACEOF
  12500. /* end confdefs.h. */
  12501. $ac_includes_default
  12502. int
  12503. main ()
  12504. {
  12505. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  12506. test_array [0] = 0
  12507. ;
  12508. return 0;
  12509. }
  12510. _ACEOF
  12511. rm -f conftest.$ac_objext
  12512. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12513. (eval $ac_compile) 2>conftest.er1
  12514. ac_status=$?
  12515. grep -v '^ *+' conftest.er1 >conftest.err
  12516. rm -f conftest.er1
  12517. cat conftest.err >&5
  12518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12519. (exit $ac_status); } &&
  12520. { ac_try='test -z "$ac_c_werror_flag"
  12521. || test ! -s conftest.err'
  12522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12523. (eval $ac_try) 2>&5
  12524. ac_status=$?
  12525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12526. (exit $ac_status); }; } &&
  12527. { ac_try='test -s conftest.$ac_objext'
  12528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12529. (eval $ac_try) 2>&5
  12530. ac_status=$?
  12531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12532. (exit $ac_status); }; }; then
  12533. ac_hi=$ac_mid
  12534. else
  12535. echo "$as_me: failed program was:" >&5
  12536. sed 's/^/| /' conftest.$ac_ext >&5
  12537. ac_lo=`expr '(' $ac_mid ')' + 1`
  12538. fi
  12539. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12540. done
  12541. case $ac_lo in
  12542. ?*) ac_cv_sizeof_int=$ac_lo;;
  12543. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  12544. See \`config.log' for more details." >&5
  12545. echo "$as_me: error: cannot compute sizeof (int), 77
  12546. See \`config.log' for more details." >&2;}
  12547. { (exit 1); exit 1; }; } ;;
  12548. esac
  12549. else
  12550. if test "$cross_compiling" = yes; then
  12551. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  12552. See \`config.log' for more details." >&5
  12553. echo "$as_me: error: cannot run test program while cross compiling
  12554. See \`config.log' for more details." >&2;}
  12555. { (exit 1); exit 1; }; }
  12556. else
  12557. cat >conftest.$ac_ext <<_ACEOF
  12558. /* confdefs.h. */
  12559. _ACEOF
  12560. cat confdefs.h >>conftest.$ac_ext
  12561. cat >>conftest.$ac_ext <<_ACEOF
  12562. /* end confdefs.h. */
  12563. $ac_includes_default
  12564. long longval () { return (long) (sizeof (int)); }
  12565. unsigned long ulongval () { return (long) (sizeof (int)); }
  12566. #include <stdio.h>
  12567. #include <stdlib.h>
  12568. int
  12569. main ()
  12570. {
  12571. FILE *f = fopen ("conftest.val", "w");
  12572. if (! f)
  12573. exit (1);
  12574. if (((long) (sizeof (int))) < 0)
  12575. {
  12576. long i = longval ();
  12577. if (i != ((long) (sizeof (int))))
  12578. exit (1);
  12579. fprintf (f, "%ld\n", i);
  12580. }
  12581. else
  12582. {
  12583. unsigned long i = ulongval ();
  12584. if (i != ((long) (sizeof (int))))
  12585. exit (1);
  12586. fprintf (f, "%lu\n", i);
  12587. }
  12588. exit (ferror (f) || fclose (f) != 0);
  12589. ;
  12590. return 0;
  12591. }
  12592. _ACEOF
  12593. rm -f conftest$ac_exeext
  12594. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12595. (eval $ac_link) 2>&5
  12596. ac_status=$?
  12597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12598. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12600. (eval $ac_try) 2>&5
  12601. ac_status=$?
  12602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12603. (exit $ac_status); }; }; then
  12604. ac_cv_sizeof_int=`cat conftest.val`
  12605. else
  12606. echo "$as_me: program exited with status $ac_status" >&5
  12607. echo "$as_me: failed program was:" >&5
  12608. sed 's/^/| /' conftest.$ac_ext >&5
  12609. ( exit $ac_status )
  12610. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  12611. See \`config.log' for more details." >&5
  12612. echo "$as_me: error: cannot compute sizeof (int), 77
  12613. See \`config.log' for more details." >&2;}
  12614. { (exit 1); exit 1; }; }
  12615. fi
  12616. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12617. fi
  12618. fi
  12619. rm -f conftest.val
  12620. else
  12621. ac_cv_sizeof_int=0
  12622. fi
  12623. fi
  12624. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  12625. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  12626. cat >>confdefs.h <<_ACEOF
  12627. #define SIZEOF_INT $ac_cv_sizeof_int
  12628. _ACEOF
  12629. echo "$as_me:$LINENO: checking for short" >&5
  12630. echo $ECHO_N "checking for short... $ECHO_C" >&6
  12631. if test "${ac_cv_type_short+set}" = set; then
  12632. echo $ECHO_N "(cached) $ECHO_C" >&6
  12633. else
  12634. cat >conftest.$ac_ext <<_ACEOF
  12635. /* confdefs.h. */
  12636. _ACEOF
  12637. cat confdefs.h >>conftest.$ac_ext
  12638. cat >>conftest.$ac_ext <<_ACEOF
  12639. /* end confdefs.h. */
  12640. $ac_includes_default
  12641. int
  12642. main ()
  12643. {
  12644. if ((short *) 0)
  12645. return 0;
  12646. if (sizeof (short))
  12647. return 0;
  12648. ;
  12649. return 0;
  12650. }
  12651. _ACEOF
  12652. rm -f conftest.$ac_objext
  12653. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12654. (eval $ac_compile) 2>conftest.er1
  12655. ac_status=$?
  12656. grep -v '^ *+' conftest.er1 >conftest.err
  12657. rm -f conftest.er1
  12658. cat conftest.err >&5
  12659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12660. (exit $ac_status); } &&
  12661. { ac_try='test -z "$ac_c_werror_flag"
  12662. || test ! -s conftest.err'
  12663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12664. (eval $ac_try) 2>&5
  12665. ac_status=$?
  12666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12667. (exit $ac_status); }; } &&
  12668. { ac_try='test -s conftest.$ac_objext'
  12669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12670. (eval $ac_try) 2>&5
  12671. ac_status=$?
  12672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12673. (exit $ac_status); }; }; then
  12674. ac_cv_type_short=yes
  12675. else
  12676. echo "$as_me: failed program was:" >&5
  12677. sed 's/^/| /' conftest.$ac_ext >&5
  12678. ac_cv_type_short=no
  12679. fi
  12680. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12681. fi
  12682. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  12683. echo "${ECHO_T}$ac_cv_type_short" >&6
  12684. echo "$as_me:$LINENO: checking size of short" >&5
  12685. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  12686. if test "${ac_cv_sizeof_short+set}" = set; then
  12687. echo $ECHO_N "(cached) $ECHO_C" >&6
  12688. else
  12689. if test "$ac_cv_type_short" = yes; then
  12690. # The cast to unsigned long works around a bug in the HP C Compiler
  12691. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12692. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12693. # This bug is HP SR number 8606223364.
  12694. if test "$cross_compiling" = yes; then
  12695. # Depending upon the size, compute the lo and hi bounds.
  12696. cat >conftest.$ac_ext <<_ACEOF
  12697. /* confdefs.h. */
  12698. _ACEOF
  12699. cat confdefs.h >>conftest.$ac_ext
  12700. cat >>conftest.$ac_ext <<_ACEOF
  12701. /* end confdefs.h. */
  12702. $ac_includes_default
  12703. int
  12704. main ()
  12705. {
  12706. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  12707. test_array [0] = 0
  12708. ;
  12709. return 0;
  12710. }
  12711. _ACEOF
  12712. rm -f conftest.$ac_objext
  12713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12714. (eval $ac_compile) 2>conftest.er1
  12715. ac_status=$?
  12716. grep -v '^ *+' conftest.er1 >conftest.err
  12717. rm -f conftest.er1
  12718. cat conftest.err >&5
  12719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12720. (exit $ac_status); } &&
  12721. { ac_try='test -z "$ac_c_werror_flag"
  12722. || test ! -s conftest.err'
  12723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12724. (eval $ac_try) 2>&5
  12725. ac_status=$?
  12726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12727. (exit $ac_status); }; } &&
  12728. { ac_try='test -s conftest.$ac_objext'
  12729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12730. (eval $ac_try) 2>&5
  12731. ac_status=$?
  12732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12733. (exit $ac_status); }; }; then
  12734. ac_lo=0 ac_mid=0
  12735. while :; do
  12736. cat >conftest.$ac_ext <<_ACEOF
  12737. /* confdefs.h. */
  12738. _ACEOF
  12739. cat confdefs.h >>conftest.$ac_ext
  12740. cat >>conftest.$ac_ext <<_ACEOF
  12741. /* end confdefs.h. */
  12742. $ac_includes_default
  12743. int
  12744. main ()
  12745. {
  12746. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  12747. test_array [0] = 0
  12748. ;
  12749. return 0;
  12750. }
  12751. _ACEOF
  12752. rm -f conftest.$ac_objext
  12753. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12754. (eval $ac_compile) 2>conftest.er1
  12755. ac_status=$?
  12756. grep -v '^ *+' conftest.er1 >conftest.err
  12757. rm -f conftest.er1
  12758. cat conftest.err >&5
  12759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12760. (exit $ac_status); } &&
  12761. { ac_try='test -z "$ac_c_werror_flag"
  12762. || test ! -s conftest.err'
  12763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12764. (eval $ac_try) 2>&5
  12765. ac_status=$?
  12766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12767. (exit $ac_status); }; } &&
  12768. { ac_try='test -s conftest.$ac_objext'
  12769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12770. (eval $ac_try) 2>&5
  12771. ac_status=$?
  12772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12773. (exit $ac_status); }; }; then
  12774. ac_hi=$ac_mid; break
  12775. else
  12776. echo "$as_me: failed program was:" >&5
  12777. sed 's/^/| /' conftest.$ac_ext >&5
  12778. ac_lo=`expr $ac_mid + 1`
  12779. if test $ac_lo -le $ac_mid; then
  12780. ac_lo= ac_hi=
  12781. break
  12782. fi
  12783. ac_mid=`expr 2 '*' $ac_mid + 1`
  12784. fi
  12785. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12786. done
  12787. else
  12788. echo "$as_me: failed program was:" >&5
  12789. sed 's/^/| /' conftest.$ac_ext >&5
  12790. cat >conftest.$ac_ext <<_ACEOF
  12791. /* confdefs.h. */
  12792. _ACEOF
  12793. cat confdefs.h >>conftest.$ac_ext
  12794. cat >>conftest.$ac_ext <<_ACEOF
  12795. /* end confdefs.h. */
  12796. $ac_includes_default
  12797. int
  12798. main ()
  12799. {
  12800. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  12801. test_array [0] = 0
  12802. ;
  12803. return 0;
  12804. }
  12805. _ACEOF
  12806. rm -f conftest.$ac_objext
  12807. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12808. (eval $ac_compile) 2>conftest.er1
  12809. ac_status=$?
  12810. grep -v '^ *+' conftest.er1 >conftest.err
  12811. rm -f conftest.er1
  12812. cat conftest.err >&5
  12813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12814. (exit $ac_status); } &&
  12815. { ac_try='test -z "$ac_c_werror_flag"
  12816. || test ! -s conftest.err'
  12817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12818. (eval $ac_try) 2>&5
  12819. ac_status=$?
  12820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12821. (exit $ac_status); }; } &&
  12822. { ac_try='test -s conftest.$ac_objext'
  12823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12824. (eval $ac_try) 2>&5
  12825. ac_status=$?
  12826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12827. (exit $ac_status); }; }; then
  12828. ac_hi=-1 ac_mid=-1
  12829. while :; do
  12830. cat >conftest.$ac_ext <<_ACEOF
  12831. /* confdefs.h. */
  12832. _ACEOF
  12833. cat confdefs.h >>conftest.$ac_ext
  12834. cat >>conftest.$ac_ext <<_ACEOF
  12835. /* end confdefs.h. */
  12836. $ac_includes_default
  12837. int
  12838. main ()
  12839. {
  12840. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  12841. test_array [0] = 0
  12842. ;
  12843. return 0;
  12844. }
  12845. _ACEOF
  12846. rm -f conftest.$ac_objext
  12847. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12848. (eval $ac_compile) 2>conftest.er1
  12849. ac_status=$?
  12850. grep -v '^ *+' conftest.er1 >conftest.err
  12851. rm -f conftest.er1
  12852. cat conftest.err >&5
  12853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12854. (exit $ac_status); } &&
  12855. { ac_try='test -z "$ac_c_werror_flag"
  12856. || test ! -s conftest.err'
  12857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12858. (eval $ac_try) 2>&5
  12859. ac_status=$?
  12860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12861. (exit $ac_status); }; } &&
  12862. { ac_try='test -s conftest.$ac_objext'
  12863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12864. (eval $ac_try) 2>&5
  12865. ac_status=$?
  12866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12867. (exit $ac_status); }; }; then
  12868. ac_lo=$ac_mid; break
  12869. else
  12870. echo "$as_me: failed program was:" >&5
  12871. sed 's/^/| /' conftest.$ac_ext >&5
  12872. ac_hi=`expr '(' $ac_mid ')' - 1`
  12873. if test $ac_mid -le $ac_hi; then
  12874. ac_lo= ac_hi=
  12875. break
  12876. fi
  12877. ac_mid=`expr 2 '*' $ac_mid`
  12878. fi
  12879. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12880. done
  12881. else
  12882. echo "$as_me: failed program was:" >&5
  12883. sed 's/^/| /' conftest.$ac_ext >&5
  12884. ac_lo= ac_hi=
  12885. fi
  12886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12887. fi
  12888. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12889. # Binary search between lo and hi bounds.
  12890. while test "x$ac_lo" != "x$ac_hi"; do
  12891. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12892. cat >conftest.$ac_ext <<_ACEOF
  12893. /* confdefs.h. */
  12894. _ACEOF
  12895. cat confdefs.h >>conftest.$ac_ext
  12896. cat >>conftest.$ac_ext <<_ACEOF
  12897. /* end confdefs.h. */
  12898. $ac_includes_default
  12899. int
  12900. main ()
  12901. {
  12902. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  12903. test_array [0] = 0
  12904. ;
  12905. return 0;
  12906. }
  12907. _ACEOF
  12908. rm -f conftest.$ac_objext
  12909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12910. (eval $ac_compile) 2>conftest.er1
  12911. ac_status=$?
  12912. grep -v '^ *+' conftest.er1 >conftest.err
  12913. rm -f conftest.er1
  12914. cat conftest.err >&5
  12915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12916. (exit $ac_status); } &&
  12917. { ac_try='test -z "$ac_c_werror_flag"
  12918. || test ! -s conftest.err'
  12919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12920. (eval $ac_try) 2>&5
  12921. ac_status=$?
  12922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12923. (exit $ac_status); }; } &&
  12924. { ac_try='test -s conftest.$ac_objext'
  12925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12926. (eval $ac_try) 2>&5
  12927. ac_status=$?
  12928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12929. (exit $ac_status); }; }; then
  12930. ac_hi=$ac_mid
  12931. else
  12932. echo "$as_me: failed program was:" >&5
  12933. sed 's/^/| /' conftest.$ac_ext >&5
  12934. ac_lo=`expr '(' $ac_mid ')' + 1`
  12935. fi
  12936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12937. done
  12938. case $ac_lo in
  12939. ?*) ac_cv_sizeof_short=$ac_lo;;
  12940. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  12941. See \`config.log' for more details." >&5
  12942. echo "$as_me: error: cannot compute sizeof (short), 77
  12943. See \`config.log' for more details." >&2;}
  12944. { (exit 1); exit 1; }; } ;;
  12945. esac
  12946. else
  12947. if test "$cross_compiling" = yes; then
  12948. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  12949. See \`config.log' for more details." >&5
  12950. echo "$as_me: error: cannot run test program while cross compiling
  12951. See \`config.log' for more details." >&2;}
  12952. { (exit 1); exit 1; }; }
  12953. else
  12954. cat >conftest.$ac_ext <<_ACEOF
  12955. /* confdefs.h. */
  12956. _ACEOF
  12957. cat confdefs.h >>conftest.$ac_ext
  12958. cat >>conftest.$ac_ext <<_ACEOF
  12959. /* end confdefs.h. */
  12960. $ac_includes_default
  12961. long longval () { return (long) (sizeof (short)); }
  12962. unsigned long ulongval () { return (long) (sizeof (short)); }
  12963. #include <stdio.h>
  12964. #include <stdlib.h>
  12965. int
  12966. main ()
  12967. {
  12968. FILE *f = fopen ("conftest.val", "w");
  12969. if (! f)
  12970. exit (1);
  12971. if (((long) (sizeof (short))) < 0)
  12972. {
  12973. long i = longval ();
  12974. if (i != ((long) (sizeof (short))))
  12975. exit (1);
  12976. fprintf (f, "%ld\n", i);
  12977. }
  12978. else
  12979. {
  12980. unsigned long i = ulongval ();
  12981. if (i != ((long) (sizeof (short))))
  12982. exit (1);
  12983. fprintf (f, "%lu\n", i);
  12984. }
  12985. exit (ferror (f) || fclose (f) != 0);
  12986. ;
  12987. return 0;
  12988. }
  12989. _ACEOF
  12990. rm -f conftest$ac_exeext
  12991. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12992. (eval $ac_link) 2>&5
  12993. ac_status=$?
  12994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12995. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12997. (eval $ac_try) 2>&5
  12998. ac_status=$?
  12999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13000. (exit $ac_status); }; }; then
  13001. ac_cv_sizeof_short=`cat conftest.val`
  13002. else
  13003. echo "$as_me: program exited with status $ac_status" >&5
  13004. echo "$as_me: failed program was:" >&5
  13005. sed 's/^/| /' conftest.$ac_ext >&5
  13006. ( exit $ac_status )
  13007. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  13008. See \`config.log' for more details." >&5
  13009. echo "$as_me: error: cannot compute sizeof (short), 77
  13010. See \`config.log' for more details." >&2;}
  13011. { (exit 1); exit 1; }; }
  13012. fi
  13013. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13014. fi
  13015. fi
  13016. rm -f conftest.val
  13017. else
  13018. ac_cv_sizeof_short=0
  13019. fi
  13020. fi
  13021. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  13022. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  13023. cat >>confdefs.h <<_ACEOF
  13024. #define SIZEOF_SHORT $ac_cv_sizeof_short
  13025. _ACEOF
  13026. echo "$as_me:$LINENO: checking for char" >&5
  13027. echo $ECHO_N "checking for char... $ECHO_C" >&6
  13028. if test "${ac_cv_type_char+set}" = set; then
  13029. echo $ECHO_N "(cached) $ECHO_C" >&6
  13030. else
  13031. cat >conftest.$ac_ext <<_ACEOF
  13032. /* confdefs.h. */
  13033. _ACEOF
  13034. cat confdefs.h >>conftest.$ac_ext
  13035. cat >>conftest.$ac_ext <<_ACEOF
  13036. /* end confdefs.h. */
  13037. $ac_includes_default
  13038. int
  13039. main ()
  13040. {
  13041. if ((char *) 0)
  13042. return 0;
  13043. if (sizeof (char))
  13044. return 0;
  13045. ;
  13046. return 0;
  13047. }
  13048. _ACEOF
  13049. rm -f conftest.$ac_objext
  13050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13051. (eval $ac_compile) 2>conftest.er1
  13052. ac_status=$?
  13053. grep -v '^ *+' conftest.er1 >conftest.err
  13054. rm -f conftest.er1
  13055. cat conftest.err >&5
  13056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13057. (exit $ac_status); } &&
  13058. { ac_try='test -z "$ac_c_werror_flag"
  13059. || test ! -s conftest.err'
  13060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13061. (eval $ac_try) 2>&5
  13062. ac_status=$?
  13063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13064. (exit $ac_status); }; } &&
  13065. { ac_try='test -s conftest.$ac_objext'
  13066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13067. (eval $ac_try) 2>&5
  13068. ac_status=$?
  13069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13070. (exit $ac_status); }; }; then
  13071. ac_cv_type_char=yes
  13072. else
  13073. echo "$as_me: failed program was:" >&5
  13074. sed 's/^/| /' conftest.$ac_ext >&5
  13075. ac_cv_type_char=no
  13076. fi
  13077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13078. fi
  13079. echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  13080. echo "${ECHO_T}$ac_cv_type_char" >&6
  13081. echo "$as_me:$LINENO: checking size of char" >&5
  13082. echo $ECHO_N "checking size of char... $ECHO_C" >&6
  13083. if test "${ac_cv_sizeof_char+set}" = set; then
  13084. echo $ECHO_N "(cached) $ECHO_C" >&6
  13085. else
  13086. if test "$ac_cv_type_char" = yes; then
  13087. # The cast to unsigned long works around a bug in the HP C Compiler
  13088. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13089. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13090. # This bug is HP SR number 8606223364.
  13091. if test "$cross_compiling" = yes; then
  13092. # Depending upon the size, compute the lo and hi bounds.
  13093. cat >conftest.$ac_ext <<_ACEOF
  13094. /* confdefs.h. */
  13095. _ACEOF
  13096. cat confdefs.h >>conftest.$ac_ext
  13097. cat >>conftest.$ac_ext <<_ACEOF
  13098. /* end confdefs.h. */
  13099. $ac_includes_default
  13100. int
  13101. main ()
  13102. {
  13103. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
  13104. test_array [0] = 0
  13105. ;
  13106. return 0;
  13107. }
  13108. _ACEOF
  13109. rm -f conftest.$ac_objext
  13110. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13111. (eval $ac_compile) 2>conftest.er1
  13112. ac_status=$?
  13113. grep -v '^ *+' conftest.er1 >conftest.err
  13114. rm -f conftest.er1
  13115. cat conftest.err >&5
  13116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13117. (exit $ac_status); } &&
  13118. { ac_try='test -z "$ac_c_werror_flag"
  13119. || test ! -s conftest.err'
  13120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13121. (eval $ac_try) 2>&5
  13122. ac_status=$?
  13123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13124. (exit $ac_status); }; } &&
  13125. { ac_try='test -s conftest.$ac_objext'
  13126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13127. (eval $ac_try) 2>&5
  13128. ac_status=$?
  13129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13130. (exit $ac_status); }; }; then
  13131. ac_lo=0 ac_mid=0
  13132. while :; do
  13133. cat >conftest.$ac_ext <<_ACEOF
  13134. /* confdefs.h. */
  13135. _ACEOF
  13136. cat confdefs.h >>conftest.$ac_ext
  13137. cat >>conftest.$ac_ext <<_ACEOF
  13138. /* end confdefs.h. */
  13139. $ac_includes_default
  13140. int
  13141. main ()
  13142. {
  13143. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  13144. test_array [0] = 0
  13145. ;
  13146. return 0;
  13147. }
  13148. _ACEOF
  13149. rm -f conftest.$ac_objext
  13150. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13151. (eval $ac_compile) 2>conftest.er1
  13152. ac_status=$?
  13153. grep -v '^ *+' conftest.er1 >conftest.err
  13154. rm -f conftest.er1
  13155. cat conftest.err >&5
  13156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13157. (exit $ac_status); } &&
  13158. { ac_try='test -z "$ac_c_werror_flag"
  13159. || test ! -s conftest.err'
  13160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13161. (eval $ac_try) 2>&5
  13162. ac_status=$?
  13163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13164. (exit $ac_status); }; } &&
  13165. { ac_try='test -s conftest.$ac_objext'
  13166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13167. (eval $ac_try) 2>&5
  13168. ac_status=$?
  13169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13170. (exit $ac_status); }; }; then
  13171. ac_hi=$ac_mid; break
  13172. else
  13173. echo "$as_me: failed program was:" >&5
  13174. sed 's/^/| /' conftest.$ac_ext >&5
  13175. ac_lo=`expr $ac_mid + 1`
  13176. if test $ac_lo -le $ac_mid; then
  13177. ac_lo= ac_hi=
  13178. break
  13179. fi
  13180. ac_mid=`expr 2 '*' $ac_mid + 1`
  13181. fi
  13182. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13183. done
  13184. else
  13185. echo "$as_me: failed program was:" >&5
  13186. sed 's/^/| /' conftest.$ac_ext >&5
  13187. cat >conftest.$ac_ext <<_ACEOF
  13188. /* confdefs.h. */
  13189. _ACEOF
  13190. cat confdefs.h >>conftest.$ac_ext
  13191. cat >>conftest.$ac_ext <<_ACEOF
  13192. /* end confdefs.h. */
  13193. $ac_includes_default
  13194. int
  13195. main ()
  13196. {
  13197. static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
  13198. test_array [0] = 0
  13199. ;
  13200. return 0;
  13201. }
  13202. _ACEOF
  13203. rm -f conftest.$ac_objext
  13204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13205. (eval $ac_compile) 2>conftest.er1
  13206. ac_status=$?
  13207. grep -v '^ *+' conftest.er1 >conftest.err
  13208. rm -f conftest.er1
  13209. cat conftest.err >&5
  13210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13211. (exit $ac_status); } &&
  13212. { ac_try='test -z "$ac_c_werror_flag"
  13213. || test ! -s conftest.err'
  13214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13215. (eval $ac_try) 2>&5
  13216. ac_status=$?
  13217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13218. (exit $ac_status); }; } &&
  13219. { ac_try='test -s conftest.$ac_objext'
  13220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13221. (eval $ac_try) 2>&5
  13222. ac_status=$?
  13223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13224. (exit $ac_status); }; }; then
  13225. ac_hi=-1 ac_mid=-1
  13226. while :; do
  13227. cat >conftest.$ac_ext <<_ACEOF
  13228. /* confdefs.h. */
  13229. _ACEOF
  13230. cat confdefs.h >>conftest.$ac_ext
  13231. cat >>conftest.$ac_ext <<_ACEOF
  13232. /* end confdefs.h. */
  13233. $ac_includes_default
  13234. int
  13235. main ()
  13236. {
  13237. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
  13238. test_array [0] = 0
  13239. ;
  13240. return 0;
  13241. }
  13242. _ACEOF
  13243. rm -f conftest.$ac_objext
  13244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13245. (eval $ac_compile) 2>conftest.er1
  13246. ac_status=$?
  13247. grep -v '^ *+' conftest.er1 >conftest.err
  13248. rm -f conftest.er1
  13249. cat conftest.err >&5
  13250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13251. (exit $ac_status); } &&
  13252. { ac_try='test -z "$ac_c_werror_flag"
  13253. || test ! -s conftest.err'
  13254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13255. (eval $ac_try) 2>&5
  13256. ac_status=$?
  13257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13258. (exit $ac_status); }; } &&
  13259. { ac_try='test -s conftest.$ac_objext'
  13260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13261. (eval $ac_try) 2>&5
  13262. ac_status=$?
  13263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13264. (exit $ac_status); }; }; then
  13265. ac_lo=$ac_mid; break
  13266. else
  13267. echo "$as_me: failed program was:" >&5
  13268. sed 's/^/| /' conftest.$ac_ext >&5
  13269. ac_hi=`expr '(' $ac_mid ')' - 1`
  13270. if test $ac_mid -le $ac_hi; then
  13271. ac_lo= ac_hi=
  13272. break
  13273. fi
  13274. ac_mid=`expr 2 '*' $ac_mid`
  13275. fi
  13276. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13277. done
  13278. else
  13279. echo "$as_me: failed program was:" >&5
  13280. sed 's/^/| /' conftest.$ac_ext >&5
  13281. ac_lo= ac_hi=
  13282. fi
  13283. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13284. fi
  13285. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13286. # Binary search between lo and hi bounds.
  13287. while test "x$ac_lo" != "x$ac_hi"; do
  13288. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13289. cat >conftest.$ac_ext <<_ACEOF
  13290. /* confdefs.h. */
  13291. _ACEOF
  13292. cat confdefs.h >>conftest.$ac_ext
  13293. cat >>conftest.$ac_ext <<_ACEOF
  13294. /* end confdefs.h. */
  13295. $ac_includes_default
  13296. int
  13297. main ()
  13298. {
  13299. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  13300. test_array [0] = 0
  13301. ;
  13302. return 0;
  13303. }
  13304. _ACEOF
  13305. rm -f conftest.$ac_objext
  13306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13307. (eval $ac_compile) 2>conftest.er1
  13308. ac_status=$?
  13309. grep -v '^ *+' conftest.er1 >conftest.err
  13310. rm -f conftest.er1
  13311. cat conftest.err >&5
  13312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13313. (exit $ac_status); } &&
  13314. { ac_try='test -z "$ac_c_werror_flag"
  13315. || test ! -s conftest.err'
  13316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13317. (eval $ac_try) 2>&5
  13318. ac_status=$?
  13319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13320. (exit $ac_status); }; } &&
  13321. { ac_try='test -s conftest.$ac_objext'
  13322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13323. (eval $ac_try) 2>&5
  13324. ac_status=$?
  13325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13326. (exit $ac_status); }; }; then
  13327. ac_hi=$ac_mid
  13328. else
  13329. echo "$as_me: failed program was:" >&5
  13330. sed 's/^/| /' conftest.$ac_ext >&5
  13331. ac_lo=`expr '(' $ac_mid ')' + 1`
  13332. fi
  13333. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13334. done
  13335. case $ac_lo in
  13336. ?*) ac_cv_sizeof_char=$ac_lo;;
  13337. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  13338. See \`config.log' for more details." >&5
  13339. echo "$as_me: error: cannot compute sizeof (char), 77
  13340. See \`config.log' for more details." >&2;}
  13341. { (exit 1); exit 1; }; } ;;
  13342. esac
  13343. else
  13344. if test "$cross_compiling" = yes; then
  13345. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  13346. See \`config.log' for more details." >&5
  13347. echo "$as_me: error: cannot run test program while cross compiling
  13348. See \`config.log' for more details." >&2;}
  13349. { (exit 1); exit 1; }; }
  13350. else
  13351. cat >conftest.$ac_ext <<_ACEOF
  13352. /* confdefs.h. */
  13353. _ACEOF
  13354. cat confdefs.h >>conftest.$ac_ext
  13355. cat >>conftest.$ac_ext <<_ACEOF
  13356. /* end confdefs.h. */
  13357. $ac_includes_default
  13358. long longval () { return (long) (sizeof (char)); }
  13359. unsigned long ulongval () { return (long) (sizeof (char)); }
  13360. #include <stdio.h>
  13361. #include <stdlib.h>
  13362. int
  13363. main ()
  13364. {
  13365. FILE *f = fopen ("conftest.val", "w");
  13366. if (! f)
  13367. exit (1);
  13368. if (((long) (sizeof (char))) < 0)
  13369. {
  13370. long i = longval ();
  13371. if (i != ((long) (sizeof (char))))
  13372. exit (1);
  13373. fprintf (f, "%ld\n", i);
  13374. }
  13375. else
  13376. {
  13377. unsigned long i = ulongval ();
  13378. if (i != ((long) (sizeof (char))))
  13379. exit (1);
  13380. fprintf (f, "%lu\n", i);
  13381. }
  13382. exit (ferror (f) || fclose (f) != 0);
  13383. ;
  13384. return 0;
  13385. }
  13386. _ACEOF
  13387. rm -f conftest$ac_exeext
  13388. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13389. (eval $ac_link) 2>&5
  13390. ac_status=$?
  13391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13392. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13394. (eval $ac_try) 2>&5
  13395. ac_status=$?
  13396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13397. (exit $ac_status); }; }; then
  13398. ac_cv_sizeof_char=`cat conftest.val`
  13399. else
  13400. echo "$as_me: program exited with status $ac_status" >&5
  13401. echo "$as_me: failed program was:" >&5
  13402. sed 's/^/| /' conftest.$ac_ext >&5
  13403. ( exit $ac_status )
  13404. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  13405. See \`config.log' for more details." >&5
  13406. echo "$as_me: error: cannot compute sizeof (char), 77
  13407. See \`config.log' for more details." >&2;}
  13408. { (exit 1); exit 1; }; }
  13409. fi
  13410. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13411. fi
  13412. fi
  13413. rm -f conftest.val
  13414. else
  13415. ac_cv_sizeof_char=0
  13416. fi
  13417. fi
  13418. echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  13419. echo "${ECHO_T}$ac_cv_sizeof_char" >&6
  13420. cat >>confdefs.h <<_ACEOF
  13421. #define SIZEOF_CHAR $ac_cv_sizeof_char
  13422. _ACEOF
  13423. echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
  13424. echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
  13425. case "$ac_cv_sizeof_char" in
  13426. 1) acx_cv_type_int8_t=char ;;
  13427. *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
  13428. echo "$as_me: error: no 8-bit type" >&2;}
  13429. { (exit please report a bug); exit please report a bug; }; }
  13430. esac
  13431. echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
  13432. echo "${ECHO_T}$acx_cv_type_int8_t" >&6
  13433. echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
  13434. echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
  13435. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  13436. 2:*) acx_cv_type_int16_t=int ;;
  13437. *:2) acx_cv_type_int16_t=short ;;
  13438. *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
  13439. echo "$as_me: error: no 16-bit type" >&2;}
  13440. { (exit please report a bug); exit please report a bug; }; }
  13441. esac
  13442. echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
  13443. echo "${ECHO_T}$acx_cv_type_int16_t" >&6
  13444. echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
  13445. echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
  13446. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  13447. 4:*) acx_cv_type_int32_t=int ;;
  13448. *:4) acx_cv_type_int32_t=long ;;
  13449. *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
  13450. echo "$as_me: error: no 32-bit type" >&2;}
  13451. { (exit please report a bug); exit please report a bug; }; }
  13452. esac
  13453. echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
  13454. echo "${ECHO_T}$acx_cv_type_int32_t" >&6
  13455. fi
  13456. # These tests are here to make the output prettier
  13457. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  13458. case "$ac_cv_sizeof_long" in
  13459. 8) acx_cv_type_int64_t=long ;;
  13460. esac
  13461. echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
  13462. echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
  13463. echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  13464. echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
  13465. fi
  13466. # Now we can use the above types
  13467. if test "$ac_cv_type_uintptr_t" != yes; then
  13468. echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
  13469. echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
  13470. case $ac_cv_sizeof_void_p in
  13471. 2) acx_cv_type_intptr_t=int16_t ;;
  13472. 4) acx_cv_type_intptr_t=int32_t ;;
  13473. 8) acx_cv_type_intptr_t=int64_t ;;
  13474. *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
  13475. echo "$as_me: error: no equivalent for intptr_t" >&2;}
  13476. { (exit please report a bug); exit please report a bug; }; }
  13477. esac
  13478. echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
  13479. echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
  13480. fi
  13481. # ----------------- done all checks, emit header -------------
  13482. ac_config_commands="$ac_config_commands bfd_stdint.h"
  13483. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  13484. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  13485. if test "${ac_cv_header_time+set}" = set; then
  13486. echo $ECHO_N "(cached) $ECHO_C" >&6
  13487. else
  13488. cat >conftest.$ac_ext <<_ACEOF
  13489. /* confdefs.h. */
  13490. _ACEOF
  13491. cat confdefs.h >>conftest.$ac_ext
  13492. cat >>conftest.$ac_ext <<_ACEOF
  13493. /* end confdefs.h. */
  13494. #include <sys/types.h>
  13495. #include <sys/time.h>
  13496. #include <time.h>
  13497. int
  13498. main ()
  13499. {
  13500. if ((struct tm *) 0)
  13501. return 0;
  13502. ;
  13503. return 0;
  13504. }
  13505. _ACEOF
  13506. rm -f conftest.$ac_objext
  13507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13508. (eval $ac_compile) 2>conftest.er1
  13509. ac_status=$?
  13510. grep -v '^ *+' conftest.er1 >conftest.err
  13511. rm -f conftest.er1
  13512. cat conftest.err >&5
  13513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13514. (exit $ac_status); } &&
  13515. { ac_try='test -z "$ac_c_werror_flag"
  13516. || test ! -s conftest.err'
  13517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13518. (eval $ac_try) 2>&5
  13519. ac_status=$?
  13520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13521. (exit $ac_status); }; } &&
  13522. { ac_try='test -s conftest.$ac_objext'
  13523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13524. (eval $ac_try) 2>&5
  13525. ac_status=$?
  13526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13527. (exit $ac_status); }; }; then
  13528. ac_cv_header_time=yes
  13529. else
  13530. echo "$as_me: failed program was:" >&5
  13531. sed 's/^/| /' conftest.$ac_ext >&5
  13532. ac_cv_header_time=no
  13533. fi
  13534. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13535. fi
  13536. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  13537. echo "${ECHO_T}$ac_cv_header_time" >&6
  13538. if test $ac_cv_header_time = yes; then
  13539. cat >>confdefs.h <<\_ACEOF
  13540. #define TIME_WITH_SYS_TIME 1
  13541. _ACEOF
  13542. fi
  13543. ac_header_dirent=no
  13544. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13545. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13546. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  13547. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  13548. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13549. echo $ECHO_N "(cached) $ECHO_C" >&6
  13550. else
  13551. cat >conftest.$ac_ext <<_ACEOF
  13552. /* confdefs.h. */
  13553. _ACEOF
  13554. cat confdefs.h >>conftest.$ac_ext
  13555. cat >>conftest.$ac_ext <<_ACEOF
  13556. /* end confdefs.h. */
  13557. #include <sys/types.h>
  13558. #include <$ac_hdr>
  13559. int
  13560. main ()
  13561. {
  13562. if ((DIR *) 0)
  13563. return 0;
  13564. ;
  13565. return 0;
  13566. }
  13567. _ACEOF
  13568. rm -f conftest.$ac_objext
  13569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13570. (eval $ac_compile) 2>conftest.er1
  13571. ac_status=$?
  13572. grep -v '^ *+' conftest.er1 >conftest.err
  13573. rm -f conftest.er1
  13574. cat conftest.err >&5
  13575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13576. (exit $ac_status); } &&
  13577. { ac_try='test -z "$ac_c_werror_flag"
  13578. || test ! -s conftest.err'
  13579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13580. (eval $ac_try) 2>&5
  13581. ac_status=$?
  13582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13583. (exit $ac_status); }; } &&
  13584. { ac_try='test -s conftest.$ac_objext'
  13585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13586. (eval $ac_try) 2>&5
  13587. ac_status=$?
  13588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13589. (exit $ac_status); }; }; then
  13590. eval "$as_ac_Header=yes"
  13591. else
  13592. echo "$as_me: failed program was:" >&5
  13593. sed 's/^/| /' conftest.$ac_ext >&5
  13594. eval "$as_ac_Header=no"
  13595. fi
  13596. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13597. fi
  13598. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13599. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13600. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13601. cat >>confdefs.h <<_ACEOF
  13602. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13603. _ACEOF
  13604. ac_header_dirent=$ac_hdr; break
  13605. fi
  13606. done
  13607. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13608. if test $ac_header_dirent = dirent.h; then
  13609. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13610. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  13611. if test "${ac_cv_search_opendir+set}" = set; then
  13612. echo $ECHO_N "(cached) $ECHO_C" >&6
  13613. else
  13614. ac_func_search_save_LIBS=$LIBS
  13615. ac_cv_search_opendir=no
  13616. cat >conftest.$ac_ext <<_ACEOF
  13617. /* confdefs.h. */
  13618. _ACEOF
  13619. cat confdefs.h >>conftest.$ac_ext
  13620. cat >>conftest.$ac_ext <<_ACEOF
  13621. /* end confdefs.h. */
  13622. /* Override any gcc2 internal prototype to avoid an error. */
  13623. #ifdef __cplusplus
  13624. extern "C"
  13625. #endif
  13626. /* We use char because int might match the return type of a gcc2
  13627. builtin and then its argument prototype would still apply. */
  13628. char opendir ();
  13629. int
  13630. main ()
  13631. {
  13632. opendir ();
  13633. ;
  13634. return 0;
  13635. }
  13636. _ACEOF
  13637. rm -f conftest.$ac_objext conftest$ac_exeext
  13638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13639. (eval $ac_link) 2>conftest.er1
  13640. ac_status=$?
  13641. grep -v '^ *+' conftest.er1 >conftest.err
  13642. rm -f conftest.er1
  13643. cat conftest.err >&5
  13644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13645. (exit $ac_status); } &&
  13646. { ac_try='test -z "$ac_c_werror_flag"
  13647. || test ! -s conftest.err'
  13648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13649. (eval $ac_try) 2>&5
  13650. ac_status=$?
  13651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13652. (exit $ac_status); }; } &&
  13653. { ac_try='test -s conftest$ac_exeext'
  13654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13655. (eval $ac_try) 2>&5
  13656. ac_status=$?
  13657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13658. (exit $ac_status); }; }; then
  13659. ac_cv_search_opendir="none required"
  13660. else
  13661. echo "$as_me: failed program was:" >&5
  13662. sed 's/^/| /' conftest.$ac_ext >&5
  13663. fi
  13664. rm -f conftest.err conftest.$ac_objext \
  13665. conftest$ac_exeext conftest.$ac_ext
  13666. if test "$ac_cv_search_opendir" = no; then
  13667. for ac_lib in dir; do
  13668. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13669. cat >conftest.$ac_ext <<_ACEOF
  13670. /* confdefs.h. */
  13671. _ACEOF
  13672. cat confdefs.h >>conftest.$ac_ext
  13673. cat >>conftest.$ac_ext <<_ACEOF
  13674. /* end confdefs.h. */
  13675. /* Override any gcc2 internal prototype to avoid an error. */
  13676. #ifdef __cplusplus
  13677. extern "C"
  13678. #endif
  13679. /* We use char because int might match the return type of a gcc2
  13680. builtin and then its argument prototype would still apply. */
  13681. char opendir ();
  13682. int
  13683. main ()
  13684. {
  13685. opendir ();
  13686. ;
  13687. return 0;
  13688. }
  13689. _ACEOF
  13690. rm -f conftest.$ac_objext conftest$ac_exeext
  13691. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13692. (eval $ac_link) 2>conftest.er1
  13693. ac_status=$?
  13694. grep -v '^ *+' conftest.er1 >conftest.err
  13695. rm -f conftest.er1
  13696. cat conftest.err >&5
  13697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13698. (exit $ac_status); } &&
  13699. { ac_try='test -z "$ac_c_werror_flag"
  13700. || test ! -s conftest.err'
  13701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13702. (eval $ac_try) 2>&5
  13703. ac_status=$?
  13704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13705. (exit $ac_status); }; } &&
  13706. { ac_try='test -s conftest$ac_exeext'
  13707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13708. (eval $ac_try) 2>&5
  13709. ac_status=$?
  13710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13711. (exit $ac_status); }; }; then
  13712. ac_cv_search_opendir="-l$ac_lib"
  13713. break
  13714. else
  13715. echo "$as_me: failed program was:" >&5
  13716. sed 's/^/| /' conftest.$ac_ext >&5
  13717. fi
  13718. rm -f conftest.err conftest.$ac_objext \
  13719. conftest$ac_exeext conftest.$ac_ext
  13720. done
  13721. fi
  13722. LIBS=$ac_func_search_save_LIBS
  13723. fi
  13724. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13725. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  13726. if test "$ac_cv_search_opendir" != no; then
  13727. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  13728. fi
  13729. else
  13730. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13731. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  13732. if test "${ac_cv_search_opendir+set}" = set; then
  13733. echo $ECHO_N "(cached) $ECHO_C" >&6
  13734. else
  13735. ac_func_search_save_LIBS=$LIBS
  13736. ac_cv_search_opendir=no
  13737. cat >conftest.$ac_ext <<_ACEOF
  13738. /* confdefs.h. */
  13739. _ACEOF
  13740. cat confdefs.h >>conftest.$ac_ext
  13741. cat >>conftest.$ac_ext <<_ACEOF
  13742. /* end confdefs.h. */
  13743. /* Override any gcc2 internal prototype to avoid an error. */
  13744. #ifdef __cplusplus
  13745. extern "C"
  13746. #endif
  13747. /* We use char because int might match the return type of a gcc2
  13748. builtin and then its argument prototype would still apply. */
  13749. char opendir ();
  13750. int
  13751. main ()
  13752. {
  13753. opendir ();
  13754. ;
  13755. return 0;
  13756. }
  13757. _ACEOF
  13758. rm -f conftest.$ac_objext conftest$ac_exeext
  13759. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13760. (eval $ac_link) 2>conftest.er1
  13761. ac_status=$?
  13762. grep -v '^ *+' conftest.er1 >conftest.err
  13763. rm -f conftest.er1
  13764. cat conftest.err >&5
  13765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13766. (exit $ac_status); } &&
  13767. { ac_try='test -z "$ac_c_werror_flag"
  13768. || test ! -s conftest.err'
  13769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13770. (eval $ac_try) 2>&5
  13771. ac_status=$?
  13772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13773. (exit $ac_status); }; } &&
  13774. { ac_try='test -s conftest$ac_exeext'
  13775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13776. (eval $ac_try) 2>&5
  13777. ac_status=$?
  13778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13779. (exit $ac_status); }; }; then
  13780. ac_cv_search_opendir="none required"
  13781. else
  13782. echo "$as_me: failed program was:" >&5
  13783. sed 's/^/| /' conftest.$ac_ext >&5
  13784. fi
  13785. rm -f conftest.err conftest.$ac_objext \
  13786. conftest$ac_exeext conftest.$ac_ext
  13787. if test "$ac_cv_search_opendir" = no; then
  13788. for ac_lib in x; do
  13789. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13790. cat >conftest.$ac_ext <<_ACEOF
  13791. /* confdefs.h. */
  13792. _ACEOF
  13793. cat confdefs.h >>conftest.$ac_ext
  13794. cat >>conftest.$ac_ext <<_ACEOF
  13795. /* end confdefs.h. */
  13796. /* Override any gcc2 internal prototype to avoid an error. */
  13797. #ifdef __cplusplus
  13798. extern "C"
  13799. #endif
  13800. /* We use char because int might match the return type of a gcc2
  13801. builtin and then its argument prototype would still apply. */
  13802. char opendir ();
  13803. int
  13804. main ()
  13805. {
  13806. opendir ();
  13807. ;
  13808. return 0;
  13809. }
  13810. _ACEOF
  13811. rm -f conftest.$ac_objext conftest$ac_exeext
  13812. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13813. (eval $ac_link) 2>conftest.er1
  13814. ac_status=$?
  13815. grep -v '^ *+' conftest.er1 >conftest.err
  13816. rm -f conftest.er1
  13817. cat conftest.err >&5
  13818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13819. (exit $ac_status); } &&
  13820. { ac_try='test -z "$ac_c_werror_flag"
  13821. || test ! -s conftest.err'
  13822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13823. (eval $ac_try) 2>&5
  13824. ac_status=$?
  13825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13826. (exit $ac_status); }; } &&
  13827. { ac_try='test -s conftest$ac_exeext'
  13828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13829. (eval $ac_try) 2>&5
  13830. ac_status=$?
  13831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13832. (exit $ac_status); }; }; then
  13833. ac_cv_search_opendir="-l$ac_lib"
  13834. break
  13835. else
  13836. echo "$as_me: failed program was:" >&5
  13837. sed 's/^/| /' conftest.$ac_ext >&5
  13838. fi
  13839. rm -f conftest.err conftest.$ac_objext \
  13840. conftest$ac_exeext conftest.$ac_ext
  13841. done
  13842. fi
  13843. LIBS=$ac_func_search_save_LIBS
  13844. fi
  13845. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13846. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  13847. if test "$ac_cv_search_opendir" != no; then
  13848. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  13849. fi
  13850. fi
  13851. echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
  13852. echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
  13853. if test "${gcc_cv_header_string+set}" = set; then
  13854. echo $ECHO_N "(cached) $ECHO_C" >&6
  13855. else
  13856. cat >conftest.$ac_ext <<_ACEOF
  13857. /* confdefs.h. */
  13858. _ACEOF
  13859. cat confdefs.h >>conftest.$ac_ext
  13860. cat >>conftest.$ac_ext <<_ACEOF
  13861. /* end confdefs.h. */
  13862. #include <string.h>
  13863. #include <strings.h>
  13864. int
  13865. main ()
  13866. {
  13867. ;
  13868. return 0;
  13869. }
  13870. _ACEOF
  13871. rm -f conftest.$ac_objext
  13872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13873. (eval $ac_compile) 2>conftest.er1
  13874. ac_status=$?
  13875. grep -v '^ *+' conftest.er1 >conftest.err
  13876. rm -f conftest.er1
  13877. cat conftest.err >&5
  13878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13879. (exit $ac_status); } &&
  13880. { ac_try='test -z "$ac_c_werror_flag"
  13881. || test ! -s conftest.err'
  13882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13883. (eval $ac_try) 2>&5
  13884. ac_status=$?
  13885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13886. (exit $ac_status); }; } &&
  13887. { ac_try='test -s conftest.$ac_objext'
  13888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13889. (eval $ac_try) 2>&5
  13890. ac_status=$?
  13891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13892. (exit $ac_status); }; }; then
  13893. gcc_cv_header_string=yes
  13894. else
  13895. echo "$as_me: failed program was:" >&5
  13896. sed 's/^/| /' conftest.$ac_ext >&5
  13897. gcc_cv_header_string=no
  13898. fi
  13899. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13900. fi
  13901. echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
  13902. echo "${ECHO_T}$gcc_cv_header_string" >&6
  13903. if test $gcc_cv_header_string = yes; then
  13904. cat >>confdefs.h <<\_ACEOF
  13905. #define STRING_WITH_STRINGS 1
  13906. _ACEOF
  13907. fi
  13908. for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
  13909. do
  13910. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13911. echo "$as_me:$LINENO: checking for $ac_func" >&5
  13912. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  13913. if eval "test \"\${$as_ac_var+set}\" = set"; then
  13914. echo $ECHO_N "(cached) $ECHO_C" >&6
  13915. else
  13916. cat >conftest.$ac_ext <<_ACEOF
  13917. /* confdefs.h. */
  13918. _ACEOF
  13919. cat confdefs.h >>conftest.$ac_ext
  13920. cat >>conftest.$ac_ext <<_ACEOF
  13921. /* end confdefs.h. */
  13922. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13923. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13924. #define $ac_func innocuous_$ac_func
  13925. /* System header to define __stub macros and hopefully few prototypes,
  13926. which can conflict with char $ac_func (); below.
  13927. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13928. <limits.h> exists even on freestanding compilers. */
  13929. #ifdef __STDC__
  13930. # include <limits.h>
  13931. #else
  13932. # include <assert.h>
  13933. #endif
  13934. #undef $ac_func
  13935. /* Override any gcc2 internal prototype to avoid an error. */
  13936. #ifdef __cplusplus
  13937. extern "C"
  13938. {
  13939. #endif
  13940. /* We use char because int might match the return type of a gcc2
  13941. builtin and then its argument prototype would still apply. */
  13942. char $ac_func ();
  13943. /* The GNU C library defines this for functions which it implements
  13944. to always fail with ENOSYS. Some functions are actually named
  13945. something starting with __ and the normal name is an alias. */
  13946. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  13947. choke me
  13948. #else
  13949. char (*f) () = $ac_func;
  13950. #endif
  13951. #ifdef __cplusplus
  13952. }
  13953. #endif
  13954. int
  13955. main ()
  13956. {
  13957. return f != $ac_func;
  13958. ;
  13959. return 0;
  13960. }
  13961. _ACEOF
  13962. rm -f conftest.$ac_objext conftest$ac_exeext
  13963. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13964. (eval $ac_link) 2>conftest.er1
  13965. ac_status=$?
  13966. grep -v '^ *+' conftest.er1 >conftest.err
  13967. rm -f conftest.er1
  13968. cat conftest.err >&5
  13969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13970. (exit $ac_status); } &&
  13971. { ac_try='test -z "$ac_c_werror_flag"
  13972. || test ! -s conftest.err'
  13973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13974. (eval $ac_try) 2>&5
  13975. ac_status=$?
  13976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13977. (exit $ac_status); }; } &&
  13978. { ac_try='test -s conftest$ac_exeext'
  13979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13980. (eval $ac_try) 2>&5
  13981. ac_status=$?
  13982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13983. (exit $ac_status); }; }; then
  13984. eval "$as_ac_var=yes"
  13985. else
  13986. echo "$as_me: failed program was:" >&5
  13987. sed 's/^/| /' conftest.$ac_ext >&5
  13988. eval "$as_ac_var=no"
  13989. fi
  13990. rm -f conftest.err conftest.$ac_objext \
  13991. conftest$ac_exeext conftest.$ac_ext
  13992. fi
  13993. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  13994. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  13995. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13996. cat >>confdefs.h <<_ACEOF
  13997. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13998. _ACEOF
  13999. fi
  14000. done
  14001. for ac_func in strtoull
  14002. do
  14003. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14004. echo "$as_me:$LINENO: checking for $ac_func" >&5
  14005. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  14006. if eval "test \"\${$as_ac_var+set}\" = set"; then
  14007. echo $ECHO_N "(cached) $ECHO_C" >&6
  14008. else
  14009. cat >conftest.$ac_ext <<_ACEOF
  14010. /* confdefs.h. */
  14011. _ACEOF
  14012. cat confdefs.h >>conftest.$ac_ext
  14013. cat >>conftest.$ac_ext <<_ACEOF
  14014. /* end confdefs.h. */
  14015. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14016. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14017. #define $ac_func innocuous_$ac_func
  14018. /* System header to define __stub macros and hopefully few prototypes,
  14019. which can conflict with char $ac_func (); below.
  14020. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14021. <limits.h> exists even on freestanding compilers. */
  14022. #ifdef __STDC__
  14023. # include <limits.h>
  14024. #else
  14025. # include <assert.h>
  14026. #endif
  14027. #undef $ac_func
  14028. /* Override any gcc2 internal prototype to avoid an error. */
  14029. #ifdef __cplusplus
  14030. extern "C"
  14031. {
  14032. #endif
  14033. /* We use char because int might match the return type of a gcc2
  14034. builtin and then its argument prototype would still apply. */
  14035. char $ac_func ();
  14036. /* The GNU C library defines this for functions which it implements
  14037. to always fail with ENOSYS. Some functions are actually named
  14038. something starting with __ and the normal name is an alias. */
  14039. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  14040. choke me
  14041. #else
  14042. char (*f) () = $ac_func;
  14043. #endif
  14044. #ifdef __cplusplus
  14045. }
  14046. #endif
  14047. int
  14048. main ()
  14049. {
  14050. return f != $ac_func;
  14051. ;
  14052. return 0;
  14053. }
  14054. _ACEOF
  14055. rm -f conftest.$ac_objext conftest$ac_exeext
  14056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14057. (eval $ac_link) 2>conftest.er1
  14058. ac_status=$?
  14059. grep -v '^ *+' conftest.er1 >conftest.err
  14060. rm -f conftest.er1
  14061. cat conftest.err >&5
  14062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14063. (exit $ac_status); } &&
  14064. { ac_try='test -z "$ac_c_werror_flag"
  14065. || test ! -s conftest.err'
  14066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14067. (eval $ac_try) 2>&5
  14068. ac_status=$?
  14069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14070. (exit $ac_status); }; } &&
  14071. { ac_try='test -s conftest$ac_exeext'
  14072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14073. (eval $ac_try) 2>&5
  14074. ac_status=$?
  14075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14076. (exit $ac_status); }; }; then
  14077. eval "$as_ac_var=yes"
  14078. else
  14079. echo "$as_me: failed program was:" >&5
  14080. sed 's/^/| /' conftest.$ac_ext >&5
  14081. eval "$as_ac_var=no"
  14082. fi
  14083. rm -f conftest.err conftest.$ac_objext \
  14084. conftest$ac_exeext conftest.$ac_ext
  14085. fi
  14086. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  14087. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  14088. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14089. cat >>confdefs.h <<_ACEOF
  14090. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14091. _ACEOF
  14092. fi
  14093. done
  14094. echo "$as_me:$LINENO: checking whether basename is declared" >&5
  14095. echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
  14096. if test "${ac_cv_have_decl_basename+set}" = set; then
  14097. echo $ECHO_N "(cached) $ECHO_C" >&6
  14098. else
  14099. cat >conftest.$ac_ext <<_ACEOF
  14100. /* confdefs.h. */
  14101. _ACEOF
  14102. cat confdefs.h >>conftest.$ac_ext
  14103. cat >>conftest.$ac_ext <<_ACEOF
  14104. /* end confdefs.h. */
  14105. $ac_includes_default
  14106. int
  14107. main ()
  14108. {
  14109. #ifndef basename
  14110. char *p = (char *) basename;
  14111. #endif
  14112. ;
  14113. return 0;
  14114. }
  14115. _ACEOF
  14116. rm -f conftest.$ac_objext
  14117. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14118. (eval $ac_compile) 2>conftest.er1
  14119. ac_status=$?
  14120. grep -v '^ *+' conftest.er1 >conftest.err
  14121. rm -f conftest.er1
  14122. cat conftest.err >&5
  14123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14124. (exit $ac_status); } &&
  14125. { ac_try='test -z "$ac_c_werror_flag"
  14126. || test ! -s conftest.err'
  14127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14128. (eval $ac_try) 2>&5
  14129. ac_status=$?
  14130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14131. (exit $ac_status); }; } &&
  14132. { ac_try='test -s conftest.$ac_objext'
  14133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14134. (eval $ac_try) 2>&5
  14135. ac_status=$?
  14136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14137. (exit $ac_status); }; }; then
  14138. ac_cv_have_decl_basename=yes
  14139. else
  14140. echo "$as_me: failed program was:" >&5
  14141. sed 's/^/| /' conftest.$ac_ext >&5
  14142. ac_cv_have_decl_basename=no
  14143. fi
  14144. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14145. fi
  14146. echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
  14147. echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
  14148. if test $ac_cv_have_decl_basename = yes; then
  14149. cat >>confdefs.h <<_ACEOF
  14150. #define HAVE_DECL_BASENAME 1
  14151. _ACEOF
  14152. else
  14153. cat >>confdefs.h <<_ACEOF
  14154. #define HAVE_DECL_BASENAME 0
  14155. _ACEOF
  14156. fi
  14157. echo "$as_me:$LINENO: checking whether ftello is declared" >&5
  14158. echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
  14159. if test "${ac_cv_have_decl_ftello+set}" = set; then
  14160. echo $ECHO_N "(cached) $ECHO_C" >&6
  14161. else
  14162. cat >conftest.$ac_ext <<_ACEOF
  14163. /* confdefs.h. */
  14164. _ACEOF
  14165. cat confdefs.h >>conftest.$ac_ext
  14166. cat >>conftest.$ac_ext <<_ACEOF
  14167. /* end confdefs.h. */
  14168. $ac_includes_default
  14169. int
  14170. main ()
  14171. {
  14172. #ifndef ftello
  14173. char *p = (char *) ftello;
  14174. #endif
  14175. ;
  14176. return 0;
  14177. }
  14178. _ACEOF
  14179. rm -f conftest.$ac_objext
  14180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14181. (eval $ac_compile) 2>conftest.er1
  14182. ac_status=$?
  14183. grep -v '^ *+' conftest.er1 >conftest.err
  14184. rm -f conftest.er1
  14185. cat conftest.err >&5
  14186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14187. (exit $ac_status); } &&
  14188. { ac_try='test -z "$ac_c_werror_flag"
  14189. || test ! -s conftest.err'
  14190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14191. (eval $ac_try) 2>&5
  14192. ac_status=$?
  14193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14194. (exit $ac_status); }; } &&
  14195. { ac_try='test -s conftest.$ac_objext'
  14196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14197. (eval $ac_try) 2>&5
  14198. ac_status=$?
  14199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14200. (exit $ac_status); }; }; then
  14201. ac_cv_have_decl_ftello=yes
  14202. else
  14203. echo "$as_me: failed program was:" >&5
  14204. sed 's/^/| /' conftest.$ac_ext >&5
  14205. ac_cv_have_decl_ftello=no
  14206. fi
  14207. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14208. fi
  14209. echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
  14210. echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
  14211. if test $ac_cv_have_decl_ftello = yes; then
  14212. cat >>confdefs.h <<_ACEOF
  14213. #define HAVE_DECL_FTELLO 1
  14214. _ACEOF
  14215. else
  14216. cat >>confdefs.h <<_ACEOF
  14217. #define HAVE_DECL_FTELLO 0
  14218. _ACEOF
  14219. fi
  14220. echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
  14221. echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
  14222. if test "${ac_cv_have_decl_ftello64+set}" = set; then
  14223. echo $ECHO_N "(cached) $ECHO_C" >&6
  14224. else
  14225. cat >conftest.$ac_ext <<_ACEOF
  14226. /* confdefs.h. */
  14227. _ACEOF
  14228. cat confdefs.h >>conftest.$ac_ext
  14229. cat >>conftest.$ac_ext <<_ACEOF
  14230. /* end confdefs.h. */
  14231. $ac_includes_default
  14232. int
  14233. main ()
  14234. {
  14235. #ifndef ftello64
  14236. char *p = (char *) ftello64;
  14237. #endif
  14238. ;
  14239. return 0;
  14240. }
  14241. _ACEOF
  14242. rm -f conftest.$ac_objext
  14243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14244. (eval $ac_compile) 2>conftest.er1
  14245. ac_status=$?
  14246. grep -v '^ *+' conftest.er1 >conftest.err
  14247. rm -f conftest.er1
  14248. cat conftest.err >&5
  14249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14250. (exit $ac_status); } &&
  14251. { ac_try='test -z "$ac_c_werror_flag"
  14252. || test ! -s conftest.err'
  14253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14254. (eval $ac_try) 2>&5
  14255. ac_status=$?
  14256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14257. (exit $ac_status); }; } &&
  14258. { ac_try='test -s conftest.$ac_objext'
  14259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14260. (eval $ac_try) 2>&5
  14261. ac_status=$?
  14262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14263. (exit $ac_status); }; }; then
  14264. ac_cv_have_decl_ftello64=yes
  14265. else
  14266. echo "$as_me: failed program was:" >&5
  14267. sed 's/^/| /' conftest.$ac_ext >&5
  14268. ac_cv_have_decl_ftello64=no
  14269. fi
  14270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14271. fi
  14272. echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
  14273. echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
  14274. if test $ac_cv_have_decl_ftello64 = yes; then
  14275. cat >>confdefs.h <<_ACEOF
  14276. #define HAVE_DECL_FTELLO64 1
  14277. _ACEOF
  14278. else
  14279. cat >>confdefs.h <<_ACEOF
  14280. #define HAVE_DECL_FTELLO64 0
  14281. _ACEOF
  14282. fi
  14283. echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
  14284. echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
  14285. if test "${ac_cv_have_decl_fseeko+set}" = set; then
  14286. echo $ECHO_N "(cached) $ECHO_C" >&6
  14287. else
  14288. cat >conftest.$ac_ext <<_ACEOF
  14289. /* confdefs.h. */
  14290. _ACEOF
  14291. cat confdefs.h >>conftest.$ac_ext
  14292. cat >>conftest.$ac_ext <<_ACEOF
  14293. /* end confdefs.h. */
  14294. $ac_includes_default
  14295. int
  14296. main ()
  14297. {
  14298. #ifndef fseeko
  14299. char *p = (char *) fseeko;
  14300. #endif
  14301. ;
  14302. return 0;
  14303. }
  14304. _ACEOF
  14305. rm -f conftest.$ac_objext
  14306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14307. (eval $ac_compile) 2>conftest.er1
  14308. ac_status=$?
  14309. grep -v '^ *+' conftest.er1 >conftest.err
  14310. rm -f conftest.er1
  14311. cat conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. (exit $ac_status); } &&
  14314. { ac_try='test -z "$ac_c_werror_flag"
  14315. || test ! -s conftest.err'
  14316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14317. (eval $ac_try) 2>&5
  14318. ac_status=$?
  14319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14320. (exit $ac_status); }; } &&
  14321. { ac_try='test -s conftest.$ac_objext'
  14322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14323. (eval $ac_try) 2>&5
  14324. ac_status=$?
  14325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14326. (exit $ac_status); }; }; then
  14327. ac_cv_have_decl_fseeko=yes
  14328. else
  14329. echo "$as_me: failed program was:" >&5
  14330. sed 's/^/| /' conftest.$ac_ext >&5
  14331. ac_cv_have_decl_fseeko=no
  14332. fi
  14333. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14334. fi
  14335. echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
  14336. echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
  14337. if test $ac_cv_have_decl_fseeko = yes; then
  14338. cat >>confdefs.h <<_ACEOF
  14339. #define HAVE_DECL_FSEEKO 1
  14340. _ACEOF
  14341. else
  14342. cat >>confdefs.h <<_ACEOF
  14343. #define HAVE_DECL_FSEEKO 0
  14344. _ACEOF
  14345. fi
  14346. echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
  14347. echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
  14348. if test "${ac_cv_have_decl_fseeko64+set}" = set; then
  14349. echo $ECHO_N "(cached) $ECHO_C" >&6
  14350. else
  14351. cat >conftest.$ac_ext <<_ACEOF
  14352. /* confdefs.h. */
  14353. _ACEOF
  14354. cat confdefs.h >>conftest.$ac_ext
  14355. cat >>conftest.$ac_ext <<_ACEOF
  14356. /* end confdefs.h. */
  14357. $ac_includes_default
  14358. int
  14359. main ()
  14360. {
  14361. #ifndef fseeko64
  14362. char *p = (char *) fseeko64;
  14363. #endif
  14364. ;
  14365. return 0;
  14366. }
  14367. _ACEOF
  14368. rm -f conftest.$ac_objext
  14369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14370. (eval $ac_compile) 2>conftest.er1
  14371. ac_status=$?
  14372. grep -v '^ *+' conftest.er1 >conftest.err
  14373. rm -f conftest.er1
  14374. cat conftest.err >&5
  14375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14376. (exit $ac_status); } &&
  14377. { ac_try='test -z "$ac_c_werror_flag"
  14378. || test ! -s conftest.err'
  14379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14380. (eval $ac_try) 2>&5
  14381. ac_status=$?
  14382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14383. (exit $ac_status); }; } &&
  14384. { ac_try='test -s conftest.$ac_objext'
  14385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14386. (eval $ac_try) 2>&5
  14387. ac_status=$?
  14388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14389. (exit $ac_status); }; }; then
  14390. ac_cv_have_decl_fseeko64=yes
  14391. else
  14392. echo "$as_me: failed program was:" >&5
  14393. sed 's/^/| /' conftest.$ac_ext >&5
  14394. ac_cv_have_decl_fseeko64=no
  14395. fi
  14396. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14397. fi
  14398. echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
  14399. echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
  14400. if test $ac_cv_have_decl_fseeko64 = yes; then
  14401. cat >>confdefs.h <<_ACEOF
  14402. #define HAVE_DECL_FSEEKO64 1
  14403. _ACEOF
  14404. else
  14405. cat >>confdefs.h <<_ACEOF
  14406. #define HAVE_DECL_FSEEKO64 0
  14407. _ACEOF
  14408. fi
  14409. case "${host}" in
  14410. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  14411. cat >>confdefs.h <<\_ACEOF
  14412. #define USE_BINARY_FOPEN 1
  14413. _ACEOF
  14414. ;;
  14415. esac
  14416. echo "$as_me:$LINENO: checking whether ffs is declared" >&5
  14417. echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
  14418. if test "${ac_cv_have_decl_ffs+set}" = set; then
  14419. echo $ECHO_N "(cached) $ECHO_C" >&6
  14420. else
  14421. cat >conftest.$ac_ext <<_ACEOF
  14422. /* confdefs.h. */
  14423. _ACEOF
  14424. cat confdefs.h >>conftest.$ac_ext
  14425. cat >>conftest.$ac_ext <<_ACEOF
  14426. /* end confdefs.h. */
  14427. $ac_includes_default
  14428. int
  14429. main ()
  14430. {
  14431. #ifndef ffs
  14432. char *p = (char *) ffs;
  14433. #endif
  14434. ;
  14435. return 0;
  14436. }
  14437. _ACEOF
  14438. rm -f conftest.$ac_objext
  14439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14440. (eval $ac_compile) 2>conftest.er1
  14441. ac_status=$?
  14442. grep -v '^ *+' conftest.er1 >conftest.err
  14443. rm -f conftest.er1
  14444. cat conftest.err >&5
  14445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14446. (exit $ac_status); } &&
  14447. { ac_try='test -z "$ac_c_werror_flag"
  14448. || test ! -s conftest.err'
  14449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14450. (eval $ac_try) 2>&5
  14451. ac_status=$?
  14452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14453. (exit $ac_status); }; } &&
  14454. { ac_try='test -s conftest.$ac_objext'
  14455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14456. (eval $ac_try) 2>&5
  14457. ac_status=$?
  14458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14459. (exit $ac_status); }; }; then
  14460. ac_cv_have_decl_ffs=yes
  14461. else
  14462. echo "$as_me: failed program was:" >&5
  14463. sed 's/^/| /' conftest.$ac_ext >&5
  14464. ac_cv_have_decl_ffs=no
  14465. fi
  14466. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14467. fi
  14468. echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
  14469. echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
  14470. if test $ac_cv_have_decl_ffs = yes; then
  14471. cat >>confdefs.h <<_ACEOF
  14472. #define HAVE_DECL_FFS 1
  14473. _ACEOF
  14474. else
  14475. cat >>confdefs.h <<_ACEOF
  14476. #define HAVE_DECL_FFS 0
  14477. _ACEOF
  14478. fi
  14479. echo "$as_me:$LINENO: checking whether free is declared" >&5
  14480. echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
  14481. if test "${ac_cv_have_decl_free+set}" = set; then
  14482. echo $ECHO_N "(cached) $ECHO_C" >&6
  14483. else
  14484. cat >conftest.$ac_ext <<_ACEOF
  14485. /* confdefs.h. */
  14486. _ACEOF
  14487. cat confdefs.h >>conftest.$ac_ext
  14488. cat >>conftest.$ac_ext <<_ACEOF
  14489. /* end confdefs.h. */
  14490. $ac_includes_default
  14491. int
  14492. main ()
  14493. {
  14494. #ifndef free
  14495. char *p = (char *) free;
  14496. #endif
  14497. ;
  14498. return 0;
  14499. }
  14500. _ACEOF
  14501. rm -f conftest.$ac_objext
  14502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14503. (eval $ac_compile) 2>conftest.er1
  14504. ac_status=$?
  14505. grep -v '^ *+' conftest.er1 >conftest.err
  14506. rm -f conftest.er1
  14507. cat conftest.err >&5
  14508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14509. (exit $ac_status); } &&
  14510. { ac_try='test -z "$ac_c_werror_flag"
  14511. || test ! -s conftest.err'
  14512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14513. (eval $ac_try) 2>&5
  14514. ac_status=$?
  14515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14516. (exit $ac_status); }; } &&
  14517. { ac_try='test -s conftest.$ac_objext'
  14518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14519. (eval $ac_try) 2>&5
  14520. ac_status=$?
  14521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14522. (exit $ac_status); }; }; then
  14523. ac_cv_have_decl_free=yes
  14524. else
  14525. echo "$as_me: failed program was:" >&5
  14526. sed 's/^/| /' conftest.$ac_ext >&5
  14527. ac_cv_have_decl_free=no
  14528. fi
  14529. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14530. fi
  14531. echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
  14532. echo "${ECHO_T}$ac_cv_have_decl_free" >&6
  14533. if test $ac_cv_have_decl_free = yes; then
  14534. cat >>confdefs.h <<_ACEOF
  14535. #define HAVE_DECL_FREE 1
  14536. _ACEOF
  14537. else
  14538. cat >>confdefs.h <<_ACEOF
  14539. #define HAVE_DECL_FREE 0
  14540. _ACEOF
  14541. fi
  14542. echo "$as_me:$LINENO: checking whether getenv is declared" >&5
  14543. echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
  14544. if test "${ac_cv_have_decl_getenv+set}" = set; then
  14545. echo $ECHO_N "(cached) $ECHO_C" >&6
  14546. else
  14547. cat >conftest.$ac_ext <<_ACEOF
  14548. /* confdefs.h. */
  14549. _ACEOF
  14550. cat confdefs.h >>conftest.$ac_ext
  14551. cat >>conftest.$ac_ext <<_ACEOF
  14552. /* end confdefs.h. */
  14553. $ac_includes_default
  14554. int
  14555. main ()
  14556. {
  14557. #ifndef getenv
  14558. char *p = (char *) getenv;
  14559. #endif
  14560. ;
  14561. return 0;
  14562. }
  14563. _ACEOF
  14564. rm -f conftest.$ac_objext
  14565. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14566. (eval $ac_compile) 2>conftest.er1
  14567. ac_status=$?
  14568. grep -v '^ *+' conftest.er1 >conftest.err
  14569. rm -f conftest.er1
  14570. cat conftest.err >&5
  14571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14572. (exit $ac_status); } &&
  14573. { ac_try='test -z "$ac_c_werror_flag"
  14574. || test ! -s conftest.err'
  14575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14576. (eval $ac_try) 2>&5
  14577. ac_status=$?
  14578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14579. (exit $ac_status); }; } &&
  14580. { ac_try='test -s conftest.$ac_objext'
  14581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14582. (eval $ac_try) 2>&5
  14583. ac_status=$?
  14584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14585. (exit $ac_status); }; }; then
  14586. ac_cv_have_decl_getenv=yes
  14587. else
  14588. echo "$as_me: failed program was:" >&5
  14589. sed 's/^/| /' conftest.$ac_ext >&5
  14590. ac_cv_have_decl_getenv=no
  14591. fi
  14592. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14593. fi
  14594. echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
  14595. echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
  14596. if test $ac_cv_have_decl_getenv = yes; then
  14597. cat >>confdefs.h <<_ACEOF
  14598. #define HAVE_DECL_GETENV 1
  14599. _ACEOF
  14600. else
  14601. cat >>confdefs.h <<_ACEOF
  14602. #define HAVE_DECL_GETENV 0
  14603. _ACEOF
  14604. fi
  14605. echo "$as_me:$LINENO: checking whether malloc is declared" >&5
  14606. echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
  14607. if test "${ac_cv_have_decl_malloc+set}" = set; then
  14608. echo $ECHO_N "(cached) $ECHO_C" >&6
  14609. else
  14610. cat >conftest.$ac_ext <<_ACEOF
  14611. /* confdefs.h. */
  14612. _ACEOF
  14613. cat confdefs.h >>conftest.$ac_ext
  14614. cat >>conftest.$ac_ext <<_ACEOF
  14615. /* end confdefs.h. */
  14616. $ac_includes_default
  14617. int
  14618. main ()
  14619. {
  14620. #ifndef malloc
  14621. char *p = (char *) malloc;
  14622. #endif
  14623. ;
  14624. return 0;
  14625. }
  14626. _ACEOF
  14627. rm -f conftest.$ac_objext
  14628. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14629. (eval $ac_compile) 2>conftest.er1
  14630. ac_status=$?
  14631. grep -v '^ *+' conftest.er1 >conftest.err
  14632. rm -f conftest.er1
  14633. cat conftest.err >&5
  14634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14635. (exit $ac_status); } &&
  14636. { ac_try='test -z "$ac_c_werror_flag"
  14637. || test ! -s conftest.err'
  14638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14639. (eval $ac_try) 2>&5
  14640. ac_status=$?
  14641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14642. (exit $ac_status); }; } &&
  14643. { ac_try='test -s conftest.$ac_objext'
  14644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14645. (eval $ac_try) 2>&5
  14646. ac_status=$?
  14647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14648. (exit $ac_status); }; }; then
  14649. ac_cv_have_decl_malloc=yes
  14650. else
  14651. echo "$as_me: failed program was:" >&5
  14652. sed 's/^/| /' conftest.$ac_ext >&5
  14653. ac_cv_have_decl_malloc=no
  14654. fi
  14655. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14656. fi
  14657. echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
  14658. echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
  14659. if test $ac_cv_have_decl_malloc = yes; then
  14660. cat >>confdefs.h <<_ACEOF
  14661. #define HAVE_DECL_MALLOC 1
  14662. _ACEOF
  14663. else
  14664. cat >>confdefs.h <<_ACEOF
  14665. #define HAVE_DECL_MALLOC 0
  14666. _ACEOF
  14667. fi
  14668. echo "$as_me:$LINENO: checking whether realloc is declared" >&5
  14669. echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
  14670. if test "${ac_cv_have_decl_realloc+set}" = set; then
  14671. echo $ECHO_N "(cached) $ECHO_C" >&6
  14672. else
  14673. cat >conftest.$ac_ext <<_ACEOF
  14674. /* confdefs.h. */
  14675. _ACEOF
  14676. cat confdefs.h >>conftest.$ac_ext
  14677. cat >>conftest.$ac_ext <<_ACEOF
  14678. /* end confdefs.h. */
  14679. $ac_includes_default
  14680. int
  14681. main ()
  14682. {
  14683. #ifndef realloc
  14684. char *p = (char *) realloc;
  14685. #endif
  14686. ;
  14687. return 0;
  14688. }
  14689. _ACEOF
  14690. rm -f conftest.$ac_objext
  14691. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14692. (eval $ac_compile) 2>conftest.er1
  14693. ac_status=$?
  14694. grep -v '^ *+' conftest.er1 >conftest.err
  14695. rm -f conftest.er1
  14696. cat conftest.err >&5
  14697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14698. (exit $ac_status); } &&
  14699. { ac_try='test -z "$ac_c_werror_flag"
  14700. || test ! -s conftest.err'
  14701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14702. (eval $ac_try) 2>&5
  14703. ac_status=$?
  14704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14705. (exit $ac_status); }; } &&
  14706. { ac_try='test -s conftest.$ac_objext'
  14707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14708. (eval $ac_try) 2>&5
  14709. ac_status=$?
  14710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14711. (exit $ac_status); }; }; then
  14712. ac_cv_have_decl_realloc=yes
  14713. else
  14714. echo "$as_me: failed program was:" >&5
  14715. sed 's/^/| /' conftest.$ac_ext >&5
  14716. ac_cv_have_decl_realloc=no
  14717. fi
  14718. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14719. fi
  14720. echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
  14721. echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
  14722. if test $ac_cv_have_decl_realloc = yes; then
  14723. cat >>confdefs.h <<_ACEOF
  14724. #define HAVE_DECL_REALLOC 1
  14725. _ACEOF
  14726. else
  14727. cat >>confdefs.h <<_ACEOF
  14728. #define HAVE_DECL_REALLOC 0
  14729. _ACEOF
  14730. fi
  14731. echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
  14732. echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
  14733. if test "${ac_cv_have_decl_stpcpy+set}" = set; then
  14734. echo $ECHO_N "(cached) $ECHO_C" >&6
  14735. else
  14736. cat >conftest.$ac_ext <<_ACEOF
  14737. /* confdefs.h. */
  14738. _ACEOF
  14739. cat confdefs.h >>conftest.$ac_ext
  14740. cat >>conftest.$ac_ext <<_ACEOF
  14741. /* end confdefs.h. */
  14742. $ac_includes_default
  14743. int
  14744. main ()
  14745. {
  14746. #ifndef stpcpy
  14747. char *p = (char *) stpcpy;
  14748. #endif
  14749. ;
  14750. return 0;
  14751. }
  14752. _ACEOF
  14753. rm -f conftest.$ac_objext
  14754. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14755. (eval $ac_compile) 2>conftest.er1
  14756. ac_status=$?
  14757. grep -v '^ *+' conftest.er1 >conftest.err
  14758. rm -f conftest.er1
  14759. cat conftest.err >&5
  14760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14761. (exit $ac_status); } &&
  14762. { ac_try='test -z "$ac_c_werror_flag"
  14763. || test ! -s conftest.err'
  14764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14765. (eval $ac_try) 2>&5
  14766. ac_status=$?
  14767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14768. (exit $ac_status); }; } &&
  14769. { ac_try='test -s conftest.$ac_objext'
  14770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14771. (eval $ac_try) 2>&5
  14772. ac_status=$?
  14773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14774. (exit $ac_status); }; }; then
  14775. ac_cv_have_decl_stpcpy=yes
  14776. else
  14777. echo "$as_me: failed program was:" >&5
  14778. sed 's/^/| /' conftest.$ac_ext >&5
  14779. ac_cv_have_decl_stpcpy=no
  14780. fi
  14781. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14782. fi
  14783. echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
  14784. echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
  14785. if test $ac_cv_have_decl_stpcpy = yes; then
  14786. cat >>confdefs.h <<_ACEOF
  14787. #define HAVE_DECL_STPCPY 1
  14788. _ACEOF
  14789. else
  14790. cat >>confdefs.h <<_ACEOF
  14791. #define HAVE_DECL_STPCPY 0
  14792. _ACEOF
  14793. fi
  14794. echo "$as_me:$LINENO: checking whether strstr is declared" >&5
  14795. echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
  14796. if test "${ac_cv_have_decl_strstr+set}" = set; then
  14797. echo $ECHO_N "(cached) $ECHO_C" >&6
  14798. else
  14799. cat >conftest.$ac_ext <<_ACEOF
  14800. /* confdefs.h. */
  14801. _ACEOF
  14802. cat confdefs.h >>conftest.$ac_ext
  14803. cat >>conftest.$ac_ext <<_ACEOF
  14804. /* end confdefs.h. */
  14805. $ac_includes_default
  14806. int
  14807. main ()
  14808. {
  14809. #ifndef strstr
  14810. char *p = (char *) strstr;
  14811. #endif
  14812. ;
  14813. return 0;
  14814. }
  14815. _ACEOF
  14816. rm -f conftest.$ac_objext
  14817. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14818. (eval $ac_compile) 2>conftest.er1
  14819. ac_status=$?
  14820. grep -v '^ *+' conftest.er1 >conftest.err
  14821. rm -f conftest.er1
  14822. cat conftest.err >&5
  14823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14824. (exit $ac_status); } &&
  14825. { ac_try='test -z "$ac_c_werror_flag"
  14826. || test ! -s conftest.err'
  14827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14828. (eval $ac_try) 2>&5
  14829. ac_status=$?
  14830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14831. (exit $ac_status); }; } &&
  14832. { ac_try='test -s conftest.$ac_objext'
  14833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14834. (eval $ac_try) 2>&5
  14835. ac_status=$?
  14836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14837. (exit $ac_status); }; }; then
  14838. ac_cv_have_decl_strstr=yes
  14839. else
  14840. echo "$as_me: failed program was:" >&5
  14841. sed 's/^/| /' conftest.$ac_ext >&5
  14842. ac_cv_have_decl_strstr=no
  14843. fi
  14844. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14845. fi
  14846. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
  14847. echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
  14848. if test $ac_cv_have_decl_strstr = yes; then
  14849. cat >>confdefs.h <<_ACEOF
  14850. #define HAVE_DECL_STRSTR 1
  14851. _ACEOF
  14852. else
  14853. cat >>confdefs.h <<_ACEOF
  14854. #define HAVE_DECL_STRSTR 0
  14855. _ACEOF
  14856. fi
  14857. echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
  14858. echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
  14859. if test "${ac_cv_have_decl_snprintf+set}" = set; then
  14860. echo $ECHO_N "(cached) $ECHO_C" >&6
  14861. else
  14862. cat >conftest.$ac_ext <<_ACEOF
  14863. /* confdefs.h. */
  14864. _ACEOF
  14865. cat confdefs.h >>conftest.$ac_ext
  14866. cat >>conftest.$ac_ext <<_ACEOF
  14867. /* end confdefs.h. */
  14868. $ac_includes_default
  14869. int
  14870. main ()
  14871. {
  14872. #ifndef snprintf
  14873. char *p = (char *) snprintf;
  14874. #endif
  14875. ;
  14876. return 0;
  14877. }
  14878. _ACEOF
  14879. rm -f conftest.$ac_objext
  14880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14881. (eval $ac_compile) 2>conftest.er1
  14882. ac_status=$?
  14883. grep -v '^ *+' conftest.er1 >conftest.err
  14884. rm -f conftest.er1
  14885. cat conftest.err >&5
  14886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14887. (exit $ac_status); } &&
  14888. { ac_try='test -z "$ac_c_werror_flag"
  14889. || test ! -s conftest.err'
  14890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14891. (eval $ac_try) 2>&5
  14892. ac_status=$?
  14893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14894. (exit $ac_status); }; } &&
  14895. { ac_try='test -s conftest.$ac_objext'
  14896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14897. (eval $ac_try) 2>&5
  14898. ac_status=$?
  14899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14900. (exit $ac_status); }; }; then
  14901. ac_cv_have_decl_snprintf=yes
  14902. else
  14903. echo "$as_me: failed program was:" >&5
  14904. sed 's/^/| /' conftest.$ac_ext >&5
  14905. ac_cv_have_decl_snprintf=no
  14906. fi
  14907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14908. fi
  14909. echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
  14910. echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
  14911. if test $ac_cv_have_decl_snprintf = yes; then
  14912. cat >>confdefs.h <<_ACEOF
  14913. #define HAVE_DECL_SNPRINTF 1
  14914. _ACEOF
  14915. else
  14916. cat >>confdefs.h <<_ACEOF
  14917. #define HAVE_DECL_SNPRINTF 0
  14918. _ACEOF
  14919. fi
  14920. echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
  14921. echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
  14922. if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
  14923. echo $ECHO_N "(cached) $ECHO_C" >&6
  14924. else
  14925. cat >conftest.$ac_ext <<_ACEOF
  14926. /* confdefs.h. */
  14927. _ACEOF
  14928. cat confdefs.h >>conftest.$ac_ext
  14929. cat >>conftest.$ac_ext <<_ACEOF
  14930. /* end confdefs.h. */
  14931. $ac_includes_default
  14932. int
  14933. main ()
  14934. {
  14935. #ifndef vsnprintf
  14936. char *p = (char *) vsnprintf;
  14937. #endif
  14938. ;
  14939. return 0;
  14940. }
  14941. _ACEOF
  14942. rm -f conftest.$ac_objext
  14943. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14944. (eval $ac_compile) 2>conftest.er1
  14945. ac_status=$?
  14946. grep -v '^ *+' conftest.er1 >conftest.err
  14947. rm -f conftest.er1
  14948. cat conftest.err >&5
  14949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14950. (exit $ac_status); } &&
  14951. { ac_try='test -z "$ac_c_werror_flag"
  14952. || test ! -s conftest.err'
  14953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14954. (eval $ac_try) 2>&5
  14955. ac_status=$?
  14956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14957. (exit $ac_status); }; } &&
  14958. { ac_try='test -s conftest.$ac_objext'
  14959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14960. (eval $ac_try) 2>&5
  14961. ac_status=$?
  14962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14963. (exit $ac_status); }; }; then
  14964. ac_cv_have_decl_vsnprintf=yes
  14965. else
  14966. echo "$as_me: failed program was:" >&5
  14967. sed 's/^/| /' conftest.$ac_ext >&5
  14968. ac_cv_have_decl_vsnprintf=no
  14969. fi
  14970. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14971. fi
  14972. echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
  14973. echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
  14974. if test $ac_cv_have_decl_vsnprintf = yes; then
  14975. cat >>confdefs.h <<_ACEOF
  14976. #define HAVE_DECL_VSNPRINTF 1
  14977. _ACEOF
  14978. else
  14979. cat >>confdefs.h <<_ACEOF
  14980. #define HAVE_DECL_VSNPRINTF 0
  14981. _ACEOF
  14982. fi
  14983. # If we are configured native, pick a core file support file.
  14984. COREFILE=
  14985. COREFLAG=
  14986. TRAD_HEADER=
  14987. if test "${target}" = "${host}"; then
  14988. case "${host}" in
  14989. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  14990. COREFILE=''
  14991. ;;
  14992. alpha*-*-linux-*)
  14993. COREFILE=trad-core.lo
  14994. TRAD_HEADER='"hosts/alphalinux.h"'
  14995. ;;
  14996. alpha*-*-netbsd* | alpha*-*-openbsd*)
  14997. COREFILE=netbsd-core.lo
  14998. ;;
  14999. alpha*-*-*) COREFILE=osf-core.lo ;;
  15000. arm-*-freebsd* | arm-*-kfreebsd*-gnu)
  15001. COREFILE='' ;;
  15002. arm-*-netbsd* | arm-*-openbsd*)
  15003. COREFILE=netbsd-core.lo
  15004. ;;
  15005. arm-*-riscix) COREFILE=trad-core.lo ;;
  15006. hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
  15007. hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
  15008. hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
  15009. hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
  15010. COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
  15011. hppa*-*-netbsd* | hppa*-*-openbsd*)
  15012. COREFILE=netbsd-core.lo
  15013. ;;
  15014. i370-*-*)
  15015. COREFILE=trad-core.lo
  15016. TRAD_HEADER='"hosts/i370linux.h"'
  15017. ;;
  15018. i[3-7]86-sequent-bsd*)
  15019. COREFILE=trad-core.lo
  15020. TRAD_HEADER='"hosts/symmetry.h"'
  15021. ;;
  15022. i[3-7]86-sequent-sysv4*) ;;
  15023. i[3-7]86-sequent-sysv*)
  15024. COREFILE=trad-core.lo
  15025. TRAD_HEADER='"hosts/symmetry.h"'
  15026. ;;
  15027. i[3-7]86-*-bsdi)
  15028. COREFILE=
  15029. ;;
  15030. i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
  15031. COREFILE=trad-core.lo
  15032. TRAD_HEADER='"hosts/i386bsd.h"'
  15033. ;;
  15034. i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
  15035. COREFILE=''
  15036. TRAD_HEADER='"hosts/i386bsd.h"'
  15037. ;;
  15038. i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
  15039. COREFILE=netbsd-core.lo
  15040. ;;
  15041. i[3-7]86-esix-sysv3*)
  15042. COREFILE=trad-core.lo
  15043. TRAD_HEADER='"hosts/esix.h"'
  15044. ;;
  15045. i[3-7]86-*-sco3.2v5*)
  15046. COREFILE=sco5-core.lo
  15047. ;;
  15048. i[3-7]86-*-sco* | i[3-7]86-*-isc*)
  15049. COREFILE=trad-core.lo
  15050. TRAD_HEADER='"hosts/i386sco.h"'
  15051. ;;
  15052. i[3-7]86-*-mach3*)
  15053. COREFILE=trad-core.lo
  15054. TRAD_HEADER='"hosts/i386mach3.h"'
  15055. ;;
  15056. i[3-7]86-*-linux-*)
  15057. COREFILE=trad-core.lo
  15058. TRAD_HEADER='"hosts/i386linux.h"'
  15059. ;;
  15060. i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
  15061. i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
  15062. i860-*-mach3* | i860-*-osf1*)
  15063. COREFILE=trad-core.lo
  15064. TRAD_HEADER='"hosts/i860mach3.h"'
  15065. ;;
  15066. mips-*-netbsd* | mips*-*-openbsd*)
  15067. COREFILE=netbsd-core.lo
  15068. ;;
  15069. mips-dec-*)
  15070. COREFILE=trad-core.lo
  15071. TRAD_HEADER='"hosts/decstation.h"'
  15072. ;;
  15073. mips-sgi-irix4*) COREFILE=irix-core.lo ;;
  15074. mips-sgi-irix5*) COREFILE=irix-core.lo ;;
  15075. mips-sgi-irix6*) COREFILE=irix-core.lo ;;
  15076. mips-*-sysv4*) ;;
  15077. mips-*-sysv* | mips-*-riscos*)
  15078. COREFILE=trad-core.lo
  15079. TRAD_HEADER='"hosts/riscos.h"'
  15080. ;;
  15081. mips-sony-bsd*)
  15082. COREFILE=trad-core.lo
  15083. TRAD_HEADER='"hosts/news-mips.h"'
  15084. ;;
  15085. m68*-bull*-sysv*)
  15086. COREFILE=trad-core.lo
  15087. TRAD_HEADER='"hosts/dpx2.h"'
  15088. ;;
  15089. m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
  15090. m68*-hp-bsd*)
  15091. COREFILE=trad-core.lo
  15092. TRAD_HEADER='"hosts/hp300bsd.h"'
  15093. ;;
  15094. m68*-*-linux-*)
  15095. COREFILE=trad-core.lo
  15096. TRAD_HEADER='"hosts/m68klinux.h"'
  15097. ;;
  15098. m68*-motorola-sysv*)
  15099. COREFILE=trad-core.lo
  15100. TRAD_HEADER='"hosts/delta68.h"'
  15101. ;;
  15102. m68*-sony-*)
  15103. COREFILE=trad-core.lo
  15104. TRAD_HEADER='"hosts/news.h"'
  15105. ;;
  15106. m68*-*-netbsd* | m68*-*-openbsd*)
  15107. COREFILE=netbsd-core.lo
  15108. ;;
  15109. m68*-apple-aux*)
  15110. COREFILE=trad-core.lo
  15111. TRAD_HEADER='"hosts/m68kaux.h"'
  15112. ;;
  15113. m88*-*-sysv4*)
  15114. ;;
  15115. m88*-motorola-sysv*)
  15116. COREFILE=ptrace-core.lo
  15117. ;;
  15118. m88*-*-mach3*)
  15119. COREFILE=trad-core.lo
  15120. TRAD_HEADER='"hosts/m88kmach3.h"'
  15121. ;;
  15122. m88*-*-openbsd*)
  15123. COREFILE=netbsd-core.lo
  15124. ;;
  15125. ns32k-pc532-mach)
  15126. COREFILE=trad-core.lo
  15127. TRAD_HEADER='"hosts/pc532mach.h"'
  15128. ;;
  15129. ns32k-*-netbsd* | ns32k-*-openbsd*)
  15130. COREFILE=netbsd-core.lo
  15131. ;;
  15132. rs6000-*-lynx*)
  15133. COREFILE=lynx-core.lo
  15134. ;;
  15135. rs6000-*-aix5.* | powerpc-*-aix5.*)
  15136. COREFILE=rs6000-core.lo
  15137. COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
  15138. ;;
  15139. rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
  15140. COREFILE=rs6000-core.lo
  15141. COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
  15142. # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
  15143. # have c_impl as a member of struct core_dumpx
  15144. echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
  15145. echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
  15146. cat >conftest.$ac_ext <<_ACEOF
  15147. /* confdefs.h. */
  15148. _ACEOF
  15149. cat confdefs.h >>conftest.$ac_ext
  15150. cat >>conftest.$ac_ext <<_ACEOF
  15151. /* end confdefs.h. */
  15152. #include <core.h>
  15153. int
  15154. main ()
  15155. {
  15156. struct core_dumpx c; c.c_impl = 0;
  15157. ;
  15158. return 0;
  15159. }
  15160. _ACEOF
  15161. rm -f conftest.$ac_objext
  15162. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15163. (eval $ac_compile) 2>conftest.er1
  15164. ac_status=$?
  15165. grep -v '^ *+' conftest.er1 >conftest.err
  15166. rm -f conftest.er1
  15167. cat conftest.err >&5
  15168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15169. (exit $ac_status); } &&
  15170. { ac_try='test -z "$ac_c_werror_flag"
  15171. || test ! -s conftest.err'
  15172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15173. (eval $ac_try) 2>&5
  15174. ac_status=$?
  15175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15176. (exit $ac_status); }; } &&
  15177. { ac_try='test -s conftest.$ac_objext'
  15178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15179. (eval $ac_try) 2>&5
  15180. ac_status=$?
  15181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15182. (exit $ac_status); }; }; then
  15183. cat >>confdefs.h <<\_ACEOF
  15184. #define HAVE_ST_C_IMPL 1
  15185. _ACEOF
  15186. echo "$as_me:$LINENO: result: yes" >&5
  15187. echo "${ECHO_T}yes" >&6
  15188. else
  15189. echo "$as_me: failed program was:" >&5
  15190. sed 's/^/| /' conftest.$ac_ext >&5
  15191. echo "$as_me:$LINENO: result: no" >&5
  15192. echo "${ECHO_T}no" >&6
  15193. fi
  15194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15195. ;;
  15196. rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
  15197. rs6000-*-*) COREFILE=rs6000-core.lo ;;
  15198. powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
  15199. powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
  15200. powerpc-*-beos*) ;;
  15201. powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
  15202. COREFILE='' ;;
  15203. powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
  15204. powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
  15205. s390*-*-*) COREFILE=trad-core.lo ;;
  15206. sh*-*-netbsd* | sh*-*-openbsd*)
  15207. COREFILE=netbsd-core.lo
  15208. ;;
  15209. sparc-*-netbsd* | sparc*-*-openbsd*)
  15210. COREFILE=netbsd-core.lo
  15211. ;;
  15212. tahoe-*-*)
  15213. COREFILE=trad-core.lo
  15214. TRAD_HEADER='"hosts/tahoe.h"'
  15215. ;;
  15216. vax-*-netbsd* | vax-*-openbsd*)
  15217. COREFILE=netbsd-core.lo
  15218. ;;
  15219. vax-*-ultrix2*)
  15220. COREFILE=trad-core.lo
  15221. TRAD_HEADER='"hosts/vaxult2.h"'
  15222. ;;
  15223. vax-*-ultrix*)
  15224. COREFILE=trad-core.lo
  15225. TRAD_HEADER='"hosts/vaxult2.h"'
  15226. ;;
  15227. vax-*-linux-*)
  15228. COREFILE=trad-core.lo
  15229. TRAD_HEADER='"hosts/vaxlinux.h"'
  15230. ;;
  15231. vax-*-*)
  15232. COREFILE=trad-core.lo
  15233. TRAD_HEADER='"hosts/vaxbsd.h"'
  15234. ;;
  15235. x86_64-*-netbsd* | x86_64-*-openbsd*)
  15236. COREFILE=netbsd-core.lo
  15237. ;;
  15238. esac
  15239. case "$COREFILE" in
  15240. aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
  15241. hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
  15242. hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
  15243. irix-core.lo) COREFLAG=-DIRIX_CORE ;;
  15244. lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
  15245. netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
  15246. osf-core.lo) COREFLAG=-DOSF_CORE ;;
  15247. ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
  15248. rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
  15249. sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
  15250. trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
  15251. esac
  15252. # ELF corefile support has several flavors, but all of
  15253. # them use something called <sys/procfs.h>
  15254. for ac_header in sys/procfs.h
  15255. do
  15256. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15257. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  15258. echo "$as_me:$LINENO: checking for $ac_header" >&5
  15259. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  15260. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  15261. echo $ECHO_N "(cached) $ECHO_C" >&6
  15262. fi
  15263. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  15264. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  15265. else
  15266. # Is the header compilable?
  15267. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15268. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  15269. cat >conftest.$ac_ext <<_ACEOF
  15270. /* confdefs.h. */
  15271. _ACEOF
  15272. cat confdefs.h >>conftest.$ac_ext
  15273. cat >>conftest.$ac_ext <<_ACEOF
  15274. /* end confdefs.h. */
  15275. $ac_includes_default
  15276. #include <$ac_header>
  15277. _ACEOF
  15278. rm -f conftest.$ac_objext
  15279. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15280. (eval $ac_compile) 2>conftest.er1
  15281. ac_status=$?
  15282. grep -v '^ *+' conftest.er1 >conftest.err
  15283. rm -f conftest.er1
  15284. cat conftest.err >&5
  15285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15286. (exit $ac_status); } &&
  15287. { ac_try='test -z "$ac_c_werror_flag"
  15288. || test ! -s conftest.err'
  15289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15290. (eval $ac_try) 2>&5
  15291. ac_status=$?
  15292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15293. (exit $ac_status); }; } &&
  15294. { ac_try='test -s conftest.$ac_objext'
  15295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15296. (eval $ac_try) 2>&5
  15297. ac_status=$?
  15298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15299. (exit $ac_status); }; }; then
  15300. ac_header_compiler=yes
  15301. else
  15302. echo "$as_me: failed program was:" >&5
  15303. sed 's/^/| /' conftest.$ac_ext >&5
  15304. ac_header_compiler=no
  15305. fi
  15306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15307. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15308. echo "${ECHO_T}$ac_header_compiler" >&6
  15309. # Is the header present?
  15310. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15311. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  15312. cat >conftest.$ac_ext <<_ACEOF
  15313. /* confdefs.h. */
  15314. _ACEOF
  15315. cat confdefs.h >>conftest.$ac_ext
  15316. cat >>conftest.$ac_ext <<_ACEOF
  15317. /* end confdefs.h. */
  15318. #include <$ac_header>
  15319. _ACEOF
  15320. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  15321. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  15322. ac_status=$?
  15323. grep -v '^ *+' conftest.er1 >conftest.err
  15324. rm -f conftest.er1
  15325. cat conftest.err >&5
  15326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15327. (exit $ac_status); } >/dev/null; then
  15328. if test -s conftest.err; then
  15329. ac_cpp_err=$ac_c_preproc_warn_flag
  15330. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  15331. else
  15332. ac_cpp_err=
  15333. fi
  15334. else
  15335. ac_cpp_err=yes
  15336. fi
  15337. if test -z "$ac_cpp_err"; then
  15338. ac_header_preproc=yes
  15339. else
  15340. echo "$as_me: failed program was:" >&5
  15341. sed 's/^/| /' conftest.$ac_ext >&5
  15342. ac_header_preproc=no
  15343. fi
  15344. rm -f conftest.err conftest.$ac_ext
  15345. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15346. echo "${ECHO_T}$ac_header_preproc" >&6
  15347. # So? What about this header?
  15348. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15349. yes:no: )
  15350. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15351. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15352. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15353. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15354. ac_header_preproc=yes
  15355. ;;
  15356. no:yes:* )
  15357. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15358. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15359. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15360. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15361. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15362. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15363. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15364. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15365. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15366. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15367. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15368. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15369. (
  15370. cat <<\_ASBOX
  15371. ## ------------------------------------------ ##
  15372. ## Report this to the AC_PACKAGE_NAME lists. ##
  15373. ## ------------------------------------------ ##
  15374. _ASBOX
  15375. ) |
  15376. sed "s/^/$as_me: WARNING: /" >&2
  15377. ;;
  15378. esac
  15379. echo "$as_me:$LINENO: checking for $ac_header" >&5
  15380. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  15381. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  15382. echo $ECHO_N "(cached) $ECHO_C" >&6
  15383. else
  15384. eval "$as_ac_Header=\$ac_header_preproc"
  15385. fi
  15386. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  15387. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  15388. fi
  15389. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15390. cat >>confdefs.h <<_ACEOF
  15391. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15392. _ACEOF
  15393. fi
  15394. done
  15395. if test "$ac_cv_header_sys_procfs_h" = yes; then
  15396. echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
  15397. echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
  15398. if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
  15399. echo $ECHO_N "(cached) $ECHO_C" >&6
  15400. else
  15401. cat >conftest.$ac_ext <<_ACEOF
  15402. /* confdefs.h. */
  15403. _ACEOF
  15404. cat confdefs.h >>conftest.$ac_ext
  15405. cat >>conftest.$ac_ext <<_ACEOF
  15406. /* end confdefs.h. */
  15407. #define _SYSCALL32
  15408. #include <sys/procfs.h>
  15409. int
  15410. main ()
  15411. {
  15412. prstatus_t avar
  15413. ;
  15414. return 0;
  15415. }
  15416. _ACEOF
  15417. rm -f conftest.$ac_objext
  15418. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15419. (eval $ac_compile) 2>conftest.er1
  15420. ac_status=$?
  15421. grep -v '^ *+' conftest.er1 >conftest.err
  15422. rm -f conftest.er1
  15423. cat conftest.err >&5
  15424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15425. (exit $ac_status); } &&
  15426. { ac_try='test -z "$ac_c_werror_flag"
  15427. || test ! -s conftest.err'
  15428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15429. (eval $ac_try) 2>&5
  15430. ac_status=$?
  15431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15432. (exit $ac_status); }; } &&
  15433. { ac_try='test -s conftest.$ac_objext'
  15434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15435. (eval $ac_try) 2>&5
  15436. ac_status=$?
  15437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15438. (exit $ac_status); }; }; then
  15439. bfd_cv_have_sys_procfs_type_prstatus_t=yes
  15440. else
  15441. echo "$as_me: failed program was:" >&5
  15442. sed 's/^/| /' conftest.$ac_ext >&5
  15443. bfd_cv_have_sys_procfs_type_prstatus_t=no
  15444. fi
  15445. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15446. fi
  15447. if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
  15448. cat >>confdefs.h <<\_ACEOF
  15449. #define HAVE_PRSTATUS_T 1
  15450. _ACEOF
  15451. fi
  15452. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
  15453. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
  15454. echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
  15455. echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
  15456. if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
  15457. echo $ECHO_N "(cached) $ECHO_C" >&6
  15458. else
  15459. cat >conftest.$ac_ext <<_ACEOF
  15460. /* confdefs.h. */
  15461. _ACEOF
  15462. cat confdefs.h >>conftest.$ac_ext
  15463. cat >>conftest.$ac_ext <<_ACEOF
  15464. /* end confdefs.h. */
  15465. #define _SYSCALL32
  15466. #include <sys/procfs.h>
  15467. int
  15468. main ()
  15469. {
  15470. prstatus32_t avar
  15471. ;
  15472. return 0;
  15473. }
  15474. _ACEOF
  15475. rm -f conftest.$ac_objext
  15476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15477. (eval $ac_compile) 2>conftest.er1
  15478. ac_status=$?
  15479. grep -v '^ *+' conftest.er1 >conftest.err
  15480. rm -f conftest.er1
  15481. cat conftest.err >&5
  15482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15483. (exit $ac_status); } &&
  15484. { ac_try='test -z "$ac_c_werror_flag"
  15485. || test ! -s conftest.err'
  15486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15487. (eval $ac_try) 2>&5
  15488. ac_status=$?
  15489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15490. (exit $ac_status); }; } &&
  15491. { ac_try='test -s conftest.$ac_objext'
  15492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15493. (eval $ac_try) 2>&5
  15494. ac_status=$?
  15495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15496. (exit $ac_status); }; }; then
  15497. bfd_cv_have_sys_procfs_type_prstatus32_t=yes
  15498. else
  15499. echo "$as_me: failed program was:" >&5
  15500. sed 's/^/| /' conftest.$ac_ext >&5
  15501. bfd_cv_have_sys_procfs_type_prstatus32_t=no
  15502. fi
  15503. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15504. fi
  15505. if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
  15506. cat >>confdefs.h <<\_ACEOF
  15507. #define HAVE_PRSTATUS32_T 1
  15508. _ACEOF
  15509. fi
  15510. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
  15511. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
  15512. echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
  15513. echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
  15514. if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
  15515. echo $ECHO_N "(cached) $ECHO_C" >&6
  15516. else
  15517. cat >conftest.$ac_ext <<_ACEOF
  15518. /* confdefs.h. */
  15519. _ACEOF
  15520. cat confdefs.h >>conftest.$ac_ext
  15521. cat >>conftest.$ac_ext <<_ACEOF
  15522. /* end confdefs.h. */
  15523. #define _SYSCALL32
  15524. #include <sys/procfs.h>
  15525. int
  15526. main ()
  15527. {
  15528. prstatus_t avar; void* aref = (void*) &avar.pr_who
  15529. ;
  15530. return 0;
  15531. }
  15532. _ACEOF
  15533. rm -f conftest.$ac_objext
  15534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15535. (eval $ac_compile) 2>conftest.er1
  15536. ac_status=$?
  15537. grep -v '^ *+' conftest.er1 >conftest.err
  15538. rm -f conftest.er1
  15539. cat conftest.err >&5
  15540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15541. (exit $ac_status); } &&
  15542. { ac_try='test -z "$ac_c_werror_flag"
  15543. || test ! -s conftest.err'
  15544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15545. (eval $ac_try) 2>&5
  15546. ac_status=$?
  15547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15548. (exit $ac_status); }; } &&
  15549. { ac_try='test -s conftest.$ac_objext'
  15550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15551. (eval $ac_try) 2>&5
  15552. ac_status=$?
  15553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15554. (exit $ac_status); }; }; then
  15555. bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
  15556. else
  15557. echo "$as_me: failed program was:" >&5
  15558. sed 's/^/| /' conftest.$ac_ext >&5
  15559. bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
  15560. fi
  15561. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15562. fi
  15563. if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
  15564. cat >>confdefs.h <<\_ACEOF
  15565. #define HAVE_PRSTATUS_T_PR_WHO 1
  15566. _ACEOF
  15567. fi
  15568. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
  15569. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
  15570. echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
  15571. echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
  15572. if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
  15573. echo $ECHO_N "(cached) $ECHO_C" >&6
  15574. else
  15575. cat >conftest.$ac_ext <<_ACEOF
  15576. /* confdefs.h. */
  15577. _ACEOF
  15578. cat confdefs.h >>conftest.$ac_ext
  15579. cat >>conftest.$ac_ext <<_ACEOF
  15580. /* end confdefs.h. */
  15581. #define _SYSCALL32
  15582. #include <sys/procfs.h>
  15583. int
  15584. main ()
  15585. {
  15586. prstatus32_t avar; void* aref = (void*) &avar.pr_who
  15587. ;
  15588. return 0;
  15589. }
  15590. _ACEOF
  15591. rm -f conftest.$ac_objext
  15592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15593. (eval $ac_compile) 2>conftest.er1
  15594. ac_status=$?
  15595. grep -v '^ *+' conftest.er1 >conftest.err
  15596. rm -f conftest.er1
  15597. cat conftest.err >&5
  15598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15599. (exit $ac_status); } &&
  15600. { ac_try='test -z "$ac_c_werror_flag"
  15601. || test ! -s conftest.err'
  15602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15603. (eval $ac_try) 2>&5
  15604. ac_status=$?
  15605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15606. (exit $ac_status); }; } &&
  15607. { ac_try='test -s conftest.$ac_objext'
  15608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15609. (eval $ac_try) 2>&5
  15610. ac_status=$?
  15611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15612. (exit $ac_status); }; }; then
  15613. bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
  15614. else
  15615. echo "$as_me: failed program was:" >&5
  15616. sed 's/^/| /' conftest.$ac_ext >&5
  15617. bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
  15618. fi
  15619. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15620. fi
  15621. if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
  15622. cat >>confdefs.h <<\_ACEOF
  15623. #define HAVE_PRSTATUS32_T_PR_WHO 1
  15624. _ACEOF
  15625. fi
  15626. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
  15627. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
  15628. echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
  15629. echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
  15630. if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
  15631. echo $ECHO_N "(cached) $ECHO_C" >&6
  15632. else
  15633. cat >conftest.$ac_ext <<_ACEOF
  15634. /* confdefs.h. */
  15635. _ACEOF
  15636. cat confdefs.h >>conftest.$ac_ext
  15637. cat >>conftest.$ac_ext <<_ACEOF
  15638. /* end confdefs.h. */
  15639. #define _SYSCALL32
  15640. #include <sys/procfs.h>
  15641. int
  15642. main ()
  15643. {
  15644. pstatus_t avar
  15645. ;
  15646. return 0;
  15647. }
  15648. _ACEOF
  15649. rm -f conftest.$ac_objext
  15650. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15651. (eval $ac_compile) 2>conftest.er1
  15652. ac_status=$?
  15653. grep -v '^ *+' conftest.er1 >conftest.err
  15654. rm -f conftest.er1
  15655. cat conftest.err >&5
  15656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15657. (exit $ac_status); } &&
  15658. { ac_try='test -z "$ac_c_werror_flag"
  15659. || test ! -s conftest.err'
  15660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15661. (eval $ac_try) 2>&5
  15662. ac_status=$?
  15663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15664. (exit $ac_status); }; } &&
  15665. { ac_try='test -s conftest.$ac_objext'
  15666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15667. (eval $ac_try) 2>&5
  15668. ac_status=$?
  15669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15670. (exit $ac_status); }; }; then
  15671. bfd_cv_have_sys_procfs_type_pstatus_t=yes
  15672. else
  15673. echo "$as_me: failed program was:" >&5
  15674. sed 's/^/| /' conftest.$ac_ext >&5
  15675. bfd_cv_have_sys_procfs_type_pstatus_t=no
  15676. fi
  15677. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15678. fi
  15679. if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
  15680. cat >>confdefs.h <<\_ACEOF
  15681. #define HAVE_PSTATUS_T 1
  15682. _ACEOF
  15683. fi
  15684. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
  15685. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
  15686. echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
  15687. echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
  15688. if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
  15689. echo $ECHO_N "(cached) $ECHO_C" >&6
  15690. else
  15691. cat >conftest.$ac_ext <<_ACEOF
  15692. /* confdefs.h. */
  15693. _ACEOF
  15694. cat confdefs.h >>conftest.$ac_ext
  15695. cat >>conftest.$ac_ext <<_ACEOF
  15696. /* end confdefs.h. */
  15697. #define _SYSCALL32
  15698. #include <sys/procfs.h>
  15699. int
  15700. main ()
  15701. {
  15702. pxstatus_t avar
  15703. ;
  15704. return 0;
  15705. }
  15706. _ACEOF
  15707. rm -f conftest.$ac_objext
  15708. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15709. (eval $ac_compile) 2>conftest.er1
  15710. ac_status=$?
  15711. grep -v '^ *+' conftest.er1 >conftest.err
  15712. rm -f conftest.er1
  15713. cat conftest.err >&5
  15714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15715. (exit $ac_status); } &&
  15716. { ac_try='test -z "$ac_c_werror_flag"
  15717. || test ! -s conftest.err'
  15718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15719. (eval $ac_try) 2>&5
  15720. ac_status=$?
  15721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15722. (exit $ac_status); }; } &&
  15723. { ac_try='test -s conftest.$ac_objext'
  15724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15725. (eval $ac_try) 2>&5
  15726. ac_status=$?
  15727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15728. (exit $ac_status); }; }; then
  15729. bfd_cv_have_sys_procfs_type_pxstatus_t=yes
  15730. else
  15731. echo "$as_me: failed program was:" >&5
  15732. sed 's/^/| /' conftest.$ac_ext >&5
  15733. bfd_cv_have_sys_procfs_type_pxstatus_t=no
  15734. fi
  15735. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15736. fi
  15737. if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
  15738. cat >>confdefs.h <<\_ACEOF
  15739. #define HAVE_PXSTATUS_T 1
  15740. _ACEOF
  15741. fi
  15742. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
  15743. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
  15744. echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
  15745. echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
  15746. if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
  15747. echo $ECHO_N "(cached) $ECHO_C" >&6
  15748. else
  15749. cat >conftest.$ac_ext <<_ACEOF
  15750. /* confdefs.h. */
  15751. _ACEOF
  15752. cat confdefs.h >>conftest.$ac_ext
  15753. cat >>conftest.$ac_ext <<_ACEOF
  15754. /* end confdefs.h. */
  15755. #define _SYSCALL32
  15756. #include <sys/procfs.h>
  15757. int
  15758. main ()
  15759. {
  15760. pstatus32_t avar
  15761. ;
  15762. return 0;
  15763. }
  15764. _ACEOF
  15765. rm -f conftest.$ac_objext
  15766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15767. (eval $ac_compile) 2>conftest.er1
  15768. ac_status=$?
  15769. grep -v '^ *+' conftest.er1 >conftest.err
  15770. rm -f conftest.er1
  15771. cat conftest.err >&5
  15772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15773. (exit $ac_status); } &&
  15774. { ac_try='test -z "$ac_c_werror_flag"
  15775. || test ! -s conftest.err'
  15776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15777. (eval $ac_try) 2>&5
  15778. ac_status=$?
  15779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15780. (exit $ac_status); }; } &&
  15781. { ac_try='test -s conftest.$ac_objext'
  15782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15783. (eval $ac_try) 2>&5
  15784. ac_status=$?
  15785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15786. (exit $ac_status); }; }; then
  15787. bfd_cv_have_sys_procfs_type_pstatus32_t=yes
  15788. else
  15789. echo "$as_me: failed program was:" >&5
  15790. sed 's/^/| /' conftest.$ac_ext >&5
  15791. bfd_cv_have_sys_procfs_type_pstatus32_t=no
  15792. fi
  15793. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15794. fi
  15795. if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
  15796. cat >>confdefs.h <<\_ACEOF
  15797. #define HAVE_PSTATUS32_T 1
  15798. _ACEOF
  15799. fi
  15800. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
  15801. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
  15802. echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
  15803. echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
  15804. if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
  15805. echo $ECHO_N "(cached) $ECHO_C" >&6
  15806. else
  15807. cat >conftest.$ac_ext <<_ACEOF
  15808. /* confdefs.h. */
  15809. _ACEOF
  15810. cat confdefs.h >>conftest.$ac_ext
  15811. cat >>conftest.$ac_ext <<_ACEOF
  15812. /* end confdefs.h. */
  15813. #define _SYSCALL32
  15814. #include <sys/procfs.h>
  15815. int
  15816. main ()
  15817. {
  15818. prpsinfo_t avar
  15819. ;
  15820. return 0;
  15821. }
  15822. _ACEOF
  15823. rm -f conftest.$ac_objext
  15824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15825. (eval $ac_compile) 2>conftest.er1
  15826. ac_status=$?
  15827. grep -v '^ *+' conftest.er1 >conftest.err
  15828. rm -f conftest.er1
  15829. cat conftest.err >&5
  15830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15831. (exit $ac_status); } &&
  15832. { ac_try='test -z "$ac_c_werror_flag"
  15833. || test ! -s conftest.err'
  15834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15835. (eval $ac_try) 2>&5
  15836. ac_status=$?
  15837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15838. (exit $ac_status); }; } &&
  15839. { ac_try='test -s conftest.$ac_objext'
  15840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15841. (eval $ac_try) 2>&5
  15842. ac_status=$?
  15843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15844. (exit $ac_status); }; }; then
  15845. bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
  15846. else
  15847. echo "$as_me: failed program was:" >&5
  15848. sed 's/^/| /' conftest.$ac_ext >&5
  15849. bfd_cv_have_sys_procfs_type_prpsinfo_t=no
  15850. fi
  15851. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15852. fi
  15853. if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
  15854. cat >>confdefs.h <<\_ACEOF
  15855. #define HAVE_PRPSINFO_T 1
  15856. _ACEOF
  15857. fi
  15858. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
  15859. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
  15860. echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
  15861. echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
  15862. if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
  15863. echo $ECHO_N "(cached) $ECHO_C" >&6
  15864. else
  15865. cat >conftest.$ac_ext <<_ACEOF
  15866. /* confdefs.h. */
  15867. _ACEOF
  15868. cat confdefs.h >>conftest.$ac_ext
  15869. cat >>conftest.$ac_ext <<_ACEOF
  15870. /* end confdefs.h. */
  15871. #define _SYSCALL32
  15872. #include <sys/procfs.h>
  15873. int
  15874. main ()
  15875. {
  15876. prpsinfo32_t avar
  15877. ;
  15878. return 0;
  15879. }
  15880. _ACEOF
  15881. rm -f conftest.$ac_objext
  15882. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15883. (eval $ac_compile) 2>conftest.er1
  15884. ac_status=$?
  15885. grep -v '^ *+' conftest.er1 >conftest.err
  15886. rm -f conftest.er1
  15887. cat conftest.err >&5
  15888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15889. (exit $ac_status); } &&
  15890. { ac_try='test -z "$ac_c_werror_flag"
  15891. || test ! -s conftest.err'
  15892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15893. (eval $ac_try) 2>&5
  15894. ac_status=$?
  15895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15896. (exit $ac_status); }; } &&
  15897. { ac_try='test -s conftest.$ac_objext'
  15898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15899. (eval $ac_try) 2>&5
  15900. ac_status=$?
  15901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15902. (exit $ac_status); }; }; then
  15903. bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
  15904. else
  15905. echo "$as_me: failed program was:" >&5
  15906. sed 's/^/| /' conftest.$ac_ext >&5
  15907. bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
  15908. fi
  15909. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15910. fi
  15911. if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
  15912. cat >>confdefs.h <<\_ACEOF
  15913. #define HAVE_PRPSINFO32_T 1
  15914. _ACEOF
  15915. fi
  15916. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
  15917. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
  15918. echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
  15919. echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
  15920. if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
  15921. echo $ECHO_N "(cached) $ECHO_C" >&6
  15922. else
  15923. cat >conftest.$ac_ext <<_ACEOF
  15924. /* confdefs.h. */
  15925. _ACEOF
  15926. cat confdefs.h >>conftest.$ac_ext
  15927. cat >>conftest.$ac_ext <<_ACEOF
  15928. /* end confdefs.h. */
  15929. #define _SYSCALL32
  15930. #include <sys/procfs.h>
  15931. int
  15932. main ()
  15933. {
  15934. psinfo_t avar
  15935. ;
  15936. return 0;
  15937. }
  15938. _ACEOF
  15939. rm -f conftest.$ac_objext
  15940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15941. (eval $ac_compile) 2>conftest.er1
  15942. ac_status=$?
  15943. grep -v '^ *+' conftest.er1 >conftest.err
  15944. rm -f conftest.er1
  15945. cat conftest.err >&5
  15946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15947. (exit $ac_status); } &&
  15948. { ac_try='test -z "$ac_c_werror_flag"
  15949. || test ! -s conftest.err'
  15950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15951. (eval $ac_try) 2>&5
  15952. ac_status=$?
  15953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15954. (exit $ac_status); }; } &&
  15955. { ac_try='test -s conftest.$ac_objext'
  15956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15957. (eval $ac_try) 2>&5
  15958. ac_status=$?
  15959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15960. (exit $ac_status); }; }; then
  15961. bfd_cv_have_sys_procfs_type_psinfo_t=yes
  15962. else
  15963. echo "$as_me: failed program was:" >&5
  15964. sed 's/^/| /' conftest.$ac_ext >&5
  15965. bfd_cv_have_sys_procfs_type_psinfo_t=no
  15966. fi
  15967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  15968. fi
  15969. if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
  15970. cat >>confdefs.h <<\_ACEOF
  15971. #define HAVE_PSINFO_T 1
  15972. _ACEOF
  15973. fi
  15974. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
  15975. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
  15976. echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
  15977. echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
  15978. if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
  15979. echo $ECHO_N "(cached) $ECHO_C" >&6
  15980. else
  15981. cat >conftest.$ac_ext <<_ACEOF
  15982. /* confdefs.h. */
  15983. _ACEOF
  15984. cat confdefs.h >>conftest.$ac_ext
  15985. cat >>conftest.$ac_ext <<_ACEOF
  15986. /* end confdefs.h. */
  15987. #define _SYSCALL32
  15988. #include <sys/procfs.h>
  15989. int
  15990. main ()
  15991. {
  15992. psinfo32_t avar
  15993. ;
  15994. return 0;
  15995. }
  15996. _ACEOF
  15997. rm -f conftest.$ac_objext
  15998. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15999. (eval $ac_compile) 2>conftest.er1
  16000. ac_status=$?
  16001. grep -v '^ *+' conftest.er1 >conftest.err
  16002. rm -f conftest.er1
  16003. cat conftest.err >&5
  16004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16005. (exit $ac_status); } &&
  16006. { ac_try='test -z "$ac_c_werror_flag"
  16007. || test ! -s conftest.err'
  16008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16009. (eval $ac_try) 2>&5
  16010. ac_status=$?
  16011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16012. (exit $ac_status); }; } &&
  16013. { ac_try='test -s conftest.$ac_objext'
  16014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16015. (eval $ac_try) 2>&5
  16016. ac_status=$?
  16017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16018. (exit $ac_status); }; }; then
  16019. bfd_cv_have_sys_procfs_type_psinfo32_t=yes
  16020. else
  16021. echo "$as_me: failed program was:" >&5
  16022. sed 's/^/| /' conftest.$ac_ext >&5
  16023. bfd_cv_have_sys_procfs_type_psinfo32_t=no
  16024. fi
  16025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16026. fi
  16027. if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
  16028. cat >>confdefs.h <<\_ACEOF
  16029. #define HAVE_PSINFO32_T 1
  16030. _ACEOF
  16031. fi
  16032. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
  16033. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
  16034. echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
  16035. echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
  16036. if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
  16037. echo $ECHO_N "(cached) $ECHO_C" >&6
  16038. else
  16039. cat >conftest.$ac_ext <<_ACEOF
  16040. /* confdefs.h. */
  16041. _ACEOF
  16042. cat confdefs.h >>conftest.$ac_ext
  16043. cat >>conftest.$ac_ext <<_ACEOF
  16044. /* end confdefs.h. */
  16045. #define _SYSCALL32
  16046. #include <sys/procfs.h>
  16047. int
  16048. main ()
  16049. {
  16050. lwpstatus_t avar
  16051. ;
  16052. return 0;
  16053. }
  16054. _ACEOF
  16055. rm -f conftest.$ac_objext
  16056. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16057. (eval $ac_compile) 2>conftest.er1
  16058. ac_status=$?
  16059. grep -v '^ *+' conftest.er1 >conftest.err
  16060. rm -f conftest.er1
  16061. cat conftest.err >&5
  16062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16063. (exit $ac_status); } &&
  16064. { ac_try='test -z "$ac_c_werror_flag"
  16065. || test ! -s conftest.err'
  16066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16067. (eval $ac_try) 2>&5
  16068. ac_status=$?
  16069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16070. (exit $ac_status); }; } &&
  16071. { ac_try='test -s conftest.$ac_objext'
  16072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16073. (eval $ac_try) 2>&5
  16074. ac_status=$?
  16075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16076. (exit $ac_status); }; }; then
  16077. bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
  16078. else
  16079. echo "$as_me: failed program was:" >&5
  16080. sed 's/^/| /' conftest.$ac_ext >&5
  16081. bfd_cv_have_sys_procfs_type_lwpstatus_t=no
  16082. fi
  16083. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16084. fi
  16085. if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
  16086. cat >>confdefs.h <<\_ACEOF
  16087. #define HAVE_LWPSTATUS_T 1
  16088. _ACEOF
  16089. fi
  16090. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
  16091. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
  16092. echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
  16093. echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
  16094. if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
  16095. echo $ECHO_N "(cached) $ECHO_C" >&6
  16096. else
  16097. cat >conftest.$ac_ext <<_ACEOF
  16098. /* confdefs.h. */
  16099. _ACEOF
  16100. cat confdefs.h >>conftest.$ac_ext
  16101. cat >>conftest.$ac_ext <<_ACEOF
  16102. /* end confdefs.h. */
  16103. #define _SYSCALL32
  16104. #include <sys/procfs.h>
  16105. int
  16106. main ()
  16107. {
  16108. lwpxstatus_t avar
  16109. ;
  16110. return 0;
  16111. }
  16112. _ACEOF
  16113. rm -f conftest.$ac_objext
  16114. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16115. (eval $ac_compile) 2>conftest.er1
  16116. ac_status=$?
  16117. grep -v '^ *+' conftest.er1 >conftest.err
  16118. rm -f conftest.er1
  16119. cat conftest.err >&5
  16120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16121. (exit $ac_status); } &&
  16122. { ac_try='test -z "$ac_c_werror_flag"
  16123. || test ! -s conftest.err'
  16124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16125. (eval $ac_try) 2>&5
  16126. ac_status=$?
  16127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16128. (exit $ac_status); }; } &&
  16129. { ac_try='test -s conftest.$ac_objext'
  16130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16131. (eval $ac_try) 2>&5
  16132. ac_status=$?
  16133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16134. (exit $ac_status); }; }; then
  16135. bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
  16136. else
  16137. echo "$as_me: failed program was:" >&5
  16138. sed 's/^/| /' conftest.$ac_ext >&5
  16139. bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
  16140. fi
  16141. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16142. fi
  16143. if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
  16144. cat >>confdefs.h <<\_ACEOF
  16145. #define HAVE_LWPXSTATUS_T 1
  16146. _ACEOF
  16147. fi
  16148. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
  16149. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
  16150. echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
  16151. echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
  16152. if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
  16153. echo $ECHO_N "(cached) $ECHO_C" >&6
  16154. else
  16155. cat >conftest.$ac_ext <<_ACEOF
  16156. /* confdefs.h. */
  16157. _ACEOF
  16158. cat confdefs.h >>conftest.$ac_ext
  16159. cat >>conftest.$ac_ext <<_ACEOF
  16160. /* end confdefs.h. */
  16161. #define _SYSCALL32
  16162. #include <sys/procfs.h>
  16163. int
  16164. main ()
  16165. {
  16166. lwpstatus_t avar; void* aref = (void*) &avar.pr_context
  16167. ;
  16168. return 0;
  16169. }
  16170. _ACEOF
  16171. rm -f conftest.$ac_objext
  16172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16173. (eval $ac_compile) 2>conftest.er1
  16174. ac_status=$?
  16175. grep -v '^ *+' conftest.er1 >conftest.err
  16176. rm -f conftest.er1
  16177. cat conftest.err >&5
  16178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16179. (exit $ac_status); } &&
  16180. { ac_try='test -z "$ac_c_werror_flag"
  16181. || test ! -s conftest.err'
  16182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16183. (eval $ac_try) 2>&5
  16184. ac_status=$?
  16185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16186. (exit $ac_status); }; } &&
  16187. { ac_try='test -s conftest.$ac_objext'
  16188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16189. (eval $ac_try) 2>&5
  16190. ac_status=$?
  16191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16192. (exit $ac_status); }; }; then
  16193. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
  16194. else
  16195. echo "$as_me: failed program was:" >&5
  16196. sed 's/^/| /' conftest.$ac_ext >&5
  16197. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
  16198. fi
  16199. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16200. fi
  16201. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
  16202. cat >>confdefs.h <<\_ACEOF
  16203. #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
  16204. _ACEOF
  16205. fi
  16206. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
  16207. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
  16208. echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
  16209. echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
  16210. if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
  16211. echo $ECHO_N "(cached) $ECHO_C" >&6
  16212. else
  16213. cat >conftest.$ac_ext <<_ACEOF
  16214. /* confdefs.h. */
  16215. _ACEOF
  16216. cat confdefs.h >>conftest.$ac_ext
  16217. cat >>conftest.$ac_ext <<_ACEOF
  16218. /* end confdefs.h. */
  16219. #define _SYSCALL32
  16220. #include <sys/procfs.h>
  16221. int
  16222. main ()
  16223. {
  16224. lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
  16225. ;
  16226. return 0;
  16227. }
  16228. _ACEOF
  16229. rm -f conftest.$ac_objext
  16230. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16231. (eval $ac_compile) 2>conftest.er1
  16232. ac_status=$?
  16233. grep -v '^ *+' conftest.er1 >conftest.err
  16234. rm -f conftest.er1
  16235. cat conftest.err >&5
  16236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16237. (exit $ac_status); } &&
  16238. { ac_try='test -z "$ac_c_werror_flag"
  16239. || test ! -s conftest.err'
  16240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16241. (eval $ac_try) 2>&5
  16242. ac_status=$?
  16243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16244. (exit $ac_status); }; } &&
  16245. { ac_try='test -s conftest.$ac_objext'
  16246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16247. (eval $ac_try) 2>&5
  16248. ac_status=$?
  16249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16250. (exit $ac_status); }; }; then
  16251. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
  16252. else
  16253. echo "$as_me: failed program was:" >&5
  16254. sed 's/^/| /' conftest.$ac_ext >&5
  16255. bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
  16256. fi
  16257. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16258. fi
  16259. if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
  16260. cat >>confdefs.h <<\_ACEOF
  16261. #define HAVE_LWPSTATUS_T_PR_REG 1
  16262. _ACEOF
  16263. fi
  16264. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
  16265. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
  16266. echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
  16267. echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
  16268. if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
  16269. echo $ECHO_N "(cached) $ECHO_C" >&6
  16270. else
  16271. cat >conftest.$ac_ext <<_ACEOF
  16272. /* confdefs.h. */
  16273. _ACEOF
  16274. cat confdefs.h >>conftest.$ac_ext
  16275. cat >>conftest.$ac_ext <<_ACEOF
  16276. /* end confdefs.h. */
  16277. #define _SYSCALL32
  16278. #include <sys/procfs.h>
  16279. int
  16280. main ()
  16281. {
  16282. win32_pstatus_t avar
  16283. ;
  16284. return 0;
  16285. }
  16286. _ACEOF
  16287. rm -f conftest.$ac_objext
  16288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16289. (eval $ac_compile) 2>conftest.er1
  16290. ac_status=$?
  16291. grep -v '^ *+' conftest.er1 >conftest.err
  16292. rm -f conftest.er1
  16293. cat conftest.err >&5
  16294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16295. (exit $ac_status); } &&
  16296. { ac_try='test -z "$ac_c_werror_flag"
  16297. || test ! -s conftest.err'
  16298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16299. (eval $ac_try) 2>&5
  16300. ac_status=$?
  16301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16302. (exit $ac_status); }; } &&
  16303. { ac_try='test -s conftest.$ac_objext'
  16304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16305. (eval $ac_try) 2>&5
  16306. ac_status=$?
  16307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16308. (exit $ac_status); }; }; then
  16309. bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
  16310. else
  16311. echo "$as_me: failed program was:" >&5
  16312. sed 's/^/| /' conftest.$ac_ext >&5
  16313. bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
  16314. fi
  16315. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16316. fi
  16317. if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
  16318. cat >>confdefs.h <<\_ACEOF
  16319. #define HAVE_WIN32_PSTATUS_T 1
  16320. _ACEOF
  16321. fi
  16322. echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
  16323. echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
  16324. fi
  16325. fi
  16326. if test -n "$TRAD_HEADER"; then
  16327. cat >>confdefs.h <<_ACEOF
  16328. #define TRAD_HEADER $TRAD_HEADER
  16329. _ACEOF
  16330. fi
  16331. # Horrible hacks to build DLLs on Windows.
  16332. WIN32LDFLAGS=
  16333. WIN32LIBADD=
  16334. case "${host}" in
  16335. *-*-cygwin*)
  16336. if test "$enable_shared" = "yes"; then
  16337. WIN32LDFLAGS="-no-undefined"
  16338. WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
  16339. fi
  16340. ;;
  16341. *-*-linux*)
  16342. # We borrow WIN32LIBADD so that the shared libbfd won't depend on
  16343. # libiberty.a.
  16344. case "${host}" in
  16345. mips*-*-linux*)
  16346. # Linux/MIPS uses PIC by default.
  16347. if test "$enable_shared" = "yes"; then
  16348. WIN32LIBADD="-L../libiberty -liberty"
  16349. fi
  16350. ;;
  16351. *)
  16352. x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
  16353. if test -n "$x"; then
  16354. WIN32LIBADD="-L../libiberty/pic -liberty"
  16355. fi
  16356. ;;
  16357. esac
  16358. ;;
  16359. esac
  16360. # target stuff:
  16361. # Canonicalize the secondary target names.
  16362. if test -n "$enable_targets" ; then
  16363. for targ in `echo $enable_targets | sed 's/,/ /g'`
  16364. do
  16365. result=`$ac_config_sub $targ 2>/dev/null`
  16366. if test -n "$result" ; then
  16367. canon_targets="$canon_targets $result"
  16368. else
  16369. # Allow targets that config.sub doesn't recognize, like "all".
  16370. canon_targets="$canon_targets $targ"
  16371. fi
  16372. done
  16373. fi
  16374. all_targets=false
  16375. defvec=
  16376. selvecs=
  16377. assocvecs=
  16378. selarchs=
  16379. TDEFINES=
  16380. for targ in $target $canon_targets
  16381. do
  16382. if test "x$targ" = "xall"; then
  16383. all_targets=true
  16384. assocvecs="$assocvecs $targ_defvec $targ_selvecs"
  16385. else
  16386. . $srcdir/config.bfd
  16387. if test "x$targ" = "x$target"; then
  16388. defvec=$targ_defvec
  16389. fi
  16390. selvecs="$selvecs $targ_defvec $targ_selvecs"
  16391. selarchs="$selarchs $targ_archs"
  16392. TDEFINES="$TDEFINES $targ_cflags"
  16393. fi
  16394. done
  16395. # This processing still needs to be done if we're to decide properly whether
  16396. # 64-bit support needs to be compiled in. Currently, it will be included if
  16397. # the default or any other explicitly requested target requires it; it
  16398. # will not be included on a 32-bit host if no 64-bit target is requested, and
  16399. # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
  16400. # used.
  16401. # uniq the default and selected vectors in all the configured targets.
  16402. f=""
  16403. for i in $selvecs ; do
  16404. case " $f " in
  16405. *" $i "*) ;;
  16406. *) f="$f $i" ;;
  16407. esac
  16408. done
  16409. selvecs="$f"
  16410. # uniq the associated vectors in all the configured targets.
  16411. f=""
  16412. for i in $assocvecs ; do
  16413. case " $f " in
  16414. *" $i "*) ;;
  16415. *) f="$f $i" ;;
  16416. esac
  16417. done
  16418. assocvecs="$f"
  16419. # uniq the architectures in all the configured targets.
  16420. f=""
  16421. for i in $selarchs ; do
  16422. case " $f " in
  16423. *" $i "*) ;;
  16424. *) f="$f $i" ;;
  16425. esac
  16426. done
  16427. selarchs="$f"
  16428. # Target backend .o files.
  16429. tb=
  16430. elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
  16431. for vec in $selvecs
  16432. do
  16433. target_size=32
  16434. case "$vec" in
  16435. # This list is alphabetized to make it easy to compare
  16436. # with the two vector lists in targets.c. For the same reason,
  16437. # use one entry per line, even though this leads to long lines.
  16438. a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
  16439. aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
  16440. aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
  16441. aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
  16442. aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
  16443. apollocoff_vec) tb="$tb coff-apollo.lo" ;;
  16444. arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
  16445. arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
  16446. arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
  16447. arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
  16448. arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
  16449. arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
  16450. arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
  16451. arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
  16452. armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
  16453. armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
  16454. armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
  16455. armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
  16456. armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
  16457. armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
  16458. armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
  16459. b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
  16460. b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
  16461. bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
  16462. bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
  16463. bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
  16464. bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
  16465. bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
  16466. bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
  16467. bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
  16468. bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
  16469. bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
  16470. bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
  16471. bfd_elf32_bigarm_symbian_vec)
  16472. tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
  16473. bfd_elf32_bigarm_vxworks_vec)
  16474. tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
  16475. bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
  16476. bfd_elf32_bigmips_vxworks_vec)
  16477. tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
  16478. bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
  16479. bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
  16480. bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
  16481. bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
  16482. bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
  16483. bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
  16484. bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
  16485. bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
  16486. bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
  16487. bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
  16488. bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
  16489. bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  16490. bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  16491. bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
  16492. bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
  16493. bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
  16494. bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
  16495. bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
  16496. bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
  16497. bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
  16498. bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
  16499. bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
  16500. bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
  16501. bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
  16502. bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
  16503. bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
  16504. bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
  16505. bfd_elf32_littlearm_symbian_vec)
  16506. tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
  16507. bfd_elf32_littlearm_vxworks_vec)
  16508. tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
  16509. bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
  16510. bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
  16511. bfd_elf32_littlemips_vxworks_vec)
  16512. tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
  16513. bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
  16514. bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  16515. bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  16516. bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  16517. bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
  16518. bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
  16519. bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
  16520. bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
  16521. bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
  16522. bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
  16523. bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
  16524. bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
  16525. bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
  16526. bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
  16527. bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
  16528. bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
  16529. bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
  16530. bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16531. bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16532. bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16533. bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16534. bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
  16535. bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
  16536. bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
  16537. bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
  16538. bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  16539. bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  16540. bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
  16541. bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
  16542. bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
  16543. bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
  16544. # FIXME: We include cofflink.lo not because it's needed for
  16545. # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
  16546. # which needs it but does not list it. Should be fixed in right place.
  16547. bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
  16548. bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
  16549. bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
  16550. bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
  16551. bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
  16552. bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
  16553. bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
  16554. bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
  16555. bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
  16556. bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
  16557. bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
  16558. bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
  16559. bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
  16560. bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
  16561. bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
  16562. bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  16563. bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
  16564. bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
  16565. bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
  16566. bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
  16567. bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
  16568. bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
  16569. bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
  16570. bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
  16571. bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
  16572. bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
  16573. bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
  16574. bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
  16575. bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
  16576. bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  16577. bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16578. bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
  16579. bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
  16580. bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
  16581. bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
  16582. bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
  16583. bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  16584. bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16585. bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
  16586. bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
  16587. bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
  16588. bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
  16589. bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  16590. bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  16591. bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  16592. bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  16593. bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  16594. bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
  16595. bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  16596. bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
  16597. bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16598. bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
  16599. bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
  16600. bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
  16601. bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
  16602. bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
  16603. bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
  16604. bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
  16605. bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
  16606. cris_aout_vec) tb="$tb aout-cris.lo" ;;
  16607. demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
  16608. ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
  16609. ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
  16610. ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
  16611. ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
  16612. go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
  16613. go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
  16614. h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
  16615. h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
  16616. host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
  16617. hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
  16618. hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
  16619. i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
  16620. i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
  16621. i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
  16622. x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
  16623. i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
  16624. i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
  16625. i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
  16626. i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
  16627. i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
  16628. i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
  16629. i386msdos_vec) tb="$tb i386msdos.lo" ;;
  16630. i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
  16631. i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
  16632. i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
  16633. i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
  16634. x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
  16635. x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
  16636. i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
  16637. icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
  16638. icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
  16639. ieee_vec) tb="$tb ieee.lo" ;;
  16640. m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
  16641. m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
  16642. m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
  16643. m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
  16644. m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
  16645. m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
  16646. m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
  16647. m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
  16648. m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
  16649. m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
  16650. maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
  16651. mach_o_be_vec) tb="$tb mach-o.lo" ;;
  16652. mach_o_le_vec) tb="$tb mach-o.lo" ;;
  16653. mach_o_fat_vec) tb="$tb mach-o.lo" ;;
  16654. mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
  16655. mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
  16656. mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
  16657. mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
  16658. mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
  16659. mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
  16660. newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
  16661. nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
  16662. nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
  16663. nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
  16664. nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
  16665. or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
  16666. pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
  16667. pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
  16668. pef_vec) tb="$tb pef.lo" ;;
  16669. pef_xlib_vec) tb="$tb pef.lo" ;;
  16670. pdp11_aout_vec) tb="$tb pdp11.lo" ;;
  16671. pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
  16672. ppcboot_vec) tb="$tb ppcboot.lo" ;;
  16673. riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
  16674. rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
  16675. rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
  16676. shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
  16677. shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
  16678. shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
  16679. shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
  16680. shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
  16681. shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
  16682. som_vec) tb="$tb som.lo" ;;
  16683. sparccoff_vec) tb="$tb coff-sparc.lo" ;;
  16684. sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
  16685. sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
  16686. sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
  16687. sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
  16688. sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
  16689. sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
  16690. sym_vec) tb="$tb xsym.lo" ;;
  16691. tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
  16692. tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
  16693. tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
  16694. tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
  16695. tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
  16696. tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
  16697. tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
  16698. tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
  16699. tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
  16700. tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
  16701. tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
  16702. tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
  16703. tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
  16704. tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
  16705. tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
  16706. vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
  16707. vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
  16708. vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
  16709. versados_vec) tb="$tb versados.lo" ;;
  16710. vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
  16711. vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
  16712. w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
  16713. we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
  16714. z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
  16715. z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
  16716. # These appear out of order in targets.c
  16717. srec_vec) tb="$tb srec.lo" ;;
  16718. symbolsrec_vec) tb="$tb srec.lo" ;;
  16719. tekhex_vec) tb="$tb tekhex.lo" ;;
  16720. cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
  16721. cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
  16722. "") ;;
  16723. *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
  16724. echo "$as_me: error: *** unknown target vector $vec" >&2;}
  16725. { (exit 1); exit 1; }; } ;;
  16726. esac
  16727. if test ${target_size} = 64; then
  16728. target64=true
  16729. fi
  16730. if test x"${vec}" = x"${defvec}"; then
  16731. bfd_default_target_size=${target_size}
  16732. fi
  16733. done
  16734. # Target architecture .o files.
  16735. # A couple of CPUs use shorter file names to avoid problems on DOS
  16736. # filesystems.
  16737. ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
  16738. # Weed out duplicate .o files.
  16739. f=""
  16740. for i in $tb ; do
  16741. case " $f " in
  16742. *" $i "*) ;;
  16743. *) f="$f $i" ;;
  16744. esac
  16745. done
  16746. tb="$f"
  16747. f=""
  16748. for i in $ta ; do
  16749. case " $f " in
  16750. *" $i "*) ;;
  16751. *) f="$f $i" ;;
  16752. esac
  16753. done
  16754. ta="$f"
  16755. bfd_backends="$tb"
  16756. bfd_machines="$ta"
  16757. if test x${all_targets} = xtrue ; then
  16758. bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
  16759. bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
  16760. selvecs=
  16761. havevecs=
  16762. selarchs=
  16763. test -n "$assocvecs" &&
  16764. assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  16765. else # all_targets is true
  16766. # Only set these if they will be nonempty, for the clever echo.
  16767. havevecs=
  16768. assocvecs=
  16769. test -n "$selvecs" &&
  16770. havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
  16771. test -n "$selvecs" &&
  16772. selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  16773. test -n "$selarchs" &&
  16774. selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
  16775. fi # all_targets is true
  16776. case ${host64}-${target64}-${want64} in
  16777. *true*)
  16778. wordsize=64
  16779. bfd64_libs='$(BFD64_LIBS)'
  16780. all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
  16781. if test $BFD_HOST_64_BIT_DEFINED = 0; then
  16782. { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
  16783. echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
  16784. { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
  16785. echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
  16786. fi
  16787. if test -n "$GCC" ; then
  16788. bad_64bit_gcc=no;
  16789. echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
  16790. echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
  16791. # Add more tests for gcc versions with non-working 64-bit support here.
  16792. cat >conftest.$ac_ext <<_ACEOF
  16793. /* confdefs.h. */
  16794. _ACEOF
  16795. cat confdefs.h >>conftest.$ac_ext
  16796. cat >>conftest.$ac_ext <<_ACEOF
  16797. /* end confdefs.h. */
  16798. :__GNUC__:__GNUC_MINOR__:__i386__:
  16799. _ACEOF
  16800. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16801. $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
  16802. bad_64bit_gcc=yes;
  16803. echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
  16804. echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
  16805. else
  16806. echo "$as_me:$LINENO: result: no" >&5
  16807. echo "${ECHO_T}no" >&6
  16808. fi
  16809. rm -f conftest*
  16810. if test $bad_64bit_gcc = yes ; then
  16811. { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
  16812. echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
  16813. { (exit 1); exit 1; }; }
  16814. fi
  16815. fi
  16816. ;;
  16817. false-false-false)
  16818. wordsize=32
  16819. all_backends='$(BFD32_BACKENDS)'
  16820. ;;
  16821. esac
  16822. # Determine the host dependant file_ptr a.k.a. off_t type. In order
  16823. # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
  16824. # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
  16825. # Hopefully a reasonable assumption since fseeko et.al. should be
  16826. # upward compatible.
  16827. for ac_func in ftello ftello64 fseeko fseeko64 fopen64
  16828. do
  16829. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16830. echo "$as_me:$LINENO: checking for $ac_func" >&5
  16831. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  16832. if eval "test \"\${$as_ac_var+set}\" = set"; then
  16833. echo $ECHO_N "(cached) $ECHO_C" >&6
  16834. else
  16835. cat >conftest.$ac_ext <<_ACEOF
  16836. /* confdefs.h. */
  16837. _ACEOF
  16838. cat confdefs.h >>conftest.$ac_ext
  16839. cat >>conftest.$ac_ext <<_ACEOF
  16840. /* end confdefs.h. */
  16841. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16842. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16843. #define $ac_func innocuous_$ac_func
  16844. /* System header to define __stub macros and hopefully few prototypes,
  16845. which can conflict with char $ac_func (); below.
  16846. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16847. <limits.h> exists even on freestanding compilers. */
  16848. #ifdef __STDC__
  16849. # include <limits.h>
  16850. #else
  16851. # include <assert.h>
  16852. #endif
  16853. #undef $ac_func
  16854. /* Override any gcc2 internal prototype to avoid an error. */
  16855. #ifdef __cplusplus
  16856. extern "C"
  16857. {
  16858. #endif
  16859. /* We use char because int might match the return type of a gcc2
  16860. builtin and then its argument prototype would still apply. */
  16861. char $ac_func ();
  16862. /* The GNU C library defines this for functions which it implements
  16863. to always fail with ENOSYS. Some functions are actually named
  16864. something starting with __ and the normal name is an alias. */
  16865. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16866. choke me
  16867. #else
  16868. char (*f) () = $ac_func;
  16869. #endif
  16870. #ifdef __cplusplus
  16871. }
  16872. #endif
  16873. int
  16874. main ()
  16875. {
  16876. return f != $ac_func;
  16877. ;
  16878. return 0;
  16879. }
  16880. _ACEOF
  16881. rm -f conftest.$ac_objext conftest$ac_exeext
  16882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16883. (eval $ac_link) 2>conftest.er1
  16884. ac_status=$?
  16885. grep -v '^ *+' conftest.er1 >conftest.err
  16886. rm -f conftest.er1
  16887. cat conftest.err >&5
  16888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16889. (exit $ac_status); } &&
  16890. { ac_try='test -z "$ac_c_werror_flag"
  16891. || test ! -s conftest.err'
  16892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16893. (eval $ac_try) 2>&5
  16894. ac_status=$?
  16895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16896. (exit $ac_status); }; } &&
  16897. { ac_try='test -s conftest$ac_exeext'
  16898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16899. (eval $ac_try) 2>&5
  16900. ac_status=$?
  16901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16902. (exit $ac_status); }; }; then
  16903. eval "$as_ac_var=yes"
  16904. else
  16905. echo "$as_me: failed program was:" >&5
  16906. sed 's/^/| /' conftest.$ac_ext >&5
  16907. eval "$as_ac_var=no"
  16908. fi
  16909. rm -f conftest.err conftest.$ac_objext \
  16910. conftest$ac_exeext conftest.$ac_ext
  16911. fi
  16912. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  16913. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  16914. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16915. cat >>confdefs.h <<_ACEOF
  16916. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16917. _ACEOF
  16918. fi
  16919. done
  16920. if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
  16921. echo "$as_me:$LINENO: checking for off_t" >&5
  16922. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  16923. if test "${ac_cv_type_off_t+set}" = set; then
  16924. echo $ECHO_N "(cached) $ECHO_C" >&6
  16925. else
  16926. cat >conftest.$ac_ext <<_ACEOF
  16927. /* confdefs.h. */
  16928. _ACEOF
  16929. cat confdefs.h >>conftest.$ac_ext
  16930. cat >>conftest.$ac_ext <<_ACEOF
  16931. /* end confdefs.h. */
  16932. $ac_includes_default
  16933. int
  16934. main ()
  16935. {
  16936. if ((off_t *) 0)
  16937. return 0;
  16938. if (sizeof (off_t))
  16939. return 0;
  16940. ;
  16941. return 0;
  16942. }
  16943. _ACEOF
  16944. rm -f conftest.$ac_objext
  16945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16946. (eval $ac_compile) 2>conftest.er1
  16947. ac_status=$?
  16948. grep -v '^ *+' conftest.er1 >conftest.err
  16949. rm -f conftest.er1
  16950. cat conftest.err >&5
  16951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16952. (exit $ac_status); } &&
  16953. { ac_try='test -z "$ac_c_werror_flag"
  16954. || test ! -s conftest.err'
  16955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16956. (eval $ac_try) 2>&5
  16957. ac_status=$?
  16958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16959. (exit $ac_status); }; } &&
  16960. { ac_try='test -s conftest.$ac_objext'
  16961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16962. (eval $ac_try) 2>&5
  16963. ac_status=$?
  16964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16965. (exit $ac_status); }; }; then
  16966. ac_cv_type_off_t=yes
  16967. else
  16968. echo "$as_me: failed program was:" >&5
  16969. sed 's/^/| /' conftest.$ac_ext >&5
  16970. ac_cv_type_off_t=no
  16971. fi
  16972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16973. fi
  16974. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  16975. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  16976. echo "$as_me:$LINENO: checking size of off_t" >&5
  16977. echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
  16978. if test "${ac_cv_sizeof_off_t+set}" = set; then
  16979. echo $ECHO_N "(cached) $ECHO_C" >&6
  16980. else
  16981. if test "$ac_cv_type_off_t" = yes; then
  16982. # The cast to unsigned long works around a bug in the HP C Compiler
  16983. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16984. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16985. # This bug is HP SR number 8606223364.
  16986. if test "$cross_compiling" = yes; then
  16987. # Depending upon the size, compute the lo and hi bounds.
  16988. cat >conftest.$ac_ext <<_ACEOF
  16989. /* confdefs.h. */
  16990. _ACEOF
  16991. cat confdefs.h >>conftest.$ac_ext
  16992. cat >>conftest.$ac_ext <<_ACEOF
  16993. /* end confdefs.h. */
  16994. $ac_includes_default
  16995. int
  16996. main ()
  16997. {
  16998. static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
  16999. test_array [0] = 0
  17000. ;
  17001. return 0;
  17002. }
  17003. _ACEOF
  17004. rm -f conftest.$ac_objext
  17005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17006. (eval $ac_compile) 2>conftest.er1
  17007. ac_status=$?
  17008. grep -v '^ *+' conftest.er1 >conftest.err
  17009. rm -f conftest.er1
  17010. cat conftest.err >&5
  17011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17012. (exit $ac_status); } &&
  17013. { ac_try='test -z "$ac_c_werror_flag"
  17014. || test ! -s conftest.err'
  17015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17016. (eval $ac_try) 2>&5
  17017. ac_status=$?
  17018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17019. (exit $ac_status); }; } &&
  17020. { ac_try='test -s conftest.$ac_objext'
  17021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17022. (eval $ac_try) 2>&5
  17023. ac_status=$?
  17024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17025. (exit $ac_status); }; }; then
  17026. ac_lo=0 ac_mid=0
  17027. while :; do
  17028. cat >conftest.$ac_ext <<_ACEOF
  17029. /* confdefs.h. */
  17030. _ACEOF
  17031. cat confdefs.h >>conftest.$ac_ext
  17032. cat >>conftest.$ac_ext <<_ACEOF
  17033. /* end confdefs.h. */
  17034. $ac_includes_default
  17035. int
  17036. main ()
  17037. {
  17038. static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
  17039. test_array [0] = 0
  17040. ;
  17041. return 0;
  17042. }
  17043. _ACEOF
  17044. rm -f conftest.$ac_objext
  17045. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17046. (eval $ac_compile) 2>conftest.er1
  17047. ac_status=$?
  17048. grep -v '^ *+' conftest.er1 >conftest.err
  17049. rm -f conftest.er1
  17050. cat conftest.err >&5
  17051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17052. (exit $ac_status); } &&
  17053. { ac_try='test -z "$ac_c_werror_flag"
  17054. || test ! -s conftest.err'
  17055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17056. (eval $ac_try) 2>&5
  17057. ac_status=$?
  17058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17059. (exit $ac_status); }; } &&
  17060. { ac_try='test -s conftest.$ac_objext'
  17061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17062. (eval $ac_try) 2>&5
  17063. ac_status=$?
  17064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17065. (exit $ac_status); }; }; then
  17066. ac_hi=$ac_mid; break
  17067. else
  17068. echo "$as_me: failed program was:" >&5
  17069. sed 's/^/| /' conftest.$ac_ext >&5
  17070. ac_lo=`expr $ac_mid + 1`
  17071. if test $ac_lo -le $ac_mid; then
  17072. ac_lo= ac_hi=
  17073. break
  17074. fi
  17075. ac_mid=`expr 2 '*' $ac_mid + 1`
  17076. fi
  17077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17078. done
  17079. else
  17080. echo "$as_me: failed program was:" >&5
  17081. sed 's/^/| /' conftest.$ac_ext >&5
  17082. cat >conftest.$ac_ext <<_ACEOF
  17083. /* confdefs.h. */
  17084. _ACEOF
  17085. cat confdefs.h >>conftest.$ac_ext
  17086. cat >>conftest.$ac_ext <<_ACEOF
  17087. /* end confdefs.h. */
  17088. $ac_includes_default
  17089. int
  17090. main ()
  17091. {
  17092. static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
  17093. test_array [0] = 0
  17094. ;
  17095. return 0;
  17096. }
  17097. _ACEOF
  17098. rm -f conftest.$ac_objext
  17099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17100. (eval $ac_compile) 2>conftest.er1
  17101. ac_status=$?
  17102. grep -v '^ *+' conftest.er1 >conftest.err
  17103. rm -f conftest.er1
  17104. cat conftest.err >&5
  17105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17106. (exit $ac_status); } &&
  17107. { ac_try='test -z "$ac_c_werror_flag"
  17108. || test ! -s conftest.err'
  17109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17110. (eval $ac_try) 2>&5
  17111. ac_status=$?
  17112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17113. (exit $ac_status); }; } &&
  17114. { ac_try='test -s conftest.$ac_objext'
  17115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17116. (eval $ac_try) 2>&5
  17117. ac_status=$?
  17118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17119. (exit $ac_status); }; }; then
  17120. ac_hi=-1 ac_mid=-1
  17121. while :; do
  17122. cat >conftest.$ac_ext <<_ACEOF
  17123. /* confdefs.h. */
  17124. _ACEOF
  17125. cat confdefs.h >>conftest.$ac_ext
  17126. cat >>conftest.$ac_ext <<_ACEOF
  17127. /* end confdefs.h. */
  17128. $ac_includes_default
  17129. int
  17130. main ()
  17131. {
  17132. static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
  17133. test_array [0] = 0
  17134. ;
  17135. return 0;
  17136. }
  17137. _ACEOF
  17138. rm -f conftest.$ac_objext
  17139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17140. (eval $ac_compile) 2>conftest.er1
  17141. ac_status=$?
  17142. grep -v '^ *+' conftest.er1 >conftest.err
  17143. rm -f conftest.er1
  17144. cat conftest.err >&5
  17145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17146. (exit $ac_status); } &&
  17147. { ac_try='test -z "$ac_c_werror_flag"
  17148. || test ! -s conftest.err'
  17149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17150. (eval $ac_try) 2>&5
  17151. ac_status=$?
  17152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17153. (exit $ac_status); }; } &&
  17154. { ac_try='test -s conftest.$ac_objext'
  17155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17156. (eval $ac_try) 2>&5
  17157. ac_status=$?
  17158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17159. (exit $ac_status); }; }; then
  17160. ac_lo=$ac_mid; break
  17161. else
  17162. echo "$as_me: failed program was:" >&5
  17163. sed 's/^/| /' conftest.$ac_ext >&5
  17164. ac_hi=`expr '(' $ac_mid ')' - 1`
  17165. if test $ac_mid -le $ac_hi; then
  17166. ac_lo= ac_hi=
  17167. break
  17168. fi
  17169. ac_mid=`expr 2 '*' $ac_mid`
  17170. fi
  17171. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17172. done
  17173. else
  17174. echo "$as_me: failed program was:" >&5
  17175. sed 's/^/| /' conftest.$ac_ext >&5
  17176. ac_lo= ac_hi=
  17177. fi
  17178. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17179. fi
  17180. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17181. # Binary search between lo and hi bounds.
  17182. while test "x$ac_lo" != "x$ac_hi"; do
  17183. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  17184. cat >conftest.$ac_ext <<_ACEOF
  17185. /* confdefs.h. */
  17186. _ACEOF
  17187. cat confdefs.h >>conftest.$ac_ext
  17188. cat >>conftest.$ac_ext <<_ACEOF
  17189. /* end confdefs.h. */
  17190. $ac_includes_default
  17191. int
  17192. main ()
  17193. {
  17194. static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
  17195. test_array [0] = 0
  17196. ;
  17197. return 0;
  17198. }
  17199. _ACEOF
  17200. rm -f conftest.$ac_objext
  17201. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17202. (eval $ac_compile) 2>conftest.er1
  17203. ac_status=$?
  17204. grep -v '^ *+' conftest.er1 >conftest.err
  17205. rm -f conftest.er1
  17206. cat conftest.err >&5
  17207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17208. (exit $ac_status); } &&
  17209. { ac_try='test -z "$ac_c_werror_flag"
  17210. || test ! -s conftest.err'
  17211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17212. (eval $ac_try) 2>&5
  17213. ac_status=$?
  17214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17215. (exit $ac_status); }; } &&
  17216. { ac_try='test -s conftest.$ac_objext'
  17217. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17218. (eval $ac_try) 2>&5
  17219. ac_status=$?
  17220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17221. (exit $ac_status); }; }; then
  17222. ac_hi=$ac_mid
  17223. else
  17224. echo "$as_me: failed program was:" >&5
  17225. sed 's/^/| /' conftest.$ac_ext >&5
  17226. ac_lo=`expr '(' $ac_mid ')' + 1`
  17227. fi
  17228. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17229. done
  17230. case $ac_lo in
  17231. ?*) ac_cv_sizeof_off_t=$ac_lo;;
  17232. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
  17233. See \`config.log' for more details." >&5
  17234. echo "$as_me: error: cannot compute sizeof (off_t), 77
  17235. See \`config.log' for more details." >&2;}
  17236. { (exit 1); exit 1; }; } ;;
  17237. esac
  17238. else
  17239. if test "$cross_compiling" = yes; then
  17240. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  17241. See \`config.log' for more details." >&5
  17242. echo "$as_me: error: cannot run test program while cross compiling
  17243. See \`config.log' for more details." >&2;}
  17244. { (exit 1); exit 1; }; }
  17245. else
  17246. cat >conftest.$ac_ext <<_ACEOF
  17247. /* confdefs.h. */
  17248. _ACEOF
  17249. cat confdefs.h >>conftest.$ac_ext
  17250. cat >>conftest.$ac_ext <<_ACEOF
  17251. /* end confdefs.h. */
  17252. $ac_includes_default
  17253. long longval () { return (long) (sizeof (off_t)); }
  17254. unsigned long ulongval () { return (long) (sizeof (off_t)); }
  17255. #include <stdio.h>
  17256. #include <stdlib.h>
  17257. int
  17258. main ()
  17259. {
  17260. FILE *f = fopen ("conftest.val", "w");
  17261. if (! f)
  17262. exit (1);
  17263. if (((long) (sizeof (off_t))) < 0)
  17264. {
  17265. long i = longval ();
  17266. if (i != ((long) (sizeof (off_t))))
  17267. exit (1);
  17268. fprintf (f, "%ld\n", i);
  17269. }
  17270. else
  17271. {
  17272. unsigned long i = ulongval ();
  17273. if (i != ((long) (sizeof (off_t))))
  17274. exit (1);
  17275. fprintf (f, "%lu\n", i);
  17276. }
  17277. exit (ferror (f) || fclose (f) != 0);
  17278. ;
  17279. return 0;
  17280. }
  17281. _ACEOF
  17282. rm -f conftest$ac_exeext
  17283. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17284. (eval $ac_link) 2>&5
  17285. ac_status=$?
  17286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17287. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17289. (eval $ac_try) 2>&5
  17290. ac_status=$?
  17291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17292. (exit $ac_status); }; }; then
  17293. ac_cv_sizeof_off_t=`cat conftest.val`
  17294. else
  17295. echo "$as_me: program exited with status $ac_status" >&5
  17296. echo "$as_me: failed program was:" >&5
  17297. sed 's/^/| /' conftest.$ac_ext >&5
  17298. ( exit $ac_status )
  17299. { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
  17300. See \`config.log' for more details." >&5
  17301. echo "$as_me: error: cannot compute sizeof (off_t), 77
  17302. See \`config.log' for more details." >&2;}
  17303. { (exit 1); exit 1; }; }
  17304. fi
  17305. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17306. fi
  17307. fi
  17308. rm -f conftest.val
  17309. else
  17310. ac_cv_sizeof_off_t=0
  17311. fi
  17312. fi
  17313. echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
  17314. echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
  17315. cat >>confdefs.h <<_ACEOF
  17316. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  17317. _ACEOF
  17318. fi
  17319. echo "$as_me:$LINENO: checking file_ptr type" >&5
  17320. echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
  17321. bfd_file_ptr="long"
  17322. bfd_ufile_ptr="unsigned long"
  17323. if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
  17324. -o x"${ac_cv_sizeof_off_t}" = x8; then
  17325. bfd_file_ptr=BFD_HOST_64_BIT
  17326. bfd_ufile_ptr=BFD_HOST_U_64_BIT
  17327. fi
  17328. echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
  17329. echo "${ECHO_T}$bfd_file_ptr" >&6
  17330. tdefaults=""
  17331. test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
  17332. test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
  17333. test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
  17334. test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
  17335. test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
  17336. for ac_header in stdlib.h unistd.h
  17337. do
  17338. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17339. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17340. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17341. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17342. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17343. echo $ECHO_N "(cached) $ECHO_C" >&6
  17344. fi
  17345. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17346. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17347. else
  17348. # Is the header compilable?
  17349. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17350. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17351. cat >conftest.$ac_ext <<_ACEOF
  17352. /* confdefs.h. */
  17353. _ACEOF
  17354. cat confdefs.h >>conftest.$ac_ext
  17355. cat >>conftest.$ac_ext <<_ACEOF
  17356. /* end confdefs.h. */
  17357. $ac_includes_default
  17358. #include <$ac_header>
  17359. _ACEOF
  17360. rm -f conftest.$ac_objext
  17361. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17362. (eval $ac_compile) 2>conftest.er1
  17363. ac_status=$?
  17364. grep -v '^ *+' conftest.er1 >conftest.err
  17365. rm -f conftest.er1
  17366. cat conftest.err >&5
  17367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17368. (exit $ac_status); } &&
  17369. { ac_try='test -z "$ac_c_werror_flag"
  17370. || test ! -s conftest.err'
  17371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17372. (eval $ac_try) 2>&5
  17373. ac_status=$?
  17374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17375. (exit $ac_status); }; } &&
  17376. { ac_try='test -s conftest.$ac_objext'
  17377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17378. (eval $ac_try) 2>&5
  17379. ac_status=$?
  17380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17381. (exit $ac_status); }; }; then
  17382. ac_header_compiler=yes
  17383. else
  17384. echo "$as_me: failed program was:" >&5
  17385. sed 's/^/| /' conftest.$ac_ext >&5
  17386. ac_header_compiler=no
  17387. fi
  17388. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17389. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17390. echo "${ECHO_T}$ac_header_compiler" >&6
  17391. # Is the header present?
  17392. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17393. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17394. cat >conftest.$ac_ext <<_ACEOF
  17395. /* confdefs.h. */
  17396. _ACEOF
  17397. cat confdefs.h >>conftest.$ac_ext
  17398. cat >>conftest.$ac_ext <<_ACEOF
  17399. /* end confdefs.h. */
  17400. #include <$ac_header>
  17401. _ACEOF
  17402. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17403. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17404. ac_status=$?
  17405. grep -v '^ *+' conftest.er1 >conftest.err
  17406. rm -f conftest.er1
  17407. cat conftest.err >&5
  17408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17409. (exit $ac_status); } >/dev/null; then
  17410. if test -s conftest.err; then
  17411. ac_cpp_err=$ac_c_preproc_warn_flag
  17412. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17413. else
  17414. ac_cpp_err=
  17415. fi
  17416. else
  17417. ac_cpp_err=yes
  17418. fi
  17419. if test -z "$ac_cpp_err"; then
  17420. ac_header_preproc=yes
  17421. else
  17422. echo "$as_me: failed program was:" >&5
  17423. sed 's/^/| /' conftest.$ac_ext >&5
  17424. ac_header_preproc=no
  17425. fi
  17426. rm -f conftest.err conftest.$ac_ext
  17427. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17428. echo "${ECHO_T}$ac_header_preproc" >&6
  17429. # So? What about this header?
  17430. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17431. yes:no: )
  17432. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17433. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17434. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17435. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17436. ac_header_preproc=yes
  17437. ;;
  17438. no:yes:* )
  17439. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17440. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17441. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17442. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17443. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17444. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17445. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17446. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17447. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17448. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17449. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17450. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17451. (
  17452. cat <<\_ASBOX
  17453. ## ------------------------------------------ ##
  17454. ## Report this to the AC_PACKAGE_NAME lists. ##
  17455. ## ------------------------------------------ ##
  17456. _ASBOX
  17457. ) |
  17458. sed "s/^/$as_me: WARNING: /" >&2
  17459. ;;
  17460. esac
  17461. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17462. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17463. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17464. echo $ECHO_N "(cached) $ECHO_C" >&6
  17465. else
  17466. eval "$as_ac_Header=\$ac_header_preproc"
  17467. fi
  17468. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17469. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17470. fi
  17471. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17472. cat >>confdefs.h <<_ACEOF
  17473. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17474. _ACEOF
  17475. fi
  17476. done
  17477. for ac_func in getpagesize
  17478. do
  17479. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17480. echo "$as_me:$LINENO: checking for $ac_func" >&5
  17481. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  17482. if eval "test \"\${$as_ac_var+set}\" = set"; then
  17483. echo $ECHO_N "(cached) $ECHO_C" >&6
  17484. else
  17485. cat >conftest.$ac_ext <<_ACEOF
  17486. /* confdefs.h. */
  17487. _ACEOF
  17488. cat confdefs.h >>conftest.$ac_ext
  17489. cat >>conftest.$ac_ext <<_ACEOF
  17490. /* end confdefs.h. */
  17491. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17492. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17493. #define $ac_func innocuous_$ac_func
  17494. /* System header to define __stub macros and hopefully few prototypes,
  17495. which can conflict with char $ac_func (); below.
  17496. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17497. <limits.h> exists even on freestanding compilers. */
  17498. #ifdef __STDC__
  17499. # include <limits.h>
  17500. #else
  17501. # include <assert.h>
  17502. #endif
  17503. #undef $ac_func
  17504. /* Override any gcc2 internal prototype to avoid an error. */
  17505. #ifdef __cplusplus
  17506. extern "C"
  17507. {
  17508. #endif
  17509. /* We use char because int might match the return type of a gcc2
  17510. builtin and then its argument prototype would still apply. */
  17511. char $ac_func ();
  17512. /* The GNU C library defines this for functions which it implements
  17513. to always fail with ENOSYS. Some functions are actually named
  17514. something starting with __ and the normal name is an alias. */
  17515. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17516. choke me
  17517. #else
  17518. char (*f) () = $ac_func;
  17519. #endif
  17520. #ifdef __cplusplus
  17521. }
  17522. #endif
  17523. int
  17524. main ()
  17525. {
  17526. return f != $ac_func;
  17527. ;
  17528. return 0;
  17529. }
  17530. _ACEOF
  17531. rm -f conftest.$ac_objext conftest$ac_exeext
  17532. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17533. (eval $ac_link) 2>conftest.er1
  17534. ac_status=$?
  17535. grep -v '^ *+' conftest.er1 >conftest.err
  17536. rm -f conftest.er1
  17537. cat conftest.err >&5
  17538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17539. (exit $ac_status); } &&
  17540. { ac_try='test -z "$ac_c_werror_flag"
  17541. || test ! -s conftest.err'
  17542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17543. (eval $ac_try) 2>&5
  17544. ac_status=$?
  17545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17546. (exit $ac_status); }; } &&
  17547. { ac_try='test -s conftest$ac_exeext'
  17548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17549. (eval $ac_try) 2>&5
  17550. ac_status=$?
  17551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17552. (exit $ac_status); }; }; then
  17553. eval "$as_ac_var=yes"
  17554. else
  17555. echo "$as_me: failed program was:" >&5
  17556. sed 's/^/| /' conftest.$ac_ext >&5
  17557. eval "$as_ac_var=no"
  17558. fi
  17559. rm -f conftest.err conftest.$ac_objext \
  17560. conftest$ac_exeext conftest.$ac_ext
  17561. fi
  17562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  17563. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  17564. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17565. cat >>confdefs.h <<_ACEOF
  17566. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17567. _ACEOF
  17568. fi
  17569. done
  17570. echo "$as_me:$LINENO: checking for working mmap" >&5
  17571. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  17572. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17573. echo $ECHO_N "(cached) $ECHO_C" >&6
  17574. else
  17575. if test "$cross_compiling" = yes; then
  17576. ac_cv_func_mmap_fixed_mapped=no
  17577. else
  17578. cat >conftest.$ac_ext <<_ACEOF
  17579. /* confdefs.h. */
  17580. _ACEOF
  17581. cat confdefs.h >>conftest.$ac_ext
  17582. cat >>conftest.$ac_ext <<_ACEOF
  17583. /* end confdefs.h. */
  17584. $ac_includes_default
  17585. /* malloc might have been renamed as rpl_malloc. */
  17586. #undef malloc
  17587. /* Thanks to Mike Haertel and Jim Avera for this test.
  17588. Here is a matrix of mmap possibilities:
  17589. mmap private not fixed
  17590. mmap private fixed at somewhere currently unmapped
  17591. mmap private fixed at somewhere already mapped
  17592. mmap shared not fixed
  17593. mmap shared fixed at somewhere currently unmapped
  17594. mmap shared fixed at somewhere already mapped
  17595. For private mappings, we should verify that changes cannot be read()
  17596. back from the file, nor mmap's back from the file at a different
  17597. address. (There have been systems where private was not correctly
  17598. implemented like the infamous i386 svr4.0, and systems where the
  17599. VM page cache was not coherent with the file system buffer cache
  17600. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17601. For shared mappings, we should conversely verify that changes get
  17602. propagated back to all the places they're supposed to be.
  17603. Grep wants private fixed already mapped.
  17604. The main things grep needs to know about mmap are:
  17605. * does it exist and is it safe to write into the mmap'd area
  17606. * how to use it (BSD variants) */
  17607. #include <fcntl.h>
  17608. #include <sys/mman.h>
  17609. #if !STDC_HEADERS && !HAVE_STDLIB_H
  17610. char *malloc ();
  17611. #endif
  17612. /* This mess was copied from the GNU getpagesize.h. */
  17613. #if !HAVE_GETPAGESIZE
  17614. /* Assume that all systems that can run configure have sys/param.h. */
  17615. # if !HAVE_SYS_PARAM_H
  17616. # define HAVE_SYS_PARAM_H 1
  17617. # endif
  17618. # ifdef _SC_PAGESIZE
  17619. # define getpagesize() sysconf(_SC_PAGESIZE)
  17620. # else /* no _SC_PAGESIZE */
  17621. # if HAVE_SYS_PARAM_H
  17622. # include <sys/param.h>
  17623. # ifdef EXEC_PAGESIZE
  17624. # define getpagesize() EXEC_PAGESIZE
  17625. # else /* no EXEC_PAGESIZE */
  17626. # ifdef NBPG
  17627. # define getpagesize() NBPG * CLSIZE
  17628. # ifndef CLSIZE
  17629. # define CLSIZE 1
  17630. # endif /* no CLSIZE */
  17631. # else /* no NBPG */
  17632. # ifdef NBPC
  17633. # define getpagesize() NBPC
  17634. # else /* no NBPC */
  17635. # ifdef PAGESIZE
  17636. # define getpagesize() PAGESIZE
  17637. # endif /* PAGESIZE */
  17638. # endif /* no NBPC */
  17639. # endif /* no NBPG */
  17640. # endif /* no EXEC_PAGESIZE */
  17641. # else /* no HAVE_SYS_PARAM_H */
  17642. # define getpagesize() 8192 /* punt totally */
  17643. # endif /* no HAVE_SYS_PARAM_H */
  17644. # endif /* no _SC_PAGESIZE */
  17645. #endif /* no HAVE_GETPAGESIZE */
  17646. int
  17647. main ()
  17648. {
  17649. char *data, *data2, *data3;
  17650. int i, pagesize;
  17651. int fd;
  17652. pagesize = getpagesize ();
  17653. /* First, make a file with some known garbage in it. */
  17654. data = (char *) malloc (pagesize);
  17655. if (!data)
  17656. exit (1);
  17657. for (i = 0; i < pagesize; ++i)
  17658. *(data + i) = rand ();
  17659. umask (0);
  17660. fd = creat ("conftest.mmap", 0600);
  17661. if (fd < 0)
  17662. exit (1);
  17663. if (write (fd, data, pagesize) != pagesize)
  17664. exit (1);
  17665. close (fd);
  17666. /* Next, try to mmap the file at a fixed address which already has
  17667. something else allocated at it. If we can, also make sure that
  17668. we see the same garbage. */
  17669. fd = open ("conftest.mmap", O_RDWR);
  17670. if (fd < 0)
  17671. exit (1);
  17672. data2 = (char *) malloc (2 * pagesize);
  17673. if (!data2)
  17674. exit (1);
  17675. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  17676. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17677. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17678. exit (1);
  17679. for (i = 0; i < pagesize; ++i)
  17680. if (*(data + i) != *(data2 + i))
  17681. exit (1);
  17682. /* Finally, make sure that changes to the mapped area do not
  17683. percolate back to the file as seen by read(). (This is a bug on
  17684. some variants of i386 svr4.0.) */
  17685. for (i = 0; i < pagesize; ++i)
  17686. *(data2 + i) = *(data2 + i) + 1;
  17687. data3 = (char *) malloc (pagesize);
  17688. if (!data3)
  17689. exit (1);
  17690. if (read (fd, data3, pagesize) != pagesize)
  17691. exit (1);
  17692. for (i = 0; i < pagesize; ++i)
  17693. if (*(data + i) != *(data3 + i))
  17694. exit (1);
  17695. close (fd);
  17696. exit (0);
  17697. }
  17698. _ACEOF
  17699. rm -f conftest$ac_exeext
  17700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17701. (eval $ac_link) 2>&5
  17702. ac_status=$?
  17703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17704. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17706. (eval $ac_try) 2>&5
  17707. ac_status=$?
  17708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17709. (exit $ac_status); }; }; then
  17710. ac_cv_func_mmap_fixed_mapped=yes
  17711. else
  17712. echo "$as_me: program exited with status $ac_status" >&5
  17713. echo "$as_me: failed program was:" >&5
  17714. sed 's/^/| /' conftest.$ac_ext >&5
  17715. ( exit $ac_status )
  17716. ac_cv_func_mmap_fixed_mapped=no
  17717. fi
  17718. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17719. fi
  17720. fi
  17721. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17722. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  17723. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17724. cat >>confdefs.h <<\_ACEOF
  17725. #define HAVE_MMAP 1
  17726. _ACEOF
  17727. fi
  17728. rm -f conftest.mmap
  17729. for ac_func in madvise mprotect
  17730. do
  17731. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17732. echo "$as_me:$LINENO: checking for $ac_func" >&5
  17733. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  17734. if eval "test \"\${$as_ac_var+set}\" = set"; then
  17735. echo $ECHO_N "(cached) $ECHO_C" >&6
  17736. else
  17737. cat >conftest.$ac_ext <<_ACEOF
  17738. /* confdefs.h. */
  17739. _ACEOF
  17740. cat confdefs.h >>conftest.$ac_ext
  17741. cat >>conftest.$ac_ext <<_ACEOF
  17742. /* end confdefs.h. */
  17743. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17744. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17745. #define $ac_func innocuous_$ac_func
  17746. /* System header to define __stub macros and hopefully few prototypes,
  17747. which can conflict with char $ac_func (); below.
  17748. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17749. <limits.h> exists even on freestanding compilers. */
  17750. #ifdef __STDC__
  17751. # include <limits.h>
  17752. #else
  17753. # include <assert.h>
  17754. #endif
  17755. #undef $ac_func
  17756. /* Override any gcc2 internal prototype to avoid an error. */
  17757. #ifdef __cplusplus
  17758. extern "C"
  17759. {
  17760. #endif
  17761. /* We use char because int might match the return type of a gcc2
  17762. builtin and then its argument prototype would still apply. */
  17763. char $ac_func ();
  17764. /* The GNU C library defines this for functions which it implements
  17765. to always fail with ENOSYS. Some functions are actually named
  17766. something starting with __ and the normal name is an alias. */
  17767. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17768. choke me
  17769. #else
  17770. char (*f) () = $ac_func;
  17771. #endif
  17772. #ifdef __cplusplus
  17773. }
  17774. #endif
  17775. int
  17776. main ()
  17777. {
  17778. return f != $ac_func;
  17779. ;
  17780. return 0;
  17781. }
  17782. _ACEOF
  17783. rm -f conftest.$ac_objext conftest$ac_exeext
  17784. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17785. (eval $ac_link) 2>conftest.er1
  17786. ac_status=$?
  17787. grep -v '^ *+' conftest.er1 >conftest.err
  17788. rm -f conftest.er1
  17789. cat conftest.err >&5
  17790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17791. (exit $ac_status); } &&
  17792. { ac_try='test -z "$ac_c_werror_flag"
  17793. || test ! -s conftest.err'
  17794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17795. (eval $ac_try) 2>&5
  17796. ac_status=$?
  17797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17798. (exit $ac_status); }; } &&
  17799. { ac_try='test -s conftest$ac_exeext'
  17800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17801. (eval $ac_try) 2>&5
  17802. ac_status=$?
  17803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17804. (exit $ac_status); }; }; then
  17805. eval "$as_ac_var=yes"
  17806. else
  17807. echo "$as_me: failed program was:" >&5
  17808. sed 's/^/| /' conftest.$ac_ext >&5
  17809. eval "$as_ac_var=no"
  17810. fi
  17811. rm -f conftest.err conftest.$ac_objext \
  17812. conftest$ac_exeext conftest.$ac_ext
  17813. fi
  17814. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  17815. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  17816. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17817. cat >>confdefs.h <<_ACEOF
  17818. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17819. _ACEOF
  17820. fi
  17821. done
  17822. case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
  17823. true+yes )
  17824. cat >>confdefs.h <<\_ACEOF
  17825. #define USE_MMAP 1
  17826. _ACEOF
  17827. ;;
  17828. esac
  17829. rm -f doc/config.status
  17830. ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
  17831. ac_config_commands="$ac_config_commands default"
  17832. cat >confcache <<\_ACEOF
  17833. # This file is a shell script that caches the results of configure
  17834. # tests run on this system so they can be shared between configure
  17835. # scripts and configure runs, see configure's option --config-cache.
  17836. # It is not useful on other systems. If it contains results you don't
  17837. # want to keep, you may remove or edit it.
  17838. #
  17839. # config.status only pays attention to the cache file if you give it
  17840. # the --recheck option to rerun configure.
  17841. #
  17842. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17843. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17844. # following values.
  17845. _ACEOF
  17846. # The following way of writing the cache mishandles newlines in values,
  17847. # but we know of no workaround that is simple, portable, and efficient.
  17848. # So, don't put newlines in cache variables' values.
  17849. # Ultrix sh set writes to stderr and can't be redirected directly,
  17850. # and sets the high bit in the cache file unless we assign to the vars.
  17851. {
  17852. (set) 2>&1 |
  17853. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  17854. *ac_space=\ *)
  17855. # `set' does not quote correctly, so add quotes (double-quote
  17856. # substitution turns \\\\ into \\, and sed turns \\ into \).
  17857. sed -n \
  17858. "s/'/'\\\\''/g;
  17859. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17860. ;;
  17861. *)
  17862. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17863. sed -n \
  17864. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  17865. ;;
  17866. esac;
  17867. } |
  17868. sed '
  17869. t clear
  17870. : clear
  17871. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17872. t end
  17873. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17874. : end' >>confcache
  17875. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  17876. if test -w $cache_file; then
  17877. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  17878. cat confcache >$cache_file
  17879. else
  17880. echo "not updating unwritable cache $cache_file"
  17881. fi
  17882. fi
  17883. rm -f confcache
  17884. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17885. # Let make expand exec_prefix.
  17886. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17887. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  17888. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17889. # trailing colons and then remove the whole line if VPATH becomes empty
  17890. # (actually we leave an empty line to preserve line numbers).
  17891. if test "x$srcdir" = x.; then
  17892. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17893. s/:*\$(srcdir):*/:/;
  17894. s/:*\${srcdir}:*/:/;
  17895. s/:*@srcdir@:*/:/;
  17896. s/^\([^=]*=[ ]*\):*/\1/;
  17897. s/:*$//;
  17898. s/^[^=]*=[ ]*$//;
  17899. }'
  17900. fi
  17901. DEFS=-DHAVE_CONFIG_H
  17902. ac_libobjs=
  17903. ac_ltlibobjs=
  17904. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17905. # 1. Remove the extension, and $U if already installed.
  17906. ac_i=`echo "$ac_i" |
  17907. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  17908. # 2. Add them.
  17909. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  17910. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  17911. done
  17912. LIBOBJS=$ac_libobjs
  17913. LTLIBOBJS=$ac_ltlibobjs
  17914. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17915. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  17916. Usually this means the macro was only invoked conditionally." >&5
  17917. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  17918. Usually this means the macro was only invoked conditionally." >&2;}
  17919. { (exit 1); exit 1; }; }
  17920. fi
  17921. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17922. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  17923. Usually this means the macro was only invoked conditionally." >&5
  17924. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  17925. Usually this means the macro was only invoked conditionally." >&2;}
  17926. { (exit 1); exit 1; }; }
  17927. fi
  17928. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17929. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  17930. Usually this means the macro was only invoked conditionally." >&5
  17931. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  17932. Usually this means the macro was only invoked conditionally." >&2;}
  17933. { (exit 1); exit 1; }; }
  17934. fi
  17935. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  17936. { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
  17937. Usually this means the macro was only invoked conditionally." >&5
  17938. echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
  17939. Usually this means the macro was only invoked conditionally." >&2;}
  17940. { (exit 1); exit 1; }; }
  17941. fi
  17942. if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
  17943. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
  17944. Usually this means the macro was only invoked conditionally." >&5
  17945. echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
  17946. Usually this means the macro was only invoked conditionally." >&2;}
  17947. { (exit 1); exit 1; }; }
  17948. fi
  17949. : ${CONFIG_STATUS=./config.status}
  17950. ac_clean_files_save=$ac_clean_files
  17951. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17952. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  17953. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17954. cat >$CONFIG_STATUS <<_ACEOF
  17955. #! $SHELL
  17956. # Generated by $as_me.
  17957. # Run this file to recreate the current configuration.
  17958. # Compiler output produced by configure, useful for debugging
  17959. # configure, is in config.log if it exists.
  17960. debug=false
  17961. ac_cs_recheck=false
  17962. ac_cs_silent=false
  17963. SHELL=\${CONFIG_SHELL-$SHELL}
  17964. _ACEOF
  17965. cat >>$CONFIG_STATUS <<\_ACEOF
  17966. ## --------------------- ##
  17967. ## M4sh Initialization. ##
  17968. ## --------------------- ##
  17969. # Be Bourne compatible
  17970. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17971. emulate sh
  17972. NULLCMD=:
  17973. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17974. # is contrary to our usage. Disable this feature.
  17975. alias -g '${1+"$@"}'='"$@"'
  17976. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  17977. set -o posix
  17978. fi
  17979. DUALCASE=1; export DUALCASE # for MKS sh
  17980. # Support unset when possible.
  17981. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17982. as_unset=unset
  17983. else
  17984. as_unset=false
  17985. fi
  17986. # Work around bugs in pre-3.0 UWIN ksh.
  17987. $as_unset ENV MAIL MAILPATH
  17988. PS1='$ '
  17989. PS2='> '
  17990. PS4='+ '
  17991. # NLS nuisances.
  17992. for as_var in \
  17993. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  17994. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  17995. LC_TELEPHONE LC_TIME
  17996. do
  17997. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  17998. eval $as_var=C; export $as_var
  17999. else
  18000. $as_unset $as_var
  18001. fi
  18002. done
  18003. # Required to use basename.
  18004. if expr a : '\(a\)' >/dev/null 2>&1; then
  18005. as_expr=expr
  18006. else
  18007. as_expr=false
  18008. fi
  18009. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  18010. as_basename=basename
  18011. else
  18012. as_basename=false
  18013. fi
  18014. # Name of the executable.
  18015. as_me=`$as_basename "$0" ||
  18016. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18017. X"$0" : 'X\(//\)$' \| \
  18018. X"$0" : 'X\(/\)$' \| \
  18019. . : '\(.\)' 2>/dev/null ||
  18020. echo X/"$0" |
  18021. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  18022. /^X\/\(\/\/\)$/{ s//\1/; q; }
  18023. /^X\/\(\/\).*/{ s//\1/; q; }
  18024. s/.*/./; q'`
  18025. # PATH needs CR, and LINENO needs CR and PATH.
  18026. # Avoid depending upon Character Ranges.
  18027. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18028. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18029. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18030. as_cr_digits='0123456789'
  18031. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18032. # The user is always right.
  18033. if test "${PATH_SEPARATOR+set}" != set; then
  18034. echo "#! /bin/sh" >conf$$.sh
  18035. echo "exit 0" >>conf$$.sh
  18036. chmod +x conf$$.sh
  18037. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  18038. PATH_SEPARATOR=';'
  18039. else
  18040. PATH_SEPARATOR=:
  18041. fi
  18042. rm -f conf$$.sh
  18043. fi
  18044. as_lineno_1=$LINENO
  18045. as_lineno_2=$LINENO
  18046. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  18047. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18048. test "x$as_lineno_3" = "x$as_lineno_2" || {
  18049. # Find who we are. Look in the path if we contain no path at all
  18050. # relative or not.
  18051. case $0 in
  18052. *[\\/]* ) as_myself=$0 ;;
  18053. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18054. for as_dir in $PATH
  18055. do
  18056. IFS=$as_save_IFS
  18057. test -z "$as_dir" && as_dir=.
  18058. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18059. done
  18060. ;;
  18061. esac
  18062. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18063. # in which case we are not to be found in the path.
  18064. if test "x$as_myself" = x; then
  18065. as_myself=$0
  18066. fi
  18067. if test ! -f "$as_myself"; then
  18068. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  18069. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  18070. { (exit 1); exit 1; }; }
  18071. fi
  18072. case $CONFIG_SHELL in
  18073. '')
  18074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18075. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  18076. do
  18077. IFS=$as_save_IFS
  18078. test -z "$as_dir" && as_dir=.
  18079. for as_base in sh bash ksh sh5; do
  18080. case $as_dir in
  18081. /*)
  18082. if ("$as_dir/$as_base" -c '
  18083. as_lineno_1=$LINENO
  18084. as_lineno_2=$LINENO
  18085. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  18086. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18087. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  18088. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  18089. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  18090. CONFIG_SHELL=$as_dir/$as_base
  18091. export CONFIG_SHELL
  18092. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  18093. fi;;
  18094. esac
  18095. done
  18096. done
  18097. ;;
  18098. esac
  18099. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  18100. # uniformly replaced by the line number. The first 'sed' inserts a
  18101. # line-number line before each line; the second 'sed' does the real
  18102. # work. The second script uses 'N' to pair each line-number line
  18103. # with the numbered line, and appends trailing '-' during
  18104. # substitution so that $LINENO is not a special case at line end.
  18105. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  18106. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  18107. sed '=' <$as_myself |
  18108. sed '
  18109. N
  18110. s,$,-,
  18111. : loop
  18112. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  18113. t loop
  18114. s,-$,,
  18115. s,^['$as_cr_digits']*\n,,
  18116. ' >$as_me.lineno &&
  18117. chmod +x $as_me.lineno ||
  18118. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  18119. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  18120. { (exit 1); exit 1; }; }
  18121. # Don't try to exec as it changes $[0], causing all sort of problems
  18122. # (the dirname of $[0] is not the place where we might find the
  18123. # original and so on. Autoconf is especially sensible to this).
  18124. . ./$as_me.lineno
  18125. # Exit status is that of the last command.
  18126. exit
  18127. }
  18128. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  18129. *c*,-n*) ECHO_N= ECHO_C='
  18130. ' ECHO_T=' ' ;;
  18131. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  18132. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  18133. esac
  18134. if expr a : '\(a\)' >/dev/null 2>&1; then
  18135. as_expr=expr
  18136. else
  18137. as_expr=false
  18138. fi
  18139. rm -f conf$$ conf$$.exe conf$$.file
  18140. echo >conf$$.file
  18141. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18142. # We could just check for DJGPP; but this test a) works b) is more generic
  18143. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  18144. if test -f conf$$.exe; then
  18145. # Don't use ln at all; we don't have any links
  18146. as_ln_s='cp -p'
  18147. else
  18148. as_ln_s='ln -s'
  18149. fi
  18150. elif ln conf$$.file conf$$ 2>/dev/null; then
  18151. as_ln_s=ln
  18152. else
  18153. as_ln_s='cp -p'
  18154. fi
  18155. rm -f conf$$ conf$$.exe conf$$.file
  18156. if mkdir -p . 2>/dev/null; then
  18157. as_mkdir_p=:
  18158. else
  18159. test -d ./-p && rmdir ./-p
  18160. as_mkdir_p=false
  18161. fi
  18162. as_executable_p="test -f"
  18163. # Sed expression to map a string onto a valid CPP name.
  18164. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18165. # Sed expression to map a string onto a valid variable name.
  18166. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18167. # IFS
  18168. # We need space, tab and new line, in precisely that order.
  18169. as_nl='
  18170. '
  18171. IFS=" $as_nl"
  18172. # CDPATH.
  18173. $as_unset CDPATH
  18174. exec 6>&1
  18175. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  18176. # report actual input values of CONFIG_FILES etc. instead of their
  18177. # values after options handling. Logging --version etc. is OK.
  18178. exec 5>>config.log
  18179. {
  18180. echo
  18181. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18182. ## Running $as_me. ##
  18183. _ASBOX
  18184. } >&5
  18185. cat >&5 <<_CSEOF
  18186. This file was extended by $as_me, which was
  18187. generated by GNU Autoconf 2.59. Invocation command line was
  18188. CONFIG_FILES = $CONFIG_FILES
  18189. CONFIG_HEADERS = $CONFIG_HEADERS
  18190. CONFIG_LINKS = $CONFIG_LINKS
  18191. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18192. $ $0 $@
  18193. _CSEOF
  18194. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  18195. echo >&5
  18196. _ACEOF
  18197. # Files that config.status was made for.
  18198. if test -n "$ac_config_files"; then
  18199. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  18200. fi
  18201. if test -n "$ac_config_headers"; then
  18202. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  18203. fi
  18204. if test -n "$ac_config_links"; then
  18205. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  18206. fi
  18207. if test -n "$ac_config_commands"; then
  18208. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  18209. fi
  18210. cat >>$CONFIG_STATUS <<\_ACEOF
  18211. ac_cs_usage="\
  18212. \`$as_me' instantiates files from templates according to the
  18213. current configuration.
  18214. Usage: $0 [OPTIONS] [FILE]...
  18215. -h, --help print this help, then exit
  18216. -V, --version print version number, then exit
  18217. -q, --quiet do not print progress messages
  18218. -d, --debug don't remove temporary files
  18219. --recheck update $as_me by reconfiguring in the same conditions
  18220. --file=FILE[:TEMPLATE]
  18221. instantiate the configuration file FILE
  18222. --header=FILE[:TEMPLATE]
  18223. instantiate the configuration header FILE
  18224. Configuration files:
  18225. $config_files
  18226. Configuration headers:
  18227. $config_headers
  18228. Configuration commands:
  18229. $config_commands
  18230. Report bugs to <bug-autoconf@gnu.org>."
  18231. _ACEOF
  18232. cat >>$CONFIG_STATUS <<_ACEOF
  18233. ac_cs_version="\\
  18234. config.status
  18235. configured by $0, generated by GNU Autoconf 2.59,
  18236. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  18237. Copyright (C) 2003 Free Software Foundation, Inc.
  18238. This config.status script is free software; the Free Software Foundation
  18239. gives unlimited permission to copy, distribute and modify it."
  18240. srcdir=$srcdir
  18241. INSTALL="$INSTALL"
  18242. _ACEOF
  18243. cat >>$CONFIG_STATUS <<\_ACEOF
  18244. # If no file are specified by the user, then we need to provide default
  18245. # value. By we need to know if files were specified by the user.
  18246. ac_need_defaults=:
  18247. while test $# != 0
  18248. do
  18249. case $1 in
  18250. --*=*)
  18251. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  18252. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  18253. ac_shift=:
  18254. ;;
  18255. -*)
  18256. ac_option=$1
  18257. ac_optarg=$2
  18258. ac_shift=shift
  18259. ;;
  18260. *) # This is not an option, so the user has probably given explicit
  18261. # arguments.
  18262. ac_option=$1
  18263. ac_need_defaults=false;;
  18264. esac
  18265. case $ac_option in
  18266. # Handling of the options.
  18267. _ACEOF
  18268. cat >>$CONFIG_STATUS <<\_ACEOF
  18269. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18270. ac_cs_recheck=: ;;
  18271. --version | --vers* | -V )
  18272. echo "$ac_cs_version"; exit 0 ;;
  18273. --he | --h)
  18274. # Conflict between --help and --header
  18275. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  18276. Try \`$0 --help' for more information." >&5
  18277. echo "$as_me: error: ambiguous option: $1
  18278. Try \`$0 --help' for more information." >&2;}
  18279. { (exit 1); exit 1; }; };;
  18280. --help | --hel | -h )
  18281. echo "$ac_cs_usage"; exit 0 ;;
  18282. --debug | --d* | -d )
  18283. debug=: ;;
  18284. --file | --fil | --fi | --f )
  18285. $ac_shift
  18286. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  18287. ac_need_defaults=false;;
  18288. --header | --heade | --head | --hea )
  18289. $ac_shift
  18290. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  18291. ac_need_defaults=false;;
  18292. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18293. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18294. ac_cs_silent=: ;;
  18295. # This is an error.
  18296. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  18297. Try \`$0 --help' for more information." >&5
  18298. echo "$as_me: error: unrecognized option: $1
  18299. Try \`$0 --help' for more information." >&2;}
  18300. { (exit 1); exit 1; }; } ;;
  18301. *) ac_config_targets="$ac_config_targets $1" ;;
  18302. esac
  18303. shift
  18304. done
  18305. ac_configure_extra_args=
  18306. if $ac_cs_silent; then
  18307. exec 6>/dev/null
  18308. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18309. fi
  18310. _ACEOF
  18311. cat >>$CONFIG_STATUS <<_ACEOF
  18312. if \$ac_cs_recheck; then
  18313. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  18314. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18315. fi
  18316. _ACEOF
  18317. cat >>$CONFIG_STATUS <<_ACEOF
  18318. #
  18319. # INIT-COMMANDS section.
  18320. #
  18321. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18322. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18323. # if CDPATH is set.
  18324. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18325. sed_quote_subst='$sed_quote_subst'
  18326. double_quote_subst='$double_quote_subst'
  18327. delay_variable_subst='$delay_variable_subst'
  18328. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  18329. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  18330. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  18331. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  18332. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  18333. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  18334. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  18335. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  18336. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  18337. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  18338. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  18339. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  18340. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  18341. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  18342. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  18343. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  18344. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  18345. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  18346. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  18347. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  18348. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  18349. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  18350. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  18351. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  18352. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  18353. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  18354. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18355. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18356. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  18357. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  18358. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  18359. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  18360. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  18361. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  18362. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18363. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18364. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18365. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  18366. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  18367. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  18368. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  18369. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  18370. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  18371. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  18372. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  18373. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  18374. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  18375. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  18376. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18377. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  18378. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  18379. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  18380. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  18381. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  18382. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  18383. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18384. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18385. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  18386. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  18387. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18388. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18389. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  18390. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18391. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18392. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18393. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18394. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18395. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18396. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  18397. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18398. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18399. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18400. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  18401. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  18402. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  18403. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  18404. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  18405. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18406. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  18407. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  18408. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  18409. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  18410. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  18411. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18412. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  18413. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  18414. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18415. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18416. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  18417. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  18418. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  18419. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  18420. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18421. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18422. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  18423. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18424. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18425. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18426. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18427. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18428. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18429. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  18430. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  18431. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18432. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18433. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  18434. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  18435. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  18436. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  18437. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  18438. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  18439. LTCC='$LTCC'
  18440. LTCFLAGS='$LTCFLAGS'
  18441. compiler='$compiler_DEFAULT'
  18442. # Quote evaled strings.
  18443. for var in SED \
  18444. GREP \
  18445. EGREP \
  18446. FGREP \
  18447. LD \
  18448. NM \
  18449. LN_S \
  18450. lt_SP2NL \
  18451. lt_NL2SP \
  18452. reload_flag \
  18453. deplibs_check_method \
  18454. file_magic_cmd \
  18455. AR \
  18456. AR_FLAGS \
  18457. STRIP \
  18458. RANLIB \
  18459. CC \
  18460. CFLAGS \
  18461. compiler \
  18462. lt_cv_sys_global_symbol_pipe \
  18463. lt_cv_sys_global_symbol_to_cdecl \
  18464. lt_cv_sys_global_symbol_to_c_name_address \
  18465. SHELL \
  18466. ECHO \
  18467. lt_prog_compiler_no_builtin_flag \
  18468. lt_prog_compiler_wl \
  18469. lt_prog_compiler_pic \
  18470. lt_prog_compiler_static \
  18471. lt_cv_prog_compiler_c_o \
  18472. need_locks \
  18473. shrext_cmds \
  18474. export_dynamic_flag_spec \
  18475. whole_archive_flag_spec \
  18476. compiler_needs_object \
  18477. with_gnu_ld \
  18478. allow_undefined_flag \
  18479. no_undefined_flag \
  18480. hardcode_libdir_flag_spec \
  18481. hardcode_libdir_flag_spec_ld \
  18482. hardcode_libdir_separator \
  18483. fix_srcfile_path \
  18484. exclude_expsyms \
  18485. include_expsyms \
  18486. file_list_spec \
  18487. variables_saved_for_relink \
  18488. libname_spec \
  18489. library_names_spec \
  18490. soname_spec \
  18491. finish_eval \
  18492. old_striplib \
  18493. striplib; do
  18494. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  18495. *[\\\\\\\`\\"\\\$]*)
  18496. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  18497. ;;
  18498. *)
  18499. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18500. ;;
  18501. esac
  18502. done
  18503. # Double-quote double-evaled strings.
  18504. for var in reload_cmds \
  18505. old_postinstall_cmds \
  18506. old_postuninstall_cmds \
  18507. old_archive_cmds \
  18508. extract_expsyms_cmds \
  18509. old_archive_from_new_cmds \
  18510. old_archive_from_expsyms_cmds \
  18511. archive_cmds \
  18512. archive_expsym_cmds \
  18513. module_cmds \
  18514. module_expsym_cmds \
  18515. export_symbols_cmds \
  18516. prelink_cmds \
  18517. postinstall_cmds \
  18518. postuninstall_cmds \
  18519. finish_cmds \
  18520. sys_lib_search_path_spec \
  18521. sys_lib_dlsearch_path_spec; do
  18522. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  18523. *[\\\\\\\`\\"\\\$]*)
  18524. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  18525. ;;
  18526. *)
  18527. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18528. ;;
  18529. esac
  18530. done
  18531. # Fix-up fallback echo if it was mangled by the above quoting rules.
  18532. case \$lt_ECHO in
  18533. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  18534. ;;
  18535. esac
  18536. ac_aux_dir='$ac_aux_dir'
  18537. xsi_shell='$xsi_shell'
  18538. lt_shell_append='$lt_shell_append'
  18539. # See if we are running on zsh, and set the options which allow our
  18540. # commands through without removal of \ escapes INIT.
  18541. if test -n "\${ZSH_VERSION+set}" ; then
  18542. setopt NO_GLOB_SUBST
  18543. fi
  18544. PACKAGE='$PACKAGE'
  18545. VERSION='$VERSION'
  18546. TIMESTAMP='$TIMESTAMP'
  18547. RM='$RM'
  18548. ofile='$ofile'
  18549. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  18550. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  18551. # from automake.
  18552. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  18553. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  18554. LINGUAS="${LINGUAS-%UNSET%}"
  18555. GCC="$GCC"
  18556. CC="$CC"
  18557. acx_cv_header_stdint="$acx_cv_header_stdint"
  18558. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  18559. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  18560. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  18561. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  18562. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  18563. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  18564. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  18565. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  18566. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  18567. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  18568. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  18569. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  18570. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  18571. _ACEOF
  18572. cat >>$CONFIG_STATUS <<\_ACEOF
  18573. for ac_config_target in $ac_config_targets
  18574. do
  18575. case "$ac_config_target" in
  18576. # Handling of arguments.
  18577. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18578. "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18579. "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
  18580. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  18581. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18582. "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18583. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  18584. "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
  18585. "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  18586. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  18587. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  18588. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  18589. { (exit 1); exit 1; }; };;
  18590. esac
  18591. done
  18592. # If the user did not use the arguments to specify the items to instantiate,
  18593. # then the envvar interface is used. Set only those that are not.
  18594. # We use the long form for the default assignment because of an extremely
  18595. # bizarre bug on SunOS 4.1.3.
  18596. if $ac_need_defaults; then
  18597. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18598. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18599. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18600. fi
  18601. # Have a temporary directory for convenience. Make it in the build tree
  18602. # simply because there is no reason to put it here, and in addition,
  18603. # creating and moving files from /tmp can sometimes cause problems.
  18604. # Create a temporary directory, and hook for its removal unless debugging.
  18605. $debug ||
  18606. {
  18607. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  18608. trap '{ (exit 1); exit 1; }' 1 2 13 15
  18609. }
  18610. # Create a (secure) tmp directory for tmp files.
  18611. {
  18612. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  18613. test -n "$tmp" && test -d "$tmp"
  18614. } ||
  18615. {
  18616. tmp=./confstat$$-$RANDOM
  18617. (umask 077 && mkdir $tmp)
  18618. } ||
  18619. {
  18620. echo "$me: cannot create a temporary directory in ." >&2
  18621. { (exit 1); exit 1; }
  18622. }
  18623. _ACEOF
  18624. cat >>$CONFIG_STATUS <<_ACEOF
  18625. #
  18626. # CONFIG_FILES section.
  18627. #
  18628. # No need to generate the scripts if there are no CONFIG_FILES.
  18629. # This happens for instance when ./config.status config.h
  18630. if test -n "\$CONFIG_FILES"; then
  18631. # Protect against being on the right side of a sed subst in config.status.
  18632. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  18633. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  18634. s,@SHELL@,$SHELL,;t t
  18635. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  18636. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  18637. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  18638. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  18639. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  18640. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  18641. s,@exec_prefix@,$exec_prefix,;t t
  18642. s,@prefix@,$prefix,;t t
  18643. s,@program_transform_name@,$program_transform_name,;t t
  18644. s,@bindir@,$bindir,;t t
  18645. s,@sbindir@,$sbindir,;t t
  18646. s,@libexecdir@,$libexecdir,;t t
  18647. s,@datadir@,$datadir,;t t
  18648. s,@sysconfdir@,$sysconfdir,;t t
  18649. s,@sharedstatedir@,$sharedstatedir,;t t
  18650. s,@localstatedir@,$localstatedir,;t t
  18651. s,@libdir@,$libdir,;t t
  18652. s,@includedir@,$includedir,;t t
  18653. s,@oldincludedir@,$oldincludedir,;t t
  18654. s,@infodir@,$infodir,;t t
  18655. s,@mandir@,$mandir,;t t
  18656. s,@build_alias@,$build_alias,;t t
  18657. s,@host_alias@,$host_alias,;t t
  18658. s,@target_alias@,$target_alias,;t t
  18659. s,@DEFS@,$DEFS,;t t
  18660. s,@ECHO_C@,$ECHO_C,;t t
  18661. s,@ECHO_N@,$ECHO_N,;t t
  18662. s,@ECHO_T@,$ECHO_T,;t t
  18663. s,@LIBS@,$LIBS,;t t
  18664. s,@build@,$build,;t t
  18665. s,@build_cpu@,$build_cpu,;t t
  18666. s,@build_vendor@,$build_vendor,;t t
  18667. s,@build_os@,$build_os,;t t
  18668. s,@host@,$host,;t t
  18669. s,@host_cpu@,$host_cpu,;t t
  18670. s,@host_vendor@,$host_vendor,;t t
  18671. s,@host_os@,$host_os,;t t
  18672. s,@target@,$target,;t t
  18673. s,@target_cpu@,$target_cpu,;t t
  18674. s,@target_vendor@,$target_vendor,;t t
  18675. s,@target_os@,$target_os,;t t
  18676. s,@CC@,$CC,;t t
  18677. s,@CFLAGS@,$CFLAGS,;t t
  18678. s,@LDFLAGS@,$LDFLAGS,;t t
  18679. s,@CPPFLAGS@,$CPPFLAGS,;t t
  18680. s,@ac_ct_CC@,$ac_ct_CC,;t t
  18681. s,@EXEEXT@,$EXEEXT,;t t
  18682. s,@OBJEXT@,$OBJEXT,;t t
  18683. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  18684. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  18685. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  18686. s,@CYGPATH_W@,$CYGPATH_W,;t t
  18687. s,@PACKAGE@,$PACKAGE,;t t
  18688. s,@VERSION@,$VERSION,;t t
  18689. s,@ACLOCAL@,$ACLOCAL,;t t
  18690. s,@AUTOCONF@,$AUTOCONF,;t t
  18691. s,@AUTOMAKE@,$AUTOMAKE,;t t
  18692. s,@AUTOHEADER@,$AUTOHEADER,;t t
  18693. s,@MAKEINFO@,$MAKEINFO,;t t
  18694. s,@install_sh@,$install_sh,;t t
  18695. s,@STRIP@,$STRIP,;t t
  18696. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  18697. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  18698. s,@mkdir_p@,$mkdir_p,;t t
  18699. s,@AWK@,$AWK,;t t
  18700. s,@SET_MAKE@,$SET_MAKE,;t t
  18701. s,@am__leading_dot@,$am__leading_dot,;t t
  18702. s,@AMTAR@,$AMTAR,;t t
  18703. s,@am__tar@,$am__tar,;t t
  18704. s,@am__untar@,$am__untar,;t t
  18705. s,@DEPDIR@,$DEPDIR,;t t
  18706. s,@am__include@,$am__include,;t t
  18707. s,@am__quote@,$am__quote,;t t
  18708. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  18709. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  18710. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  18711. s,@CCDEPMODE@,$CCDEPMODE,;t t
  18712. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  18713. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  18714. s,@AR@,$AR,;t t
  18715. s,@ac_ct_AR@,$ac_ct_AR,;t t
  18716. s,@RANLIB@,$RANLIB,;t t
  18717. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  18718. s,@LIBTOOL@,$LIBTOOL,;t t
  18719. s,@SED@,$SED,;t t
  18720. s,@EGREP@,$EGREP,;t t
  18721. s,@FGREP@,$FGREP,;t t
  18722. s,@GREP@,$GREP,;t t
  18723. s,@LD@,$LD,;t t
  18724. s,@DUMPBIN@,$DUMPBIN,;t t
  18725. s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
  18726. s,@NM@,$NM,;t t
  18727. s,@LN_S@,$LN_S,;t t
  18728. s,@lt_ECHO@,$lt_ECHO,;t t
  18729. s,@CPP@,$CPP,;t t
  18730. s,@DEBUGDIR@,$DEBUGDIR,;t t
  18731. s,@PKGVERSION@,$PKGVERSION,;t t
  18732. s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
  18733. s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
  18734. s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
  18735. s,@NO_WERROR@,$NO_WERROR,;t t
  18736. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  18737. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  18738. s,@MAINT@,$MAINT,;t t
  18739. s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
  18740. s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
  18741. s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
  18742. s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
  18743. s,@host_noncanonical@,$host_noncanonical,;t t
  18744. s,@target_noncanonical@,$target_noncanonical,;t t
  18745. s,@bfdlibdir@,$bfdlibdir,;t t
  18746. s,@bfdincludedir@,$bfdincludedir,;t t
  18747. s,@USE_NLS@,$USE_NLS,;t t
  18748. s,@LIBINTL@,$LIBINTL,;t t
  18749. s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
  18750. s,@INCINTL@,$INCINTL,;t t
  18751. s,@XGETTEXT@,$XGETTEXT,;t t
  18752. s,@GMSGFMT@,$GMSGFMT,;t t
  18753. s,@POSUB@,$POSUB,;t t
  18754. s,@CATALOGS@,$CATALOGS,;t t
  18755. s,@DATADIRNAME@,$DATADIRNAME,;t t
  18756. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  18757. s,@GENCAT@,$GENCAT,;t t
  18758. s,@CATOBJEXT@,$CATOBJEXT,;t t
  18759. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  18760. s,@MSGFMT@,$MSGFMT,;t t
  18761. s,@MSGMERGE@,$MSGMERGE,;t t
  18762. s,@HDEFINES@,$HDEFINES,;t t
  18763. s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
  18764. s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
  18765. s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
  18766. s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
  18767. s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
  18768. s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
  18769. s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
  18770. s,@COREFILE@,$COREFILE,;t t
  18771. s,@COREFLAG@,$COREFLAG,;t t
  18772. s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
  18773. s,@WIN32LIBADD@,$WIN32LIBADD,;t t
  18774. s,@TDEFINES@,$TDEFINES,;t t
  18775. s,@wordsize@,$wordsize,;t t
  18776. s,@bfd64_libs@,$bfd64_libs,;t t
  18777. s,@all_backends@,$all_backends,;t t
  18778. s,@bfd_backends@,$bfd_backends,;t t
  18779. s,@bfd_machines@,$bfd_machines,;t t
  18780. s,@bfd_default_target_size@,$bfd_default_target_size,;t t
  18781. s,@bfd_file_ptr@,$bfd_file_ptr,;t t
  18782. s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
  18783. s,@tdefaults@,$tdefaults,;t t
  18784. s,@datarootdir@,$datarootdir,;t t
  18785. s,@docdir@,$docdir,;t t
  18786. s,@htmldir@,$htmldir,;t t
  18787. s,@LIBOBJS@,$LIBOBJS,;t t
  18788. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  18789. CEOF
  18790. _ACEOF
  18791. cat >>$CONFIG_STATUS <<\_ACEOF
  18792. # Split the substitutions into bite-sized pieces for seds with
  18793. # small command number limits, like on Digital OSF/1 and HP-UX.
  18794. ac_max_sed_lines=48
  18795. ac_sed_frag=1 # Number of current file.
  18796. ac_beg=1 # First line for current file.
  18797. ac_end=$ac_max_sed_lines # Line after last line for current file.
  18798. ac_more_lines=:
  18799. ac_sed_cmds=
  18800. while $ac_more_lines; do
  18801. if test $ac_beg -gt 1; then
  18802. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  18803. else
  18804. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  18805. fi
  18806. if test ! -s $tmp/subs.frag; then
  18807. ac_more_lines=false
  18808. else
  18809. # The purpose of the label and of the branching condition is to
  18810. # speed up the sed processing (if there are no `@' at all, there
  18811. # is no need to browse any of the substitutions).
  18812. # These are the two extra sed commands mentioned above.
  18813. (echo ':t
  18814. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  18815. if test -z "$ac_sed_cmds"; then
  18816. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  18817. else
  18818. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  18819. fi
  18820. ac_sed_frag=`expr $ac_sed_frag + 1`
  18821. ac_beg=$ac_end
  18822. ac_end=`expr $ac_end + $ac_max_sed_lines`
  18823. fi
  18824. done
  18825. if test -z "$ac_sed_cmds"; then
  18826. ac_sed_cmds=cat
  18827. fi
  18828. fi # test -n "$CONFIG_FILES"
  18829. _ACEOF
  18830. cat >>$CONFIG_STATUS <<\_ACEOF
  18831. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  18832. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  18833. case $ac_file in
  18834. - | *:- | *:-:* ) # input from stdin
  18835. cat >$tmp/stdin
  18836. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18837. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  18838. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18839. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  18840. * ) ac_file_in=$ac_file.in ;;
  18841. esac
  18842. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  18843. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  18844. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18845. X"$ac_file" : 'X\(//\)[^/]' \| \
  18846. X"$ac_file" : 'X\(//\)$' \| \
  18847. X"$ac_file" : 'X\(/\)' \| \
  18848. . : '\(.\)' 2>/dev/null ||
  18849. echo X"$ac_file" |
  18850. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18851. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18852. /^X\(\/\/\)$/{ s//\1/; q; }
  18853. /^X\(\/\).*/{ s//\1/; q; }
  18854. s/.*/./; q'`
  18855. { if $as_mkdir_p; then
  18856. mkdir -p "$ac_dir"
  18857. else
  18858. as_dir="$ac_dir"
  18859. as_dirs=
  18860. while test ! -d "$as_dir"; do
  18861. as_dirs="$as_dir $as_dirs"
  18862. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  18863. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18864. X"$as_dir" : 'X\(//\)[^/]' \| \
  18865. X"$as_dir" : 'X\(//\)$' \| \
  18866. X"$as_dir" : 'X\(/\)' \| \
  18867. . : '\(.\)' 2>/dev/null ||
  18868. echo X"$as_dir" |
  18869. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18870. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18871. /^X\(\/\/\)$/{ s//\1/; q; }
  18872. /^X\(\/\).*/{ s//\1/; q; }
  18873. s/.*/./; q'`
  18874. done
  18875. test ! -n "$as_dirs" || mkdir $as_dirs
  18876. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  18877. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  18878. { (exit 1); exit 1; }; }; }
  18879. ac_builddir=.
  18880. if test "$ac_dir" != .; then
  18881. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  18882. # A "../" for each directory in $ac_dir_suffix.
  18883. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  18884. else
  18885. ac_dir_suffix= ac_top_builddir=
  18886. fi
  18887. case $srcdir in
  18888. .) # No --srcdir option. We are building in place.
  18889. ac_srcdir=.
  18890. if test -z "$ac_top_builddir"; then
  18891. ac_top_srcdir=.
  18892. else
  18893. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  18894. fi ;;
  18895. [\\/]* | ?:[\\/]* ) # Absolute path.
  18896. ac_srcdir=$srcdir$ac_dir_suffix;
  18897. ac_top_srcdir=$srcdir ;;
  18898. *) # Relative path.
  18899. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  18900. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  18901. esac
  18902. # Do not use `cd foo && pwd` to compute absolute paths, because
  18903. # the directories may not exist.
  18904. case `pwd` in
  18905. .) ac_abs_builddir="$ac_dir";;
  18906. *)
  18907. case "$ac_dir" in
  18908. .) ac_abs_builddir=`pwd`;;
  18909. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  18910. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  18911. esac;;
  18912. esac
  18913. case $ac_abs_builddir in
  18914. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  18915. *)
  18916. case ${ac_top_builddir}. in
  18917. .) ac_abs_top_builddir=$ac_abs_builddir;;
  18918. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  18919. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  18920. esac;;
  18921. esac
  18922. case $ac_abs_builddir in
  18923. .) ac_abs_srcdir=$ac_srcdir;;
  18924. *)
  18925. case $ac_srcdir in
  18926. .) ac_abs_srcdir=$ac_abs_builddir;;
  18927. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  18928. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  18929. esac;;
  18930. esac
  18931. case $ac_abs_builddir in
  18932. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  18933. *)
  18934. case $ac_top_srcdir in
  18935. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  18936. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  18937. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  18938. esac;;
  18939. esac
  18940. case $INSTALL in
  18941. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18942. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  18943. esac
  18944. if test x"$ac_file" != x-; then
  18945. { echo "$as_me:$LINENO: creating $ac_file" >&5
  18946. echo "$as_me: creating $ac_file" >&6;}
  18947. rm -f "$ac_file"
  18948. fi
  18949. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18950. # use $as_me), people would be surprised to read:
  18951. # /* config.h. Generated by config.status. */
  18952. if test x"$ac_file" = x-; then
  18953. configure_input=
  18954. else
  18955. configure_input="$ac_file. "
  18956. fi
  18957. configure_input=$configure_input"Generated from `echo $ac_file_in |
  18958. sed 's,.*/,,'` by configure."
  18959. # First look for the input files in the build tree, otherwise in the
  18960. # src tree.
  18961. ac_file_inputs=`IFS=:
  18962. for f in $ac_file_in; do
  18963. case $f in
  18964. -) echo $tmp/stdin ;;
  18965. [\\/$]*)
  18966. # Absolute (can't be DOS-style, as IFS=:)
  18967. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  18968. echo "$as_me: error: cannot find input file: $f" >&2;}
  18969. { (exit 1); exit 1; }; }
  18970. echo "$f";;
  18971. *) # Relative
  18972. if test -f "$f"; then
  18973. # Build tree
  18974. echo "$f"
  18975. elif test -f "$srcdir/$f"; then
  18976. # Source tree
  18977. echo "$srcdir/$f"
  18978. else
  18979. # /dev/null tree
  18980. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  18981. echo "$as_me: error: cannot find input file: $f" >&2;}
  18982. { (exit 1); exit 1; }; }
  18983. fi;;
  18984. esac
  18985. done` || { (exit 1); exit 1; }
  18986. _ACEOF
  18987. cat >>$CONFIG_STATUS <<_ACEOF
  18988. sed "$ac_vpsub
  18989. $extrasub
  18990. _ACEOF
  18991. cat >>$CONFIG_STATUS <<\_ACEOF
  18992. :t
  18993. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18994. s,@configure_input@,$configure_input,;t t
  18995. s,@srcdir@,$ac_srcdir,;t t
  18996. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  18997. s,@top_srcdir@,$ac_top_srcdir,;t t
  18998. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  18999. s,@builddir@,$ac_builddir,;t t
  19000. s,@abs_builddir@,$ac_abs_builddir,;t t
  19001. s,@top_builddir@,$ac_top_builddir,;t t
  19002. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  19003. s,@INSTALL@,$ac_INSTALL,;t t
  19004. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  19005. rm -f $tmp/stdin
  19006. if test x"$ac_file" != x-; then
  19007. mv $tmp/out $ac_file
  19008. else
  19009. cat $tmp/out
  19010. rm -f $tmp/out
  19011. fi
  19012. done
  19013. _ACEOF
  19014. cat >>$CONFIG_STATUS <<\_ACEOF
  19015. #
  19016. # CONFIG_HEADER section.
  19017. #
  19018. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  19019. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  19020. #
  19021. # ac_d sets the value in "#define NAME VALUE" lines.
  19022. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  19023. ac_dB='[ ].*$,\1#\2'
  19024. ac_dC=' '
  19025. ac_dD=',;t'
  19026. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  19027. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  19028. ac_uB='$,\1#\2define\3'
  19029. ac_uC=' '
  19030. ac_uD=',;t'
  19031. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  19032. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  19033. case $ac_file in
  19034. - | *:- | *:-:* ) # input from stdin
  19035. cat >$tmp/stdin
  19036. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19037. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  19038. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19039. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  19040. * ) ac_file_in=$ac_file.in ;;
  19041. esac
  19042. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  19043. echo "$as_me: creating $ac_file" >&6;}
  19044. # First look for the input files in the build tree, otherwise in the
  19045. # src tree.
  19046. ac_file_inputs=`IFS=:
  19047. for f in $ac_file_in; do
  19048. case $f in
  19049. -) echo $tmp/stdin ;;
  19050. [\\/$]*)
  19051. # Absolute (can't be DOS-style, as IFS=:)
  19052. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  19053. echo "$as_me: error: cannot find input file: $f" >&2;}
  19054. { (exit 1); exit 1; }; }
  19055. # Do quote $f, to prevent DOS paths from being IFS'd.
  19056. echo "$f";;
  19057. *) # Relative
  19058. if test -f "$f"; then
  19059. # Build tree
  19060. echo "$f"
  19061. elif test -f "$srcdir/$f"; then
  19062. # Source tree
  19063. echo "$srcdir/$f"
  19064. else
  19065. # /dev/null tree
  19066. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  19067. echo "$as_me: error: cannot find input file: $f" >&2;}
  19068. { (exit 1); exit 1; }; }
  19069. fi;;
  19070. esac
  19071. done` || { (exit 1); exit 1; }
  19072. # Remove the trailing spaces.
  19073. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  19074. _ACEOF
  19075. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  19076. # `conftest.undefs', that substitutes the proper values into
  19077. # config.h.in to produce config.h. The first handles `#define'
  19078. # templates, and the second `#undef' templates.
  19079. # And first: Protect against being on the right side of a sed subst in
  19080. # config.status. Protect against being in an unquoted here document
  19081. # in config.status.
  19082. rm -f conftest.defines conftest.undefs
  19083. # Using a here document instead of a string reduces the quoting nightmare.
  19084. # Putting comments in sed scripts is not portable.
  19085. #
  19086. # `end' is used to avoid that the second main sed command (meant for
  19087. # 0-ary CPP macros) applies to n-ary macro definitions.
  19088. # See the Autoconf documentation for `clear'.
  19089. cat >confdef2sed.sed <<\_ACEOF
  19090. s/[\\&,]/\\&/g
  19091. s,[\\$`],\\&,g
  19092. t clear
  19093. : clear
  19094. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  19095. t end
  19096. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  19097. : end
  19098. _ACEOF
  19099. # If some macros were called several times there might be several times
  19100. # the same #defines, which is useless. Nevertheless, we may not want to
  19101. # sort them, since we want the *last* AC-DEFINE to be honored.
  19102. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  19103. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  19104. rm -f confdef2sed.sed
  19105. # This sed command replaces #undef with comments. This is necessary, for
  19106. # example, in the case of _POSIX_SOURCE, which is predefined and required
  19107. # on some systems where configure will not decide to define it.
  19108. cat >>conftest.undefs <<\_ACEOF
  19109. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  19110. _ACEOF
  19111. # Break up conftest.defines because some shells have a limit on the size
  19112. # of here documents, and old seds have small limits too (100 cmds).
  19113. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  19114. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  19115. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  19116. echo ' :' >>$CONFIG_STATUS
  19117. rm -f conftest.tail
  19118. while grep . conftest.defines >/dev/null
  19119. do
  19120. # Write a limited-size here document to $tmp/defines.sed.
  19121. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  19122. # Speed up: don't consider the non `#define' lines.
  19123. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  19124. # Work around the forget-to-reset-the-flag bug.
  19125. echo 't clr' >>$CONFIG_STATUS
  19126. echo ': clr' >>$CONFIG_STATUS
  19127. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  19128. echo 'CEOF
  19129. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  19130. rm -f $tmp/in
  19131. mv $tmp/out $tmp/in
  19132. ' >>$CONFIG_STATUS
  19133. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  19134. rm -f conftest.defines
  19135. mv conftest.tail conftest.defines
  19136. done
  19137. rm -f conftest.defines
  19138. echo ' fi # grep' >>$CONFIG_STATUS
  19139. echo >>$CONFIG_STATUS
  19140. # Break up conftest.undefs because some shells have a limit on the size
  19141. # of here documents, and old seds have small limits too (100 cmds).
  19142. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  19143. rm -f conftest.tail
  19144. while grep . conftest.undefs >/dev/null
  19145. do
  19146. # Write a limited-size here document to $tmp/undefs.sed.
  19147. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  19148. # Speed up: don't consider the non `#undef'
  19149. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  19150. # Work around the forget-to-reset-the-flag bug.
  19151. echo 't clr' >>$CONFIG_STATUS
  19152. echo ': clr' >>$CONFIG_STATUS
  19153. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  19154. echo 'CEOF
  19155. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  19156. rm -f $tmp/in
  19157. mv $tmp/out $tmp/in
  19158. ' >>$CONFIG_STATUS
  19159. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  19160. rm -f conftest.undefs
  19161. mv conftest.tail conftest.undefs
  19162. done
  19163. rm -f conftest.undefs
  19164. cat >>$CONFIG_STATUS <<\_ACEOF
  19165. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19166. # use $as_me), people would be surprised to read:
  19167. # /* config.h. Generated by config.status. */
  19168. if test x"$ac_file" = x-; then
  19169. echo "/* Generated by configure. */" >$tmp/config.h
  19170. else
  19171. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  19172. fi
  19173. cat $tmp/in >>$tmp/config.h
  19174. rm -f $tmp/in
  19175. if test x"$ac_file" != x-; then
  19176. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  19177. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  19178. echo "$as_me: $ac_file is unchanged" >&6;}
  19179. else
  19180. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  19181. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19182. X"$ac_file" : 'X\(//\)[^/]' \| \
  19183. X"$ac_file" : 'X\(//\)$' \| \
  19184. X"$ac_file" : 'X\(/\)' \| \
  19185. . : '\(.\)' 2>/dev/null ||
  19186. echo X"$ac_file" |
  19187. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19188. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19189. /^X\(\/\/\)$/{ s//\1/; q; }
  19190. /^X\(\/\).*/{ s//\1/; q; }
  19191. s/.*/./; q'`
  19192. { if $as_mkdir_p; then
  19193. mkdir -p "$ac_dir"
  19194. else
  19195. as_dir="$ac_dir"
  19196. as_dirs=
  19197. while test ! -d "$as_dir"; do
  19198. as_dirs="$as_dir $as_dirs"
  19199. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  19200. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19201. X"$as_dir" : 'X\(//\)[^/]' \| \
  19202. X"$as_dir" : 'X\(//\)$' \| \
  19203. X"$as_dir" : 'X\(/\)' \| \
  19204. . : '\(.\)' 2>/dev/null ||
  19205. echo X"$as_dir" |
  19206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19207. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19208. /^X\(\/\/\)$/{ s//\1/; q; }
  19209. /^X\(\/\).*/{ s//\1/; q; }
  19210. s/.*/./; q'`
  19211. done
  19212. test ! -n "$as_dirs" || mkdir $as_dirs
  19213. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  19214. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  19215. { (exit 1); exit 1; }; }; }
  19216. rm -f $ac_file
  19217. mv $tmp/config.h $ac_file
  19218. fi
  19219. else
  19220. cat $tmp/config.h
  19221. rm -f $tmp/config.h
  19222. fi
  19223. # Compute $ac_file's index in $config_headers.
  19224. _am_stamp_count=1
  19225. for _am_header in $config_headers :; do
  19226. case $_am_header in
  19227. $ac_file | $ac_file:* )
  19228. break ;;
  19229. * )
  19230. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19231. esac
  19232. done
  19233. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  19234. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19235. X$ac_file : 'X\(//\)[^/]' \| \
  19236. X$ac_file : 'X\(//\)$' \| \
  19237. X$ac_file : 'X\(/\)' \| \
  19238. . : '\(.\)' 2>/dev/null ||
  19239. echo X$ac_file |
  19240. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19241. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19242. /^X\(\/\/\)$/{ s//\1/; q; }
  19243. /^X\(\/\).*/{ s//\1/; q; }
  19244. s/.*/./; q'`/stamp-h$_am_stamp_count
  19245. done
  19246. _ACEOF
  19247. cat >>$CONFIG_STATUS <<\_ACEOF
  19248. #
  19249. # CONFIG_COMMANDS section.
  19250. #
  19251. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  19252. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  19253. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  19254. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  19255. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19256. X"$ac_dest" : 'X\(//\)[^/]' \| \
  19257. X"$ac_dest" : 'X\(//\)$' \| \
  19258. X"$ac_dest" : 'X\(/\)' \| \
  19259. . : '\(.\)' 2>/dev/null ||
  19260. echo X"$ac_dest" |
  19261. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19262. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19263. /^X\(\/\/\)$/{ s//\1/; q; }
  19264. /^X\(\/\).*/{ s//\1/; q; }
  19265. s/.*/./; q'`
  19266. { if $as_mkdir_p; then
  19267. mkdir -p "$ac_dir"
  19268. else
  19269. as_dir="$ac_dir"
  19270. as_dirs=
  19271. while test ! -d "$as_dir"; do
  19272. as_dirs="$as_dir $as_dirs"
  19273. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  19274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19275. X"$as_dir" : 'X\(//\)[^/]' \| \
  19276. X"$as_dir" : 'X\(//\)$' \| \
  19277. X"$as_dir" : 'X\(/\)' \| \
  19278. . : '\(.\)' 2>/dev/null ||
  19279. echo X"$as_dir" |
  19280. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19281. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19282. /^X\(\/\/\)$/{ s//\1/; q; }
  19283. /^X\(\/\).*/{ s//\1/; q; }
  19284. s/.*/./; q'`
  19285. done
  19286. test ! -n "$as_dirs" || mkdir $as_dirs
  19287. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  19288. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  19289. { (exit 1); exit 1; }; }; }
  19290. ac_builddir=.
  19291. if test "$ac_dir" != .; then
  19292. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19293. # A "../" for each directory in $ac_dir_suffix.
  19294. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  19295. else
  19296. ac_dir_suffix= ac_top_builddir=
  19297. fi
  19298. case $srcdir in
  19299. .) # No --srcdir option. We are building in place.
  19300. ac_srcdir=.
  19301. if test -z "$ac_top_builddir"; then
  19302. ac_top_srcdir=.
  19303. else
  19304. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  19305. fi ;;
  19306. [\\/]* | ?:[\\/]* ) # Absolute path.
  19307. ac_srcdir=$srcdir$ac_dir_suffix;
  19308. ac_top_srcdir=$srcdir ;;
  19309. *) # Relative path.
  19310. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  19311. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  19312. esac
  19313. # Do not use `cd foo && pwd` to compute absolute paths, because
  19314. # the directories may not exist.
  19315. case `pwd` in
  19316. .) ac_abs_builddir="$ac_dir";;
  19317. *)
  19318. case "$ac_dir" in
  19319. .) ac_abs_builddir=`pwd`;;
  19320. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  19321. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  19322. esac;;
  19323. esac
  19324. case $ac_abs_builddir in
  19325. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  19326. *)
  19327. case ${ac_top_builddir}. in
  19328. .) ac_abs_top_builddir=$ac_abs_builddir;;
  19329. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  19330. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  19331. esac;;
  19332. esac
  19333. case $ac_abs_builddir in
  19334. .) ac_abs_srcdir=$ac_srcdir;;
  19335. *)
  19336. case $ac_srcdir in
  19337. .) ac_abs_srcdir=$ac_abs_builddir;;
  19338. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  19339. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  19340. esac;;
  19341. esac
  19342. case $ac_abs_builddir in
  19343. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  19344. *)
  19345. case $ac_top_srcdir in
  19346. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  19347. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  19348. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  19349. esac;;
  19350. esac
  19351. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  19352. echo "$as_me: executing $ac_dest commands" >&6;}
  19353. case $ac_dest in
  19354. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  19355. # Strip MF so we end up with the name of the file.
  19356. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19357. # Check whether this is an Automake generated Makefile or not.
  19358. # We used to match only the files named `Makefile.in', but
  19359. # some people rename them; so instead we look at the file content.
  19360. # Grep'ing the first line is not enough: some people post-process
  19361. # each Makefile.in and add a new line on top of each file to say so.
  19362. # So let's grep whole file.
  19363. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  19364. dirpart=`(dirname "$mf") 2>/dev/null ||
  19365. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19366. X"$mf" : 'X\(//\)[^/]' \| \
  19367. X"$mf" : 'X\(//\)$' \| \
  19368. X"$mf" : 'X\(/\)' \| \
  19369. . : '\(.\)' 2>/dev/null ||
  19370. echo X"$mf" |
  19371. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19372. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19373. /^X\(\/\/\)$/{ s//\1/; q; }
  19374. /^X\(\/\).*/{ s//\1/; q; }
  19375. s/.*/./; q'`
  19376. else
  19377. continue
  19378. fi
  19379. # Extract the definition of DEPDIR, am__include, and am__quote
  19380. # from the Makefile without running `make'.
  19381. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19382. test -z "$DEPDIR" && continue
  19383. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19384. test -z "am__include" && continue
  19385. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19386. # When using ansi2knr, U may be empty or an underscore; expand it
  19387. U=`sed -n 's/^U = //p' < "$mf"`
  19388. # Find all dependency output files, they are included files with
  19389. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19390. # simplest approach to changing $(DEPDIR) to its actual value in the
  19391. # expansion.
  19392. for file in `sed -n "
  19393. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19394. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  19395. # Make sure the directory exists.
  19396. test -f "$dirpart/$file" && continue
  19397. fdir=`(dirname "$file") 2>/dev/null ||
  19398. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19399. X"$file" : 'X\(//\)[^/]' \| \
  19400. X"$file" : 'X\(//\)$' \| \
  19401. X"$file" : 'X\(/\)' \| \
  19402. . : '\(.\)' 2>/dev/null ||
  19403. echo X"$file" |
  19404. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19405. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19406. /^X\(\/\/\)$/{ s//\1/; q; }
  19407. /^X\(\/\).*/{ s//\1/; q; }
  19408. s/.*/./; q'`
  19409. { if $as_mkdir_p; then
  19410. mkdir -p $dirpart/$fdir
  19411. else
  19412. as_dir=$dirpart/$fdir
  19413. as_dirs=
  19414. while test ! -d "$as_dir"; do
  19415. as_dirs="$as_dir $as_dirs"
  19416. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  19417. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19418. X"$as_dir" : 'X\(//\)[^/]' \| \
  19419. X"$as_dir" : 'X\(//\)$' \| \
  19420. X"$as_dir" : 'X\(/\)' \| \
  19421. . : '\(.\)' 2>/dev/null ||
  19422. echo X"$as_dir" |
  19423. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19424. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19425. /^X\(\/\/\)$/{ s//\1/; q; }
  19426. /^X\(\/\).*/{ s//\1/; q; }
  19427. s/.*/./; q'`
  19428. done
  19429. test ! -n "$as_dirs" || mkdir $as_dirs
  19430. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  19431. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  19432. { (exit 1); exit 1; }; }; }
  19433. # echo "creating $dirpart/$file"
  19434. echo '# dummy' > "$dirpart/$file"
  19435. done
  19436. done
  19437. ;;
  19438. libtool )
  19439. # See if we are running on zsh, and set the options which allow our
  19440. # commands through without removal of \ escapes.
  19441. if test -n "${ZSH_VERSION+set}" ; then
  19442. setopt NO_GLOB_SUBST
  19443. fi
  19444. cfgfile="${ofile}T"
  19445. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19446. $RM "$cfgfile"
  19447. cat <<_LT_EOF >> "$cfgfile"
  19448. #! $SHELL
  19449. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19450. # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
  19451. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19452. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19453. #
  19454. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19455. # 2006, 2007 Free Software Foundation, Inc.
  19456. #
  19457. # This file is part of GNU Libtool:
  19458. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  19459. #
  19460. # This program is free software; you can redistribute it and/or modify
  19461. # it under the terms of the GNU General Public License as published by
  19462. # the Free Software Foundation; either version 2 of the License, or
  19463. # (at your option) any later version.
  19464. #
  19465. # This program is distributed in the hope that it will be useful, but
  19466. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19467. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19468. # General Public License for more details.
  19469. #
  19470. # You should have received a copy of the GNU General Public License
  19471. # along with this program; if not, a copy can be downloaded from
  19472. # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
  19473. # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  19474. # MA 02110-1301, USA.
  19475. #
  19476. # As a special exception to the GNU General Public License, if you
  19477. # distribute this file as part of a program that contains a
  19478. # configuration script generated by Autoconf, you may include it under
  19479. # the same distribution terms that you use for the rest of that program.
  19480. # The names of the tagged configurations supported by this script.
  19481. available_tags=""
  19482. # ### BEGIN LIBTOOL CONFIG
  19483. # Whether or not to build shared libraries.
  19484. build_libtool_libs=$enable_shared
  19485. # Which release of libtool.m4 was used?
  19486. macro_version=$macro_version
  19487. macro_revision=$macro_revision
  19488. # Whether or not to build static libraries.
  19489. build_old_libs=$enable_static
  19490. # What type of objects to build.
  19491. pic_mode=$pic_mode
  19492. # Whether or not to optimize for fast installation.
  19493. fast_install=$enable_fast_install
  19494. # The host system.
  19495. host_alias=$host_alias
  19496. host=$host
  19497. host_os=$host_os
  19498. # The build system.
  19499. build_alias=$build_alias
  19500. build=$build
  19501. build_os=$build_os
  19502. # A sed program that does not truncate output.
  19503. SED=$lt_SED
  19504. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19505. Xsed="\$SED -e 1s/^X//"
  19506. # A grep program that handles long lines.
  19507. GREP=$lt_GREP
  19508. # An ERE matcher.
  19509. EGREP=$lt_EGREP
  19510. # A literal string matcher.
  19511. FGREP=$lt_FGREP
  19512. # A BSD- or MS-compatible name lister.
  19513. NM=$lt_NM
  19514. # Whether we need soft or hard links.
  19515. LN_S=$lt_LN_S
  19516. # What is the maximum length of a command?
  19517. max_cmd_len=$max_cmd_len
  19518. # Object file suffix (normally "o").
  19519. objext=$ac_objext
  19520. # Executable file suffix (normally "").
  19521. exeext=$exeext
  19522. # whether the shell understands "unset".
  19523. lt_unset=$lt_unset
  19524. # turn spaces into newlines.
  19525. SP2NL=$lt_lt_SP2NL
  19526. # turn newlines into spaces.
  19527. NL2SP=$lt_lt_NL2SP
  19528. # How to create reloadable object files.
  19529. reload_flag=$lt_reload_flag
  19530. reload_cmds=$lt_reload_cmds
  19531. # Method to check whether dependent libraries are shared objects.
  19532. deplibs_check_method=$lt_deplibs_check_method
  19533. # Command to use when deplibs_check_method == "file_magic".
  19534. file_magic_cmd=$lt_file_magic_cmd
  19535. # The archiver.
  19536. AR=$lt_AR
  19537. AR_FLAGS=$lt_AR_FLAGS
  19538. # A symbol stripping program.
  19539. STRIP=$lt_STRIP
  19540. # Commands used to install an old-style archive.
  19541. RANLIB=$lt_RANLIB
  19542. old_postinstall_cmds=$lt_old_postinstall_cmds
  19543. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19544. # A C compiler.
  19545. LTCC=$lt_CC
  19546. # LTCC compiler flags.
  19547. LTCFLAGS=$lt_CFLAGS
  19548. # Take the output of nm and produce a listing of raw symbols and C names.
  19549. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19550. # Transform the output of nm in a proper C declaration.
  19551. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19552. # Transform the output of nm in a C name address pair.
  19553. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19554. # The name of the directory that contains temporary libtool files.
  19555. objdir=$objdir
  19556. # Shell to use when invoking shell scripts.
  19557. SHELL=$lt_SHELL
  19558. # An echo program that does not interpret backslashes.
  19559. ECHO=$lt_ECHO
  19560. # Used to examine libraries when file_magic_cmd begins with "file".
  19561. MAGIC_CMD=$MAGIC_CMD
  19562. # Must we lock files when doing compilation?
  19563. need_locks=$lt_need_locks
  19564. # Old archive suffix (normally "a").
  19565. libext=$libext
  19566. # Shared library suffix (normally ".so").
  19567. shrext_cmds=$lt_shrext_cmds
  19568. # The commands to extract the exported symbol list from a shared archive.
  19569. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19570. # Variables whose values should be saved in libtool wrapper scripts and
  19571. # restored at link time.
  19572. variables_saved_for_relink=$lt_variables_saved_for_relink
  19573. # Do we need the "lib" prefix for modules?
  19574. need_lib_prefix=$need_lib_prefix
  19575. # Do we need a version for libraries?
  19576. need_version=$need_version
  19577. # Library versioning type.
  19578. version_type=$version_type
  19579. # Shared library runtime path variable.
  19580. runpath_var=$runpath_var
  19581. # Shared library path variable.
  19582. shlibpath_var=$shlibpath_var
  19583. # Is shlibpath searched before the hard-coded library search path?
  19584. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19585. # Format of library name prefix.
  19586. libname_spec=$lt_libname_spec
  19587. # List of archive names. First name is the real one, the rest are links.
  19588. # The last name is the one that the linker finds with -lNAME
  19589. library_names_spec=$lt_library_names_spec
  19590. # The coded name of the library, if different from the real name.
  19591. soname_spec=$lt_soname_spec
  19592. # Command to use after installation of a shared archive.
  19593. postinstall_cmds=$lt_postinstall_cmds
  19594. # Command to use after uninstallation of a shared archive.
  19595. postuninstall_cmds=$lt_postuninstall_cmds
  19596. # Commands used to finish a libtool library installation in a directory.
  19597. finish_cmds=$lt_finish_cmds
  19598. # As "finish_cmds", except a single script fragment to be evaled but
  19599. # not shown.
  19600. finish_eval=$lt_finish_eval
  19601. # Whether we should hardcode library paths into libraries.
  19602. hardcode_into_libs=$hardcode_into_libs
  19603. # Compile-time system search path for libraries.
  19604. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19605. # Run-time system search path for libraries.
  19606. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19607. # Whether dlopen is supported.
  19608. dlopen_support=$enable_dlopen
  19609. # Whether dlopen of programs is supported.
  19610. dlopen_self=$enable_dlopen_self
  19611. # Whether dlopen of statically linked programs is supported.
  19612. dlopen_self_static=$enable_dlopen_self_static
  19613. # Commands to strip libraries.
  19614. old_striplib=$lt_old_striplib
  19615. striplib=$lt_striplib
  19616. # The linker used to build libraries.
  19617. LD=$lt_LD
  19618. # Commands used to build an old-style archive.
  19619. old_archive_cmds=$lt_old_archive_cmds
  19620. # A language specific compiler.
  19621. CC=$lt_compiler
  19622. # Is the compiler the GNU compiler?
  19623. with_gcc=$GCC
  19624. # Compiler flag to turn off builtin functions.
  19625. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19626. # How to pass a linker flag through the compiler.
  19627. wl=$lt_lt_prog_compiler_wl
  19628. # Additional compiler flags for building library objects.
  19629. pic_flag=$lt_lt_prog_compiler_pic
  19630. # Compiler flag to prevent dynamic linking.
  19631. link_static_flag=$lt_lt_prog_compiler_static
  19632. # Does compiler simultaneously support -c and -o options?
  19633. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19634. # Whether or not to add -lc for building shared libraries.
  19635. build_libtool_need_lc=$archive_cmds_need_lc
  19636. # Whether or not to disallow shared libs when runtime libs are static.
  19637. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19638. # Compiler flag to allow reflexive dlopens.
  19639. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19640. # Compiler flag to generate shared objects directly from archives.
  19641. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19642. # Whether the compiler copes with passing no objects directly.
  19643. compiler_needs_object=$lt_compiler_needs_object
  19644. # Create an old-style archive from a shared archive.
  19645. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19646. # Create a temporary old-style archive to link instead of a shared archive.
  19647. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19648. # Commands used to build a shared archive.
  19649. archive_cmds=$lt_archive_cmds
  19650. archive_expsym_cmds=$lt_archive_expsym_cmds
  19651. # Commands used to build a loadable module if different from building
  19652. # a shared archive.
  19653. module_cmds=$lt_module_cmds
  19654. module_expsym_cmds=$lt_module_expsym_cmds
  19655. # Whether we are building with GNU ld or not.
  19656. with_gnu_ld=$lt_with_gnu_ld
  19657. # Flag that allows shared libraries with undefined symbols to be built.
  19658. allow_undefined_flag=$lt_allow_undefined_flag
  19659. # Flag that enforces no undefined symbols.
  19660. no_undefined_flag=$lt_no_undefined_flag
  19661. # Flag to hardcode \$libdir into a binary during linking.
  19662. # This must work even if \$libdir does not exist
  19663. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19664. # If ld is used when linking, flag to hardcode \$libdir into a binary
  19665. # during linking. This must work even if \$libdir does not exist.
  19666. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  19667. # Whether we need a single "-rpath" flag with a separated argument.
  19668. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19669. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19670. # DIR into the resulting binary.
  19671. hardcode_direct=$hardcode_direct
  19672. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19673. # DIR into the resulting binary and the resulting library dependency is
  19674. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19675. # library is relocated.
  19676. hardcode_direct_absolute=$hardcode_direct_absolute
  19677. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19678. # into the resulting binary.
  19679. hardcode_minus_L=$hardcode_minus_L
  19680. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19681. # into the resulting binary.
  19682. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19683. # Set to "yes" if building a shared library automatically hardcodes DIR
  19684. # into the library and all subsequent libraries and executables linked
  19685. # against it.
  19686. hardcode_automatic=$hardcode_automatic
  19687. # Set to yes if linker adds runtime paths of dependent libraries
  19688. # to runtime path list.
  19689. inherit_rpath=$inherit_rpath
  19690. # Whether libtool must link a program against all its dependency libraries.
  19691. link_all_deplibs=$link_all_deplibs
  19692. # Fix the shell variable \$srcfile for the compiler.
  19693. fix_srcfile_path=$lt_fix_srcfile_path
  19694. # Set to "yes" if exported symbols are required.
  19695. always_export_symbols=$always_export_symbols
  19696. # The commands to list exported symbols.
  19697. export_symbols_cmds=$lt_export_symbols_cmds
  19698. # Symbols that should not be listed in the preloaded symbols.
  19699. exclude_expsyms=$lt_exclude_expsyms
  19700. # Symbols that must always be exported.
  19701. include_expsyms=$lt_include_expsyms
  19702. # Commands necessary for linking programs (against libraries) with templates.
  19703. prelink_cmds=$lt_prelink_cmds
  19704. # Specify filename containing input files.
  19705. file_list_spec=$lt_file_list_spec
  19706. # How to hardcode a shared library path into an executable.
  19707. hardcode_action=$hardcode_action
  19708. # ### END LIBTOOL CONFIG
  19709. _LT_EOF
  19710. case $host_os in
  19711. aix3*)
  19712. cat <<\_LT_EOF >> "$cfgfile"
  19713. # AIX sometimes has problems with the GCC collect2 program. For some
  19714. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19715. # vanish in a puff of smoke.
  19716. if test "X${COLLECT_NAMES+set}" != Xset; then
  19717. COLLECT_NAMES=
  19718. export COLLECT_NAMES
  19719. fi
  19720. _LT_EOF
  19721. ;;
  19722. esac
  19723. ltmain="$ac_aux_dir/ltmain.sh"
  19724. # We use sed instead of cat because bash on DJGPP gets confused if
  19725. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19726. # text mode, it properly converts lines to CR/LF. This bash problem
  19727. # is reportedly fixed, but why not run on old versions too?
  19728. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  19729. || (rm -f "$cfgfile"; exit 1)
  19730. case $xsi_shell in
  19731. yes)
  19732. cat << \_LT_EOF >> "$cfgfile"
  19733. # func_dirname file append nondir_replacement
  19734. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19735. # otherwise set result to NONDIR_REPLACEMENT.
  19736. func_dirname ()
  19737. {
  19738. case ${1} in
  19739. */*) func_dirname_result="${1%/*}${2}" ;;
  19740. * ) func_dirname_result="${3}" ;;
  19741. esac
  19742. }
  19743. # func_basename file
  19744. func_basename ()
  19745. {
  19746. func_basename_result="${1##*/}"
  19747. }
  19748. # func_stripname prefix suffix name
  19749. # strip PREFIX and SUFFIX off of NAME.
  19750. # PREFIX and SUFFIX must not contain globbing or regex special
  19751. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19752. # dot (in which case that matches only a dot).
  19753. func_stripname ()
  19754. {
  19755. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  19756. # positional parameters, so assign one to ordinary parameter first.
  19757. func_stripname_result=${3}
  19758. func_stripname_result=${func_stripname_result#"${1}"}
  19759. func_stripname_result=${func_stripname_result%"${2}"}
  19760. }
  19761. # func_opt_split
  19762. func_opt_split ()
  19763. {
  19764. func_opt_split_opt=${1%%=*}
  19765. func_opt_split_arg=${1#*=}
  19766. }
  19767. # func_lo2o object
  19768. func_lo2o ()
  19769. {
  19770. case ${1} in
  19771. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  19772. *) func_lo2o_result=${1} ;;
  19773. esac
  19774. }
  19775. _LT_EOF
  19776. ;;
  19777. *) # Bourne compatible functions.
  19778. cat << \_LT_EOF >> "$cfgfile"
  19779. # func_dirname file append nondir_replacement
  19780. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19781. # otherwise set result to NONDIR_REPLACEMENT.
  19782. func_dirname ()
  19783. {
  19784. # Extract subdirectory from the argument.
  19785. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  19786. if test "X$func_dirname_result" = "X${1}"; then
  19787. func_dirname_result="${3}"
  19788. else
  19789. func_dirname_result="$func_dirname_result${2}"
  19790. fi
  19791. }
  19792. # func_basename file
  19793. func_basename ()
  19794. {
  19795. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  19796. }
  19797. # func_stripname prefix suffix name
  19798. # strip PREFIX and SUFFIX off of NAME.
  19799. # PREFIX and SUFFIX must not contain globbing or regex special
  19800. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19801. # dot (in which case that matches only a dot).
  19802. # func_strip_suffix prefix name
  19803. func_stripname ()
  19804. {
  19805. case ${2} in
  19806. .*) func_stripname_result=`$ECHO "X${3}" \
  19807. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  19808. *) func_stripname_result=`$ECHO "X${3}" \
  19809. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  19810. esac
  19811. }
  19812. # sed scripts:
  19813. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  19814. my_sed_long_arg='1s/^-[^=]*=//'
  19815. # func_opt_split
  19816. func_opt_split ()
  19817. {
  19818. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  19819. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  19820. }
  19821. # func_lo2o object
  19822. func_lo2o ()
  19823. {
  19824. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  19825. }
  19826. _LT_EOF
  19827. esac
  19828. case $lt_shell_append in
  19829. yes)
  19830. cat << \_LT_EOF >> "$cfgfile"
  19831. # func_append var value
  19832. # Append VALUE to the end of shell variable VAR.
  19833. func_append ()
  19834. {
  19835. eval "$1+=\$2"
  19836. }
  19837. _LT_EOF
  19838. ;;
  19839. *)
  19840. cat << \_LT_EOF >> "$cfgfile"
  19841. # func_append var value
  19842. # Append VALUE to the end of shell variable VAR.
  19843. func_append ()
  19844. {
  19845. eval "$1=\$$1\$2"
  19846. }
  19847. _LT_EOF
  19848. ;;
  19849. esac
  19850. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  19851. || (rm -f "$cfgfile"; exit 1)
  19852. mv -f "$cfgfile" "$ofile" ||
  19853. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19854. chmod +x "$ofile"
  19855. ;;
  19856. default-1 )
  19857. for ac_file in $CONFIG_FILES; do
  19858. # Support "outfile[:infile[:infile...]]"
  19859. case "$ac_file" in
  19860. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  19861. esac
  19862. # PO directories have a Makefile.in generated from Makefile.in.in.
  19863. case "$ac_file" in */Makefile.in)
  19864. # Adjust a relative srcdir.
  19865. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  19866. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  19867. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  19868. # In autoconf-2.13 it is called $ac_given_srcdir.
  19869. # In autoconf-2.50 it is called $srcdir.
  19870. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  19871. case "$ac_given_srcdir" in
  19872. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  19873. /*) top_srcdir="$ac_given_srcdir" ;;
  19874. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  19875. esac
  19876. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  19877. rm -f "$ac_dir/POTFILES"
  19878. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  19879. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  19880. POMAKEFILEDEPS="POTFILES.in"
  19881. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  19882. # on $ac_dir but don't depend on user-specified configuration
  19883. # parameters.
  19884. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  19885. # The LINGUAS file contains the set of available languages.
  19886. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  19887. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  19888. fi
  19889. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  19890. # Hide the ALL_LINGUAS assigment from automake.
  19891. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  19892. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  19893. else
  19894. # The set of available languages was given in configure.in.
  19895. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  19896. fi
  19897. case "$ac_given_srcdir" in
  19898. .) srcdirpre= ;;
  19899. *) srcdirpre='$(srcdir)/' ;;
  19900. esac
  19901. POFILES=
  19902. GMOFILES=
  19903. UPDATEPOFILES=
  19904. DUMMYPOFILES=
  19905. for lang in $ALL_LINGUAS; do
  19906. POFILES="$POFILES $srcdirpre$lang.po"
  19907. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  19908. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  19909. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  19910. done
  19911. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  19912. # environment variable.
  19913. INST_LINGUAS=
  19914. if test -n "$ALL_LINGUAS"; then
  19915. for presentlang in $ALL_LINGUAS; do
  19916. useit=no
  19917. if test "%UNSET%" != "$LINGUAS"; then
  19918. desiredlanguages="$LINGUAS"
  19919. else
  19920. desiredlanguages="$ALL_LINGUAS"
  19921. fi
  19922. for desiredlang in $desiredlanguages; do
  19923. # Use the presentlang catalog if desiredlang is
  19924. # a. equal to presentlang, or
  19925. # b. a variant of presentlang (because in this case,
  19926. # presentlang can be used as a fallback for messages
  19927. # which are not translated in the desiredlang catalog).
  19928. case "$desiredlang" in
  19929. "$presentlang"*) useit=yes;;
  19930. esac
  19931. done
  19932. if test $useit = yes; then
  19933. INST_LINGUAS="$INST_LINGUAS $presentlang"
  19934. fi
  19935. done
  19936. fi
  19937. CATALOGS=
  19938. if test -n "$INST_LINGUAS"; then
  19939. for lang in $INST_LINGUAS; do
  19940. CATALOGS="$CATALOGS $lang.gmo"
  19941. done
  19942. fi
  19943. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  19944. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  19945. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  19946. if test -f "$f"; then
  19947. case "$f" in
  19948. *.orig | *.bak | *~) ;;
  19949. *) cat "$f" >> "$ac_dir/Makefile" ;;
  19950. esac
  19951. fi
  19952. done
  19953. fi
  19954. ;;
  19955. esac
  19956. done ;;
  19957. bfd_stdint.h )
  19958. if test "$GCC" = yes; then
  19959. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  19960. else
  19961. echo "/* generated for $CC */" > tmp-stdint.h
  19962. fi
  19963. sed 's/^ *//' >> tmp-stdint.h <<EOF
  19964. #ifndef GCC_GENERATED_STDINT_H
  19965. #define GCC_GENERATED_STDINT_H 1
  19966. #include <sys/types.h>
  19967. EOF
  19968. if test "$acx_cv_header_stdint" != stdint.h; then
  19969. echo "#include <stddef.h>" >> tmp-stdint.h
  19970. fi
  19971. if test "$acx_cv_header_stdint" != stddef.h; then
  19972. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  19973. fi
  19974. sed 's/^ *//' >> tmp-stdint.h <<EOF
  19975. /* glibc uses these symbols as guards to prevent redefinitions. */
  19976. #ifdef __int8_t_defined
  19977. #define _INT8_T
  19978. #define _INT16_T
  19979. #define _INT32_T
  19980. #endif
  19981. #ifdef __uint32_t_defined
  19982. #define _UINT32_T
  19983. #endif
  19984. EOF
  19985. # ----------------- done header, emit basic int types -------------
  19986. if test "$acx_cv_header_stdint" = stddef.h; then
  19987. sed 's/^ *//' >> tmp-stdint.h <<EOF
  19988. #ifndef _UINT8_T
  19989. #define _UINT8_T
  19990. #ifndef __uint8_t_defined
  19991. #define __uint8_t_defined
  19992. typedef unsigned $acx_cv_type_int8_t uint8_t;
  19993. #endif
  19994. #endif
  19995. #ifndef _UINT16_T
  19996. #define _UINT16_T
  19997. #ifndef __uint16_t_defined
  19998. #define __uint16_t_defined
  19999. typedef unsigned $acx_cv_type_int16_t uint16_t;
  20000. #endif
  20001. #endif
  20002. #ifndef _UINT32_T
  20003. #define _UINT32_T
  20004. #ifndef __uint32_t_defined
  20005. #define __uint32_t_defined
  20006. typedef unsigned $acx_cv_type_int32_t uint32_t;
  20007. #endif
  20008. #endif
  20009. #ifndef _INT8_T
  20010. #define _INT8_T
  20011. #ifndef __int8_t_defined
  20012. #define __int8_t_defined
  20013. typedef $acx_cv_type_int8_t int8_t;
  20014. #endif
  20015. #endif
  20016. #ifndef _INT16_T
  20017. #define _INT16_T
  20018. #ifndef __int16_t_defined
  20019. #define __int16_t_defined
  20020. typedef $acx_cv_type_int16_t int16_t;
  20021. #endif
  20022. #endif
  20023. #ifndef _INT32_T
  20024. #define _INT32_T
  20025. #ifndef __int32_t_defined
  20026. #define __int32_t_defined
  20027. typedef $acx_cv_type_int32_t int32_t;
  20028. #endif
  20029. #endif
  20030. EOF
  20031. elif test "$ac_cv_type_u_int32_t" = yes; then
  20032. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20033. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  20034. #ifndef _INT8_T
  20035. #define _INT8_T
  20036. #endif
  20037. #ifndef _INT16_T
  20038. #define _INT16_T
  20039. #endif
  20040. #ifndef _INT32_T
  20041. #define _INT32_T
  20042. #endif
  20043. #ifndef _UINT8_T
  20044. #define _UINT8_T
  20045. #ifndef __uint8_t_defined
  20046. #define __uint8_t_defined
  20047. typedef u_int8_t uint8_t;
  20048. #endif
  20049. #endif
  20050. #ifndef _UINT16_T
  20051. #define _UINT16_T
  20052. #ifndef __uint16_t_defined
  20053. #define __uint16_t_defined
  20054. typedef u_int16_t uint16_t;
  20055. #endif
  20056. #endif
  20057. #ifndef _UINT32_T
  20058. #define _UINT32_T
  20059. #ifndef __uint32_t_defined
  20060. #define __uint32_t_defined
  20061. typedef u_int32_t uint32_t;
  20062. #endif
  20063. #endif
  20064. EOF
  20065. else
  20066. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20067. /* Some systems have guard macros to prevent redefinitions, define them. */
  20068. #ifndef _INT8_T
  20069. #define _INT8_T
  20070. #endif
  20071. #ifndef _INT16_T
  20072. #define _INT16_T
  20073. #endif
  20074. #ifndef _INT32_T
  20075. #define _INT32_T
  20076. #endif
  20077. #ifndef _UINT8_T
  20078. #define _UINT8_T
  20079. #endif
  20080. #ifndef _UINT16_T
  20081. #define _UINT16_T
  20082. #endif
  20083. #ifndef _UINT32_T
  20084. #define _UINT32_T
  20085. #endif
  20086. EOF
  20087. fi
  20088. # ------------- done basic int types, emit int64_t types ------------
  20089. if test "$ac_cv_type_uint64_t" = yes; then
  20090. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20091. /* system headers have good uint64_t and int64_t */
  20092. #ifndef _INT64_T
  20093. #define _INT64_T
  20094. #endif
  20095. #ifndef _UINT64_T
  20096. #define _UINT64_T
  20097. #endif
  20098. EOF
  20099. elif test "$ac_cv_type_u_int64_t" = yes; then
  20100. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20101. /* system headers have an u_int64_t (and int64_t) */
  20102. #ifndef _INT64_T
  20103. #define _INT64_T
  20104. #endif
  20105. #ifndef _UINT64_T
  20106. #define _UINT64_T
  20107. #ifndef __uint64_t_defined
  20108. #define __uint64_t_defined
  20109. typedef u_int64_t uint64_t;
  20110. #endif
  20111. #endif
  20112. EOF
  20113. elif test -n "$acx_cv_type_int64_t"; then
  20114. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20115. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  20116. #ifndef _INT64_T
  20117. #define _INT64_T
  20118. typedef $acx_cv_type_int64_t int64_t;
  20119. #endif
  20120. #ifndef _UINT64_T
  20121. #define _UINT64_T
  20122. #ifndef __uint64_t_defined
  20123. #define __uint64_t_defined
  20124. typedef unsigned $acx_cv_type_int64_t uint64_t;
  20125. #endif
  20126. #endif
  20127. EOF
  20128. else
  20129. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20130. /* some common heuristics for int64_t, using compiler-specific tests */
  20131. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  20132. #ifndef _INT64_T
  20133. #define _INT64_T
  20134. #ifndef __int64_t_defined
  20135. typedef long long int64_t;
  20136. #endif
  20137. #endif
  20138. #ifndef _UINT64_T
  20139. #define _UINT64_T
  20140. typedef unsigned long long uint64_t;
  20141. #endif
  20142. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  20143. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  20144. does not implement __extension__. But that compiler doesn't define
  20145. __GNUC_MINOR__. */
  20146. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  20147. # define __extension__
  20148. # endif
  20149. # ifndef _INT64_T
  20150. # define _INT64_T
  20151. __extension__ typedef long long int64_t;
  20152. # endif
  20153. # ifndef _UINT64_T
  20154. # define _UINT64_T
  20155. __extension__ typedef unsigned long long uint64_t;
  20156. # endif
  20157. #elif !defined __STRICT_ANSI__
  20158. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  20159. # ifndef _INT64_T
  20160. # define _INT64_T
  20161. typedef __int64 int64_t;
  20162. # endif
  20163. # ifndef _UINT64_T
  20164. # define _UINT64_T
  20165. typedef unsigned __int64 uint64_t;
  20166. # endif
  20167. # endif /* compiler */
  20168. #endif /* ANSI version */
  20169. EOF
  20170. fi
  20171. # ------------- done int64_t types, emit intptr types ------------
  20172. if test "$ac_cv_type_uintptr_t" != yes; then
  20173. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20174. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  20175. #ifndef __uintptr_t_defined
  20176. typedef u$acx_cv_type_intptr_t uintptr_t;
  20177. #endif
  20178. #ifndef __intptr_t_defined
  20179. typedef $acx_cv_type_intptr_t intptr_t;
  20180. #endif
  20181. EOF
  20182. fi
  20183. # ------------- done intptr types, emit int_least types ------------
  20184. if test "$ac_cv_type_int_least32_t" != yes; then
  20185. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20186. /* Define int_least types */
  20187. typedef int8_t int_least8_t;
  20188. typedef int16_t int_least16_t;
  20189. typedef int32_t int_least32_t;
  20190. #ifdef _INT64_T
  20191. typedef int64_t int_least64_t;
  20192. #endif
  20193. typedef uint8_t uint_least8_t;
  20194. typedef uint16_t uint_least16_t;
  20195. typedef uint32_t uint_least32_t;
  20196. #ifdef _UINT64_T
  20197. typedef uint64_t uint_least64_t;
  20198. #endif
  20199. EOF
  20200. fi
  20201. # ------------- done intptr types, emit int_fast types ------------
  20202. if test "$ac_cv_type_int_fast32_t" != yes; then
  20203. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20204. /* Define int_fast types. short is often slow */
  20205. typedef int8_t int_fast8_t;
  20206. typedef int int_fast16_t;
  20207. typedef int32_t int_fast32_t;
  20208. #ifdef _INT64_T
  20209. typedef int64_t int_fast64_t;
  20210. #endif
  20211. typedef uint8_t uint_fast8_t;
  20212. typedef unsigned int uint_fast16_t;
  20213. typedef uint32_t uint_fast32_t;
  20214. #ifdef _UINT64_T
  20215. typedef uint64_t uint_fast64_t;
  20216. #endif
  20217. EOF
  20218. fi
  20219. if test "$ac_cv_type_uintmax_t" != yes; then
  20220. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20221. /* Define intmax based on what we found */
  20222. #ifdef _INT64_T
  20223. typedef int64_t intmax_t;
  20224. #else
  20225. typedef long intmax_t;
  20226. #endif
  20227. #ifdef _UINT64_T
  20228. typedef uint64_t uintmax_t;
  20229. #else
  20230. typedef unsigned long uintmax_t;
  20231. #endif
  20232. EOF
  20233. fi
  20234. sed 's/^ *//' >> tmp-stdint.h <<EOF
  20235. #endif /* GCC_GENERATED_STDINT_H */
  20236. EOF
  20237. if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
  20238. rm -f tmp-stdint.h
  20239. else
  20240. mv -f tmp-stdint.h bfd_stdint.h
  20241. fi
  20242. ;;
  20243. default )
  20244. case "$srcdir" in
  20245. .) srcdirpre= ;;
  20246. *) srcdirpre='$(srcdir)/' ;;
  20247. esac
  20248. POFILES=
  20249. GMOFILES=
  20250. for lang in dummy $OBSOLETE_ALL_LINGUAS; do
  20251. if test $lang != dummy; then
  20252. POFILES="$POFILES $srcdirpre$lang.po"
  20253. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20254. fi
  20255. done
  20256. sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
  20257. -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
  20258. -e "s,@POFILES@,$POFILES," \
  20259. -e "s,@GMOFILES@,$GMOFILES," \
  20260. po/Makefile.in > po/Makefile ;;
  20261. esac
  20262. done
  20263. _ACEOF
  20264. cat >>$CONFIG_STATUS <<\_ACEOF
  20265. { (exit 0); exit 0; }
  20266. _ACEOF
  20267. chmod +x $CONFIG_STATUS
  20268. ac_clean_files=$ac_clean_files_save
  20269. # configure is writing to config.log, and then calls config.status.
  20270. # config.status does its own redirection, appending to config.log.
  20271. # Unfortunately, on DOS this fails, as config.log is still kept open
  20272. # by configure, so config.status won't be able to write to it; its
  20273. # output is simply discarded. So we exec the FD to /dev/null,
  20274. # effectively closing config.log, so it can be properly (re)opened and
  20275. # appended to by config.status. When coming back to configure, we
  20276. # need to make the FD available again.
  20277. if test "$no_create" != yes; then
  20278. ac_cs_success=:
  20279. ac_config_status_args=
  20280. test "$silent" = yes &&
  20281. ac_config_status_args="$ac_config_status_args --quiet"
  20282. exec 5>/dev/null
  20283. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20284. exec 5>>config.log
  20285. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20286. # would make configure fail if this is the last instruction.
  20287. $ac_cs_success || { (exit 1); exit 1; }
  20288. fi