Guest User

Untitled

a guest
Apr 15th, 2017
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 380.96 KB | None | 0 0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
  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.  
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23.  
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30.  
  31.  
  32. # Work around bugs in pre-3.0 UWIN ksh.
  33. $as_unset ENV MAIL MAILPATH
  34. PS1='$ '
  35. PS2='> '
  36. PS4='+ '
  37.  
  38. # NLS nuisances.
  39. for as_var in \
  40. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  41. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42. LC_TELEPHONE LC_TIME
  43. do
  44. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  45. eval $as_var=C; export $as_var
  46. else
  47. $as_unset $as_var
  48. fi
  49. done
  50.  
  51. # Required to use basename.
  52. if expr a : '\(a\)' >/dev/null 2>&1; then
  53. as_expr=expr
  54. else
  55. as_expr=false
  56. fi
  57.  
  58. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  59. as_basename=basename
  60. else
  61. as_basename=false
  62. fi
  63.  
  64.  
  65. # Name of the executable.
  66. as_me=`$as_basename "$0" ||
  67. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  68. X"$0" : 'X\(//\)$' \| \
  69. X"$0" : 'X\(/\)$' \| \
  70. . : '\(.\)' 2>/dev/null ||
  71. echo X/"$0" |
  72. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  73. /^X\/\(\/\/\)$/{ s//\1/; q; }
  74. /^X\/\(\/\).*/{ s//\1/; q; }
  75. s/.*/./; q'`
  76.  
  77.  
  78. # PATH needs CR, and LINENO needs CR and PATH.
  79. # Avoid depending upon Character Ranges.
  80. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  81. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  82. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  83. as_cr_digits='0123456789'
  84. as_cr_alnum=$as_cr_Letters$as_cr_digits
  85.  
  86. # The user is always right.
  87. if test "${PATH_SEPARATOR+set}" != set; then
  88. echo "#! /bin/sh" >conf$$.sh
  89. echo "exit 0" >>conf$$.sh
  90. chmod +x conf$$.sh
  91. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  92. PATH_SEPARATOR=';'
  93. else
  94. PATH_SEPARATOR=:
  95. fi
  96. rm -f conf$$.sh
  97. fi
  98.  
  99.  
  100. as_lineno_1=$LINENO
  101. as_lineno_2=$LINENO
  102. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  103. test "x$as_lineno_1" != "x$as_lineno_2" &&
  104. test "x$as_lineno_3" = "x$as_lineno_2" || {
  105. # Find who we are. Look in the path if we contain no path at all
  106. # relative or not.
  107. case $0 in
  108. *[\\/]* ) as_myself=$0 ;;
  109. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  110. for as_dir in $PATH
  111. do
  112. IFS=$as_save_IFS
  113. test -z "$as_dir" && as_dir=.
  114. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  115. done
  116.  
  117. ;;
  118. esac
  119. # We did not find ourselves, most probably we were run as `sh COMMAND'
  120. # in which case we are not to be found in the path.
  121. if test "x$as_myself" = x; then
  122. as_myself=$0
  123. fi
  124. if test ! -f "$as_myself"; then
  125. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  126. { (exit 1); exit 1; }; }
  127. fi
  128. case $CONFIG_SHELL in
  129. '')
  130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  131. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  132. do
  133. IFS=$as_save_IFS
  134. test -z "$as_dir" && as_dir=.
  135. for as_base in sh bash ksh sh5; do
  136. case $as_dir in
  137. /*)
  138. if ("$as_dir/$as_base" -c '
  139. as_lineno_1=$LINENO
  140. as_lineno_2=$LINENO
  141. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  142. test "x$as_lineno_1" != "x$as_lineno_2" &&
  143. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  144. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  145. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  146. CONFIG_SHELL=$as_dir/$as_base
  147. export CONFIG_SHELL
  148. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  149. fi;;
  150. esac
  151. done
  152. done
  153. ;;
  154. esac
  155.  
  156. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  157. # uniformly replaced by the line number. The first 'sed' inserts a
  158. # line-number line before each line; the second 'sed' does the real
  159. # work. The second script uses 'N' to pair each line-number line
  160. # with the numbered line, and appends trailing '-' during
  161. # substitution so that $LINENO is not a special case at line end.
  162. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  163. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  164. sed '=' <$as_myself |
  165. sed '
  166. N
  167. s,$,-,
  168. : loop
  169. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  170. t loop
  171. s,-$,,
  172. s,^['$as_cr_digits']*\n,,
  173. ' >$as_me.lineno &&
  174. chmod +x $as_me.lineno ||
  175. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  176. { (exit 1); exit 1; }; }
  177.  
  178. # Don't try to exec as it changes $[0], causing all sort of problems
  179. # (the dirname of $[0] is not the place where we might find the
  180. # original and so on. Autoconf is especially sensible to this).
  181. . ./$as_me.lineno
  182. # Exit status is that of the last command.
  183. exit
  184. }
  185.  
  186.  
  187. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  188. *c*,-n*) ECHO_N= ECHO_C='
  189. ' ECHO_T=' ' ;;
  190. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  191. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  192. esac
  193.  
  194. if expr a : '\(a\)' >/dev/null 2>&1; then
  195. as_expr=expr
  196. else
  197. as_expr=false
  198. fi
  199.  
  200. rm -f conf$$ conf$$.exe conf$$.file
  201. echo >conf$$.file
  202. if ln -s conf$$.file conf$$ 2>/dev/null; then
  203. # We could just check for DJGPP; but this test a) works b) is more generic
  204. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  205. if test -f conf$$.exe; then
  206. # Don't use ln at all; we don't have any links
  207. as_ln_s='cp -p'
  208. else
  209. as_ln_s='ln -s'
  210. fi
  211. elif ln conf$$.file conf$$ 2>/dev/null; then
  212. as_ln_s=ln
  213. else
  214. as_ln_s='cp -p'
  215. fi
  216. rm -f conf$$ conf$$.exe conf$$.file
  217.  
  218. if mkdir -p . 2>/dev/null; then
  219. as_mkdir_p=:
  220. else
  221. test -d ./-p && rmdir ./-p
  222. as_mkdir_p=false
  223. fi
  224.  
  225. as_executable_p="test -f"
  226.  
  227. # Sed expression to map a string onto a valid CPP name.
  228. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  229.  
  230. # Sed expression to map a string onto a valid variable name.
  231. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  232.  
  233.  
  234. # IFS
  235. # We need space, tab and new line, in precisely that order.
  236. as_nl='
  237. '
  238. IFS=" $as_nl"
  239.  
  240. # CDPATH.
  241. $as_unset CDPATH
  242.  
  243.  
  244. # Name of the host.
  245. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  246. # so uname gets run too.
  247. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  248.  
  249. exec 6>&1
  250.  
  251. #
  252. # Initializations.
  253. #
  254. ac_default_prefix=/usr/local
  255. ac_config_libobj_dir=.
  256. cross_compiling=no
  257. subdirs=
  258. MFLAGS=
  259. MAKEFLAGS=
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261.  
  262. # Maximum number of lines to put in a shell here document.
  263. # This variable seems obsolete. It should probably be removed, and
  264. # only ac_max_sed_lines should be used.
  265. : ${ac_max_here_lines=38}
  266.  
  267. # Identity of this package.
  268. PACKAGE_NAME='GNU OpenMP Runtime Library'
  269. PACKAGE_TARNAME='libgomp'
  270. PACKAGE_VERSION='1.0'
  271. PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
  272. PACKAGE_BUGREPORT=''
  273.  
  274. # Factoring default headers for most tests.
  275. ac_includes_default="\
  276. #include <stdio.h>
  277. #if HAVE_SYS_TYPES_H
  278. # include <sys/types.h>
  279. #endif
  280. #if HAVE_SYS_STAT_H
  281. # include <sys/stat.h>
  282. #endif
  283. #if STDC_HEADERS
  284. # include <stdlib.h>
  285. # include <stddef.h>
  286. #else
  287. # if HAVE_STDLIB_H
  288. # include <stdlib.h>
  289. # endif
  290. #endif
  291. #if HAVE_STRING_H
  292. # if !STDC_HEADERS && HAVE_MEMORY_H
  293. # include <memory.h>
  294. # endif
  295. # include <string.h>
  296. #endif
  297. #if HAVE_STRINGS_H
  298. # include <strings.h>
  299. #endif
  300. #if HAVE_INTTYPES_H
  301. # include <inttypes.h>
  302. #else
  303. # if HAVE_STDINT_H
  304. # include <stdint.h>
  305. # endif
  306. #endif
  307. #if HAVE_UNISTD_H
  308. # include <unistd.h>
  309. #endif"
  310.  
  311. 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 GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
  312. ac_subst_files=''
  313.  
  314. # Initialize some variables set by options.
  315. ac_init_help=
  316. ac_init_version=false
  317. # The variables have the same names as the options, with
  318. # dashes changed to underlines.
  319. cache_file=/dev/null
  320. exec_prefix=NONE
  321. no_create=
  322. no_recursion=
  323. prefix=NONE
  324. program_prefix=NONE
  325. program_suffix=NONE
  326. program_transform_name=s,x,x,
  327. silent=
  328. site=
  329. srcdir=
  330. verbose=
  331. x_includes=NONE
  332. x_libraries=NONE
  333.  
  334. # Installation directory options.
  335. # These are left unexpanded so users can "make install exec_prefix=/foo"
  336. # and all the variables that are supposed to be based on exec_prefix
  337. # by default will actually change.
  338. # Use braces instead of parens because sh, perl, etc. also accept them.
  339. bindir='${exec_prefix}/bin'
  340. sbindir='${exec_prefix}/sbin'
  341. libexecdir='${exec_prefix}/libexec'
  342. datadir='${prefix}/share'
  343. sysconfdir='${prefix}/etc'
  344. sharedstatedir='${prefix}/com'
  345. localstatedir='${prefix}/var'
  346. libdir='${exec_prefix}/lib'
  347. includedir='${prefix}/include'
  348. oldincludedir='/usr/include'
  349. infodir='${prefix}/info'
  350. mandir='${prefix}/man'
  351.  
  352. ac_prev=
  353. for ac_option
  354. do
  355. # If the previous option needs an argument, assign it.
  356. if test -n "$ac_prev"; then
  357. eval "$ac_prev=\$ac_option"
  358. ac_prev=
  359. continue
  360. fi
  361.  
  362. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  363.  
  364. # Accept the important Cygnus configure options, so we can diagnose typos.
  365.  
  366. case $ac_option in
  367.  
  368. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  369. ac_prev=bindir ;;
  370. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  371. bindir=$ac_optarg ;;
  372.  
  373. -build | --build | --buil | --bui | --bu)
  374. ac_prev=build_alias ;;
  375. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  376. build_alias=$ac_optarg ;;
  377.  
  378. -cache-file | --cache-file | --cache-fil | --cache-fi \
  379. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  380. ac_prev=cache_file ;;
  381. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  382. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  383. cache_file=$ac_optarg ;;
  384.  
  385. --config-cache | -C)
  386. cache_file=config.cache ;;
  387.  
  388. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  389. ac_prev=datadir ;;
  390. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  391. | --da=*)
  392. datadir=$ac_optarg ;;
  393.  
  394. -disable-* | --disable-*)
  395. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  396. # Reject names that are not valid shell variable names.
  397. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  398. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  399. { (exit 1); exit 1; }; }
  400. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  401. eval "enable_$ac_feature=no" ;;
  402.  
  403. -enable-* | --enable-*)
  404. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  405. # Reject names that are not valid shell variable names.
  406. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  407. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  408. { (exit 1); exit 1; }; }
  409. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  410. case $ac_option in
  411. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  412. *) ac_optarg=yes ;;
  413. esac
  414. eval "enable_$ac_feature='$ac_optarg'" ;;
  415.  
  416. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  417. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  418. | --exec | --exe | --ex)
  419. ac_prev=exec_prefix ;;
  420. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  421. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  422. | --exec=* | --exe=* | --ex=*)
  423. exec_prefix=$ac_optarg ;;
  424.  
  425. -gas | --gas | --ga | --g)
  426. # Obsolete; use --with-gas.
  427. with_gas=yes ;;
  428.  
  429. -help | --help | --hel | --he | -h)
  430. ac_init_help=long ;;
  431. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  432. ac_init_help=recursive ;;
  433. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  434. ac_init_help=short ;;
  435.  
  436. -host | --host | --hos | --ho)
  437. ac_prev=host_alias ;;
  438. -host=* | --host=* | --hos=* | --ho=*)
  439. host_alias=$ac_optarg ;;
  440.  
  441. -includedir | --includedir | --includedi | --included | --include \
  442. | --includ | --inclu | --incl | --inc)
  443. ac_prev=includedir ;;
  444. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  445. | --includ=* | --inclu=* | --incl=* | --inc=*)
  446. includedir=$ac_optarg ;;
  447.  
  448. -infodir | --infodir | --infodi | --infod | --info | --inf)
  449. ac_prev=infodir ;;
  450. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  451. infodir=$ac_optarg ;;
  452.  
  453. -libdir | --libdir | --libdi | --libd)
  454. ac_prev=libdir ;;
  455. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  456. libdir=$ac_optarg ;;
  457.  
  458. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  459. | --libexe | --libex | --libe)
  460. ac_prev=libexecdir ;;
  461. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  462. | --libexe=* | --libex=* | --libe=*)
  463. libexecdir=$ac_optarg ;;
  464.  
  465. -localstatedir | --localstatedir | --localstatedi | --localstated \
  466. | --localstate | --localstat | --localsta | --localst \
  467. | --locals | --local | --loca | --loc | --lo)
  468. ac_prev=localstatedir ;;
  469. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  470. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  471. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  472. localstatedir=$ac_optarg ;;
  473.  
  474. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  475. ac_prev=mandir ;;
  476. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  477. mandir=$ac_optarg ;;
  478.  
  479. -nfp | --nfp | --nf)
  480. # Obsolete; use --without-fp.
  481. with_fp=no ;;
  482.  
  483. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  484. | --no-cr | --no-c | -n)
  485. no_create=yes ;;
  486.  
  487. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  488. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  489. no_recursion=yes ;;
  490.  
  491. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  492. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  493. | --oldin | --oldi | --old | --ol | --o)
  494. ac_prev=oldincludedir ;;
  495. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  496. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  497. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  498. oldincludedir=$ac_optarg ;;
  499.  
  500. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  501. ac_prev=prefix ;;
  502. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  503. prefix=$ac_optarg ;;
  504.  
  505. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  506. | --program-pre | --program-pr | --program-p)
  507. ac_prev=program_prefix ;;
  508. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  509. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  510. program_prefix=$ac_optarg ;;
  511.  
  512. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  513. | --program-suf | --program-su | --program-s)
  514. ac_prev=program_suffix ;;
  515. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  516. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  517. program_suffix=$ac_optarg ;;
  518.  
  519. -program-transform-name | --program-transform-name \
  520. | --program-transform-nam | --program-transform-na \
  521. | --program-transform-n | --program-transform- \
  522. | --program-transform | --program-transfor \
  523. | --program-transfo | --program-transf \
  524. | --program-trans | --program-tran \
  525. | --progr-tra | --program-tr | --program-t)
  526. ac_prev=program_transform_name ;;
  527. -program-transform-name=* | --program-transform-name=* \
  528. | --program-transform-nam=* | --program-transform-na=* \
  529. | --program-transform-n=* | --program-transform-=* \
  530. | --program-transform=* | --program-transfor=* \
  531. | --program-transfo=* | --program-transf=* \
  532. | --program-trans=* | --program-tran=* \
  533. | --progr-tra=* | --program-tr=* | --program-t=*)
  534. program_transform_name=$ac_optarg ;;
  535.  
  536. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  537. | -silent | --silent | --silen | --sile | --sil)
  538. silent=yes ;;
  539.  
  540. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  541. ac_prev=sbindir ;;
  542. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  543. | --sbi=* | --sb=*)
  544. sbindir=$ac_optarg ;;
  545.  
  546. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  547. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  548. | --sharedst | --shareds | --shared | --share | --shar \
  549. | --sha | --sh)
  550. ac_prev=sharedstatedir ;;
  551. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  552. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  553. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  554. | --sha=* | --sh=*)
  555. sharedstatedir=$ac_optarg ;;
  556.  
  557. -site | --site | --sit)
  558. ac_prev=site ;;
  559. -site=* | --site=* | --sit=*)
  560. site=$ac_optarg ;;
  561.  
  562. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  563. ac_prev=srcdir ;;
  564. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  565. srcdir=$ac_optarg ;;
  566.  
  567. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  568. | --syscon | --sysco | --sysc | --sys | --sy)
  569. ac_prev=sysconfdir ;;
  570. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  571. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  572. sysconfdir=$ac_optarg ;;
  573.  
  574. -target | --target | --targe | --targ | --tar | --ta | --t)
  575. ac_prev=target_alias ;;
  576. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  577. target_alias=$ac_optarg ;;
  578.  
  579. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  580. verbose=yes ;;
  581.  
  582. -version | --version | --versio | --versi | --vers | -V)
  583. ac_init_version=: ;;
  584.  
  585. -with-* | --with-*)
  586. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  587. # Reject names that are not valid shell variable names.
  588. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  589. { echo "$as_me: error: invalid package name: $ac_package" >&2
  590. { (exit 1); exit 1; }; }
  591. ac_package=`echo $ac_package| sed 's/-/_/g'`
  592. case $ac_option in
  593. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  594. *) ac_optarg=yes ;;
  595. esac
  596. eval "with_$ac_package='$ac_optarg'" ;;
  597.  
  598. -without-* | --without-*)
  599. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  600. # Reject names that are not valid shell variable names.
  601. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  602. { echo "$as_me: error: invalid package name: $ac_package" >&2
  603. { (exit 1); exit 1; }; }
  604. ac_package=`echo $ac_package | sed 's/-/_/g'`
  605. eval "with_$ac_package=no" ;;
  606.  
  607. --x)
  608. # Obsolete; use --with-x.
  609. with_x=yes ;;
  610.  
  611. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  612. | --x-incl | --x-inc | --x-in | --x-i)
  613. ac_prev=x_includes ;;
  614. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  615. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  616. x_includes=$ac_optarg ;;
  617.  
  618. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  619. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  620. ac_prev=x_libraries ;;
  621. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  622. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  623. x_libraries=$ac_optarg ;;
  624.  
  625. -*) { echo "$as_me: error: unrecognized option: $ac_option
  626. Try \`$0 --help' for more information." >&2
  627. { (exit 1); exit 1; }; }
  628. ;;
  629.  
  630. *=*)
  631. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  632. # Reject names that are not valid shell variable names.
  633. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  634. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  635. { (exit 1); exit 1; }; }
  636. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  637. eval "$ac_envvar='$ac_optarg'"
  638. export $ac_envvar ;;
  639.  
  640. *)
  641. # FIXME: should be removed in autoconf 3.0.
  642. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  643. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  644. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  645. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  646. ;;
  647.  
  648. esac
  649. done
  650.  
  651. if test -n "$ac_prev"; then
  652. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  653. { echo "$as_me: error: missing argument to $ac_option" >&2
  654. { (exit 1); exit 1; }; }
  655. fi
  656.  
  657. # Be sure to have absolute paths.
  658. for ac_var in exec_prefix prefix
  659. do
  660. eval ac_val=$`echo $ac_var`
  661. case $ac_val in
  662. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  663. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  664. { (exit 1); exit 1; }; };;
  665. esac
  666. done
  667.  
  668. # Be sure to have absolute paths.
  669. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  670. localstatedir libdir includedir oldincludedir infodir mandir
  671. do
  672. eval ac_val=$`echo $ac_var`
  673. case $ac_val in
  674. [\\/$]* | ?:[\\/]* ) ;;
  675. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  676. { (exit 1); exit 1; }; };;
  677. esac
  678. done
  679.  
  680. # There might be people who depend on the old broken behavior: `$host'
  681. # used to hold the argument of --host etc.
  682. # FIXME: To remove some day.
  683. build=$build_alias
  684. host=$host_alias
  685. target=$target_alias
  686.  
  687. # FIXME: To remove some day.
  688. if test "x$host_alias" != x; then
  689. if test "x$build_alias" = x; then
  690. cross_compiling=maybe
  691. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  692. If a cross compiler is detected then cross compile mode will be used." >&2
  693. elif test "x$build_alias" != "x$host_alias"; then
  694. cross_compiling=yes
  695. fi
  696. fi
  697.  
  698. ac_tool_prefix=
  699. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  700.  
  701. test "$silent" = yes && exec 6>/dev/null
  702.  
  703.  
  704. # Find the source files, if location was not specified.
  705. if test -z "$srcdir"; then
  706. ac_srcdir_defaulted=yes
  707. # Try the directory containing this script, then its parent.
  708. ac_confdir=`(dirname "$0") 2>/dev/null ||
  709. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  710. X"$0" : 'X\(//\)[^/]' \| \
  711. X"$0" : 'X\(//\)$' \| \
  712. X"$0" : 'X\(/\)' \| \
  713. . : '\(.\)' 2>/dev/null ||
  714. echo X"$0" |
  715. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  716. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  717. /^X\(\/\/\)$/{ s//\1/; q; }
  718. /^X\(\/\).*/{ s//\1/; q; }
  719. s/.*/./; q'`
  720. srcdir=$ac_confdir
  721. if test ! -r "$srcdir/$ac_unique_file"; then
  722. srcdir=..
  723. fi
  724. else
  725. ac_srcdir_defaulted=no
  726. fi
  727. if test ! -r "$srcdir/$ac_unique_file"; then
  728. if test "$ac_srcdir_defaulted" = yes; then
  729. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  730. { (exit 1); exit 1; }; }
  731. else
  732. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  733. { (exit 1); exit 1; }; }
  734. fi
  735. fi
  736. (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
  737. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  738. { (exit 1); exit 1; }; }
  739. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  740. ac_env_build_alias_set=${build_alias+set}
  741. ac_env_build_alias_value=$build_alias
  742. ac_cv_env_build_alias_set=${build_alias+set}
  743. ac_cv_env_build_alias_value=$build_alias
  744. ac_env_host_alias_set=${host_alias+set}
  745. ac_env_host_alias_value=$host_alias
  746. ac_cv_env_host_alias_set=${host_alias+set}
  747. ac_cv_env_host_alias_value=$host_alias
  748. ac_env_target_alias_set=${target_alias+set}
  749. ac_env_target_alias_value=$target_alias
  750. ac_cv_env_target_alias_set=${target_alias+set}
  751. ac_cv_env_target_alias_value=$target_alias
  752. ac_env_FC_set=${FC+set}
  753. ac_env_FC_value=$FC
  754. ac_cv_env_FC_set=${FC+set}
  755. ac_cv_env_FC_value=$FC
  756. ac_env_FCFLAGS_set=${FCFLAGS+set}
  757. ac_env_FCFLAGS_value=$FCFLAGS
  758. ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
  759. ac_cv_env_FCFLAGS_value=$FCFLAGS
  760. ac_env_LDFLAGS_set=${LDFLAGS+set}
  761. ac_env_LDFLAGS_value=$LDFLAGS
  762. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  763. ac_cv_env_LDFLAGS_value=$LDFLAGS
  764. ac_env_CPP_set=${CPP+set}
  765. ac_env_CPP_value=$CPP
  766. ac_cv_env_CPP_set=${CPP+set}
  767. ac_cv_env_CPP_value=$CPP
  768. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  769. ac_env_CPPFLAGS_value=$CPPFLAGS
  770. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  771. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  772.  
  773. #
  774. # Report the --help message.
  775. #
  776. if test "$ac_init_help" = "long"; then
  777. # Omit some internal or obsolete options to make the list less imposing.
  778. # This message is too long to be a string in the A/UX 3.1 sh.
  779. cat <<_ACEOF
  780. \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
  781.  
  782. Usage: $0 [OPTION]... [VAR=VALUE]...
  783.  
  784. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  785. VAR=VALUE. See below for descriptions of some of the useful variables.
  786.  
  787. Defaults for the options are specified in brackets.
  788.  
  789. Configuration:
  790. -h, --help display this help and exit
  791. --help=short display options specific to this package
  792. --help=recursive display the short help of all the included packages
  793. -V, --version display version information and exit
  794. -q, --quiet, --silent do not print \`checking...' messages
  795. --cache-file=FILE cache test results in FILE [disabled]
  796. -C, --config-cache alias for \`--cache-file=config.cache'
  797. -n, --no-create do not create output files
  798. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  799.  
  800. _ACEOF
  801.  
  802. cat <<_ACEOF
  803. Installation directories:
  804. --prefix=PREFIX install architecture-independent files in PREFIX
  805. [$ac_default_prefix]
  806. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  807. [PREFIX]
  808.  
  809. By default, \`make install' will install all the files in
  810. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  811. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  812. for instance \`--prefix=\$HOME'.
  813.  
  814. For better control, use the options below.
  815.  
  816. Fine tuning of the installation directories:
  817. --bindir=DIR user executables [EPREFIX/bin]
  818. --sbindir=DIR system admin executables [EPREFIX/sbin]
  819. --libexecdir=DIR program executables [EPREFIX/libexec]
  820. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  821. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  822. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  823. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  824. --libdir=DIR object code libraries [EPREFIX/lib]
  825. --includedir=DIR C header files [PREFIX/include]
  826. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  827. --infodir=DIR info documentation [PREFIX/info]
  828. --mandir=DIR man documentation [PREFIX/man]
  829. _ACEOF
  830.  
  831. cat <<\_ACEOF
  832.  
  833. Program names:
  834. --program-prefix=PREFIX prepend PREFIX to installed program names
  835. --program-suffix=SUFFIX append SUFFIX to installed program names
  836. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  837.  
  838. System types:
  839. --build=BUILD configure for building on BUILD [guessed]
  840. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  841. --target=TARGET configure for building compilers for TARGET [HOST]
  842. _ACEOF
  843. fi
  844.  
  845. if test -n "$ac_init_help"; then
  846. case $ac_init_help in
  847. short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
  848. esac
  849. cat <<\_ACEOF
  850.  
  851. Optional Features:
  852. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  853. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  854. --enable-version-specific-runtime-libs
  855. Specify that runtime libraries should be installed
  856. in a compiler-specific directory [default=no]
  857. --enable-linux-futex Use the Linux futex system call
  858. [default=default]
  859. --enable-generated-files-in-srcdir
  860. put copies of generated files in source dir intended
  861. for creating source tarballs for users without
  862. texinfo bison or flex. [default=no]
  863. --enable-multilib build many library versions (default)
  864. --disable-dependency-tracking speeds up one-time build
  865. --enable-dependency-tracking do not reject slow dependency extractors
  866. --enable-shared=PKGS build shared libraries default=yes
  867. --enable-static=PKGS build static libraries default=yes
  868. --enable-fast-install=PKGS optimize for fast installation default=yes
  869. --disable-libtool-lock avoid locking (might break parallel builds)
  870. --enable-maintainer-mode enable make rules and dependencies not useful
  871. (and sometimes confusing) to the casual installer
  872. --enable-tls Use thread-local storage [default=yes]
  873. --enable-symvers=STYLE enables symbol versioning of the shared library
  874. [default=yes]
  875.  
  876. Optional Packages:
  877. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  878. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  879. --with-gnu-ld assume the C compiler uses GNU ld default=no
  880. --with-pic try to use only PIC/non-PIC objects default=use both
  881.  
  882. Some influential environment variables:
  883. CC C compiler command
  884. CFLAGS C compiler flags
  885. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  886. nonstandard directory <lib dir>
  887. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  888. headers in a nonstandard directory <include dir>
  889. FC Fortran compiler command
  890. FCFLAGS Fortran compiler flags
  891. CPP C preprocessor
  892.  
  893. Use these variables to override the choices made by `configure' or to help
  894. it to find libraries and programs with nonstandard names/locations.
  895.  
  896. _ACEOF
  897. fi
  898.  
  899. if test "$ac_init_help" = "recursive"; then
  900. # If there are subdirs, report their specific --help.
  901. ac_popdir=`pwd`
  902. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  903. test -d $ac_dir || continue
  904. ac_builddir=.
  905.  
  906. if test "$ac_dir" != .; then
  907. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  908. # A "../" for each directory in $ac_dir_suffix.
  909. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  910. else
  911. ac_dir_suffix= ac_top_builddir=
  912. fi
  913.  
  914. case $srcdir in
  915. .) # No --srcdir option. We are building in place.
  916. ac_srcdir=.
  917. if test -z "$ac_top_builddir"; then
  918. ac_top_srcdir=.
  919. else
  920. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  921. fi ;;
  922. [\\/]* | ?:[\\/]* ) # Absolute path.
  923. ac_srcdir=$srcdir$ac_dir_suffix;
  924. ac_top_srcdir=$srcdir ;;
  925. *) # Relative path.
  926. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  927. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  928. esac
  929.  
  930. # Do not use `cd foo && pwd` to compute absolute paths, because
  931. # the directories may not exist.
  932. case `pwd` in
  933. .) ac_abs_builddir="$ac_dir";;
  934. *)
  935. case "$ac_dir" in
  936. .) ac_abs_builddir=`pwd`;;
  937. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  938. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  939. esac;;
  940. esac
  941. case $ac_abs_builddir in
  942. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  943. *)
  944. case ${ac_top_builddir}. in
  945. .) ac_abs_top_builddir=$ac_abs_builddir;;
  946. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  947. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  948. esac;;
  949. esac
  950. case $ac_abs_builddir in
  951. .) ac_abs_srcdir=$ac_srcdir;;
  952. *)
  953. case $ac_srcdir in
  954. .) ac_abs_srcdir=$ac_abs_builddir;;
  955. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  956. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  957. esac;;
  958. esac
  959. case $ac_abs_builddir in
  960. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  961. *)
  962. case $ac_top_srcdir in
  963. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  964. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  965. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  966. esac;;
  967. esac
  968.  
  969. cd $ac_dir
  970. # Check for guested configure; otherwise get Cygnus style configure.
  971. if test -f $ac_srcdir/configure.gnu; then
  972. echo
  973. $SHELL $ac_srcdir/configure.gnu --help=recursive
  974. elif test -f $ac_srcdir/configure; then
  975. echo
  976. $SHELL $ac_srcdir/configure --help=recursive
  977. elif test -f $ac_srcdir/configure.ac ||
  978. test -f $ac_srcdir/configure.in; then
  979. echo
  980. $ac_configure --help
  981. else
  982. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  983. fi
  984. cd $ac_popdir
  985. done
  986. fi
  987.  
  988. test -n "$ac_init_help" && exit 0
  989. if $ac_init_version; then
  990. cat <<\_ACEOF
  991. GNU OpenMP Runtime Library configure 1.0
  992. generated by GNU Autoconf 2.59
  993.  
  994. Copyright (C) 2003 Free Software Foundation, Inc.
  995. This configure script is free software; the Free Software Foundation
  996. gives unlimited permission to copy, distribute and modify it.
  997. _ACEOF
  998. exit 0
  999. fi
  1000. exec 5>config.log
  1001. cat >&5 <<_ACEOF
  1002. This file contains any messages produced by compilers while
  1003. running configure, to aid debugging if configure makes a mistake.
  1004.  
  1005. It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
  1006. generated by GNU Autoconf 2.59. Invocation command line was
  1007.  
  1008. $ $0 $@
  1009.  
  1010. _ACEOF
  1011. {
  1012. cat <<_ASUNAME
  1013. ## --------- ##
  1014. ## Platform. ##
  1015. ## --------- ##
  1016.  
  1017. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1018. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1019. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1020. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1021. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1022.  
  1023. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1024. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1025.  
  1026. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1027. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1028. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1029. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1030. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1031. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1032. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1033.  
  1034. _ASUNAME
  1035.  
  1036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1037. for as_dir in $PATH
  1038. do
  1039. IFS=$as_save_IFS
  1040. test -z "$as_dir" && as_dir=.
  1041. echo "PATH: $as_dir"
  1042. done
  1043.  
  1044. } >&5
  1045.  
  1046. cat >&5 <<_ACEOF
  1047.  
  1048.  
  1049. ## ----------- ##
  1050. ## Core tests. ##
  1051. ## ----------- ##
  1052.  
  1053. _ACEOF
  1054.  
  1055.  
  1056. # Keep a trace of the command line.
  1057. # Strip out --no-create and --no-recursion so they do not pile up.
  1058. # Strip out --silent because we don't want to record it for future runs.
  1059. # Also quote any args containing shell meta-characters.
  1060. # Make two passes to allow for proper duplicate-argument suppression.
  1061. ac_configure_args=
  1062. ac_configure_args0=
  1063. ac_configure_args1=
  1064. ac_sep=
  1065. ac_must_keep_next=false
  1066. for ac_pass in 1 2
  1067. do
  1068. for ac_arg
  1069. do
  1070. case $ac_arg in
  1071. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1072. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1073. | -silent | --silent | --silen | --sile | --sil)
  1074. continue ;;
  1075. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1076. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1077. esac
  1078. case $ac_pass in
  1079. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1080. 2)
  1081. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1082. if test $ac_must_keep_next = true; then
  1083. ac_must_keep_next=false # Got value, back to normal.
  1084. else
  1085. case $ac_arg in
  1086. *=* | --config-cache | -C | -disable-* | --disable-* \
  1087. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1088. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1089. | -with-* | --with-* | -without-* | --without-* | --x)
  1090. case "$ac_configure_args0 " in
  1091. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1092. esac
  1093. ;;
  1094. -* ) ac_must_keep_next=true ;;
  1095. esac
  1096. fi
  1097. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1098. # Get rid of the leading space.
  1099. ac_sep=" "
  1100. ;;
  1101. esac
  1102. done
  1103. done
  1104. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1105. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1106.  
  1107. # When interrupted or exit'd, cleanup temporary files, and complete
  1108. # config.log. We remove comments because anyway the quotes in there
  1109. # would cause problems or look ugly.
  1110. # WARNING: Be sure not to use single quotes in there, as some shells,
  1111. # such as our DU 5.0 friend, will then `close' the trap.
  1112. trap 'exit_status=$?
  1113. # Save into config.log some information that might help in debugging.
  1114. {
  1115. echo
  1116.  
  1117. cat <<\_ASBOX
  1118. ## ---------------- ##
  1119. ## Cache variables. ##
  1120. ## ---------------- ##
  1121. _ASBOX
  1122. echo
  1123. # The following way of writing the cache mishandles newlines in values,
  1124. {
  1125. (set) 2>&1 |
  1126. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1127. *ac_space=\ *)
  1128. sed -n \
  1129. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1130. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1131. ;;
  1132. *)
  1133. sed -n \
  1134. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1135. ;;
  1136. esac;
  1137. }
  1138. echo
  1139.  
  1140. cat <<\_ASBOX
  1141. ## ----------------- ##
  1142. ## Output variables. ##
  1143. ## ----------------- ##
  1144. _ASBOX
  1145. echo
  1146. for ac_var in $ac_subst_vars
  1147. do
  1148. eval ac_val=$`echo $ac_var`
  1149. echo "$ac_var='"'"'$ac_val'"'"'"
  1150. done | sort
  1151. echo
  1152.  
  1153. if test -n "$ac_subst_files"; then
  1154. cat <<\_ASBOX
  1155. ## ------------- ##
  1156. ## Output files. ##
  1157. ## ------------- ##
  1158. _ASBOX
  1159. echo
  1160. for ac_var in $ac_subst_files
  1161. do
  1162. eval ac_val=$`echo $ac_var`
  1163. echo "$ac_var='"'"'$ac_val'"'"'"
  1164. done | sort
  1165. echo
  1166. fi
  1167.  
  1168. if test -s confdefs.h; then
  1169. cat <<\_ASBOX
  1170. ## ----------- ##
  1171. ## confdefs.h. ##
  1172. ## ----------- ##
  1173. _ASBOX
  1174. echo
  1175. sed "/^$/d" confdefs.h | sort
  1176. echo
  1177. fi
  1178. test "$ac_signal" != 0 &&
  1179. echo "$as_me: caught signal $ac_signal"
  1180. echo "$as_me: exit $exit_status"
  1181. } >&5
  1182. rm -f core *.core &&
  1183. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1184. exit $exit_status
  1185. ' 0
  1186. for ac_signal in 1 2 13 15; do
  1187. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1188. done
  1189. ac_signal=0
  1190.  
  1191. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1192. rm -rf conftest* confdefs.h
  1193. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1194. echo >confdefs.h
  1195.  
  1196. # Predefined preprocessor variables.
  1197.  
  1198. cat >>confdefs.h <<_ACEOF
  1199. #define PACKAGE_NAME "$PACKAGE_NAME"
  1200. _ACEOF
  1201.  
  1202.  
  1203. cat >>confdefs.h <<_ACEOF
  1204. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1205. _ACEOF
  1206.  
  1207.  
  1208. cat >>confdefs.h <<_ACEOF
  1209. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1210. _ACEOF
  1211.  
  1212.  
  1213. cat >>confdefs.h <<_ACEOF
  1214. #define PACKAGE_STRING "$PACKAGE_STRING"
  1215. _ACEOF
  1216.  
  1217.  
  1218. cat >>confdefs.h <<_ACEOF
  1219. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1220. _ACEOF
  1221.  
  1222.  
  1223. # Let the site file select an alternate cache file if it wants to.
  1224. # Prefer explicitly selected file to automatically selected ones.
  1225. if test -z "$CONFIG_SITE"; then
  1226. if test "x$prefix" != xNONE; then
  1227. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1228. else
  1229. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1230. fi
  1231. fi
  1232. for ac_site_file in $CONFIG_SITE; do
  1233. if test -r "$ac_site_file"; then
  1234. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1235. echo "$as_me: loading site script $ac_site_file" >&6;}
  1236. sed 's/^/| /' "$ac_site_file" >&5
  1237. . "$ac_site_file"
  1238. fi
  1239. done
  1240.  
  1241. if test -r "$cache_file"; then
  1242. # Some versions of bash will fail to source /dev/null (special
  1243. # files actually), so we avoid doing that.
  1244. if test -f "$cache_file"; then
  1245. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1246. echo "$as_me: loading cache $cache_file" >&6;}
  1247. case $cache_file in
  1248. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1249. *) . ./$cache_file;;
  1250. esac
  1251. fi
  1252. else
  1253. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1254. echo "$as_me: creating cache $cache_file" >&6;}
  1255. >$cache_file
  1256. fi
  1257.  
  1258. # Check that the precious variables saved in the cache have kept the same
  1259. # value.
  1260. ac_cache_corrupted=false
  1261. for ac_var in `(set) 2>&1 |
  1262. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1263. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1264. eval ac_new_set=\$ac_env_${ac_var}_set
  1265. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1266. eval ac_new_val="\$ac_env_${ac_var}_value"
  1267. case $ac_old_set,$ac_new_set in
  1268. set,)
  1269. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1270. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1271. ac_cache_corrupted=: ;;
  1272. ,set)
  1273. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1274. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1275. ac_cache_corrupted=: ;;
  1276. ,);;
  1277. *)
  1278. if test "x$ac_old_val" != "x$ac_new_val"; then
  1279. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1280. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1281. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1282. echo "$as_me: former value: $ac_old_val" >&2;}
  1283. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1284. echo "$as_me: current value: $ac_new_val" >&2;}
  1285. ac_cache_corrupted=:
  1286. fi;;
  1287. esac
  1288. # Pass precious variables to config.status.
  1289. if test "$ac_new_set" = set; then
  1290. case $ac_new_val in
  1291. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1292. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1293. *) ac_arg=$ac_var=$ac_new_val ;;
  1294. esac
  1295. case " $ac_configure_args " in
  1296. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1297. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1298. esac
  1299. fi
  1300. done
  1301. if $ac_cache_corrupted; then
  1302. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1303. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1304. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1305. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1306. { (exit 1); exit 1; }; }
  1307. fi
  1308.  
  1309. ac_ext=c
  1310. ac_cpp='$CPP $CPPFLAGS'
  1311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341. ac_config_headers="$ac_config_headers config.h"
  1342.  
  1343.  
  1344. # -------
  1345. # Options
  1346. # -------
  1347.  
  1348. echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
  1349. echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
  1350. # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
  1351. if test "${enable_version_specific_runtime_libs+set}" = set; then
  1352. enableval="$enable_version_specific_runtime_libs"
  1353.  
  1354. case "$enableval" in
  1355. yes|no) ;;
  1356. *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
  1357. echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
  1358. { (exit 1); exit 1; }; } ;;
  1359. esac
  1360.  
  1361. else
  1362. enable_version_specific_runtime_libs=no
  1363. fi;
  1364.  
  1365. echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
  1366. echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
  1367.  
  1368. echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
  1369. echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
  1370. # Check whether --enable-linux-futex or --disable-linux-futex was given.
  1371. if test "${enable_linux_futex+set}" = set; then
  1372. enableval="$enable_linux_futex"
  1373.  
  1374. case "$enableval" in
  1375. yes|no|default) ;;
  1376. *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
  1377. echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
  1378. { (exit 1); exit 1; }; } ;;
  1379. esac
  1380.  
  1381. else
  1382. enable_linux_futex=default
  1383. fi;
  1384.  
  1385. echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
  1386. echo "${ECHO_T}$enable_linux_futex" >&6
  1387.  
  1388. # We would like our source tree to be readonly. However when releases or
  1389. # pre-releases are generated, the flex/bison generated files as well as the
  1390. # various formats of manuals need to be included along with the rest of the
  1391. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  1392. # just that.
  1393. echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
  1394. echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
  1395. # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
  1396. if test "${enable_generated_files_in_srcdir+set}" = set; then
  1397. enableval="$enable_generated_files_in_srcdir"
  1398.  
  1399. case "$enableval" in
  1400. yes|no) ;;
  1401. *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
  1402. echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
  1403. { (exit 1); exit 1; }; } ;;
  1404. esac
  1405.  
  1406. else
  1407. enable_generated_files_in_srcdir=no
  1408. fi;
  1409.  
  1410. echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
  1411. echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
  1412.  
  1413.  
  1414. if test "$enable_generated_files_in_srcdir" = yes; then
  1415. GENINSRC_TRUE=
  1416. GENINSRC_FALSE='#'
  1417. else
  1418. GENINSRC_TRUE='#'
  1419. GENINSRC_FALSE=
  1420. fi
  1421.  
  1422.  
  1423.  
  1424. # -------
  1425. # -------
  1426.  
  1427. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  1428. #
  1429. # You will slowly go insane if you do not grok the following fact: when
  1430. # building this library, the top-level /target/ becomes the library's /host/.
  1431. #
  1432. # configure then causes --target to default to --host, exactly like any
  1433. # other package using autoconf. Therefore, 'target' and 'host' will
  1434. # always be the same. This makes sense both for native and cross compilers
  1435. # just think about it for a little while. :-)
  1436. #
  1437. # Also, if this library is being configured as part of a cross compiler, the
  1438. # top-level configure script will pass the "real" host as $with_cross_host.
  1439. #
  1440. # Do not delete or change the following two lines. For why, see
  1441. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  1442. ac_aux_dir=
  1443. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1444. if test -f $ac_dir/install-sh; then
  1445. ac_aux_dir=$ac_dir
  1446. ac_install_sh="$ac_aux_dir/install-sh -c"
  1447. break
  1448. elif test -f $ac_dir/install.sh; then
  1449. ac_aux_dir=$ac_dir
  1450. ac_install_sh="$ac_aux_dir/install.sh -c"
  1451. break
  1452. elif test -f $ac_dir/shtool; then
  1453. ac_aux_dir=$ac_dir
  1454. ac_install_sh="$ac_aux_dir/shtool install -c"
  1455. break
  1456. fi
  1457. done
  1458. if test -z "$ac_aux_dir"; then
  1459. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1460. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1461. { (exit 1); exit 1; }; }
  1462. fi
  1463. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1464. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1465. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1466.  
  1467. # Make sure we can run config.sub.
  1468. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1469. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1470. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1471. { (exit 1); exit 1; }; }
  1472.  
  1473. echo "$as_me:$LINENO: checking build system type" >&5
  1474. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1475. if test "${ac_cv_build+set}" = set; then
  1476. echo $ECHO_N "(cached) $ECHO_C" >&6
  1477. else
  1478. ac_cv_build_alias=$build_alias
  1479. test -z "$ac_cv_build_alias" &&
  1480. ac_cv_build_alias=`$ac_config_guess`
  1481. test -z "$ac_cv_build_alias" &&
  1482. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1483. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1484. { (exit 1); exit 1; }; }
  1485. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1486. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1487. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1488. { (exit 1); exit 1; }; }
  1489.  
  1490. fi
  1491. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1492. echo "${ECHO_T}$ac_cv_build" >&6
  1493. build=$ac_cv_build
  1494. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1495. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1496. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1497.  
  1498.  
  1499. echo "$as_me:$LINENO: checking host system type" >&5
  1500. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1501. if test "${ac_cv_host+set}" = set; then
  1502. echo $ECHO_N "(cached) $ECHO_C" >&6
  1503. else
  1504. ac_cv_host_alias=$host_alias
  1505. test -z "$ac_cv_host_alias" &&
  1506. ac_cv_host_alias=$ac_cv_build_alias
  1507. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1508. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1509. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1510. { (exit 1); exit 1; }; }
  1511.  
  1512. fi
  1513. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1514. echo "${ECHO_T}$ac_cv_host" >&6
  1515. host=$ac_cv_host
  1516. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1517. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1518. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1519.  
  1520.  
  1521. echo "$as_me:$LINENO: checking target system type" >&5
  1522. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1523. if test "${ac_cv_target+set}" = set; then
  1524. echo $ECHO_N "(cached) $ECHO_C" >&6
  1525. else
  1526. ac_cv_target_alias=$target_alias
  1527. test "x$ac_cv_target_alias" = "x" &&
  1528. ac_cv_target_alias=$ac_cv_host_alias
  1529. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1530. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1531. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1532. { (exit 1); exit 1; }; }
  1533.  
  1534. fi
  1535. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1536. echo "${ECHO_T}$ac_cv_target" >&6
  1537. target=$ac_cv_target
  1538. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1539. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1540. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1541.  
  1542.  
  1543. # The aliases save the names the user supplied, while $host etc.
  1544. # will get canonicalized.
  1545. test -n "$target_alias" &&
  1546. test "$program_prefix$program_suffix$program_transform_name" = \
  1547. NONENONEs,x,x, &&
  1548. program_prefix=${target_alias}-
  1549. target_alias=${target_alias-$host_alias}
  1550.  
  1551. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  1552. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  1553. # 1.9.0: minimum required version
  1554. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  1555. # of other PACKAGE_* variables will, however, and there's nothing
  1556. # we can do about that; they come from AC_INIT).
  1557. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  1558. # file in the top srcdir, etc, etc), so stop complaining.
  1559. # no-dependencies: turns off auto dependency generation (just for now)
  1560. # -Wall: turns on all automake warnings...
  1561. # -Wno-portability: ...except this one, since GNU make is required.
  1562. # -Wno-override: ... and this one, since we do want this in testsuite.
  1563. am__api_version="1.9"
  1564. # Find a good install program. We prefer a C program (faster),
  1565. # so one script is as good as another. But avoid the broken or
  1566. # incompatible versions:
  1567. # SysV /etc/install, /usr/sbin/install
  1568. # SunOS /usr/etc/install
  1569. # IRIX /sbin/install
  1570. # AIX /bin/install
  1571. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1572. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1573. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1574. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1575. # OS/2's system install, which has a completely different semantic
  1576. # ./install, which can be erroneously created by make from ./install.sh.
  1577. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1578. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1579. if test -z "$INSTALL"; then
  1580. if test "${ac_cv_path_install+set}" = set; then
  1581. echo $ECHO_N "(cached) $ECHO_C" >&6
  1582. else
  1583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1584. for as_dir in $PATH
  1585. do
  1586. IFS=$as_save_IFS
  1587. test -z "$as_dir" && as_dir=.
  1588. # Account for people who put trailing slashes in PATH elements.
  1589. case $as_dir/ in
  1590. ./ | .// | /cC/* | \
  1591. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1592. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1593. /usr/ucb/* ) ;;
  1594. *)
  1595. # OSF1 and SCO ODT 3.0 have their own names for install.
  1596. # Don't use installbsd from OSF since it installs stuff as root
  1597. # by default.
  1598. for ac_prog in ginstall scoinst install; do
  1599. for ac_exec_ext in '' $ac_executable_extensions; do
  1600. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1601. if test $ac_prog = install &&
  1602. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1603. # AIX install. It has an incompatible calling convention.
  1604. :
  1605. elif test $ac_prog = install &&
  1606. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1607. # program-specific install script used by HP pwplus--don't use.
  1608. :
  1609. else
  1610. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1611. break 3
  1612. fi
  1613. fi
  1614. done
  1615. done
  1616. ;;
  1617. esac
  1618. done
  1619.  
  1620.  
  1621. fi
  1622. if test "${ac_cv_path_install+set}" = set; then
  1623. INSTALL=$ac_cv_path_install
  1624. else
  1625. # As a last resort, use the slow shell script. We don't cache a
  1626. # path for INSTALL within a source directory, because that will
  1627. # break other packages using the cache if that directory is
  1628. # removed, or if the path is relative.
  1629. INSTALL=$ac_install_sh
  1630. fi
  1631. fi
  1632. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1633. echo "${ECHO_T}$INSTALL" >&6
  1634.  
  1635. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1636. # It thinks the first close brace ends the variable substitution.
  1637. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1638.  
  1639. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1640.  
  1641. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1642.  
  1643. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1644. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1645. # Just in case
  1646. sleep 1
  1647. echo timestamp > conftest.file
  1648. # Do `set' in a subshell so we don't clobber the current shell's
  1649. # arguments. Must try -L first in case configure is actually a
  1650. # symlink; some systems play weird games with the mod time of symlinks
  1651. # (eg FreeBSD returns the mod time of the symlink's containing
  1652. # directory).
  1653. if (
  1654. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1655. if test "$*" = "X"; then
  1656. # -L didn't work.
  1657. set X `ls -t $srcdir/configure conftest.file`
  1658. fi
  1659. rm -f conftest.file
  1660. if test "$*" != "X $srcdir/configure conftest.file" \
  1661. && test "$*" != "X conftest.file $srcdir/configure"; then
  1662.  
  1663. # If neither matched, then we have a broken ls. This can happen
  1664. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1665. # broken ls alias from the environment. This has actually
  1666. # happened. Such a system could not be considered "sane".
  1667. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1668. alias in your environment" >&5
  1669. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1670. alias in your environment" >&2;}
  1671. { (exit 1); exit 1; }; }
  1672. fi
  1673.  
  1674. test "$2" = conftest.file
  1675. )
  1676. then
  1677. # Ok.
  1678. :
  1679. else
  1680. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1681. Check your system clock" >&5
  1682. echo "$as_me: error: newly created file is older than distributed files!
  1683. Check your system clock" >&2;}
  1684. { (exit 1); exit 1; }; }
  1685. fi
  1686. echo "$as_me:$LINENO: result: yes" >&5
  1687. echo "${ECHO_T}yes" >&6
  1688. test "$program_prefix" != NONE &&
  1689. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1690. # Use a double $ so make ignores it.
  1691. test "$program_suffix" != NONE &&
  1692. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1693. # Double any \ or $. echo might interpret backslashes.
  1694. # By default was `s,x,x', remove it if useless.
  1695. cat <<\_ACEOF >conftest.sed
  1696. s/[\\$]/&&/g;s/;s,x,x,$//
  1697. _ACEOF
  1698. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1699. rm conftest.sed
  1700.  
  1701. # expand $ac_aux_dir to an absolute path
  1702. am_aux_dir=`cd $ac_aux_dir && pwd`
  1703.  
  1704. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1705. # Use eval to expand $SHELL
  1706. if eval "$MISSING --run true"; then
  1707. am_missing_run="$MISSING --run "
  1708. else
  1709. am_missing_run=
  1710. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1711. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1712. fi
  1713.  
  1714. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1715. # We used to keeping the `.' as first argument, in order to
  1716. # allow $(mkdir_p) to be used without argument. As in
  1717. # $(mkdir_p) $(somedir)
  1718. # where $(somedir) is conditionally defined. However this is wrong
  1719. # for two reasons:
  1720. # 1. if the package is installed by a user who cannot write `.'
  1721. # make install will fail,
  1722. # 2. the above comment should most certainly read
  1723. # $(mkdir_p) $(DESTDIR)$(somedir)
  1724. # so it does not work when $(somedir) is undefined and
  1725. # $(DESTDIR) is not.
  1726. # To support the latter case, we have to write
  1727. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1728. # so the `.' trick is pointless.
  1729. mkdir_p='mkdir -p --'
  1730. else
  1731. # On NextStep and OpenStep, the `mkdir' command does not
  1732. # recognize any option. It will interpret all options as
  1733. # directories to create, and then abort because `.' already
  1734. # exists.
  1735. for d in ./-p ./--version;
  1736. do
  1737. test -d $d && rmdir $d
  1738. done
  1739. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1740. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1741. mkdir_p='$(mkinstalldirs)'
  1742. else
  1743. mkdir_p='$(install_sh) -d'
  1744. fi
  1745. fi
  1746.  
  1747. for ac_prog in gawk mawk nawk awk
  1748. do
  1749. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1750. set dummy $ac_prog; ac_word=$2
  1751. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1752. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1753. if test "${ac_cv_prog_AWK+set}" = set; then
  1754. echo $ECHO_N "(cached) $ECHO_C" >&6
  1755. else
  1756. if test -n "$AWK"; then
  1757. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1758. else
  1759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1760. for as_dir in $PATH
  1761. do
  1762. IFS=$as_save_IFS
  1763. test -z "$as_dir" && as_dir=.
  1764. for ac_exec_ext in '' $ac_executable_extensions; do
  1765. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1766. ac_cv_prog_AWK="$ac_prog"
  1767. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1768. break 2
  1769. fi
  1770. done
  1771. done
  1772.  
  1773. fi
  1774. fi
  1775. AWK=$ac_cv_prog_AWK
  1776. if test -n "$AWK"; then
  1777. echo "$as_me:$LINENO: result: $AWK" >&5
  1778. echo "${ECHO_T}$AWK" >&6
  1779. else
  1780. echo "$as_me:$LINENO: result: no" >&5
  1781. echo "${ECHO_T}no" >&6
  1782. fi
  1783.  
  1784. test -n "$AWK" && break
  1785. done
  1786.  
  1787. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1788. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1789. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1790. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. cat >conftest.make <<\_ACEOF
  1794. all:
  1795. @echo 'ac_maketemp="$(MAKE)"'
  1796. _ACEOF
  1797. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1798. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1799. if test -n "$ac_maketemp"; then
  1800. eval ac_cv_prog_make_${ac_make}_set=yes
  1801. else
  1802. eval ac_cv_prog_make_${ac_make}_set=no
  1803. fi
  1804. rm -f conftest.make
  1805. fi
  1806. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1807. echo "$as_me:$LINENO: result: yes" >&5
  1808. echo "${ECHO_T}yes" >&6
  1809. SET_MAKE=
  1810. else
  1811. echo "$as_me:$LINENO: result: no" >&5
  1812. echo "${ECHO_T}no" >&6
  1813. SET_MAKE="MAKE=${MAKE-make}"
  1814. fi
  1815.  
  1816. rm -rf .tst 2>/dev/null
  1817. mkdir .tst 2>/dev/null
  1818. if test -d .tst; then
  1819. am__leading_dot=.
  1820. else
  1821. am__leading_dot=_
  1822. fi
  1823. rmdir .tst 2>/dev/null
  1824.  
  1825. # test to see if srcdir already configured
  1826. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1827. test -f $srcdir/config.status; then
  1828. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1829. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1830. { (exit 1); exit 1; }; }
  1831. fi
  1832.  
  1833. # test whether we have cygpath
  1834. if test -z "$CYGPATH_W"; then
  1835. if (cygpath --version) >/dev/null 2>/dev/null; then
  1836. CYGPATH_W='cygpath -w'
  1837. else
  1838. CYGPATH_W=echo
  1839. fi
  1840. fi
  1841.  
  1842.  
  1843. # Define the identity of the package.
  1844. PACKAGE='libgomp'
  1845. VERSION='1.0'
  1846.  
  1847.  
  1848. cat >>confdefs.h <<_ACEOF
  1849. #define PACKAGE "$PACKAGE"
  1850. _ACEOF
  1851.  
  1852.  
  1853. cat >>confdefs.h <<_ACEOF
  1854. #define VERSION "$VERSION"
  1855. _ACEOF
  1856.  
  1857. # Some tools Automake needs.
  1858.  
  1859. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1860.  
  1861.  
  1862. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1863.  
  1864.  
  1865. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1866.  
  1867.  
  1868. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1869.  
  1870.  
  1871. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1872.  
  1873. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1874.  
  1875. # Installed binaries are usually stripped using `strip' when the user
  1876. # run `make install-strip'. However `strip' might not be the right
  1877. # tool to use in cross-compilation environments, therefore Automake
  1878. # will honor the `STRIP' environment variable to overrule this program.
  1879. if test "$cross_compiling" != no; then
  1880. if test -n "$ac_tool_prefix"; then
  1881. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1882. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1883. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1884. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1885. if test "${ac_cv_prog_STRIP+set}" = set; then
  1886. echo $ECHO_N "(cached) $ECHO_C" >&6
  1887. else
  1888. if test -n "$STRIP"; then
  1889. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1890. else
  1891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1892. for as_dir in $PATH
  1893. do
  1894. IFS=$as_save_IFS
  1895. test -z "$as_dir" && as_dir=.
  1896. for ac_exec_ext in '' $ac_executable_extensions; do
  1897. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1898. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1899. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1900. break 2
  1901. fi
  1902. done
  1903. done
  1904.  
  1905. fi
  1906. fi
  1907. STRIP=$ac_cv_prog_STRIP
  1908. if test -n "$STRIP"; then
  1909. echo "$as_me:$LINENO: result: $STRIP" >&5
  1910. echo "${ECHO_T}$STRIP" >&6
  1911. else
  1912. echo "$as_me:$LINENO: result: no" >&5
  1913. echo "${ECHO_T}no" >&6
  1914. fi
  1915.  
  1916. fi
  1917. if test -z "$ac_cv_prog_STRIP"; then
  1918. ac_ct_STRIP=$STRIP
  1919. # Extract the first word of "strip", so it can be a program name with args.
  1920. set dummy strip; ac_word=$2
  1921. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1922. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1923. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1924. echo $ECHO_N "(cached) $ECHO_C" >&6
  1925. else
  1926. if test -n "$ac_ct_STRIP"; then
  1927. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1928. else
  1929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1930. for as_dir in $PATH
  1931. do
  1932. IFS=$as_save_IFS
  1933. test -z "$as_dir" && as_dir=.
  1934. for ac_exec_ext in '' $ac_executable_extensions; do
  1935. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1936. ac_cv_prog_ac_ct_STRIP="strip"
  1937. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1938. break 2
  1939. fi
  1940. done
  1941. done
  1942.  
  1943. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1944. fi
  1945. fi
  1946. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1947. if test -n "$ac_ct_STRIP"; then
  1948. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1949. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1950. else
  1951. echo "$as_me:$LINENO: result: no" >&5
  1952. echo "${ECHO_T}no" >&6
  1953. fi
  1954.  
  1955. STRIP=$ac_ct_STRIP
  1956. else
  1957. STRIP="$ac_cv_prog_STRIP"
  1958. fi
  1959.  
  1960. fi
  1961. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1962.  
  1963. # We need awk for the "check" target. The system "awk" is bad on
  1964. # some platforms.
  1965. # Always define AMTAR for backward compatibility.
  1966.  
  1967. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1968.  
  1969. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975. # Default to --enable-multilib
  1976. # Check whether --enable-multilib or --disable-multilib was given.
  1977. if test "${enable_multilib+set}" = set; then
  1978. enableval="$enable_multilib"
  1979. case "$enableval" in
  1980. yes) multilib=yes ;;
  1981. no) multilib=no ;;
  1982. *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
  1983. echo "$as_me: error: bad value $enableval for multilib option" >&2;}
  1984. { (exit 1); exit 1; }; } ;;
  1985. esac
  1986. else
  1987. multilib=yes
  1988. fi;
  1989.  
  1990. # We may get other options which we leave undocumented:
  1991. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  1992. # See config-ml.in if you want the gory details.
  1993.  
  1994. if test "$srcdir" = "."; then
  1995. if test "$with_target_subdir" != "."; then
  1996. multi_basedir="$srcdir/$with_multisrctop../.."
  1997. else
  1998. multi_basedir="$srcdir/$with_multisrctop.."
  1999. fi
  2000. else
  2001. multi_basedir="$srcdir/.."
  2002. fi
  2003.  
  2004.  
  2005. # Even if the default multilib is not a cross compilation,
  2006. # it may be that some of the other multilibs are.
  2007. if test $cross_compiling = no && test $multilib = yes \
  2008. && test "x${with_multisubdir}" != x ; then
  2009. cross_compiling=maybe
  2010. fi
  2011.  
  2012. ac_config_commands="$ac_config_commands default-1"
  2013.  
  2014.  
  2015. # Calculate toolexeclibdir
  2016. # Also toolexecdir, though it's only used in toolexeclibdir
  2017. case ${enable_version_specific_runtime_libs} in
  2018. yes)
  2019. # Need the gcc compiler version to know where to install libraries
  2020. # and header files if --enable-version-specific-runtime-libs option
  2021. # is selected.
  2022. toolexecdir='$(libdir)/gcc/$(target_alias)'
  2023. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  2024. ;;
  2025. no)
  2026. if test -n "$with_cross_host" &&
  2027. test x"$with_cross_host" != x"no"; then
  2028. # Install a library built with a cross compiler in tooldir, not libdir.
  2029. toolexecdir='$(exec_prefix)/$(target_alias)'
  2030. toolexeclibdir='$(toolexecdir)/lib'
  2031. else
  2032. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  2033. toolexeclibdir='$(libdir)'
  2034. fi
  2035. multi_os_directory=`$CC -print-multi-os-directory`
  2036. case $multi_os_directory in
  2037. .) ;; # Avoid trailing /.
  2038. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  2039. esac
  2040. ;;
  2041. esac
  2042.  
  2043.  
  2044.  
  2045. # Check the compiler.
  2046. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2047. # We must force CC to /not/ be precious variables; otherwise
  2048. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2049. # As a side effect, we have to subst CFLAGS ourselves.
  2050.  
  2051.  
  2052.  
  2053. ac_ext=c
  2054. ac_cpp='$CPP $CPPFLAGS'
  2055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2058. if test -n "$ac_tool_prefix"; then
  2059. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2060. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2061. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2062. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2063. if test "${ac_cv_prog_CC+set}" = set; then
  2064. echo $ECHO_N "(cached) $ECHO_C" >&6
  2065. else
  2066. if test -n "$CC"; then
  2067. ac_cv_prog_CC="$CC" # Let the user override the test.
  2068. else
  2069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2070. for as_dir in $PATH
  2071. do
  2072. IFS=$as_save_IFS
  2073. test -z "$as_dir" && as_dir=.
  2074. for ac_exec_ext in '' $ac_executable_extensions; do
  2075. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2076. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2077. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2078. break 2
  2079. fi
  2080. done
  2081. done
  2082.  
  2083. fi
  2084. fi
  2085. CC=$ac_cv_prog_CC
  2086. if test -n "$CC"; then
  2087. echo "$as_me:$LINENO: result: $CC" >&5
  2088. echo "${ECHO_T}$CC" >&6
  2089. else
  2090. echo "$as_me:$LINENO: result: no" >&5
  2091. echo "${ECHO_T}no" >&6
  2092. fi
  2093.  
  2094. fi
  2095. if test -z "$ac_cv_prog_CC"; then
  2096. ac_ct_CC=$CC
  2097. # Extract the first word of "gcc", so it can be a program name with args.
  2098. set dummy gcc; ac_word=$2
  2099. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2100. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2101. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2102. echo $ECHO_N "(cached) $ECHO_C" >&6
  2103. else
  2104. if test -n "$ac_ct_CC"; then
  2105. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2106. else
  2107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2108. for as_dir in $PATH
  2109. do
  2110. IFS=$as_save_IFS
  2111. test -z "$as_dir" && as_dir=.
  2112. for ac_exec_ext in '' $ac_executable_extensions; do
  2113. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2114. ac_cv_prog_ac_ct_CC="gcc"
  2115. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2116. break 2
  2117. fi
  2118. done
  2119. done
  2120.  
  2121. fi
  2122. fi
  2123. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2124. if test -n "$ac_ct_CC"; then
  2125. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2126. echo "${ECHO_T}$ac_ct_CC" >&6
  2127. else
  2128. echo "$as_me:$LINENO: result: no" >&5
  2129. echo "${ECHO_T}no" >&6
  2130. fi
  2131.  
  2132. CC=$ac_ct_CC
  2133. else
  2134. CC="$ac_cv_prog_CC"
  2135. fi
  2136.  
  2137. if test -z "$CC"; then
  2138. if test -n "$ac_tool_prefix"; then
  2139. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2140. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2141. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2142. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2143. if test "${ac_cv_prog_CC+set}" = set; then
  2144. echo $ECHO_N "(cached) $ECHO_C" >&6
  2145. else
  2146. if test -n "$CC"; then
  2147. ac_cv_prog_CC="$CC" # Let the user override the test.
  2148. else
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. for ac_exec_ext in '' $ac_executable_extensions; do
  2155. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2156. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2157. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2158. break 2
  2159. fi
  2160. done
  2161. done
  2162.  
  2163. fi
  2164. fi
  2165. CC=$ac_cv_prog_CC
  2166. if test -n "$CC"; then
  2167. echo "$as_me:$LINENO: result: $CC" >&5
  2168. echo "${ECHO_T}$CC" >&6
  2169. else
  2170. echo "$as_me:$LINENO: result: no" >&5
  2171. echo "${ECHO_T}no" >&6
  2172. fi
  2173.  
  2174. fi
  2175. if test -z "$ac_cv_prog_CC"; then
  2176. ac_ct_CC=$CC
  2177. # Extract the first word of "cc", so it can be a program name with args.
  2178. set dummy cc; ac_word=$2
  2179. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2181. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2182. echo $ECHO_N "(cached) $ECHO_C" >&6
  2183. else
  2184. if test -n "$ac_ct_CC"; then
  2185. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2186. else
  2187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2188. for as_dir in $PATH
  2189. do
  2190. IFS=$as_save_IFS
  2191. test -z "$as_dir" && as_dir=.
  2192. for ac_exec_ext in '' $ac_executable_extensions; do
  2193. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2194. ac_cv_prog_ac_ct_CC="cc"
  2195. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2196. break 2
  2197. fi
  2198. done
  2199. done
  2200.  
  2201. fi
  2202. fi
  2203. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2204. if test -n "$ac_ct_CC"; then
  2205. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2206. echo "${ECHO_T}$ac_ct_CC" >&6
  2207. else
  2208. echo "$as_me:$LINENO: result: no" >&5
  2209. echo "${ECHO_T}no" >&6
  2210. fi
  2211.  
  2212. CC=$ac_ct_CC
  2213. else
  2214. CC="$ac_cv_prog_CC"
  2215. fi
  2216.  
  2217. fi
  2218. if test -z "$CC"; then
  2219. # Extract the first word of "cc", so it can be a program name with args.
  2220. set dummy cc; ac_word=$2
  2221. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2222. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2223. if test "${ac_cv_prog_CC+set}" = set; then
  2224. echo $ECHO_N "(cached) $ECHO_C" >&6
  2225. else
  2226. if test -n "$CC"; then
  2227. ac_cv_prog_CC="$CC" # Let the user override the test.
  2228. else
  2229. ac_prog_rejected=no
  2230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2231. for as_dir in $PATH
  2232. do
  2233. IFS=$as_save_IFS
  2234. test -z "$as_dir" && as_dir=.
  2235. for ac_exec_ext in '' $ac_executable_extensions; do
  2236. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2237. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2238. ac_prog_rejected=yes
  2239. continue
  2240. fi
  2241. ac_cv_prog_CC="cc"
  2242. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2243. break 2
  2244. fi
  2245. done
  2246. done
  2247.  
  2248. if test $ac_prog_rejected = yes; then
  2249. # We found a bogon in the path, so make sure we never use it.
  2250. set dummy $ac_cv_prog_CC
  2251. shift
  2252. if test $# != 0; then
  2253. # We chose a different compiler from the bogus one.
  2254. # However, it has the same basename, so the bogon will be chosen
  2255. # first if we set CC to just the basename; use the full file name.
  2256. shift
  2257. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2258. fi
  2259. fi
  2260. fi
  2261. fi
  2262. CC=$ac_cv_prog_CC
  2263. if test -n "$CC"; then
  2264. echo "$as_me:$LINENO: result: $CC" >&5
  2265. echo "${ECHO_T}$CC" >&6
  2266. else
  2267. echo "$as_me:$LINENO: result: no" >&5
  2268. echo "${ECHO_T}no" >&6
  2269. fi
  2270.  
  2271. fi
  2272. if test -z "$CC"; then
  2273. if test -n "$ac_tool_prefix"; then
  2274. for ac_prog in cl
  2275. do
  2276. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2277. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2278. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2279. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2280. if test "${ac_cv_prog_CC+set}" = set; then
  2281. echo $ECHO_N "(cached) $ECHO_C" >&6
  2282. else
  2283. if test -n "$CC"; then
  2284. ac_cv_prog_CC="$CC" # Let the user override the test.
  2285. else
  2286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2287. for as_dir in $PATH
  2288. do
  2289. IFS=$as_save_IFS
  2290. test -z "$as_dir" && as_dir=.
  2291. for ac_exec_ext in '' $ac_executable_extensions; do
  2292. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2293. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2294. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2295. break 2
  2296. fi
  2297. done
  2298. done
  2299.  
  2300. fi
  2301. fi
  2302. CC=$ac_cv_prog_CC
  2303. if test -n "$CC"; then
  2304. echo "$as_me:$LINENO: result: $CC" >&5
  2305. echo "${ECHO_T}$CC" >&6
  2306. else
  2307. echo "$as_me:$LINENO: result: no" >&5
  2308. echo "${ECHO_T}no" >&6
  2309. fi
  2310.  
  2311. test -n "$CC" && break
  2312. done
  2313. fi
  2314. if test -z "$CC"; then
  2315. ac_ct_CC=$CC
  2316. for ac_prog in cl
  2317. do
  2318. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2319. set dummy $ac_prog; ac_word=$2
  2320. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2322. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2323. echo $ECHO_N "(cached) $ECHO_C" >&6
  2324. else
  2325. if test -n "$ac_ct_CC"; then
  2326. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2327. else
  2328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2329. for as_dir in $PATH
  2330. do
  2331. IFS=$as_save_IFS
  2332. test -z "$as_dir" && as_dir=.
  2333. for ac_exec_ext in '' $ac_executable_extensions; do
  2334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2335. ac_cv_prog_ac_ct_CC="$ac_prog"
  2336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2337. break 2
  2338. fi
  2339. done
  2340. done
  2341.  
  2342. fi
  2343. fi
  2344. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2345. if test -n "$ac_ct_CC"; then
  2346. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2347. echo "${ECHO_T}$ac_ct_CC" >&6
  2348. else
  2349. echo "$as_me:$LINENO: result: no" >&5
  2350. echo "${ECHO_T}no" >&6
  2351. fi
  2352.  
  2353. test -n "$ac_ct_CC" && break
  2354. done
  2355.  
  2356. CC=$ac_ct_CC
  2357. fi
  2358.  
  2359. fi
  2360.  
  2361.  
  2362. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2363. See \`config.log' for more details." >&5
  2364. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2365. See \`config.log' for more details." >&2;}
  2366. { (exit 1); exit 1; }; }
  2367.  
  2368. # Provide some information about the compiler.
  2369. echo "$as_me:$LINENO:" \
  2370. "checking for C compiler version" >&5
  2371. ac_compiler=`set X $ac_compile; echo $2`
  2372. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2373. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2374. ac_status=$?
  2375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2376. (exit $ac_status); }
  2377. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2378. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2379. ac_status=$?
  2380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2381. (exit $ac_status); }
  2382. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2383. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2384. ac_status=$?
  2385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2386. (exit $ac_status); }
  2387.  
  2388. cat >conftest.$ac_ext <<_ACEOF
  2389. /* confdefs.h. */
  2390. _ACEOF
  2391. cat confdefs.h >>conftest.$ac_ext
  2392. cat >>conftest.$ac_ext <<_ACEOF
  2393. /* end confdefs.h. */
  2394.  
  2395. int
  2396. main ()
  2397. {
  2398.  
  2399. ;
  2400. return 0;
  2401. }
  2402. _ACEOF
  2403. ac_clean_files_save=$ac_clean_files
  2404. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2405. # Try to create an executable without -o first, disregard a.out.
  2406. # It will help us diagnose broken compilers, and finding out an intuition
  2407. # of exeext.
  2408. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2409. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2410. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2411. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2412. (eval $ac_link_default) 2>&5
  2413. ac_status=$?
  2414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2415. (exit $ac_status); }; then
  2416. # Find the output, starting from the most likely. This scheme is
  2417. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2418. # resort.
  2419.  
  2420. # Be careful to initialize this variable, since it used to be cached.
  2421. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2422. ac_cv_exeext=
  2423. # b.out is created by i960 compilers.
  2424. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2425. do
  2426. test -f "$ac_file" || continue
  2427. case $ac_file in
  2428. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2429. ;;
  2430. conftest.$ac_ext )
  2431. # This is the source file.
  2432. ;;
  2433. [ab].out )
  2434. # We found the default executable, but exeext='' is most
  2435. # certainly right.
  2436. break;;
  2437. *.* )
  2438. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2439. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2440. # but it would be cool to find out if it's true. Does anybody
  2441. # maintain Libtool? --akim.
  2442. export ac_cv_exeext
  2443. break;;
  2444. * )
  2445. break;;
  2446. esac
  2447. done
  2448. else
  2449. echo "$as_me: failed program was:" >&5
  2450. sed 's/^/| /' conftest.$ac_ext >&5
  2451.  
  2452. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2453. See \`config.log' for more details." >&5
  2454. echo "$as_me: error: C compiler cannot create executables
  2455. See \`config.log' for more details." >&2;}
  2456. { (exit 77); exit 77; }; }
  2457. fi
  2458.  
  2459. ac_exeext=$ac_cv_exeext
  2460. echo "$as_me:$LINENO: result: $ac_file" >&5
  2461. echo "${ECHO_T}$ac_file" >&6
  2462.  
  2463. # Check the compiler produces executables we can run. If not, either
  2464. # the compiler is broken, or we cross compile.
  2465. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2466. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2467. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2468. # If not cross compiling, check that we can run a simple program.
  2469. if test "$cross_compiling" != yes; then
  2470. if { ac_try='./$ac_file'
  2471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2472. (eval $ac_try) 2>&5
  2473. ac_status=$?
  2474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2475. (exit $ac_status); }; }; then
  2476. cross_compiling=no
  2477. else
  2478. if test "$cross_compiling" = maybe; then
  2479. cross_compiling=yes
  2480. else
  2481. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2482. If you meant to cross compile, use \`--host'.
  2483. See \`config.log' for more details." >&5
  2484. echo "$as_me: error: cannot run C compiled programs.
  2485. If you meant to cross compile, use \`--host'.
  2486. See \`config.log' for more details." >&2;}
  2487. { (exit 1); exit 1; }; }
  2488. fi
  2489. fi
  2490. fi
  2491. echo "$as_me:$LINENO: result: yes" >&5
  2492. echo "${ECHO_T}yes" >&6
  2493.  
  2494. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2495. ac_clean_files=$ac_clean_files_save
  2496. # Check the compiler produces executables we can run. If not, either
  2497. # the compiler is broken, or we cross compile.
  2498. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2499. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2500. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2501. echo "${ECHO_T}$cross_compiling" >&6
  2502.  
  2503. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2504. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2505. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2506. (eval $ac_link) 2>&5
  2507. ac_status=$?
  2508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2509. (exit $ac_status); }; then
  2510. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2511. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2512. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2513. # `rm'.
  2514. for ac_file in conftest.exe conftest conftest.*; do
  2515. test -f "$ac_file" || continue
  2516. case $ac_file in
  2517. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2518. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2519. export ac_cv_exeext
  2520. break;;
  2521. * ) break;;
  2522. esac
  2523. done
  2524. else
  2525. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2526. See \`config.log' for more details." >&5
  2527. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2528. See \`config.log' for more details." >&2;}
  2529. { (exit 1); exit 1; }; }
  2530. fi
  2531.  
  2532. rm -f conftest$ac_cv_exeext
  2533. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2534. echo "${ECHO_T}$ac_cv_exeext" >&6
  2535.  
  2536. rm -f conftest.$ac_ext
  2537. EXEEXT=$ac_cv_exeext
  2538. ac_exeext=$EXEEXT
  2539. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2540. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2541. if test "${ac_cv_objext+set}" = set; then
  2542. echo $ECHO_N "(cached) $ECHO_C" >&6
  2543. else
  2544. cat >conftest.$ac_ext <<_ACEOF
  2545. /* confdefs.h. */
  2546. _ACEOF
  2547. cat confdefs.h >>conftest.$ac_ext
  2548. cat >>conftest.$ac_ext <<_ACEOF
  2549. /* end confdefs.h. */
  2550.  
  2551. int
  2552. main ()
  2553. {
  2554.  
  2555. ;
  2556. return 0;
  2557. }
  2558. _ACEOF
  2559. rm -f conftest.o conftest.obj
  2560. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2561. (eval $ac_compile) 2>&5
  2562. ac_status=$?
  2563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564. (exit $ac_status); }; then
  2565. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2566. case $ac_file in
  2567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2568. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2569. break;;
  2570. esac
  2571. done
  2572. else
  2573. echo "$as_me: failed program was:" >&5
  2574. sed 's/^/| /' conftest.$ac_ext >&5
  2575.  
  2576. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2577. See \`config.log' for more details." >&5
  2578. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2579. See \`config.log' for more details." >&2;}
  2580. { (exit 1); exit 1; }; }
  2581. fi
  2582.  
  2583. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2584. fi
  2585. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2586. echo "${ECHO_T}$ac_cv_objext" >&6
  2587. OBJEXT=$ac_cv_objext
  2588. ac_objext=$OBJEXT
  2589. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2590. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2591. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2592. echo $ECHO_N "(cached) $ECHO_C" >&6
  2593. else
  2594. cat >conftest.$ac_ext <<_ACEOF
  2595. /* confdefs.h. */
  2596. _ACEOF
  2597. cat confdefs.h >>conftest.$ac_ext
  2598. cat >>conftest.$ac_ext <<_ACEOF
  2599. /* end confdefs.h. */
  2600.  
  2601. int
  2602. main ()
  2603. {
  2604. #ifndef __GNUC__
  2605. choke me
  2606. #endif
  2607.  
  2608. ;
  2609. return 0;
  2610. }
  2611. _ACEOF
  2612. rm -f conftest.$ac_objext
  2613. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2614. (eval $ac_compile) 2>conftest.er1
  2615. ac_status=$?
  2616. grep -v '^ *+' conftest.er1 >conftest.err
  2617. rm -f conftest.er1
  2618. cat conftest.err >&5
  2619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2620. (exit $ac_status); } &&
  2621. { ac_try='test -z "$ac_c_werror_flag"
  2622. || test ! -s conftest.err'
  2623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2624. (eval $ac_try) 2>&5
  2625. ac_status=$?
  2626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2627. (exit $ac_status); }; } &&
  2628. { ac_try='test -s conftest.$ac_objext'
  2629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2630. (eval $ac_try) 2>&5
  2631. ac_status=$?
  2632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2633. (exit $ac_status); }; }; then
  2634. ac_compiler_gnu=yes
  2635. else
  2636. echo "$as_me: failed program was:" >&5
  2637. sed 's/^/| /' conftest.$ac_ext >&5
  2638.  
  2639. ac_compiler_gnu=no
  2640. fi
  2641. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2642. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2643.  
  2644. fi
  2645. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2646. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2647. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2648. ac_test_CFLAGS=${CFLAGS+set}
  2649. ac_save_CFLAGS=$CFLAGS
  2650. CFLAGS="-g"
  2651. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2652. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2653. if test "${ac_cv_prog_cc_g+set}" = set; then
  2654. echo $ECHO_N "(cached) $ECHO_C" >&6
  2655. else
  2656. cat >conftest.$ac_ext <<_ACEOF
  2657. /* confdefs.h. */
  2658. _ACEOF
  2659. cat confdefs.h >>conftest.$ac_ext
  2660. cat >>conftest.$ac_ext <<_ACEOF
  2661. /* end confdefs.h. */
  2662.  
  2663. int
  2664. main ()
  2665. {
  2666.  
  2667. ;
  2668. return 0;
  2669. }
  2670. _ACEOF
  2671. rm -f conftest.$ac_objext
  2672. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2673. (eval $ac_compile) 2>conftest.er1
  2674. ac_status=$?
  2675. grep -v '^ *+' conftest.er1 >conftest.err
  2676. rm -f conftest.er1
  2677. cat conftest.err >&5
  2678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); } &&
  2680. { ac_try='test -z "$ac_c_werror_flag"
  2681. || test ! -s conftest.err'
  2682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2683. (eval $ac_try) 2>&5
  2684. ac_status=$?
  2685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); }; } &&
  2687. { ac_try='test -s conftest.$ac_objext'
  2688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2689. (eval $ac_try) 2>&5
  2690. ac_status=$?
  2691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2692. (exit $ac_status); }; }; then
  2693. ac_cv_prog_cc_g=yes
  2694. else
  2695. echo "$as_me: failed program was:" >&5
  2696. sed 's/^/| /' conftest.$ac_ext >&5
  2697.  
  2698. ac_cv_prog_cc_g=no
  2699. fi
  2700. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2701. fi
  2702. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2703. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2704. if test "$ac_test_CFLAGS" = set; then
  2705. CFLAGS=$ac_save_CFLAGS
  2706. elif test $ac_cv_prog_cc_g = yes; then
  2707. if test "$GCC" = yes; then
  2708. CFLAGS="-g -O2"
  2709. else
  2710. CFLAGS="-g"
  2711. fi
  2712. else
  2713. if test "$GCC" = yes; then
  2714. CFLAGS="-O2"
  2715. else
  2716. CFLAGS=
  2717. fi
  2718. fi
  2719. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2720. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2721. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2722. echo $ECHO_N "(cached) $ECHO_C" >&6
  2723. else
  2724. ac_cv_prog_cc_stdc=no
  2725. ac_save_CC=$CC
  2726. cat >conftest.$ac_ext <<_ACEOF
  2727. /* confdefs.h. */
  2728. _ACEOF
  2729. cat confdefs.h >>conftest.$ac_ext
  2730. cat >>conftest.$ac_ext <<_ACEOF
  2731. /* end confdefs.h. */
  2732. #include <stdarg.h>
  2733. #include <stdio.h>
  2734. #include <sys/types.h>
  2735. #include <sys/stat.h>
  2736. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2737. struct buf { int x; };
  2738. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2739. static char *e (p, i)
  2740. char **p;
  2741. int i;
  2742. {
  2743. return p[i];
  2744. }
  2745. static char *f (char * (*g) (char **, int), char **p, ...)
  2746. {
  2747. char *s;
  2748. va_list v;
  2749. va_start (v,p);
  2750. s = g (p, va_arg (v,int));
  2751. va_end (v);
  2752. return s;
  2753. }
  2754.  
  2755. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2756. function prototypes and stuff, but not '\xHH' hex character constants.
  2757. These don't provoke an error unfortunately, instead are silently treated
  2758. as 'x'. The following induces an error, until -std1 is added to get
  2759. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2760. array size at least. It's necessary to write '\x00'==0 to get something
  2761. that's true only with -std1. */
  2762. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2763.  
  2764. int test (int i, double x);
  2765. struct s1 {int (*f) (int a);};
  2766. struct s2 {int (*f) (double a);};
  2767. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2768. int argc;
  2769. char **argv;
  2770. int
  2771. main ()
  2772. {
  2773. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2774. ;
  2775. return 0;
  2776. }
  2777. _ACEOF
  2778. # Don't try gcc -ansi; that turns off useful extensions and
  2779. # breaks some systems' header files.
  2780. # AIX -qlanglvl=ansi
  2781. # Ultrix and OSF/1 -std1
  2782. # HP-UX 10.20 and later -Ae
  2783. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2784. # SVR4 -Xc -D__EXTENSIONS__
  2785. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2786. do
  2787. CC="$ac_save_CC $ac_arg"
  2788. rm -f conftest.$ac_objext
  2789. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2790. (eval $ac_compile) 2>conftest.er1
  2791. ac_status=$?
  2792. grep -v '^ *+' conftest.er1 >conftest.err
  2793. rm -f conftest.er1
  2794. cat conftest.err >&5
  2795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2796. (exit $ac_status); } &&
  2797. { ac_try='test -z "$ac_c_werror_flag"
  2798. || test ! -s conftest.err'
  2799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2800. (eval $ac_try) 2>&5
  2801. ac_status=$?
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); }; } &&
  2804. { ac_try='test -s conftest.$ac_objext'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; }; then
  2810. ac_cv_prog_cc_stdc=$ac_arg
  2811. break
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815.  
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext
  2818. done
  2819. rm -f conftest.$ac_ext conftest.$ac_objext
  2820. CC=$ac_save_CC
  2821.  
  2822. fi
  2823.  
  2824. case "x$ac_cv_prog_cc_stdc" in
  2825. x|xno)
  2826. echo "$as_me:$LINENO: result: none needed" >&5
  2827. echo "${ECHO_T}none needed" >&6 ;;
  2828. *)
  2829. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2830. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2831. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2832. esac
  2833.  
  2834. # Some people use a C++ compiler to compile C. Since we use `exit',
  2835. # in C++ we need to declare it. In case someone uses the same compiler
  2836. # for both compiling C and C++ we need to have the C++ compiler decide
  2837. # the declaration of exit, since it's the most demanding environment.
  2838. cat >conftest.$ac_ext <<_ACEOF
  2839. #ifndef __cplusplus
  2840. choke me
  2841. #endif
  2842. _ACEOF
  2843. rm -f conftest.$ac_objext
  2844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2845. (eval $ac_compile) 2>conftest.er1
  2846. ac_status=$?
  2847. grep -v '^ *+' conftest.er1 >conftest.err
  2848. rm -f conftest.er1
  2849. cat conftest.err >&5
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); } &&
  2852. { ac_try='test -z "$ac_c_werror_flag"
  2853. || test ! -s conftest.err'
  2854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2855. (eval $ac_try) 2>&5
  2856. ac_status=$?
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); }; } &&
  2859. { ac_try='test -s conftest.$ac_objext'
  2860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2861. (eval $ac_try) 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; }; then
  2865. for ac_declaration in \
  2866. '' \
  2867. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2868. 'extern "C" void std::exit (int); using std::exit;' \
  2869. 'extern "C" void exit (int) throw ();' \
  2870. 'extern "C" void exit (int);' \
  2871. 'void exit (int);'
  2872. do
  2873. cat >conftest.$ac_ext <<_ACEOF
  2874. /* confdefs.h. */
  2875. _ACEOF
  2876. cat confdefs.h >>conftest.$ac_ext
  2877. cat >>conftest.$ac_ext <<_ACEOF
  2878. /* end confdefs.h. */
  2879. $ac_declaration
  2880. #include <stdlib.h>
  2881. int
  2882. main ()
  2883. {
  2884. exit (42);
  2885. ;
  2886. return 0;
  2887. }
  2888. _ACEOF
  2889. rm -f conftest.$ac_objext
  2890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2891. (eval $ac_compile) 2>conftest.er1
  2892. ac_status=$?
  2893. grep -v '^ *+' conftest.er1 >conftest.err
  2894. rm -f conftest.er1
  2895. cat conftest.err >&5
  2896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897. (exit $ac_status); } &&
  2898. { ac_try='test -z "$ac_c_werror_flag"
  2899. || test ! -s conftest.err'
  2900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2901. (eval $ac_try) 2>&5
  2902. ac_status=$?
  2903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2904. (exit $ac_status); }; } &&
  2905. { ac_try='test -s conftest.$ac_objext'
  2906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2907. (eval $ac_try) 2>&5
  2908. ac_status=$?
  2909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2910. (exit $ac_status); }; }; then
  2911. :
  2912. else
  2913. echo "$as_me: failed program was:" >&5
  2914. sed 's/^/| /' conftest.$ac_ext >&5
  2915.  
  2916. continue
  2917. fi
  2918. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2919. cat >conftest.$ac_ext <<_ACEOF
  2920. /* confdefs.h. */
  2921. _ACEOF
  2922. cat confdefs.h >>conftest.$ac_ext
  2923. cat >>conftest.$ac_ext <<_ACEOF
  2924. /* end confdefs.h. */
  2925. $ac_declaration
  2926. int
  2927. main ()
  2928. {
  2929. exit (42);
  2930. ;
  2931. return 0;
  2932. }
  2933. _ACEOF
  2934. rm -f conftest.$ac_objext
  2935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2936. (eval $ac_compile) 2>conftest.er1
  2937. ac_status=$?
  2938. grep -v '^ *+' conftest.er1 >conftest.err
  2939. rm -f conftest.er1
  2940. cat conftest.err >&5
  2941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2942. (exit $ac_status); } &&
  2943. { ac_try='test -z "$ac_c_werror_flag"
  2944. || test ! -s conftest.err'
  2945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2946. (eval $ac_try) 2>&5
  2947. ac_status=$?
  2948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949. (exit $ac_status); }; } &&
  2950. { ac_try='test -s conftest.$ac_objext'
  2951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2952. (eval $ac_try) 2>&5
  2953. ac_status=$?
  2954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2955. (exit $ac_status); }; }; then
  2956. break
  2957. else
  2958. echo "$as_me: failed program was:" >&5
  2959. sed 's/^/| /' conftest.$ac_ext >&5
  2960.  
  2961. fi
  2962. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2963. done
  2964. rm -f conftest*
  2965. if test -n "$ac_declaration"; then
  2966. echo '#ifdef __cplusplus' >>confdefs.h
  2967. echo $ac_declaration >>confdefs.h
  2968. echo '#endif' >>confdefs.h
  2969. fi
  2970.  
  2971. else
  2972. echo "$as_me: failed program was:" >&5
  2973. sed 's/^/| /' conftest.$ac_ext >&5
  2974.  
  2975. fi
  2976. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2977. ac_ext=c
  2978. ac_cpp='$CPP $CPPFLAGS'
  2979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2982. DEPDIR="${am__leading_dot}deps"
  2983.  
  2984. ac_config_commands="$ac_config_commands depfiles"
  2985.  
  2986.  
  2987. am_make=${MAKE-make}
  2988. cat > confinc << 'END'
  2989. am__doit:
  2990. @echo done
  2991. .PHONY: am__doit
  2992. END
  2993. # If we don't find an include directive, just comment out the code.
  2994. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2995. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2996. am__include="#"
  2997. am__quote=
  2998. _am_result=none
  2999. # First try GNU make style include.
  3000. echo "include confinc" > confmf
  3001. # We grep out `Entering directory' and `Leaving directory'
  3002. # messages which can occur if `w' ends up in MAKEFLAGS.
  3003. # In particular we don't look at `^make:' because GNU make might
  3004. # be invoked under some other name (usually "gmake"), in which
  3005. # case it prints its new name instead of `make'.
  3006. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3007. am__include=include
  3008. am__quote=
  3009. _am_result=GNU
  3010. fi
  3011. # Now try BSD make style include.
  3012. if test "$am__include" = "#"; then
  3013. echo '.include "confinc"' > confmf
  3014. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3015. am__include=.include
  3016. am__quote="\""
  3017. _am_result=BSD
  3018. fi
  3019. fi
  3020.  
  3021.  
  3022. echo "$as_me:$LINENO: result: $_am_result" >&5
  3023. echo "${ECHO_T}$_am_result" >&6
  3024. rm -f confinc confmf
  3025.  
  3026. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  3027. if test "${enable_dependency_tracking+set}" = set; then
  3028. enableval="$enable_dependency_tracking"
  3029.  
  3030. fi;
  3031. if test "x$enable_dependency_tracking" != xno; then
  3032. am_depcomp="$ac_aux_dir/depcomp"
  3033. AMDEPBACKSLASH='\'
  3034. fi
  3035.  
  3036.  
  3037. if test "x$enable_dependency_tracking" != xno; then
  3038. AMDEP_TRUE=
  3039. AMDEP_FALSE='#'
  3040. else
  3041. AMDEP_TRUE='#'
  3042. AMDEP_FALSE=
  3043. fi
  3044.  
  3045.  
  3046.  
  3047.  
  3048. depcc="$CC" am_compiler_list=
  3049.  
  3050. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3051. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3052. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3053. echo $ECHO_N "(cached) $ECHO_C" >&6
  3054. else
  3055. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3056. # We make a subdir and do the tests there. Otherwise we can end up
  3057. # making bogus files that we don't know about and never remove. For
  3058. # instance it was reported that on HP-UX the gcc test will end up
  3059. # making a dummy file named `D' -- because `-MD' means `put the output
  3060. # in D'.
  3061. mkdir conftest.dir
  3062. # Copy depcomp to subdir because otherwise we won't find it if we're
  3063. # using a relative directory.
  3064. cp "$am_depcomp" conftest.dir
  3065. cd conftest.dir
  3066. # We will build objects and dependencies in a subdirectory because
  3067. # it helps to detect inapplicable dependency modes. For instance
  3068. # both Tru64's cc and ICC support -MD to output dependencies as a
  3069. # side effect of compilation, but ICC will put the dependencies in
  3070. # the current directory while Tru64 will put them in the object
  3071. # directory.
  3072. mkdir sub
  3073.  
  3074. am_cv_CC_dependencies_compiler_type=none
  3075. if test "$am_compiler_list" = ""; then
  3076. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3077. fi
  3078. for depmode in $am_compiler_list; do
  3079. # Setup a source with many dependencies, because some compilers
  3080. # like to wrap large dependency lists on column 80 (with \), and
  3081. # we should not choose a depcomp mode which is confused by this.
  3082. #
  3083. # We need to recreate these files for each test, as the compiler may
  3084. # overwrite some of them when testing with obscure command lines.
  3085. # This happens at least with the AIX C compiler.
  3086. : > sub/conftest.c
  3087. for i in 1 2 3 4 5 6; do
  3088. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3089. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3090. # Solaris 8's {/usr,}/bin/sh.
  3091. touch sub/conftst$i.h
  3092. done
  3093. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3094.  
  3095. case $depmode in
  3096. nosideeffect)
  3097. # after this tag, mechanisms are not by side-effect, so they'll
  3098. # only be used when explicitly requested
  3099. if test "x$enable_dependency_tracking" = xyes; then
  3100. continue
  3101. else
  3102. break
  3103. fi
  3104. ;;
  3105. none) break ;;
  3106. esac
  3107. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3108. # mode. It turns out that the SunPro C++ compiler does not properly
  3109. # handle `-M -o', and we need to detect this.
  3110. if depmode=$depmode \
  3111. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3112. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3113. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3114. >/dev/null 2>conftest.err &&
  3115. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3116. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3117. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3118. # icc doesn't choke on unknown options, it will just issue warnings
  3119. # or remarks (even with -Werror). So we grep stderr for any message
  3120. # that says an option was ignored or not supported.
  3121. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3122. # icc: Command line warning: ignoring option '-M'; no argument required
  3123. # The diagnosis changed in icc 8.0:
  3124. # icc: Command line remark: option '-MP' not supported
  3125. if (grep 'ignoring option' conftest.err ||
  3126. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3127. am_cv_CC_dependencies_compiler_type=$depmode
  3128. break
  3129. fi
  3130. fi
  3131. done
  3132.  
  3133. cd ..
  3134. rm -rf conftest.dir
  3135. else
  3136. am_cv_CC_dependencies_compiler_type=none
  3137. fi
  3138.  
  3139. fi
  3140. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3141. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3142. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3143.  
  3144.  
  3145.  
  3146. if
  3147. test "x$enable_dependency_tracking" != xno \
  3148. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3149. am__fastdepCC_TRUE=
  3150. am__fastdepCC_FALSE='#'
  3151. else
  3152. am__fastdepCC_TRUE='#'
  3153. am__fastdepCC_FALSE=
  3154. fi
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  3162. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  3163. # in both places for now and restore CFLAGS at the end of config.
  3164. save_CFLAGS="$CFLAGS"
  3165.  
  3166. # Add -Wall -Werror if we are using GCC.
  3167. if test "x$GCC" = "xyes"; then
  3168. XCFLAGS="$XCFLAGS -Wall -Werror"
  3169. fi
  3170.  
  3171. # Find other programs we need.
  3172. if test -n "$ac_tool_prefix"; then
  3173. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3174. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3175. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3176. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3177. if test "${ac_cv_prog_AR+set}" = set; then
  3178. echo $ECHO_N "(cached) $ECHO_C" >&6
  3179. else
  3180. if test -n "$AR"; then
  3181. ac_cv_prog_AR="$AR" # Let the user override the test.
  3182. else
  3183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3184. for as_dir in $PATH
  3185. do
  3186. IFS=$as_save_IFS
  3187. test -z "$as_dir" && as_dir=.
  3188. for ac_exec_ext in '' $ac_executable_extensions; do
  3189. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3190. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3191. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3192. break 2
  3193. fi
  3194. done
  3195. done
  3196.  
  3197. fi
  3198. fi
  3199. AR=$ac_cv_prog_AR
  3200. if test -n "$AR"; then
  3201. echo "$as_me:$LINENO: result: $AR" >&5
  3202. echo "${ECHO_T}$AR" >&6
  3203. else
  3204. echo "$as_me:$LINENO: result: no" >&5
  3205. echo "${ECHO_T}no" >&6
  3206. fi
  3207.  
  3208. fi
  3209. if test -z "$ac_cv_prog_AR"; then
  3210. ac_ct_AR=$AR
  3211. # Extract the first word of "ar", so it can be a program name with args.
  3212. set dummy ar; ac_word=$2
  3213. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3214. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3215. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3216. echo $ECHO_N "(cached) $ECHO_C" >&6
  3217. else
  3218. if test -n "$ac_ct_AR"; then
  3219. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_exec_ext in '' $ac_executable_extensions; do
  3227. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3228. ac_cv_prog_ac_ct_AR="ar"
  3229. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234.  
  3235. fi
  3236. fi
  3237. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3238. if test -n "$ac_ct_AR"; then
  3239. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3240. echo "${ECHO_T}$ac_ct_AR" >&6
  3241. else
  3242. echo "$as_me:$LINENO: result: no" >&5
  3243. echo "${ECHO_T}no" >&6
  3244. fi
  3245.  
  3246. AR=$ac_ct_AR
  3247. else
  3248. AR="$ac_cv_prog_AR"
  3249. fi
  3250.  
  3251. if test -n "$ac_tool_prefix"; then
  3252. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3253. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3254. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3255. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3256. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3257. echo $ECHO_N "(cached) $ECHO_C" >&6
  3258. else
  3259. if test -n "$RANLIB"; then
  3260. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3261. else
  3262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3263. for as_dir in $PATH
  3264. do
  3265. IFS=$as_save_IFS
  3266. test -z "$as_dir" && as_dir=.
  3267. for ac_exec_ext in '' $ac_executable_extensions; do
  3268. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3269. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3270. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3271. break 2
  3272. fi
  3273. done
  3274. done
  3275.  
  3276. fi
  3277. fi
  3278. RANLIB=$ac_cv_prog_RANLIB
  3279. if test -n "$RANLIB"; then
  3280. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3281. echo "${ECHO_T}$RANLIB" >&6
  3282. else
  3283. echo "$as_me:$LINENO: result: no" >&5
  3284. echo "${ECHO_T}no" >&6
  3285. fi
  3286.  
  3287. fi
  3288. if test -z "$ac_cv_prog_RANLIB"; then
  3289. ac_ct_RANLIB=$RANLIB
  3290. # Extract the first word of "ranlib", so it can be a program name with args.
  3291. set dummy ranlib; ac_word=$2
  3292. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3294. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3295. echo $ECHO_N "(cached) $ECHO_C" >&6
  3296. else
  3297. if test -n "$ac_ct_RANLIB"; then
  3298. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. test -z "$as_dir" && as_dir=.
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3307. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3309. break 2
  3310. fi
  3311. done
  3312. done
  3313.  
  3314. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
  3315. fi
  3316. fi
  3317. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3318. if test -n "$ac_ct_RANLIB"; then
  3319. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3320. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3321. else
  3322. echo "$as_me:$LINENO: result: no" >&5
  3323. echo "${ECHO_T}no" >&6
  3324. fi
  3325.  
  3326. RANLIB=$ac_ct_RANLIB
  3327. else
  3328. RANLIB="$ac_cv_prog_RANLIB"
  3329. fi
  3330.  
  3331. # Extract the first word of "perl", so it can be a program name with args.
  3332. set dummy perl; ac_word=$2
  3333. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3335. if test "${ac_cv_path_PERL+set}" = set; then
  3336. echo $ECHO_N "(cached) $ECHO_C" >&6
  3337. else
  3338. case $PERL in
  3339. [\\/]* | ?:[\\/]*)
  3340. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  3341. ;;
  3342. *)
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. test -z "$as_dir" && as_dir=.
  3348. for ac_exec_ext in '' $ac_executable_extensions; do
  3349. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3350. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  3351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3352. break 2
  3353. fi
  3354. done
  3355. done
  3356.  
  3357. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  3358. ;;
  3359. esac
  3360. fi
  3361. PERL=$ac_cv_path_PERL
  3362.  
  3363. if test -n "$PERL"; then
  3364. echo "$as_me:$LINENO: result: $PERL" >&5
  3365. echo "${ECHO_T}$PERL" >&6
  3366. else
  3367. echo "$as_me:$LINENO: result: no" >&5
  3368. echo "${ECHO_T}no" >&6
  3369. fi
  3370.  
  3371. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3372. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  3373. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  3374. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  3375. echo $ECHO_N "(cached) $ECHO_C" >&6
  3376. else
  3377. cat >conftest.make <<\_ACEOF
  3378. all:
  3379. @echo 'ac_maketemp="$(MAKE)"'
  3380. _ACEOF
  3381. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3382. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  3383. if test -n "$ac_maketemp"; then
  3384. eval ac_cv_prog_make_${ac_make}_set=yes
  3385. else
  3386. eval ac_cv_prog_make_${ac_make}_set=no
  3387. fi
  3388. rm -f conftest.make
  3389. fi
  3390. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  3391. echo "$as_me:$LINENO: result: yes" >&5
  3392. echo "${ECHO_T}yes" >&6
  3393. SET_MAKE=
  3394. else
  3395. echo "$as_me:$LINENO: result: no" >&5
  3396. echo "${ECHO_T}no" >&6
  3397. SET_MAKE="MAKE=${MAKE-make}"
  3398. fi
  3399.  
  3400. # Find a good install program. We prefer a C program (faster),
  3401. # so one script is as good as another. But avoid the broken or
  3402. # incompatible versions:
  3403. # SysV /etc/install, /usr/sbin/install
  3404. # SunOS /usr/etc/install
  3405. # IRIX /sbin/install
  3406. # AIX /bin/install
  3407. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3408. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3409. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3410. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3411. # OS/2's system install, which has a completely different semantic
  3412. # ./install, which can be erroneously created by make from ./install.sh.
  3413. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3414. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3415. if test -z "$INSTALL"; then
  3416. if test "${ac_cv_path_install+set}" = set; then
  3417. echo $ECHO_N "(cached) $ECHO_C" >&6
  3418. else
  3419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3420. for as_dir in $PATH
  3421. do
  3422. IFS=$as_save_IFS
  3423. test -z "$as_dir" && as_dir=.
  3424. # Account for people who put trailing slashes in PATH elements.
  3425. case $as_dir/ in
  3426. ./ | .// | /cC/* | \
  3427. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3428. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3429. /usr/ucb/* ) ;;
  3430. *)
  3431. # OSF1 and SCO ODT 3.0 have their own names for install.
  3432. # Don't use installbsd from OSF since it installs stuff as root
  3433. # by default.
  3434. for ac_prog in ginstall scoinst install; do
  3435. for ac_exec_ext in '' $ac_executable_extensions; do
  3436. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3437. if test $ac_prog = install &&
  3438. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3439. # AIX install. It has an incompatible calling convention.
  3440. :
  3441. elif test $ac_prog = install &&
  3442. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3443. # program-specific install script used by HP pwplus--don't use.
  3444. :
  3445. else
  3446. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3447. break 3
  3448. fi
  3449. fi
  3450. done
  3451. done
  3452. ;;
  3453. esac
  3454. done
  3455.  
  3456.  
  3457. fi
  3458. if test "${ac_cv_path_install+set}" = set; then
  3459. INSTALL=$ac_cv_path_install
  3460. else
  3461. # As a last resort, use the slow shell script. We don't cache a
  3462. # path for INSTALL within a source directory, because that will
  3463. # break other packages using the cache if that directory is
  3464. # removed, or if the path is relative.
  3465. INSTALL=$ac_install_sh
  3466. fi
  3467. fi
  3468. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3469. echo "${ECHO_T}$INSTALL" >&6
  3470.  
  3471. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3472. # It thinks the first close brace ends the variable substitution.
  3473. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3474.  
  3475. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3476.  
  3477. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3478.  
  3479.  
  3480. # See if makeinfo has been installed and is modern enough
  3481. # that we can use it.
  3482.  
  3483. # Extract the first word of "makeinfo", so it can be a program name with args.
  3484. set dummy makeinfo; ac_word=$2
  3485. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3486. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3487. if test "${ac_cv_prog_MAKEINFO+set}" = set; then
  3488. echo $ECHO_N "(cached) $ECHO_C" >&6
  3489. else
  3490. if test -n "$MAKEINFO"; then
  3491. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  3492. else
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3500. ac_cv_prog_MAKEINFO="makeinfo"
  3501. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3502. break 2
  3503. fi
  3504. done
  3505. done
  3506.  
  3507. fi
  3508. fi
  3509. MAKEINFO=$ac_cv_prog_MAKEINFO
  3510. if test -n "$MAKEINFO"; then
  3511. echo "$as_me:$LINENO: result: $MAKEINFO" >&5
  3512. echo "${ECHO_T}$MAKEINFO" >&6
  3513. else
  3514. echo "$as_me:$LINENO: result: no" >&5
  3515. echo "${ECHO_T}no" >&6
  3516. fi
  3517.  
  3518. if test -n "$MAKEINFO"; then
  3519. # Found it, now check the version.
  3520. echo "$as_me:$LINENO: checking for modern makeinfo" >&5
  3521. echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
  3522. if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
  3523. echo $ECHO_N "(cached) $ECHO_C" >&6
  3524. else
  3525. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  3526. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  3527.  
  3528. case $ac_prog_version in
  3529. '') gcc_cv_prog_makeinfo_modern=no;;
  3530. 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  3531. *) gcc_cv_prog_makeinfo_modern=no;;
  3532. esac
  3533. if test $gcc_cv_prog_makeinfo_modern = no; then
  3534. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  3535. fi
  3536.  
  3537. fi
  3538. echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
  3539. echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
  3540. else
  3541. gcc_cv_prog_makeinfo_modern=no
  3542. fi
  3543.  
  3544.  
  3545.  
  3546. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  3547. BUILD_INFO_TRUE=
  3548. BUILD_INFO_FALSE='#'
  3549. else
  3550. BUILD_INFO_TRUE='#'
  3551. BUILD_INFO_FALSE=
  3552. fi
  3553.  
  3554.  
  3555.  
  3556. # Configure libtool
  3557. # Check whether --enable-shared or --disable-shared was given.
  3558. if test "${enable_shared+set}" = set; then
  3559. enableval="$enable_shared"
  3560. p=${PACKAGE-default}
  3561. case $enableval in
  3562. yes) enable_shared=yes ;;
  3563. no) enable_shared=no ;;
  3564. *)
  3565. enable_shared=no
  3566. # Look at the argument we got. We use all the common list separators.
  3567. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3568. for pkg in $enableval; do
  3569. if test "X$pkg" = "X$p"; then
  3570. enable_shared=yes
  3571. fi
  3572. done
  3573. IFS="$ac_save_ifs"
  3574. ;;
  3575. esac
  3576. else
  3577. enable_shared=yes
  3578. fi;
  3579. # Check whether --enable-static or --disable-static was given.
  3580. if test "${enable_static+set}" = set; then
  3581. enableval="$enable_static"
  3582. p=${PACKAGE-default}
  3583. case $enableval in
  3584. yes) enable_static=yes ;;
  3585. no) enable_static=no ;;
  3586. *)
  3587. enable_static=no
  3588. # Look at the argument we got. We use all the common list separators.
  3589. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3590. for pkg in $enableval; do
  3591. if test "X$pkg" = "X$p"; then
  3592. enable_static=yes
  3593. fi
  3594. done
  3595. IFS="$ac_save_ifs"
  3596. ;;
  3597. esac
  3598. else
  3599. enable_static=yes
  3600. fi;
  3601. # Check whether --enable-fast-install or --disable-fast-install was given.
  3602. if test "${enable_fast_install+set}" = set; then
  3603. enableval="$enable_fast_install"
  3604. p=${PACKAGE-default}
  3605. case $enableval in
  3606. yes) enable_fast_install=yes ;;
  3607. no) enable_fast_install=no ;;
  3608. *)
  3609. enable_fast_install=no
  3610. # Look at the argument we got. We use all the common list separators.
  3611. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3612. for pkg in $enableval; do
  3613. if test "X$pkg" = "X$p"; then
  3614. enable_fast_install=yes
  3615. fi
  3616. done
  3617. IFS="$ac_save_ifs"
  3618. ;;
  3619. esac
  3620. else
  3621. enable_fast_install=yes
  3622. fi;
  3623.  
  3624. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3625. if test "${with_gnu_ld+set}" = set; then
  3626. withval="$with_gnu_ld"
  3627. test "$withval" = no || with_gnu_ld=yes
  3628. else
  3629. with_gnu_ld=no
  3630. fi;
  3631. ac_prog=ld
  3632. if test "$GCC" = yes; then
  3633. # Check if gcc -print-prog-name=ld gives a path.
  3634. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  3635. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  3636. case $host in
  3637. *-*-mingw*)
  3638. # gcc leaves a trailing carriage return which upsets mingw
  3639. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3640. *)
  3641. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3642. esac
  3643. case $ac_prog in
  3644. # Accept absolute paths.
  3645. [\\/]* | [A-Za-z]:[\\/]*)
  3646. re_direlt='/[^/][^/]*/\.\./'
  3647. # Canonicalize the path of ld
  3648. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  3649. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3650. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  3651. done
  3652. test -z "$LD" && LD="$ac_prog"
  3653. ;;
  3654. "")
  3655. # If it fails, then pretend we aren't using GCC.
  3656. ac_prog=ld
  3657. ;;
  3658. *)
  3659. # If it is relative, then search for the first ld in PATH.
  3660. with_gnu_ld=unknown
  3661. ;;
  3662. esac
  3663. elif test "$with_gnu_ld" = yes; then
  3664. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3665. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3666. else
  3667. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3668. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3669. fi
  3670. if test "${lt_cv_path_LD+set}" = set; then
  3671. echo $ECHO_N "(cached) $ECHO_C" >&6
  3672. else
  3673. if test -z "$LD"; then
  3674. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3675. for ac_dir in $PATH; do
  3676. test -z "$ac_dir" && ac_dir=.
  3677. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3678. lt_cv_path_LD="$ac_dir/$ac_prog"
  3679. # Check to see if the program is GNU ld. I'd rather use --version,
  3680. # but apparently some GNU ld's only accept -v.
  3681. # Break only if it was the GNU/non-GNU ld that we prefer.
  3682. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  3683. test "$with_gnu_ld" != no && break
  3684. else
  3685. test "$with_gnu_ld" != yes && break
  3686. fi
  3687. fi
  3688. done
  3689. IFS="$ac_save_ifs"
  3690. else
  3691. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3692. fi
  3693. fi
  3694.  
  3695. LD="$lt_cv_path_LD"
  3696. if test -n "$LD"; then
  3697. echo "$as_me:$LINENO: result: $LD" >&5
  3698. echo "${ECHO_T}$LD" >&6
  3699. else
  3700. echo "$as_me:$LINENO: result: no" >&5
  3701. echo "${ECHO_T}no" >&6
  3702. fi
  3703. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3704. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3705. { (exit 1); exit 1; }; }
  3706. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3707. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3708. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3709. echo $ECHO_N "(cached) $ECHO_C" >&6
  3710. else
  3711. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3712. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  3713. lt_cv_prog_gnu_ld=yes
  3714. else
  3715. lt_cv_prog_gnu_ld=no
  3716. fi
  3717. fi
  3718. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3719. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3720. with_gnu_ld=$lt_cv_prog_gnu_ld
  3721.  
  3722.  
  3723. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3724. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3725. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3726. echo $ECHO_N "(cached) $ECHO_C" >&6
  3727. else
  3728. lt_cv_ld_reload_flag='-r'
  3729. fi
  3730. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3731. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3732. reload_flag=$lt_cv_ld_reload_flag
  3733. test -n "$reload_flag" && reload_flag=" $reload_flag"
  3734.  
  3735. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3736. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3737. if test "${lt_cv_path_NM+set}" = set; then
  3738. echo $ECHO_N "(cached) $ECHO_C" >&6
  3739. else
  3740. if test -n "$NM"; then
  3741. # Let the user override the test.
  3742. lt_cv_path_NM="$NM"
  3743. else
  3744. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3745. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3746. test -z "$ac_dir" && ac_dir=.
  3747. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  3748. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  3749. # Check to see if the nm accepts a BSD-compat flag.
  3750. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3751. # nm: unknown option "B" ignored
  3752. # Tru64's nm complains that /dev/null is an invalid object file
  3753. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  3754. lt_cv_path_NM="$tmp_nm -B"
  3755. break
  3756. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  3757. lt_cv_path_NM="$tmp_nm -p"
  3758. break
  3759. else
  3760. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3761. continue # so that we can try to find one that supports BSD flags
  3762. fi
  3763. fi
  3764. done
  3765. IFS="$ac_save_ifs"
  3766. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3767. fi
  3768. fi
  3769.  
  3770. NM="$lt_cv_path_NM"
  3771. echo "$as_me:$LINENO: result: $NM" >&5
  3772. echo "${ECHO_T}$NM" >&6
  3773.  
  3774. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3775. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3776. LN_S=$as_ln_s
  3777. if test "$LN_S" = "ln -s"; then
  3778. echo "$as_me:$LINENO: result: yes" >&5
  3779. echo "${ECHO_T}yes" >&6
  3780. else
  3781. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3782. echo "${ECHO_T}no, using $LN_S" >&6
  3783. fi
  3784.  
  3785. echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
  3786. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  3787. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3788. echo $ECHO_N "(cached) $ECHO_C" >&6
  3789. else
  3790. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3791. lt_cv_file_magic_test_file=
  3792. lt_cv_deplibs_check_method='unknown'
  3793. # Need to set the preceding variable on all platforms that support
  3794. # interlibrary dependencies.
  3795. # 'none' -- dependencies not supported.
  3796. # `unknown' -- same as none, but documents that we really don't know.
  3797. # 'pass_all' -- all dependencies passed with no checks.
  3798. # 'test_compile' -- check by making test program.
  3799. # 'file_magic [regex]' -- check by looking for files in library path
  3800. # which responds to the $file_magic_cmd with a given egrep regex.
  3801. # If you have `file' or equivalent on your system and you're not sure
  3802. # whether `pass_all' will *always* work, you probably want this one.
  3803.  
  3804. case $host_os in
  3805. aix*)
  3806. lt_cv_deplibs_check_method=pass_all
  3807. ;;
  3808.  
  3809. beos*)
  3810. lt_cv_deplibs_check_method=pass_all
  3811. ;;
  3812.  
  3813. bsdi4*)
  3814. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3815. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3816. lt_cv_file_magic_test_file=/shlib/libc.so
  3817. ;;
  3818.  
  3819. cygwin* | mingw* |pw32*)
  3820. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3821. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3822. ;;
  3823.  
  3824. darwin* | rhapsody*)
  3825. # this will be overwritten by pass_all, but leave it in just in case
  3826. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  3827. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3828. case "$host_os" in
  3829. rhapsody* | darwin1.012)
  3830. lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
  3831. ;;
  3832. *) # Darwin 1.3 on
  3833. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  3834. ;;
  3835. esac
  3836. lt_cv_deplibs_check_method=pass_all
  3837. ;;
  3838.  
  3839. freebsd* | kfreebsd*-gnu)
  3840. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3841. case $host_cpu in
  3842. i*86 )
  3843. # Not sure whether the presence of OpenBSD here was a mistake.
  3844. # Let's accept both of them until this is cleared up.
  3845. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  3846. lt_cv_file_magic_cmd=/usr/bin/file
  3847. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3848. ;;
  3849. esac
  3850. else
  3851. lt_cv_deplibs_check_method=pass_all
  3852. fi
  3853. ;;
  3854.  
  3855. gnu*)
  3856. lt_cv_deplibs_check_method=pass_all
  3857. ;;
  3858.  
  3859. hpux10.20*|hpux11*)
  3860. case $host_cpu in
  3861. hppa*)
  3862. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3863. lt_cv_file_magic_cmd=/usr/bin/file
  3864. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3865. ;;
  3866. ia64*)
  3867. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3868. lt_cv_file_magic_cmd=/usr/bin/file
  3869. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3870. ;;
  3871. esac
  3872. ;;
  3873.  
  3874. irix5* | irix6*)
  3875. case $host_os in
  3876. irix5*)
  3877. # this will be overridden with pass_all, but let us keep it just in case
  3878. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  3879. ;;
  3880. *)
  3881. case $LD in
  3882. *-32|*"-32 ") libmagic=32-bit;;
  3883. *-n32|*"-n32 ") libmagic=N32;;
  3884. *-64|*"-64 ") libmagic=64-bit;;
  3885. *) libmagic=never-match;;
  3886. esac
  3887. # this will be overridden with pass_all, but let us keep it just in case
  3888. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  3889. ;;
  3890. esac
  3891. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  3892. lt_cv_deplibs_check_method=pass_all
  3893. ;;
  3894.  
  3895. # This must be Linux ELF.
  3896. linux*)
  3897. lt_cv_deplibs_check_method=pass_all
  3898. ;;
  3899.  
  3900. netbsd* | knetbsd*-gnu)
  3901. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3902. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  3903. else
  3904. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  3905. fi
  3906. ;;
  3907.  
  3908. newsos6)
  3909. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3910. lt_cv_file_magic_cmd=/usr/bin/file
  3911. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3912. ;;
  3913.  
  3914. osf3* | osf4* | osf5*)
  3915. # this will be overridden with pass_all, but let us keep it just in case
  3916. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  3917. lt_cv_file_magic_test_file=/shlib/libc.so
  3918. lt_cv_deplibs_check_method=pass_all
  3919. ;;
  3920.  
  3921. sco3.2v5*)
  3922. lt_cv_deplibs_check_method=pass_all
  3923. ;;
  3924.  
  3925. solaris*)
  3926. lt_cv_deplibs_check_method=pass_all
  3927. lt_cv_file_magic_test_file=/lib/libc.so
  3928. ;;
  3929.  
  3930. sysv5uw[78]* | sysv4*uw2*)
  3931. lt_cv_deplibs_check_method=pass_all
  3932. ;;
  3933.  
  3934. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3935. case $host_vendor in
  3936. ncr)
  3937. lt_cv_deplibs_check_method=pass_all
  3938. ;;
  3939. motorola)
  3940. 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]'
  3941. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3942. ;;
  3943. esac
  3944. ;;
  3945. esac
  3946.  
  3947. fi
  3948. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3949. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3950. file_magic_cmd=$lt_cv_file_magic_cmd
  3951. deplibs_check_method=$lt_cv_deplibs_check_method
  3952.  
  3953.  
  3954.  
  3955.  
  3956.  
  3957. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  3958.  
  3959. # find the maximum length of command line arguments
  3960. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3961. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  3962. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3963. echo $ECHO_N "(cached) $ECHO_C" >&6
  3964. else
  3965. i=0
  3966. teststring="ABCD"
  3967.  
  3968. case $build_os in
  3969. msdosdjgpp*)
  3970. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3971. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3972. # during glob expansion). Even if it were fixed, the result of this
  3973. # check would be larger than it should be.
  3974. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3975. ;;
  3976.  
  3977. cygwin* | mingw*)
  3978. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3979. # about 5 minutes as the teststring grows exponentially.
  3980. # Worse, since 9x/ME are not pre-emptively multitasking,
  3981. # you end up with a "frozen" computer, even though with patience
  3982. # the test eventually succeeds (with a max line length of 256k).
  3983. # Instead, let's just punt: use the minimum linelength reported by
  3984. # all of the supported platforms: 8192 (on NT/2K/XP).
  3985. lt_cv_sys_max_cmd_len=8192;
  3986. ;;
  3987.  
  3988. amigaos*)
  3989. # On AmigaOS with pdksh, this test takes hours, literally.
  3990. # So we just punt and use a minimum line length of 8192.
  3991. lt_cv_sys_max_cmd_len=8192;
  3992. ;;
  3993.  
  3994. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3995. # This has been around since 386BSD, at least. Likely further.
  3996. if test -x /sbin/sysctl; then
  3997. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3998. elif test -x /usr/sbin/sysctl; then
  3999. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4000. else
  4001. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  4002. fi
  4003. # And add a safety zone
  4004. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4005. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4006. ;;
  4007. esac
  4008.  
  4009. fi
  4010.  
  4011. if test -n "$lt_cv_sys_max_cmd_len" ; then
  4012. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4013. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4014. else
  4015. echo "$as_me:$LINENO: result: none" >&5
  4016. echo "${ECHO_T}none" >&6
  4017. fi
  4018.  
  4019.  
  4020. # Only perform the check for file, if the check method requires it
  4021. case $deplibs_check_method in
  4022. file_magic*)
  4023. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4024. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4025. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4026. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4027. echo $ECHO_N "(cached) $ECHO_C" >&6
  4028. else
  4029. case $MAGIC_CMD in
  4030. /*)
  4031. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4032. ;;
  4033. ?:/*)
  4034. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4035. ;;
  4036. *)
  4037. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4038. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4039. ac_dummy="/usr/bin:$PATH"
  4040. for ac_dir in $ac_dummy; do
  4041. test -z "$ac_dir" && ac_dir=.
  4042. if test -f $ac_dir/${ac_tool_prefix}file; then
  4043. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4044. if test -n "$file_magic_test_file"; then
  4045. case $deplibs_check_method in
  4046. "file_magic "*)
  4047. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4048. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4049. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4050. egrep "$file_magic_regex" > /dev/null; then
  4051. :
  4052. else
  4053. cat <<EOF 1>&2
  4054.  
  4055. *** Warning: the command libtool uses to detect shared libraries,
  4056. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4057. *** The result is that libtool may fail to recognize shared libraries
  4058. *** as such. This will affect the creation of libtool libraries that
  4059. *** depend on shared libraries, but programs linked with such libtool
  4060. *** libraries will work regardless of this problem. Nevertheless, you
  4061. *** may want to report the problem to your system manager and/or to
  4062.  
  4063. EOF
  4064. fi ;;
  4065. esac
  4066. fi
  4067. break
  4068. fi
  4069. done
  4070. IFS="$ac_save_ifs"
  4071. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4072. ;;
  4073. esac
  4074. fi
  4075.  
  4076. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4077. if test -n "$MAGIC_CMD"; then
  4078. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4079. echo "${ECHO_T}$MAGIC_CMD" >&6
  4080. else
  4081. echo "$as_me:$LINENO: result: no" >&5
  4082. echo "${ECHO_T}no" >&6
  4083. fi
  4084.  
  4085. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4086. if test -n "$ac_tool_prefix"; then
  4087. echo "$as_me:$LINENO: checking for file" >&5
  4088. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4089. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4090. echo $ECHO_N "(cached) $ECHO_C" >&6
  4091. else
  4092. case $MAGIC_CMD in
  4093. /*)
  4094. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4095. ;;
  4096. ?:/*)
  4097. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4098. ;;
  4099. *)
  4100. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4101. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4102. ac_dummy="/usr/bin:$PATH"
  4103. for ac_dir in $ac_dummy; do
  4104. test -z "$ac_dir" && ac_dir=.
  4105. if test -f $ac_dir/file; then
  4106. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4107. if test -n "$file_magic_test_file"; then
  4108. case $deplibs_check_method in
  4109. "file_magic "*)
  4110. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4111. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4112. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4113. egrep "$file_magic_regex" > /dev/null; then
  4114. :
  4115. else
  4116. cat <<EOF 1>&2
  4117.  
  4118. *** Warning: the command libtool uses to detect shared libraries,
  4119. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4120. *** The result is that libtool may fail to recognize shared libraries
  4121. *** as such. This will affect the creation of libtool libraries that
  4122. *** depend on shared libraries, but programs linked with such libtool
  4123. *** libraries will work regardless of this problem. Nevertheless, you
  4124. *** may want to report the problem to your system manager and/or to
  4125.  
  4126. EOF
  4127. fi ;;
  4128. esac
  4129. fi
  4130. break
  4131. fi
  4132. done
  4133. IFS="$ac_save_ifs"
  4134. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4135. ;;
  4136. esac
  4137. fi
  4138.  
  4139. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4140. if test -n "$MAGIC_CMD"; then
  4141. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  4142. echo "${ECHO_T}$MAGIC_CMD" >&6
  4143. else
  4144. echo "$as_me:$LINENO: result: no" >&5
  4145. echo "${ECHO_T}no" >&6
  4146. fi
  4147.  
  4148. else
  4149. MAGIC_CMD=:
  4150. fi
  4151. fi
  4152.  
  4153. fi
  4154. ;;
  4155. esac
  4156.  
  4157. if test -n "$ac_tool_prefix"; then
  4158. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4159. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4160. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4161. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4162. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4163. echo $ECHO_N "(cached) $ECHO_C" >&6
  4164. else
  4165. if test -n "$RANLIB"; then
  4166. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4167. else
  4168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4169. for as_dir in $PATH
  4170. do
  4171. IFS=$as_save_IFS
  4172. test -z "$as_dir" && as_dir=.
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4175. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4176. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4177. break 2
  4178. fi
  4179. done
  4180. done
  4181.  
  4182. fi
  4183. fi
  4184. RANLIB=$ac_cv_prog_RANLIB
  4185. if test -n "$RANLIB"; then
  4186. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4187. echo "${ECHO_T}$RANLIB" >&6
  4188. else
  4189. echo "$as_me:$LINENO: result: no" >&5
  4190. echo "${ECHO_T}no" >&6
  4191. fi
  4192.  
  4193. fi
  4194. if test -z "$ac_cv_prog_RANLIB"; then
  4195. ac_ct_RANLIB=$RANLIB
  4196. # Extract the first word of "ranlib", so it can be a program name with args.
  4197. set dummy ranlib; ac_word=$2
  4198. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4199. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4200. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4201. echo $ECHO_N "(cached) $ECHO_C" >&6
  4202. else
  4203. if test -n "$ac_ct_RANLIB"; then
  4204. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4205. else
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. test -z "$as_dir" && as_dir=.
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4213. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4214. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4215. break 2
  4216. fi
  4217. done
  4218. done
  4219.  
  4220. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4221. fi
  4222. fi
  4223. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4224. if test -n "$ac_ct_RANLIB"; then
  4225. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4226. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4227. else
  4228. echo "$as_me:$LINENO: result: no" >&5
  4229. echo "${ECHO_T}no" >&6
  4230. fi
  4231.  
  4232. RANLIB=$ac_ct_RANLIB
  4233. else
  4234. RANLIB="$ac_cv_prog_RANLIB"
  4235. fi
  4236.  
  4237. if test -n "$ac_tool_prefix"; then
  4238. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4239. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4240. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4241. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4242. if test "${ac_cv_prog_STRIP+set}" = set; then
  4243. echo $ECHO_N "(cached) $ECHO_C" >&6
  4244. else
  4245. if test -n "$STRIP"; then
  4246. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4247. else
  4248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4249. for as_dir in $PATH
  4250. do
  4251. IFS=$as_save_IFS
  4252. test -z "$as_dir" && as_dir=.
  4253. for ac_exec_ext in '' $ac_executable_extensions; do
  4254. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4255. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4256. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4257. break 2
  4258. fi
  4259. done
  4260. done
  4261.  
  4262. fi
  4263. fi
  4264. STRIP=$ac_cv_prog_STRIP
  4265. if test -n "$STRIP"; then
  4266. echo "$as_me:$LINENO: result: $STRIP" >&5
  4267. echo "${ECHO_T}$STRIP" >&6
  4268. else
  4269. echo "$as_me:$LINENO: result: no" >&5
  4270. echo "${ECHO_T}no" >&6
  4271. fi
  4272.  
  4273. fi
  4274. if test -z "$ac_cv_prog_STRIP"; then
  4275. ac_ct_STRIP=$STRIP
  4276. # Extract the first word of "strip", so it can be a program name with args.
  4277. set dummy strip; ac_word=$2
  4278. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4279. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4280. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4281. echo $ECHO_N "(cached) $ECHO_C" >&6
  4282. else
  4283. if test -n "$ac_ct_STRIP"; then
  4284. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4285. else
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH
  4288. do
  4289. IFS=$as_save_IFS
  4290. test -z "$as_dir" && as_dir=.
  4291. for ac_exec_ext in '' $ac_executable_extensions; do
  4292. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4293. ac_cv_prog_ac_ct_STRIP="strip"
  4294. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4295. break 2
  4296. fi
  4297. done
  4298. done
  4299.  
  4300. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4301. fi
  4302. fi
  4303. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4304. if test -n "$ac_ct_STRIP"; then
  4305. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4306. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4307. else
  4308. echo "$as_me:$LINENO: result: no" >&5
  4309. echo "${ECHO_T}no" >&6
  4310. fi
  4311.  
  4312. STRIP=$ac_ct_STRIP
  4313. else
  4314. STRIP="$ac_cv_prog_STRIP"
  4315. fi
  4316.  
  4317.  
  4318. # Check for any special flags to pass to ltconfig.
  4319. libtool_flags="--cache-file=$cache_file"
  4320. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  4321. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  4322. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  4323. test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
  4324. test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  4325.  
  4326.  
  4327. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4328. if test "${enable_libtool_lock+set}" = set; then
  4329. enableval="$enable_libtool_lock"
  4330.  
  4331. fi;
  4332. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  4333. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  4334.  
  4335.  
  4336. # Check whether --with-pic or --without-pic was given.
  4337. if test "${with_pic+set}" = set; then
  4338. withval="$with_pic"
  4339. pic_mode="$withval"
  4340. else
  4341. pic_mode=default
  4342. fi;
  4343. test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  4344. test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  4345.  
  4346. # Some flags need to be propagated to the compiler or linker for good
  4347. # libtool support.
  4348. case $host in
  4349. *-*-irix6*)
  4350. # Find out which ABI we are using.
  4351. echo '#line 4353 "configure"' > conftest.$ac_ext
  4352. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4353. (eval $ac_compile) 2>&5
  4354. ac_status=$?
  4355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4356. (exit $ac_status); }; then
  4357. if test "$lt_cv_prog_gnu_ld" = yes; then
  4358. case `/usr/bin/file conftest.$ac_objext` in
  4359. *32-bit*)
  4360. LD="${LD-ld} -melf32bsmip"
  4361. ;;
  4362. *N32*)
  4363. LD="${LD-ld} -melf32bmipn32"
  4364. ;;
  4365. *64-bit*)
  4366. LD="${LD-ld} -melf64bmip"
  4367. ;;
  4368. esac
  4369. else
  4370. case `/usr/bin/file conftest.$ac_objext` in
  4371. *32-bit*)
  4372. LD="${LD-ld} -32"
  4373. ;;
  4374. *N32*)
  4375. LD="${LD-ld} -n32"
  4376. ;;
  4377. *64-bit*)
  4378. LD="${LD-ld} -64"
  4379. ;;
  4380. esac
  4381. fi
  4382. fi
  4383. rm -rf conftest*
  4384. ;;
  4385.  
  4386. ia64-*-hpux*)
  4387. # Find out which ABI we are using.
  4388. echo 'int i;' > conftest.$ac_ext
  4389. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4390. (eval $ac_compile) 2>&5
  4391. ac_status=$?
  4392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4393. (exit $ac_status); }; then
  4394. case "`/usr/bin/file conftest.o`" in
  4395. *ELF-32*)
  4396. HPUX_IA64_MODE="32"
  4397. ;;
  4398. *ELF-64*)
  4399. HPUX_IA64_MODE="64"
  4400. ;;
  4401. esac
  4402. fi
  4403. rm -rf conftest*
  4404. ;;
  4405.  
  4406. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4407. # Find out which ABI we are using.
  4408. echo 'int i;' > conftest.$ac_ext
  4409. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4410. (eval $ac_compile) 2>&5
  4411. ac_status=$?
  4412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4413. (exit $ac_status); }; then
  4414. case "`/usr/bin/file conftest.o`" in
  4415. *32-bit*)
  4416. case $host in
  4417. x86_64-*linux*)
  4418. LD="${LD-ld} -m elf_i386"
  4419. ;;
  4420. ppc64-*linux*|powerpc64-*linux*)
  4421. LD="${LD-ld} -m elf32ppclinux"
  4422. ;;
  4423. s390x-*linux*)
  4424. LD="${LD-ld} -m elf_s390"
  4425. ;;
  4426. sparc64-*linux*)
  4427. LD="${LD-ld} -m elf32_sparc"
  4428. ;;
  4429. esac
  4430. ;;
  4431. *64-bit*)
  4432. case $host in
  4433. x86_64-*linux*)
  4434. LD="${LD-ld} -m elf_x86_64"
  4435. ;;
  4436. ppc*-*linux*|powerpc*-*linux*)
  4437. LD="${LD-ld} -m elf64ppc"
  4438. ;;
  4439. s390*-*linux*)
  4440. LD="${LD-ld} -m elf64_s390"
  4441. ;;
  4442. sparc*-*linux*)
  4443. LD="${LD-ld} -m elf64_sparc"
  4444. ;;
  4445. esac
  4446. ;;
  4447. esac
  4448. fi
  4449. rm -rf conftest*
  4450. ;;
  4451.  
  4452. *-*-sco3.2v5*)
  4453. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4454. SAVE_CFLAGS="$CFLAGS"
  4455. CFLAGS="$CFLAGS -belf"
  4456. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4457. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4458. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4459. echo $ECHO_N "(cached) $ECHO_C" >&6
  4460. else
  4461.  
  4462.  
  4463. ac_ext=c
  4464. ac_cpp='$CPP $CPPFLAGS'
  4465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4468.  
  4469. cat >conftest.$ac_ext <<_ACEOF
  4470. /* confdefs.h. */
  4471. _ACEOF
  4472. cat confdefs.h >>conftest.$ac_ext
  4473. cat >>conftest.$ac_ext <<_ACEOF
  4474. /* end confdefs.h. */
  4475.  
  4476. int
  4477. main ()
  4478. {
  4479.  
  4480. ;
  4481. return 0;
  4482. }
  4483. _ACEOF
  4484. rm -f conftest.$ac_objext conftest$ac_exeext
  4485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4486. (eval $ac_link) 2>conftest.er1
  4487. ac_status=$?
  4488. grep -v '^ *+' conftest.er1 >conftest.err
  4489. rm -f conftest.er1
  4490. cat conftest.err >&5
  4491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4492. (exit $ac_status); } &&
  4493. { ac_try='test -z "$ac_c_werror_flag"
  4494. || test ! -s conftest.err'
  4495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4496. (eval $ac_try) 2>&5
  4497. ac_status=$?
  4498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4499. (exit $ac_status); }; } &&
  4500. { ac_try='test -s conftest$ac_exeext'
  4501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4502. (eval $ac_try) 2>&5
  4503. ac_status=$?
  4504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4505. (exit $ac_status); }; }; then
  4506. lt_cv_cc_needs_belf=yes
  4507. else
  4508. echo "$as_me: failed program was:" >&5
  4509. sed 's/^/| /' conftest.$ac_ext >&5
  4510.  
  4511. lt_cv_cc_needs_belf=no
  4512. fi
  4513. rm -f conftest.err conftest.$ac_objext \
  4514. conftest$ac_exeext conftest.$ac_ext
  4515. ac_ext=c
  4516. ac_cpp='$CPP $CPPFLAGS'
  4517. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4518. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4519. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4520.  
  4521. fi
  4522. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4523. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4524. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4525. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4526. CFLAGS="$SAVE_CFLAGS"
  4527. fi
  4528. ;;
  4529.  
  4530.  
  4531. esac
  4532.  
  4533.  
  4534. # Save cache, so that ltconfig can load it
  4535. cat >confcache <<\_ACEOF
  4536. # This file is a shell script that caches the results of configure
  4537. # tests run on this system so they can be shared between configure
  4538. # scripts and configure runs, see configure's option --config-cache.
  4539. # It is not useful on other systems. If it contains results you don't
  4540. # want to keep, you may remove or edit it.
  4541. #
  4542. # config.status only pays attention to the cache file if you give it
  4543. # the --recheck option to rerun configure.
  4544. #
  4545. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4546. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4547. # following values.
  4548.  
  4549. _ACEOF
  4550.  
  4551. # The following way of writing the cache mishandles newlines in values,
  4552. # but we know of no workaround that is simple, portable, and efficient.
  4553. # So, don't put newlines in cache variables' values.
  4554. # Ultrix sh set writes to stderr and can't be redirected directly,
  4555. # and sets the high bit in the cache file unless we assign to the vars.
  4556. {
  4557. (set) 2>&1 |
  4558. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4559. *ac_space=\ *)
  4560. # `set' does not quote correctly, so add quotes (double-quote
  4561. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4562. sed -n \
  4563. "s/'/'\\\\''/g;
  4564. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4565. ;;
  4566. *)
  4567. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4568. sed -n \
  4569. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4570. ;;
  4571. esac;
  4572. } |
  4573. sed '
  4574. t clear
  4575. : clear
  4576. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4577. t end
  4578. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4579. : end' >>confcache
  4580. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4581. if test -w $cache_file; then
  4582. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4583. cat confcache >$cache_file
  4584. else
  4585. echo "not updating unwritable cache $cache_file"
  4586. fi
  4587. fi
  4588. rm -f confcache
  4589.  
  4590. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  4591. AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  4592. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  4593. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  4594. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  4595. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  4596. deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
  4597. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  4598. $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  4599. || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
  4600. echo "$as_me: error: libtool configure failed" >&2;}
  4601. { (exit 1); exit 1; }; }
  4602.  
  4603. # Reload cache, that may have been modified by ltconfig
  4604. if test -r "$cache_file"; then
  4605. # Some versions of bash will fail to source /dev/null (special
  4606. # files actually), so we avoid doing that.
  4607. if test -f "$cache_file"; then
  4608. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  4609. echo "$as_me: loading cache $cache_file" >&6;}
  4610. case $cache_file in
  4611. [\\/]* | ?:[\\/]* ) . $cache_file;;
  4612. *) . ./$cache_file;;
  4613. esac
  4614. fi
  4615. else
  4616. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  4617. echo "$as_me: creating cache $cache_file" >&6;}
  4618. >$cache_file
  4619. fi
  4620.  
  4621.  
  4622. # This can be used to rebuild libtool when needed
  4623. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
  4624.  
  4625. # Always use our own libtool.
  4626. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  4627.  
  4628. # Redirect the config.log output again, so that the ltconfig log is not
  4629. # clobbered by the next message.
  4630. exec 5>>./config.log
  4631.  
  4632.  
  4633.  
  4634.  
  4635.  
  4636.  
  4637.  
  4638.  
  4639.  
  4640. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4641. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  4642. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  4643. if test "${enable_maintainer_mode+set}" = set; then
  4644. enableval="$enable_maintainer_mode"
  4645. USE_MAINTAINER_MODE=$enableval
  4646. else
  4647. USE_MAINTAINER_MODE=no
  4648. fi;
  4649. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  4650. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  4651.  
  4652.  
  4653. if test $USE_MAINTAINER_MODE = yes; then
  4654. MAINTAINER_MODE_TRUE=
  4655. MAINTAINER_MODE_FALSE='#'
  4656. else
  4657. MAINTAINER_MODE_TRUE='#'
  4658. MAINTAINER_MODE_FALSE=
  4659. fi
  4660.  
  4661. MAINT=$MAINTAINER_MODE_TRUE
  4662.  
  4663.  
  4664.  
  4665. # We need gfortran to compile parts of the library
  4666. # We can't use AC_PROG_FC because it expects a fully working gfortran.
  4667. #AC_PROG_FC(gfortran)
  4668. FC="$GFORTRAN"
  4669. ac_ext=${FC_SRCEXT-f}
  4670. ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
  4671. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
  4672. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4673. if test -n "$ac_tool_prefix"; then
  4674. for ac_prog in gfortran
  4675. do
  4676. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4677. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4678. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4679. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4680. if test "${ac_cv_prog_FC+set}" = set; then
  4681. echo $ECHO_N "(cached) $ECHO_C" >&6
  4682. else
  4683. if test -n "$FC"; then
  4684. ac_cv_prog_FC="$FC" # Let the user override the test.
  4685. else
  4686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4687. for as_dir in $PATH
  4688. do
  4689. IFS=$as_save_IFS
  4690. test -z "$as_dir" && as_dir=.
  4691. for ac_exec_ext in '' $ac_executable_extensions; do
  4692. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4693. ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
  4694. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4695. break 2
  4696. fi
  4697. done
  4698. done
  4699.  
  4700. fi
  4701. fi
  4702. FC=$ac_cv_prog_FC
  4703. if test -n "$FC"; then
  4704. echo "$as_me:$LINENO: result: $FC" >&5
  4705. echo "${ECHO_T}$FC" >&6
  4706. else
  4707. echo "$as_me:$LINENO: result: no" >&5
  4708. echo "${ECHO_T}no" >&6
  4709. fi
  4710.  
  4711. test -n "$FC" && break
  4712. done
  4713. fi
  4714. if test -z "$FC"; then
  4715. ac_ct_FC=$FC
  4716. for ac_prog in gfortran
  4717. do
  4718. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4719. set dummy $ac_prog; ac_word=$2
  4720. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4721. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4722. if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
  4723. echo $ECHO_N "(cached) $ECHO_C" >&6
  4724. else
  4725. if test -n "$ac_ct_FC"; then
  4726. ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
  4727. else
  4728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4729. for as_dir in $PATH
  4730. do
  4731. IFS=$as_save_IFS
  4732. test -z "$as_dir" && as_dir=.
  4733. for ac_exec_ext in '' $ac_executable_extensions; do
  4734. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4735. ac_cv_prog_ac_ct_FC="$ac_prog"
  4736. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4737. break 2
  4738. fi
  4739. done
  4740. done
  4741.  
  4742. fi
  4743. fi
  4744. ac_ct_FC=$ac_cv_prog_ac_ct_FC
  4745. if test -n "$ac_ct_FC"; then
  4746. echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
  4747. echo "${ECHO_T}$ac_ct_FC" >&6
  4748. else
  4749. echo "$as_me:$LINENO: result: no" >&5
  4750. echo "${ECHO_T}no" >&6
  4751. fi
  4752.  
  4753. test -n "$ac_ct_FC" && break
  4754. done
  4755.  
  4756. FC=$ac_ct_FC
  4757. fi
  4758.  
  4759.  
  4760. # Provide some information about the compiler.
  4761. echo "$as_me:4763:" \
  4762. "checking for Fortran compiler version" >&5
  4763. ac_compiler=`set X $ac_compile; echo $2`
  4764. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4765. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4766. ac_status=$?
  4767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768. (exit $ac_status); }
  4769. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4770. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4771. ac_status=$?
  4772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4773. (exit $ac_status); }
  4774. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4775. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4776. ac_status=$?
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); }
  4779. rm -f a.out
  4780.  
  4781. # If we don't use `.F' as extension, the preprocessor is not run on the
  4782. # input file. (Note that this only needs to work for GNU compilers.)
  4783. ac_save_ext=$ac_ext
  4784. ac_ext=F
  4785. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
  4786. echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
  4787. if test "${ac_cv_fc_compiler_gnu+set}" = set; then
  4788. echo $ECHO_N "(cached) $ECHO_C" >&6
  4789. else
  4790. cat >conftest.$ac_ext <<_ACEOF
  4791. program main
  4792. #ifndef __GNUC__
  4793. choke me
  4794. #endif
  4795.  
  4796. end
  4797. _ACEOF
  4798. rm -f conftest.$ac_objext
  4799. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4800. (eval $ac_compile) 2>conftest.er1
  4801. ac_status=$?
  4802. grep -v '^ *+' conftest.er1 >conftest.err
  4803. rm -f conftest.er1
  4804. cat conftest.err >&5
  4805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806. (exit $ac_status); } &&
  4807. { ac_try='test -z "$ac_fc_werror_flag"
  4808. || test ! -s conftest.err'
  4809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4810. (eval $ac_try) 2>&5
  4811. ac_status=$?
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); }; } &&
  4814. { ac_try='test -s conftest.$ac_objext'
  4815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4816. (eval $ac_try) 2>&5
  4817. ac_status=$?
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); }; }; then
  4820. ac_compiler_gnu=yes
  4821. else
  4822. echo "$as_me: failed program was:" >&5
  4823. sed 's/^/| /' conftest.$ac_ext >&5
  4824.  
  4825. ac_compiler_gnu=no
  4826. fi
  4827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4828. ac_cv_fc_compiler_gnu=$ac_compiler_gnu
  4829.  
  4830. fi
  4831. echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
  4832. echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
  4833. ac_ext=$ac_save_ext
  4834. ac_test_FFLAGS=${FCFLAGS+set}
  4835. ac_save_FFLAGS=$FCFLAGS
  4836. FCFLAGS=
  4837. echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
  4838. echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
  4839. if test "${ac_cv_prog_fc_g+set}" = set; then
  4840. echo $ECHO_N "(cached) $ECHO_C" >&6
  4841. else
  4842. FCFLAGS=-g
  4843. cat >conftest.$ac_ext <<_ACEOF
  4844. program main
  4845.  
  4846. end
  4847. _ACEOF
  4848. rm -f conftest.$ac_objext
  4849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4850. (eval $ac_compile) 2>conftest.er1
  4851. ac_status=$?
  4852. grep -v '^ *+' conftest.er1 >conftest.err
  4853. rm -f conftest.er1
  4854. cat conftest.err >&5
  4855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4856. (exit $ac_status); } &&
  4857. { ac_try='test -z "$ac_fc_werror_flag"
  4858. || test ! -s conftest.err'
  4859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4860. (eval $ac_try) 2>&5
  4861. ac_status=$?
  4862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4863. (exit $ac_status); }; } &&
  4864. { ac_try='test -s conftest.$ac_objext'
  4865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4866. (eval $ac_try) 2>&5
  4867. ac_status=$?
  4868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4869. (exit $ac_status); }; }; then
  4870. ac_cv_prog_fc_g=yes
  4871. else
  4872. echo "$as_me: failed program was:" >&5
  4873. sed 's/^/| /' conftest.$ac_ext >&5
  4874.  
  4875. ac_cv_prog_fc_g=no
  4876. fi
  4877. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4878.  
  4879. fi
  4880. echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
  4881. echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
  4882. if test "$ac_test_FFLAGS" = set; then
  4883. FCFLAGS=$ac_save_FFLAGS
  4884. elif test $ac_cv_prog_fc_g = yes; then
  4885. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  4886. FCFLAGS="-g -O2"
  4887. else
  4888. FCFLAGS="-g"
  4889. fi
  4890. else
  4891. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  4892. FCFLAGS="-O2"
  4893. else
  4894. FCFLAGS=
  4895. fi
  4896. fi
  4897.  
  4898. ac_ext=c
  4899. ac_cpp='$CPP $CPPFLAGS'
  4900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4903.  
  4904. FCFLAGS="$FCFLAGS -Wall"
  4905.  
  4906. # For libtool versioning info, format is CURRENT:REVISION:AGE
  4907. libtool_VERSION=1:0:0
  4908.  
  4909.  
  4910. # Check header files.
  4911. ac_ext=c
  4912. ac_cpp='$CPP $CPPFLAGS'
  4913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4916. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4917. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4918. # On Suns, sometimes $CPP names a directory.
  4919. if test -n "$CPP" && test -d "$CPP"; then
  4920. CPP=
  4921. fi
  4922. if test -z "$CPP"; then
  4923. if test "${ac_cv_prog_CPP+set}" = set; then
  4924. echo $ECHO_N "(cached) $ECHO_C" >&6
  4925. else
  4926. # Double quotes because CPP needs to be expanded
  4927. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4928. do
  4929. ac_preproc_ok=false
  4930. for ac_c_preproc_warn_flag in '' yes
  4931. do
  4932. # Use a header file that comes with gcc, so configuring glibc
  4933. # with a fresh cross-compiler works.
  4934. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4935. # <limits.h> exists even on freestanding compilers.
  4936. # On the NeXT, cc -E runs the code through the compiler's parser,
  4937. # not just through cpp. "Syntax error" is here to catch this case.
  4938. cat >conftest.$ac_ext <<_ACEOF
  4939. /* confdefs.h. */
  4940. _ACEOF
  4941. cat confdefs.h >>conftest.$ac_ext
  4942. cat >>conftest.$ac_ext <<_ACEOF
  4943. /* end confdefs.h. */
  4944. #ifdef __STDC__
  4945. # include <limits.h>
  4946. #else
  4947. # include <assert.h>
  4948. #endif
  4949. Syntax error
  4950. _ACEOF
  4951. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4952. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4953. ac_status=$?
  4954. grep -v '^ *+' conftest.er1 >conftest.err
  4955. rm -f conftest.er1
  4956. cat conftest.err >&5
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); } >/dev/null; then
  4959. if test -s conftest.err; then
  4960. ac_cpp_err=$ac_c_preproc_warn_flag
  4961. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4962. else
  4963. ac_cpp_err=
  4964. fi
  4965. else
  4966. ac_cpp_err=yes
  4967. fi
  4968. if test -z "$ac_cpp_err"; then
  4969. :
  4970. else
  4971. echo "$as_me: failed program was:" >&5
  4972. sed 's/^/| /' conftest.$ac_ext >&5
  4973.  
  4974. # Broken: fails on valid input.
  4975. continue
  4976. fi
  4977. rm -f conftest.err conftest.$ac_ext
  4978.  
  4979. # OK, works on sane cases. Now check whether non-existent headers
  4980. # can be detected and how.
  4981. cat >conftest.$ac_ext <<_ACEOF
  4982. /* confdefs.h. */
  4983. _ACEOF
  4984. cat confdefs.h >>conftest.$ac_ext
  4985. cat >>conftest.$ac_ext <<_ACEOF
  4986. /* end confdefs.h. */
  4987. #include <ac_nonexistent.h>
  4988. _ACEOF
  4989. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4990. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4991. ac_status=$?
  4992. grep -v '^ *+' conftest.er1 >conftest.err
  4993. rm -f conftest.er1
  4994. cat conftest.err >&5
  4995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4996. (exit $ac_status); } >/dev/null; then
  4997. if test -s conftest.err; then
  4998. ac_cpp_err=$ac_c_preproc_warn_flag
  4999. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5000. else
  5001. ac_cpp_err=
  5002. fi
  5003. else
  5004. ac_cpp_err=yes
  5005. fi
  5006. if test -z "$ac_cpp_err"; then
  5007. # Broken: success on invalid input.
  5008. continue
  5009. else
  5010. echo "$as_me: failed program was:" >&5
  5011. sed 's/^/| /' conftest.$ac_ext >&5
  5012.  
  5013. # Passes both tests.
  5014. ac_preproc_ok=:
  5015. break
  5016. fi
  5017. rm -f conftest.err conftest.$ac_ext
  5018.  
  5019. done
  5020. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5021. rm -f conftest.err conftest.$ac_ext
  5022. if $ac_preproc_ok; then
  5023. break
  5024. fi
  5025.  
  5026. done
  5027. ac_cv_prog_CPP=$CPP
  5028.  
  5029. fi
  5030. CPP=$ac_cv_prog_CPP
  5031. else
  5032. ac_cv_prog_CPP=$CPP
  5033. fi
  5034. echo "$as_me:$LINENO: result: $CPP" >&5
  5035. echo "${ECHO_T}$CPP" >&6
  5036. ac_preproc_ok=false
  5037. for ac_c_preproc_warn_flag in '' yes
  5038. do
  5039. # Use a header file that comes with gcc, so configuring glibc
  5040. # with a fresh cross-compiler works.
  5041. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5042. # <limits.h> exists even on freestanding compilers.
  5043. # On the NeXT, cc -E runs the code through the compiler's parser,
  5044. # not just through cpp. "Syntax error" is here to catch this case.
  5045. cat >conftest.$ac_ext <<_ACEOF
  5046. /* confdefs.h. */
  5047. _ACEOF
  5048. cat confdefs.h >>conftest.$ac_ext
  5049. cat >>conftest.$ac_ext <<_ACEOF
  5050. /* end confdefs.h. */
  5051. #ifdef __STDC__
  5052. # include <limits.h>
  5053. #else
  5054. # include <assert.h>
  5055. #endif
  5056. Syntax error
  5057. _ACEOF
  5058. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5059. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5060. ac_status=$?
  5061. grep -v '^ *+' conftest.er1 >conftest.err
  5062. rm -f conftest.er1
  5063. cat conftest.err >&5
  5064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5065. (exit $ac_status); } >/dev/null; then
  5066. if test -s conftest.err; then
  5067. ac_cpp_err=$ac_c_preproc_warn_flag
  5068. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5069. else
  5070. ac_cpp_err=
  5071. fi
  5072. else
  5073. ac_cpp_err=yes
  5074. fi
  5075. if test -z "$ac_cpp_err"; then
  5076. :
  5077. else
  5078. echo "$as_me: failed program was:" >&5
  5079. sed 's/^/| /' conftest.$ac_ext >&5
  5080.  
  5081. # Broken: fails on valid input.
  5082. continue
  5083. fi
  5084. rm -f conftest.err conftest.$ac_ext
  5085.  
  5086. # OK, works on sane cases. Now check whether non-existent headers
  5087. # can be detected and how.
  5088. cat >conftest.$ac_ext <<_ACEOF
  5089. /* confdefs.h. */
  5090. _ACEOF
  5091. cat confdefs.h >>conftest.$ac_ext
  5092. cat >>conftest.$ac_ext <<_ACEOF
  5093. /* end confdefs.h. */
  5094. #include <ac_nonexistent.h>
  5095. _ACEOF
  5096. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5097. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5098. ac_status=$?
  5099. grep -v '^ *+' conftest.er1 >conftest.err
  5100. rm -f conftest.er1
  5101. cat conftest.err >&5
  5102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5103. (exit $ac_status); } >/dev/null; then
  5104. if test -s conftest.err; then
  5105. ac_cpp_err=$ac_c_preproc_warn_flag
  5106. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5107. else
  5108. ac_cpp_err=
  5109. fi
  5110. else
  5111. ac_cpp_err=yes
  5112. fi
  5113. if test -z "$ac_cpp_err"; then
  5114. # Broken: success on invalid input.
  5115. continue
  5116. else
  5117. echo "$as_me: failed program was:" >&5
  5118. sed 's/^/| /' conftest.$ac_ext >&5
  5119.  
  5120. # Passes both tests.
  5121. ac_preproc_ok=:
  5122. break
  5123. fi
  5124. rm -f conftest.err conftest.$ac_ext
  5125.  
  5126. done
  5127. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5128. rm -f conftest.err conftest.$ac_ext
  5129. if $ac_preproc_ok; then
  5130. :
  5131. else
  5132. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5133. See \`config.log' for more details." >&5
  5134. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5135. See \`config.log' for more details." >&2;}
  5136. { (exit 1); exit 1; }; }
  5137. fi
  5138.  
  5139. ac_ext=c
  5140. ac_cpp='$CPP $CPPFLAGS'
  5141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5144.  
  5145.  
  5146. echo "$as_me:$LINENO: checking for egrep" >&5
  5147. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  5148. if test "${ac_cv_prog_egrep+set}" = set; then
  5149. echo $ECHO_N "(cached) $ECHO_C" >&6
  5150. else
  5151. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5152. then ac_cv_prog_egrep='grep -E'
  5153. else ac_cv_prog_egrep='egrep'
  5154. fi
  5155. fi
  5156. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  5157. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  5158. EGREP=$ac_cv_prog_egrep
  5159.  
  5160.  
  5161. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5162. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5163. if test "${ac_cv_header_stdc+set}" = set; then
  5164. echo $ECHO_N "(cached) $ECHO_C" >&6
  5165. else
  5166. cat >conftest.$ac_ext <<_ACEOF
  5167. /* confdefs.h. */
  5168. _ACEOF
  5169. cat confdefs.h >>conftest.$ac_ext
  5170. cat >>conftest.$ac_ext <<_ACEOF
  5171. /* end confdefs.h. */
  5172. #include <stdlib.h>
  5173. #include <stdarg.h>
  5174. #include <string.h>
  5175. #include <float.h>
  5176.  
  5177. int
  5178. main ()
  5179. {
  5180.  
  5181. ;
  5182. return 0;
  5183. }
  5184. _ACEOF
  5185. rm -f conftest.$ac_objext
  5186. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5187. (eval $ac_compile) 2>conftest.er1
  5188. ac_status=$?
  5189. grep -v '^ *+' conftest.er1 >conftest.err
  5190. rm -f conftest.er1
  5191. cat conftest.err >&5
  5192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5193. (exit $ac_status); } &&
  5194. { ac_try='test -z "$ac_c_werror_flag"
  5195. || test ! -s conftest.err'
  5196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5197. (eval $ac_try) 2>&5
  5198. ac_status=$?
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); }; } &&
  5201. { ac_try='test -s conftest.$ac_objext'
  5202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5203. (eval $ac_try) 2>&5
  5204. ac_status=$?
  5205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5206. (exit $ac_status); }; }; then
  5207. ac_cv_header_stdc=yes
  5208. else
  5209. echo "$as_me: failed program was:" >&5
  5210. sed 's/^/| /' conftest.$ac_ext >&5
  5211.  
  5212. ac_cv_header_stdc=no
  5213. fi
  5214. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5215.  
  5216. if test $ac_cv_header_stdc = yes; then
  5217. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5218. cat >conftest.$ac_ext <<_ACEOF
  5219. /* confdefs.h. */
  5220. _ACEOF
  5221. cat confdefs.h >>conftest.$ac_ext
  5222. cat >>conftest.$ac_ext <<_ACEOF
  5223. /* end confdefs.h. */
  5224. #include <string.h>
  5225.  
  5226. _ACEOF
  5227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5228. $EGREP "memchr" >/dev/null 2>&1; then
  5229. :
  5230. else
  5231. ac_cv_header_stdc=no
  5232. fi
  5233. rm -f conftest*
  5234.  
  5235. fi
  5236.  
  5237. if test $ac_cv_header_stdc = yes; then
  5238. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5239. cat >conftest.$ac_ext <<_ACEOF
  5240. /* confdefs.h. */
  5241. _ACEOF
  5242. cat confdefs.h >>conftest.$ac_ext
  5243. cat >>conftest.$ac_ext <<_ACEOF
  5244. /* end confdefs.h. */
  5245. #include <stdlib.h>
  5246.  
  5247. _ACEOF
  5248. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5249. $EGREP "free" >/dev/null 2>&1; then
  5250. :
  5251. else
  5252. ac_cv_header_stdc=no
  5253. fi
  5254. rm -f conftest*
  5255.  
  5256. fi
  5257.  
  5258. if test $ac_cv_header_stdc = yes; then
  5259. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5260. if test "$cross_compiling" = yes; then
  5261. :
  5262. else
  5263. cat >conftest.$ac_ext <<_ACEOF
  5264. /* confdefs.h. */
  5265. _ACEOF
  5266. cat confdefs.h >>conftest.$ac_ext
  5267. cat >>conftest.$ac_ext <<_ACEOF
  5268. /* end confdefs.h. */
  5269. #include <ctype.h>
  5270. #if ((' ' & 0x0FF) == 0x020)
  5271. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5272. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5273. #else
  5274. # define ISLOWER(c) \
  5275. (('a' <= (c) && (c) <= 'i') \
  5276. || ('j' <= (c) && (c) <= 'r') \
  5277. || ('s' <= (c) && (c) <= 'z'))
  5278. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5279. #endif
  5280.  
  5281. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5282. int
  5283. main ()
  5284. {
  5285. int i;
  5286. for (i = 0; i < 256; i++)
  5287. if (XOR (islower (i), ISLOWER (i))
  5288. || toupper (i) != TOUPPER (i))
  5289. exit(2);
  5290. exit (0);
  5291. }
  5292. _ACEOF
  5293. rm -f conftest$ac_exeext
  5294. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5295. (eval $ac_link) 2>&5
  5296. ac_status=$?
  5297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5298. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5300. (eval $ac_try) 2>&5
  5301. ac_status=$?
  5302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5303. (exit $ac_status); }; }; then
  5304. :
  5305. else
  5306. echo "$as_me: program exited with status $ac_status" >&5
  5307. echo "$as_me: failed program was:" >&5
  5308. sed 's/^/| /' conftest.$ac_ext >&5
  5309.  
  5310. ( exit $ac_status )
  5311. ac_cv_header_stdc=no
  5312. fi
  5313. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5314. fi
  5315. fi
  5316. fi
  5317. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5318. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5319. if test $ac_cv_header_stdc = yes; then
  5320.  
  5321. cat >>confdefs.h <<\_ACEOF
  5322. #define STDC_HEADERS 1
  5323. _ACEOF
  5324.  
  5325. fi
  5326.  
  5327. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5328. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5329. if test "${ac_cv_header_time+set}" = set; then
  5330. echo $ECHO_N "(cached) $ECHO_C" >&6
  5331. else
  5332. cat >conftest.$ac_ext <<_ACEOF
  5333. /* confdefs.h. */
  5334. _ACEOF
  5335. cat confdefs.h >>conftest.$ac_ext
  5336. cat >>conftest.$ac_ext <<_ACEOF
  5337. /* end confdefs.h. */
  5338. #include <sys/types.h>
  5339. #include <sys/time.h>
  5340. #include <time.h>
  5341.  
  5342. int
  5343. main ()
  5344. {
  5345. if ((struct tm *) 0)
  5346. return 0;
  5347. ;
  5348. return 0;
  5349. }
  5350. _ACEOF
  5351. rm -f conftest.$ac_objext
  5352. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5353. (eval $ac_compile) 2>conftest.er1
  5354. ac_status=$?
  5355. grep -v '^ *+' conftest.er1 >conftest.err
  5356. rm -f conftest.er1
  5357. cat conftest.err >&5
  5358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); } &&
  5360. { ac_try='test -z "$ac_c_werror_flag"
  5361. || test ! -s conftest.err'
  5362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5363. (eval $ac_try) 2>&5
  5364. ac_status=$?
  5365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5366. (exit $ac_status); }; } &&
  5367. { ac_try='test -s conftest.$ac_objext'
  5368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5369. (eval $ac_try) 2>&5
  5370. ac_status=$?
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); }; }; then
  5373. ac_cv_header_time=yes
  5374. else
  5375. echo "$as_me: failed program was:" >&5
  5376. sed 's/^/| /' conftest.$ac_ext >&5
  5377.  
  5378. ac_cv_header_time=no
  5379. fi
  5380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5381. fi
  5382. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5383. echo "${ECHO_T}$ac_cv_header_time" >&6
  5384. if test $ac_cv_header_time = yes; then
  5385.  
  5386. cat >>confdefs.h <<\_ACEOF
  5387. #define TIME_WITH_SYS_TIME 1
  5388. _ACEOF
  5389.  
  5390. fi
  5391.  
  5392. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5393.  
  5394.  
  5395.  
  5396.  
  5397.  
  5398.  
  5399.  
  5400.  
  5401.  
  5402. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5403. inttypes.h stdint.h unistd.h
  5404. do
  5405. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5406. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5407. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5408. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5409. echo $ECHO_N "(cached) $ECHO_C" >&6
  5410. else
  5411. cat >conftest.$ac_ext <<_ACEOF
  5412. /* confdefs.h. */
  5413. _ACEOF
  5414. cat confdefs.h >>conftest.$ac_ext
  5415. cat >>conftest.$ac_ext <<_ACEOF
  5416. /* end confdefs.h. */
  5417. $ac_includes_default
  5418.  
  5419. #include <$ac_header>
  5420. _ACEOF
  5421. rm -f conftest.$ac_objext
  5422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5423. (eval $ac_compile) 2>conftest.er1
  5424. ac_status=$?
  5425. grep -v '^ *+' conftest.er1 >conftest.err
  5426. rm -f conftest.er1
  5427. cat conftest.err >&5
  5428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5429. (exit $ac_status); } &&
  5430. { ac_try='test -z "$ac_c_werror_flag"
  5431. || test ! -s conftest.err'
  5432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5433. (eval $ac_try) 2>&5
  5434. ac_status=$?
  5435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5436. (exit $ac_status); }; } &&
  5437. { ac_try='test -s conftest.$ac_objext'
  5438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5439. (eval $ac_try) 2>&5
  5440. ac_status=$?
  5441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5442. (exit $ac_status); }; }; then
  5443. eval "$as_ac_Header=yes"
  5444. else
  5445. echo "$as_me: failed program was:" >&5
  5446. sed 's/^/| /' conftest.$ac_ext >&5
  5447.  
  5448. eval "$as_ac_Header=no"
  5449. fi
  5450. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5451. fi
  5452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5454. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5455. cat >>confdefs.h <<_ACEOF
  5456. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5457. _ACEOF
  5458.  
  5459. fi
  5460.  
  5461. done
  5462.  
  5463.  
  5464.  
  5465.  
  5466.  
  5467.  
  5468. for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
  5469. do
  5470. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5471. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5472. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5473. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5474. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5475. echo $ECHO_N "(cached) $ECHO_C" >&6
  5476. fi
  5477. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5478. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5479. else
  5480. # Is the header compilable?
  5481. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5482. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5483. cat >conftest.$ac_ext <<_ACEOF
  5484. /* confdefs.h. */
  5485. _ACEOF
  5486. cat confdefs.h >>conftest.$ac_ext
  5487. cat >>conftest.$ac_ext <<_ACEOF
  5488. /* end confdefs.h. */
  5489. $ac_includes_default
  5490. #include <$ac_header>
  5491. _ACEOF
  5492. rm -f conftest.$ac_objext
  5493. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5494. (eval $ac_compile) 2>conftest.er1
  5495. ac_status=$?
  5496. grep -v '^ *+' conftest.er1 >conftest.err
  5497. rm -f conftest.er1
  5498. cat conftest.err >&5
  5499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5500. (exit $ac_status); } &&
  5501. { ac_try='test -z "$ac_c_werror_flag"
  5502. || test ! -s conftest.err'
  5503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5504. (eval $ac_try) 2>&5
  5505. ac_status=$?
  5506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5507. (exit $ac_status); }; } &&
  5508. { ac_try='test -s conftest.$ac_objext'
  5509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5510. (eval $ac_try) 2>&5
  5511. ac_status=$?
  5512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5513. (exit $ac_status); }; }; then
  5514. ac_header_compiler=yes
  5515. else
  5516. echo "$as_me: failed program was:" >&5
  5517. sed 's/^/| /' conftest.$ac_ext >&5
  5518.  
  5519. ac_header_compiler=no
  5520. fi
  5521. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5522. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5523. echo "${ECHO_T}$ac_header_compiler" >&6
  5524.  
  5525. # Is the header present?
  5526. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5527. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5528. cat >conftest.$ac_ext <<_ACEOF
  5529. /* confdefs.h. */
  5530. _ACEOF
  5531. cat confdefs.h >>conftest.$ac_ext
  5532. cat >>conftest.$ac_ext <<_ACEOF
  5533. /* end confdefs.h. */
  5534. #include <$ac_header>
  5535. _ACEOF
  5536. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5537. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5538. ac_status=$?
  5539. grep -v '^ *+' conftest.er1 >conftest.err
  5540. rm -f conftest.er1
  5541. cat conftest.err >&5
  5542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5543. (exit $ac_status); } >/dev/null; then
  5544. if test -s conftest.err; then
  5545. ac_cpp_err=$ac_c_preproc_warn_flag
  5546. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5547. else
  5548. ac_cpp_err=
  5549. fi
  5550. else
  5551. ac_cpp_err=yes
  5552. fi
  5553. if test -z "$ac_cpp_err"; then
  5554. ac_header_preproc=yes
  5555. else
  5556. echo "$as_me: failed program was:" >&5
  5557. sed 's/^/| /' conftest.$ac_ext >&5
  5558.  
  5559. ac_header_preproc=no
  5560. fi
  5561. rm -f conftest.err conftest.$ac_ext
  5562. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5563. echo "${ECHO_T}$ac_header_preproc" >&6
  5564.  
  5565. # So? What about this header?
  5566. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5567. yes:no: )
  5568. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5569. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5570. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5571. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5572. ac_header_preproc=yes
  5573. ;;
  5574. no:yes:* )
  5575. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5576. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5577. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5578. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5579. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5580. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5581. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5582. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5583. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5584. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5585. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5586. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5587. (
  5588. cat <<\_ASBOX
  5589. ## ----------------------------------------------------- ##
  5590. ## Report this to the GNU OpenMP Runtime Library lists. ##
  5591. ## ----------------------------------------------------- ##
  5592. _ASBOX
  5593. ) |
  5594. sed "s/^/$as_me: WARNING: /" >&2
  5595. ;;
  5596. esac
  5597. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5598. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5599. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5600. echo $ECHO_N "(cached) $ECHO_C" >&6
  5601. else
  5602. eval "$as_ac_Header=\$ac_header_preproc"
  5603. fi
  5604. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5605. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5606.  
  5607. fi
  5608. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5609. cat >>confdefs.h <<_ACEOF
  5610. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5611. _ACEOF
  5612.  
  5613. fi
  5614.  
  5615. done
  5616.  
  5617.  
  5618.  
  5619.  
  5620. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  5621.  
  5622. acx_cv_header_stdint=stddef.h
  5623. acx_cv_header_stdint_kind="(already complete)"
  5624. for i in stdint.h $inttype_headers; do
  5625. unset ac_cv_type_uintptr_t
  5626. unset ac_cv_type_uintmax_t
  5627. unset ac_cv_type_int_least32_t
  5628. unset ac_cv_type_int_fast32_t
  5629. unset ac_cv_type_uint64_t
  5630. echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
  5631. echo "$as_me:$LINENO: checking for uintmax_t" >&5
  5632. echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
  5633. if test "${ac_cv_type_uintmax_t+set}" = set; then
  5634. echo $ECHO_N "(cached) $ECHO_C" >&6
  5635. else
  5636. cat >conftest.$ac_ext <<_ACEOF
  5637. /* confdefs.h. */
  5638. _ACEOF
  5639. cat confdefs.h >>conftest.$ac_ext
  5640. cat >>conftest.$ac_ext <<_ACEOF
  5641. /* end confdefs.h. */
  5642. #include <sys/types.h>
  5643. #include <$i>
  5644.  
  5645. int
  5646. main ()
  5647. {
  5648. if ((uintmax_t *) 0)
  5649. return 0;
  5650. if (sizeof (uintmax_t))
  5651. return 0;
  5652. ;
  5653. return 0;
  5654. }
  5655. _ACEOF
  5656. rm -f conftest.$ac_objext
  5657. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5658. (eval $ac_compile) 2>conftest.er1
  5659. ac_status=$?
  5660. grep -v '^ *+' conftest.er1 >conftest.err
  5661. rm -f conftest.er1
  5662. cat conftest.err >&5
  5663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5664. (exit $ac_status); } &&
  5665. { ac_try='test -z "$ac_c_werror_flag"
  5666. || test ! -s conftest.err'
  5667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5668. (eval $ac_try) 2>&5
  5669. ac_status=$?
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); }; } &&
  5672. { ac_try='test -s conftest.$ac_objext'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; }; then
  5678. ac_cv_type_uintmax_t=yes
  5679. else
  5680. echo "$as_me: failed program was:" >&5
  5681. sed 's/^/| /' conftest.$ac_ext >&5
  5682.  
  5683. ac_cv_type_uintmax_t=no
  5684. fi
  5685. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5686. fi
  5687. echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
  5688. echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
  5689. if test $ac_cv_type_uintmax_t = yes; then
  5690. acx_cv_header_stdint=$i
  5691. else
  5692. continue
  5693. fi
  5694.  
  5695. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  5696. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  5697. if test "${ac_cv_type_uintptr_t+set}" = set; then
  5698. echo $ECHO_N "(cached) $ECHO_C" >&6
  5699. else
  5700. cat >conftest.$ac_ext <<_ACEOF
  5701. /* confdefs.h. */
  5702. _ACEOF
  5703. cat confdefs.h >>conftest.$ac_ext
  5704. cat >>conftest.$ac_ext <<_ACEOF
  5705. /* end confdefs.h. */
  5706. #include <sys/types.h>
  5707. #include <$i>
  5708.  
  5709. int
  5710. main ()
  5711. {
  5712. if ((uintptr_t *) 0)
  5713. return 0;
  5714. if (sizeof (uintptr_t))
  5715. return 0;
  5716. ;
  5717. return 0;
  5718. }
  5719. _ACEOF
  5720. rm -f conftest.$ac_objext
  5721. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5722. (eval $ac_compile) 2>conftest.er1
  5723. ac_status=$?
  5724. grep -v '^ *+' conftest.er1 >conftest.err
  5725. rm -f conftest.er1
  5726. cat conftest.err >&5
  5727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5728. (exit $ac_status); } &&
  5729. { ac_try='test -z "$ac_c_werror_flag"
  5730. || test ! -s conftest.err'
  5731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5732. (eval $ac_try) 2>&5
  5733. ac_status=$?
  5734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5735. (exit $ac_status); }; } &&
  5736. { ac_try='test -s conftest.$ac_objext'
  5737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5738. (eval $ac_try) 2>&5
  5739. ac_status=$?
  5740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5741. (exit $ac_status); }; }; then
  5742. ac_cv_type_uintptr_t=yes
  5743. else
  5744. echo "$as_me: failed program was:" >&5
  5745. sed 's/^/| /' conftest.$ac_ext >&5
  5746.  
  5747. ac_cv_type_uintptr_t=no
  5748. fi
  5749. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5750. fi
  5751. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  5752. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  5753. if test $ac_cv_type_uintptr_t = yes; then
  5754. :
  5755. else
  5756. acx_cv_header_stdint_kind="(mostly complete)"
  5757. fi
  5758.  
  5759. echo "$as_me:$LINENO: checking for int_least32_t" >&5
  5760. echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
  5761. if test "${ac_cv_type_int_least32_t+set}" = set; then
  5762. echo $ECHO_N "(cached) $ECHO_C" >&6
  5763. else
  5764. cat >conftest.$ac_ext <<_ACEOF
  5765. /* confdefs.h. */
  5766. _ACEOF
  5767. cat confdefs.h >>conftest.$ac_ext
  5768. cat >>conftest.$ac_ext <<_ACEOF
  5769. /* end confdefs.h. */
  5770. #include <sys/types.h>
  5771. #include <$i>
  5772.  
  5773. int
  5774. main ()
  5775. {
  5776. if ((int_least32_t *) 0)
  5777. return 0;
  5778. if (sizeof (int_least32_t))
  5779. return 0;
  5780. ;
  5781. return 0;
  5782. }
  5783. _ACEOF
  5784. rm -f conftest.$ac_objext
  5785. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5786. (eval $ac_compile) 2>conftest.er1
  5787. ac_status=$?
  5788. grep -v '^ *+' conftest.er1 >conftest.err
  5789. rm -f conftest.er1
  5790. cat conftest.err >&5
  5791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5792. (exit $ac_status); } &&
  5793. { ac_try='test -z "$ac_c_werror_flag"
  5794. || test ! -s conftest.err'
  5795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5796. (eval $ac_try) 2>&5
  5797. ac_status=$?
  5798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5799. (exit $ac_status); }; } &&
  5800. { ac_try='test -s conftest.$ac_objext'
  5801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5802. (eval $ac_try) 2>&5
  5803. ac_status=$?
  5804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5805. (exit $ac_status); }; }; then
  5806. ac_cv_type_int_least32_t=yes
  5807. else
  5808. echo "$as_me: failed program was:" >&5
  5809. sed 's/^/| /' conftest.$ac_ext >&5
  5810.  
  5811. ac_cv_type_int_least32_t=no
  5812. fi
  5813. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5814. fi
  5815. echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
  5816. echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
  5817. if test $ac_cv_type_int_least32_t = yes; then
  5818. :
  5819. else
  5820. acx_cv_header_stdint_kind="(mostly complete)"
  5821. fi
  5822.  
  5823. echo "$as_me:$LINENO: checking for int_fast32_t" >&5
  5824. echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
  5825. if test "${ac_cv_type_int_fast32_t+set}" = set; then
  5826. echo $ECHO_N "(cached) $ECHO_C" >&6
  5827. else
  5828. cat >conftest.$ac_ext <<_ACEOF
  5829. /* confdefs.h. */
  5830. _ACEOF
  5831. cat confdefs.h >>conftest.$ac_ext
  5832. cat >>conftest.$ac_ext <<_ACEOF
  5833. /* end confdefs.h. */
  5834. #include <sys/types.h>
  5835. #include <$i>
  5836.  
  5837. int
  5838. main ()
  5839. {
  5840. if ((int_fast32_t *) 0)
  5841. return 0;
  5842. if (sizeof (int_fast32_t))
  5843. return 0;
  5844. ;
  5845. return 0;
  5846. }
  5847. _ACEOF
  5848. rm -f conftest.$ac_objext
  5849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5850. (eval $ac_compile) 2>conftest.er1
  5851. ac_status=$?
  5852. grep -v '^ *+' conftest.er1 >conftest.err
  5853. rm -f conftest.er1
  5854. cat conftest.err >&5
  5855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5856. (exit $ac_status); } &&
  5857. { ac_try='test -z "$ac_c_werror_flag"
  5858. || test ! -s conftest.err'
  5859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5860. (eval $ac_try) 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; } &&
  5864. { ac_try='test -s conftest.$ac_objext'
  5865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5866. (eval $ac_try) 2>&5
  5867. ac_status=$?
  5868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5869. (exit $ac_status); }; }; then
  5870. ac_cv_type_int_fast32_t=yes
  5871. else
  5872. echo "$as_me: failed program was:" >&5
  5873. sed 's/^/| /' conftest.$ac_ext >&5
  5874.  
  5875. ac_cv_type_int_fast32_t=no
  5876. fi
  5877. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5878. fi
  5879. echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
  5880. echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
  5881. if test $ac_cv_type_int_fast32_t = yes; then
  5882. :
  5883. else
  5884. acx_cv_header_stdint_kind="(mostly complete)"
  5885. fi
  5886.  
  5887. echo "$as_me:$LINENO: checking for uint64_t" >&5
  5888. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  5889. if test "${ac_cv_type_uint64_t+set}" = set; then
  5890. echo $ECHO_N "(cached) $ECHO_C" >&6
  5891. else
  5892. cat >conftest.$ac_ext <<_ACEOF
  5893. /* confdefs.h. */
  5894. _ACEOF
  5895. cat confdefs.h >>conftest.$ac_ext
  5896. cat >>conftest.$ac_ext <<_ACEOF
  5897. /* end confdefs.h. */
  5898. #include <sys/types.h>
  5899. #include <$i>
  5900.  
  5901. int
  5902. main ()
  5903. {
  5904. if ((uint64_t *) 0)
  5905. return 0;
  5906. if (sizeof (uint64_t))
  5907. return 0;
  5908. ;
  5909. return 0;
  5910. }
  5911. _ACEOF
  5912. rm -f conftest.$ac_objext
  5913. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5914. (eval $ac_compile) 2>conftest.er1
  5915. ac_status=$?
  5916. grep -v '^ *+' conftest.er1 >conftest.err
  5917. rm -f conftest.er1
  5918. cat conftest.err >&5
  5919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5920. (exit $ac_status); } &&
  5921. { ac_try='test -z "$ac_c_werror_flag"
  5922. || test ! -s conftest.err'
  5923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5924. (eval $ac_try) 2>&5
  5925. ac_status=$?
  5926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5927. (exit $ac_status); }; } &&
  5928. { ac_try='test -s conftest.$ac_objext'
  5929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5930. (eval $ac_try) 2>&5
  5931. ac_status=$?
  5932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. (exit $ac_status); }; }; then
  5934. ac_cv_type_uint64_t=yes
  5935. else
  5936. echo "$as_me: failed program was:" >&5
  5937. sed 's/^/| /' conftest.$ac_ext >&5
  5938.  
  5939. ac_cv_type_uint64_t=no
  5940. fi
  5941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5942. fi
  5943. echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  5944. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  5945. if test $ac_cv_type_uint64_t = yes; then
  5946. :
  5947. else
  5948. acx_cv_header_stdint_kind="(lacks uint64_t)"
  5949. fi
  5950.  
  5951. break
  5952. done
  5953. if test "$acx_cv_header_stdint" = stddef.h; then
  5954. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  5955. for i in stdint.h $inttype_headers; do
  5956. unset ac_cv_type_uintptr_t
  5957. unset ac_cv_type_uint32_t
  5958. unset ac_cv_type_uint64_t
  5959. echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
  5960. echo "$as_me:$LINENO: checking for uint32_t" >&5
  5961. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  5962. if test "${ac_cv_type_uint32_t+set}" = set; then
  5963. echo $ECHO_N "(cached) $ECHO_C" >&6
  5964. else
  5965. cat >conftest.$ac_ext <<_ACEOF
  5966. /* confdefs.h. */
  5967. _ACEOF
  5968. cat confdefs.h >>conftest.$ac_ext
  5969. cat >>conftest.$ac_ext <<_ACEOF
  5970. /* end confdefs.h. */
  5971. #include <sys/types.h>
  5972. #include <$i>
  5973.  
  5974. int
  5975. main ()
  5976. {
  5977. if ((uint32_t *) 0)
  5978. return 0;
  5979. if (sizeof (uint32_t))
  5980. return 0;
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. rm -f conftest.$ac_objext
  5986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5987. (eval $ac_compile) 2>conftest.er1
  5988. ac_status=$?
  5989. grep -v '^ *+' conftest.er1 >conftest.err
  5990. rm -f conftest.er1
  5991. cat conftest.err >&5
  5992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5993. (exit $ac_status); } &&
  5994. { ac_try='test -z "$ac_c_werror_flag"
  5995. || test ! -s conftest.err'
  5996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5997. (eval $ac_try) 2>&5
  5998. ac_status=$?
  5999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000. (exit $ac_status); }; } &&
  6001. { ac_try='test -s conftest.$ac_objext'
  6002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6003. (eval $ac_try) 2>&5
  6004. ac_status=$?
  6005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6006. (exit $ac_status); }; }; then
  6007. ac_cv_type_uint32_t=yes
  6008. else
  6009. echo "$as_me: failed program was:" >&5
  6010. sed 's/^/| /' conftest.$ac_ext >&5
  6011.  
  6012. ac_cv_type_uint32_t=no
  6013. fi
  6014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6015. fi
  6016. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  6017. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  6018. if test $ac_cv_type_uint32_t = yes; then
  6019. acx_cv_header_stdint=$i
  6020. else
  6021. continue
  6022. fi
  6023.  
  6024. echo "$as_me:$LINENO: checking for uint64_t" >&5
  6025. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
  6026. if test "${ac_cv_type_uint64_t+set}" = set; then
  6027. echo $ECHO_N "(cached) $ECHO_C" >&6
  6028. else
  6029. cat >conftest.$ac_ext <<_ACEOF
  6030. /* confdefs.h. */
  6031. _ACEOF
  6032. cat confdefs.h >>conftest.$ac_ext
  6033. cat >>conftest.$ac_ext <<_ACEOF
  6034. /* end confdefs.h. */
  6035. #include <sys/types.h>
  6036. #include <$i>
  6037.  
  6038. int
  6039. main ()
  6040. {
  6041. if ((uint64_t *) 0)
  6042. return 0;
  6043. if (sizeof (uint64_t))
  6044. return 0;
  6045. ;
  6046. return 0;
  6047. }
  6048. _ACEOF
  6049. rm -f conftest.$ac_objext
  6050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6051. (eval $ac_compile) 2>conftest.er1
  6052. ac_status=$?
  6053. grep -v '^ *+' conftest.er1 >conftest.err
  6054. rm -f conftest.er1
  6055. cat conftest.err >&5
  6056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6057. (exit $ac_status); } &&
  6058. { ac_try='test -z "$ac_c_werror_flag"
  6059. || test ! -s conftest.err'
  6060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6061. (eval $ac_try) 2>&5
  6062. ac_status=$?
  6063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6064. (exit $ac_status); }; } &&
  6065. { ac_try='test -s conftest.$ac_objext'
  6066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6067. (eval $ac_try) 2>&5
  6068. ac_status=$?
  6069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. (exit $ac_status); }; }; then
  6071. ac_cv_type_uint64_t=yes
  6072. else
  6073. echo "$as_me: failed program was:" >&5
  6074. sed 's/^/| /' conftest.$ac_ext >&5
  6075.  
  6076. ac_cv_type_uint64_t=no
  6077. fi
  6078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6079. fi
  6080. echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  6081. echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
  6082.  
  6083. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  6084. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  6085. if test "${ac_cv_type_uintptr_t+set}" = set; then
  6086. echo $ECHO_N "(cached) $ECHO_C" >&6
  6087. else
  6088. cat >conftest.$ac_ext <<_ACEOF
  6089. /* confdefs.h. */
  6090. _ACEOF
  6091. cat confdefs.h >>conftest.$ac_ext
  6092. cat >>conftest.$ac_ext <<_ACEOF
  6093. /* end confdefs.h. */
  6094. #include <sys/types.h>
  6095. #include <$i>
  6096.  
  6097. int
  6098. main ()
  6099. {
  6100. if ((uintptr_t *) 0)
  6101. return 0;
  6102. if (sizeof (uintptr_t))
  6103. return 0;
  6104. ;
  6105. return 0;
  6106. }
  6107. _ACEOF
  6108. rm -f conftest.$ac_objext
  6109. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6110. (eval $ac_compile) 2>conftest.er1
  6111. ac_status=$?
  6112. grep -v '^ *+' conftest.er1 >conftest.err
  6113. rm -f conftest.er1
  6114. cat conftest.err >&5
  6115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6116. (exit $ac_status); } &&
  6117. { ac_try='test -z "$ac_c_werror_flag"
  6118. || test ! -s conftest.err'
  6119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6120. (eval $ac_try) 2>&5
  6121. ac_status=$?
  6122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6123. (exit $ac_status); }; } &&
  6124. { ac_try='test -s conftest.$ac_objext'
  6125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6126. (eval $ac_try) 2>&5
  6127. ac_status=$?
  6128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6129. (exit $ac_status); }; }; then
  6130. ac_cv_type_uintptr_t=yes
  6131. else
  6132. echo "$as_me: failed program was:" >&5
  6133. sed 's/^/| /' conftest.$ac_ext >&5
  6134.  
  6135. ac_cv_type_uintptr_t=no
  6136. fi
  6137. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6138. fi
  6139. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  6140. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  6141.  
  6142. break
  6143. done
  6144. fi
  6145. if test "$acx_cv_header_stdint" = stddef.h; then
  6146. acx_cv_header_stdint_kind="(u_intXX_t style)"
  6147. for i in sys/types.h $inttype_headers; do
  6148. unset ac_cv_type_u_int32_t
  6149. unset ac_cv_type_u_int64_t
  6150. echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
  6151. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  6152. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  6153. if test "${ac_cv_type_u_int32_t+set}" = set; then
  6154. echo $ECHO_N "(cached) $ECHO_C" >&6
  6155. else
  6156. cat >conftest.$ac_ext <<_ACEOF
  6157. /* confdefs.h. */
  6158. _ACEOF
  6159. cat confdefs.h >>conftest.$ac_ext
  6160. cat >>conftest.$ac_ext <<_ACEOF
  6161. /* end confdefs.h. */
  6162. #include <sys/types.h>
  6163. #include <$i>
  6164.  
  6165. int
  6166. main ()
  6167. {
  6168. if ((u_int32_t *) 0)
  6169. return 0;
  6170. if (sizeof (u_int32_t))
  6171. return 0;
  6172. ;
  6173. return 0;
  6174. }
  6175. _ACEOF
  6176. rm -f conftest.$ac_objext
  6177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6178. (eval $ac_compile) 2>conftest.er1
  6179. ac_status=$?
  6180. grep -v '^ *+' conftest.er1 >conftest.err
  6181. rm -f conftest.er1
  6182. cat conftest.err >&5
  6183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184. (exit $ac_status); } &&
  6185. { ac_try='test -z "$ac_c_werror_flag"
  6186. || test ! -s conftest.err'
  6187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6188. (eval $ac_try) 2>&5
  6189. ac_status=$?
  6190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. (exit $ac_status); }; } &&
  6192. { ac_try='test -s conftest.$ac_objext'
  6193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6194. (eval $ac_try) 2>&5
  6195. ac_status=$?
  6196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6197. (exit $ac_status); }; }; then
  6198. ac_cv_type_u_int32_t=yes
  6199. else
  6200. echo "$as_me: failed program was:" >&5
  6201. sed 's/^/| /' conftest.$ac_ext >&5
  6202.  
  6203. ac_cv_type_u_int32_t=no
  6204. fi
  6205. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6206. fi
  6207. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  6208. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  6209. if test $ac_cv_type_u_int32_t = yes; then
  6210. acx_cv_header_stdint=$i
  6211. else
  6212. continue
  6213. fi
  6214.  
  6215. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  6216. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  6217. if test "${ac_cv_type_u_int64_t+set}" = set; then
  6218. echo $ECHO_N "(cached) $ECHO_C" >&6
  6219. else
  6220. cat >conftest.$ac_ext <<_ACEOF
  6221. /* confdefs.h. */
  6222. _ACEOF
  6223. cat confdefs.h >>conftest.$ac_ext
  6224. cat >>conftest.$ac_ext <<_ACEOF
  6225. /* end confdefs.h. */
  6226. #include <sys/types.h>
  6227. #include <$i>
  6228.  
  6229. int
  6230. main ()
  6231. {
  6232. if ((u_int64_t *) 0)
  6233. return 0;
  6234. if (sizeof (u_int64_t))
  6235. return 0;
  6236. ;
  6237. return 0;
  6238. }
  6239. _ACEOF
  6240. rm -f conftest.$ac_objext
  6241. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6242. (eval $ac_compile) 2>conftest.er1
  6243. ac_status=$?
  6244. grep -v '^ *+' conftest.er1 >conftest.err
  6245. rm -f conftest.er1
  6246. cat conftest.err >&5
  6247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6248. (exit $ac_status); } &&
  6249. { ac_try='test -z "$ac_c_werror_flag"
  6250. || test ! -s conftest.err'
  6251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6252. (eval $ac_try) 2>&5
  6253. ac_status=$?
  6254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6255. (exit $ac_status); }; } &&
  6256. { ac_try='test -s conftest.$ac_objext'
  6257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6258. (eval $ac_try) 2>&5
  6259. ac_status=$?
  6260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6261. (exit $ac_status); }; }; then
  6262. ac_cv_type_u_int64_t=yes
  6263. else
  6264. echo "$as_me: failed program was:" >&5
  6265. sed 's/^/| /' conftest.$ac_ext >&5
  6266.  
  6267. ac_cv_type_u_int64_t=no
  6268. fi
  6269. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6270. fi
  6271. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  6272. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  6273.  
  6274. break
  6275. done
  6276. fi
  6277. if test "$acx_cv_header_stdint" = stddef.h; then
  6278. acx_cv_header_stdint_kind="(using manual detection)"
  6279. fi
  6280.  
  6281. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  6282. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  6283. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  6284. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  6285. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  6286.  
  6287. # ----------------- Summarize what we found so far
  6288.  
  6289. echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
  6290. echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
  6291.  
  6292. case `$as_basename gstdint.h ||
  6293. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  6294. Xgstdint.h : 'X\(//\)$' \| \
  6295. Xgstdint.h : 'X\(/\)$' \| \
  6296. . : '\(.\)' 2>/dev/null ||
  6297. echo X/gstdint.h |
  6298. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  6299. /^X\/\(\/\/\)$/{ s//\1/; q; }
  6300. /^X\/\(\/\).*/{ s//\1/; q; }
  6301. s/.*/./; q'` in
  6302. stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
  6303. echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  6304. inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
  6305. echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  6306. *) ;;
  6307. esac
  6308.  
  6309. echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  6310. echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
  6311.  
  6312. # ----------------- done included file, check C basic types --------
  6313.  
  6314. # Lacking an uintptr_t? Test size of void *
  6315. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  6316. stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
  6317. echo $ECHO_N "checking for void *... $ECHO_C" >&6
  6318. if test "${ac_cv_type_void_p+set}" = set; then
  6319. echo $ECHO_N "(cached) $ECHO_C" >&6
  6320. else
  6321. cat >conftest.$ac_ext <<_ACEOF
  6322. /* confdefs.h. */
  6323. _ACEOF
  6324. cat confdefs.h >>conftest.$ac_ext
  6325. cat >>conftest.$ac_ext <<_ACEOF
  6326. /* end confdefs.h. */
  6327. $ac_includes_default
  6328. int
  6329. main ()
  6330. {
  6331. if ((void * *) 0)
  6332. return 0;
  6333. if (sizeof (void *))
  6334. return 0;
  6335. ;
  6336. return 0;
  6337. }
  6338. _ACEOF
  6339. rm -f conftest.$ac_objext
  6340. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6341. (eval $ac_compile) 2>conftest.er1
  6342. ac_status=$?
  6343. grep -v '^ *+' conftest.er1 >conftest.err
  6344. rm -f conftest.er1
  6345. cat conftest.err >&5
  6346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6347. (exit $ac_status); } &&
  6348. { ac_try='test -z "$ac_c_werror_flag"
  6349. || test ! -s conftest.err'
  6350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6351. (eval $ac_try) 2>&5
  6352. ac_status=$?
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); }; } &&
  6355. { ac_try='test -s conftest.$ac_objext'
  6356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6357. (eval $ac_try) 2>&5
  6358. ac_status=$?
  6359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); }; }; then
  6361. ac_cv_type_void_p=yes
  6362. else
  6363. echo "$as_me: failed program was:" >&5
  6364. sed 's/^/| /' conftest.$ac_ext >&5
  6365.  
  6366. ac_cv_type_void_p=no
  6367. fi
  6368. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6369. fi
  6370. echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
  6371. echo "${ECHO_T}$ac_cv_type_void_p" >&6
  6372.  
  6373. echo "$as_me:$LINENO: checking size of void *" >&5
  6374. echo $ECHO_N "checking size of void *... $ECHO_C" >&6
  6375. if test "${ac_cv_sizeof_void_p+set}" = set; then
  6376. echo $ECHO_N "(cached) $ECHO_C" >&6
  6377. else
  6378. if test "$ac_cv_type_void_p" = yes; then
  6379. # The cast to unsigned long works around a bug in the HP C Compiler
  6380. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6381. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6382. # This bug is HP SR number 8606223364.
  6383. if test "$cross_compiling" = yes; then
  6384. # Depending upon the size, compute the lo and hi bounds.
  6385. cat >conftest.$ac_ext <<_ACEOF
  6386. /* confdefs.h. */
  6387. _ACEOF
  6388. cat confdefs.h >>conftest.$ac_ext
  6389. cat >>conftest.$ac_ext <<_ACEOF
  6390. /* end confdefs.h. */
  6391. $ac_includes_default
  6392. int
  6393. main ()
  6394. {
  6395. static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
  6396. test_array [0] = 0
  6397.  
  6398. ;
  6399. return 0;
  6400. }
  6401. _ACEOF
  6402. rm -f conftest.$ac_objext
  6403. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6404. (eval $ac_compile) 2>conftest.er1
  6405. ac_status=$?
  6406. grep -v '^ *+' conftest.er1 >conftest.err
  6407. rm -f conftest.er1
  6408. cat conftest.err >&5
  6409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6410. (exit $ac_status); } &&
  6411. { ac_try='test -z "$ac_c_werror_flag"
  6412. || test ! -s conftest.err'
  6413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6414. (eval $ac_try) 2>&5
  6415. ac_status=$?
  6416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6417. (exit $ac_status); }; } &&
  6418. { ac_try='test -s conftest.$ac_objext'
  6419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6420. (eval $ac_try) 2>&5
  6421. ac_status=$?
  6422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6423. (exit $ac_status); }; }; then
  6424. ac_lo=0 ac_mid=0
  6425. while :; do
  6426. cat >conftest.$ac_ext <<_ACEOF
  6427. /* confdefs.h. */
  6428. _ACEOF
  6429. cat confdefs.h >>conftest.$ac_ext
  6430. cat >>conftest.$ac_ext <<_ACEOF
  6431. /* end confdefs.h. */
  6432. $ac_includes_default
  6433. int
  6434. main ()
  6435. {
  6436. static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
  6437. test_array [0] = 0
  6438.  
  6439. ;
  6440. return 0;
  6441. }
  6442. _ACEOF
  6443. rm -f conftest.$ac_objext
  6444. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6445. (eval $ac_compile) 2>conftest.er1
  6446. ac_status=$?
  6447. grep -v '^ *+' conftest.er1 >conftest.err
  6448. rm -f conftest.er1
  6449. cat conftest.err >&5
  6450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6451. (exit $ac_status); } &&
  6452. { ac_try='test -z "$ac_c_werror_flag"
  6453. || test ! -s conftest.err'
  6454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6455. (eval $ac_try) 2>&5
  6456. ac_status=$?
  6457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6458. (exit $ac_status); }; } &&
  6459. { ac_try='test -s conftest.$ac_objext'
  6460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6461. (eval $ac_try) 2>&5
  6462. ac_status=$?
  6463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6464. (exit $ac_status); }; }; then
  6465. ac_hi=$ac_mid; break
  6466. else
  6467. echo "$as_me: failed program was:" >&5
  6468. sed 's/^/| /' conftest.$ac_ext >&5
  6469.  
  6470. ac_lo=`expr $ac_mid + 1`
  6471. if test $ac_lo -le $ac_mid; then
  6472. ac_lo= ac_hi=
  6473. break
  6474. fi
  6475. ac_mid=`expr 2 '*' $ac_mid + 1`
  6476. fi
  6477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6478. done
  6479. else
  6480. echo "$as_me: failed program was:" >&5
  6481. sed 's/^/| /' conftest.$ac_ext >&5
  6482.  
  6483. cat >conftest.$ac_ext <<_ACEOF
  6484. /* confdefs.h. */
  6485. _ACEOF
  6486. cat confdefs.h >>conftest.$ac_ext
  6487. cat >>conftest.$ac_ext <<_ACEOF
  6488. /* end confdefs.h. */
  6489. $ac_includes_default
  6490. int
  6491. main ()
  6492. {
  6493. static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
  6494. test_array [0] = 0
  6495.  
  6496. ;
  6497. return 0;
  6498. }
  6499. _ACEOF
  6500. rm -f conftest.$ac_objext
  6501. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6502. (eval $ac_compile) 2>conftest.er1
  6503. ac_status=$?
  6504. grep -v '^ *+' conftest.er1 >conftest.err
  6505. rm -f conftest.er1
  6506. cat conftest.err >&5
  6507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6508. (exit $ac_status); } &&
  6509. { ac_try='test -z "$ac_c_werror_flag"
  6510. || test ! -s conftest.err'
  6511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6512. (eval $ac_try) 2>&5
  6513. ac_status=$?
  6514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6515. (exit $ac_status); }; } &&
  6516. { ac_try='test -s conftest.$ac_objext'
  6517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6518. (eval $ac_try) 2>&5
  6519. ac_status=$?
  6520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6521. (exit $ac_status); }; }; then
  6522. ac_hi=-1 ac_mid=-1
  6523. while :; do
  6524. cat >conftest.$ac_ext <<_ACEOF
  6525. /* confdefs.h. */
  6526. _ACEOF
  6527. cat confdefs.h >>conftest.$ac_ext
  6528. cat >>conftest.$ac_ext <<_ACEOF
  6529. /* end confdefs.h. */
  6530. $ac_includes_default
  6531. int
  6532. main ()
  6533. {
  6534. static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
  6535. test_array [0] = 0
  6536.  
  6537. ;
  6538. return 0;
  6539. }
  6540. _ACEOF
  6541. rm -f conftest.$ac_objext
  6542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6543. (eval $ac_compile) 2>conftest.er1
  6544. ac_status=$?
  6545. grep -v '^ *+' conftest.er1 >conftest.err
  6546. rm -f conftest.er1
  6547. cat conftest.err >&5
  6548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6549. (exit $ac_status); } &&
  6550. { ac_try='test -z "$ac_c_werror_flag"
  6551. || test ! -s conftest.err'
  6552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6553. (eval $ac_try) 2>&5
  6554. ac_status=$?
  6555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6556. (exit $ac_status); }; } &&
  6557. { ac_try='test -s conftest.$ac_objext'
  6558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6559. (eval $ac_try) 2>&5
  6560. ac_status=$?
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); }; }; then
  6563. ac_lo=$ac_mid; break
  6564. else
  6565. echo "$as_me: failed program was:" >&5
  6566. sed 's/^/| /' conftest.$ac_ext >&5
  6567.  
  6568. ac_hi=`expr '(' $ac_mid ')' - 1`
  6569. if test $ac_mid -le $ac_hi; then
  6570. ac_lo= ac_hi=
  6571. break
  6572. fi
  6573. ac_mid=`expr 2 '*' $ac_mid`
  6574. fi
  6575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6576. done
  6577. else
  6578. echo "$as_me: failed program was:" >&5
  6579. sed 's/^/| /' conftest.$ac_ext >&5
  6580.  
  6581. ac_lo= ac_hi=
  6582. fi
  6583. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6584. fi
  6585. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6586. # Binary search between lo and hi bounds.
  6587. while test "x$ac_lo" != "x$ac_hi"; do
  6588. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6589. cat >conftest.$ac_ext <<_ACEOF
  6590. /* confdefs.h. */
  6591. _ACEOF
  6592. cat confdefs.h >>conftest.$ac_ext
  6593. cat >>conftest.$ac_ext <<_ACEOF
  6594. /* end confdefs.h. */
  6595. $ac_includes_default
  6596. int
  6597. main ()
  6598. {
  6599. static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
  6600. test_array [0] = 0
  6601.  
  6602. ;
  6603. return 0;
  6604. }
  6605. _ACEOF
  6606. rm -f conftest.$ac_objext
  6607. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6608. (eval $ac_compile) 2>conftest.er1
  6609. ac_status=$?
  6610. grep -v '^ *+' conftest.er1 >conftest.err
  6611. rm -f conftest.er1
  6612. cat conftest.err >&5
  6613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6614. (exit $ac_status); } &&
  6615. { ac_try='test -z "$ac_c_werror_flag"
  6616. || test ! -s conftest.err'
  6617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6618. (eval $ac_try) 2>&5
  6619. ac_status=$?
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); }; } &&
  6622. { ac_try='test -s conftest.$ac_objext'
  6623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6624. (eval $ac_try) 2>&5
  6625. ac_status=$?
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); }; }; then
  6628. ac_hi=$ac_mid
  6629. else
  6630. echo "$as_me: failed program was:" >&5
  6631. sed 's/^/| /' conftest.$ac_ext >&5
  6632.  
  6633. ac_lo=`expr '(' $ac_mid ')' + 1`
  6634. fi
  6635. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6636. done
  6637. case $ac_lo in
  6638. ?*) ac_cv_sizeof_void_p=$ac_lo;;
  6639. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
  6640. See \`config.log' for more details." >&5
  6641. echo "$as_me: error: cannot compute sizeof (void *), 77
  6642. See \`config.log' for more details." >&2;}
  6643. { (exit 1); exit 1; }; } ;;
  6644. esac
  6645. else
  6646. if test "$cross_compiling" = yes; then
  6647. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6648. See \`config.log' for more details." >&5
  6649. echo "$as_me: error: cannot run test program while cross compiling
  6650. See \`config.log' for more details." >&2;}
  6651. { (exit 1); exit 1; }; }
  6652. else
  6653. cat >conftest.$ac_ext <<_ACEOF
  6654. /* confdefs.h. */
  6655. _ACEOF
  6656. cat confdefs.h >>conftest.$ac_ext
  6657. cat >>conftest.$ac_ext <<_ACEOF
  6658. /* end confdefs.h. */
  6659. $ac_includes_default
  6660. long longval () { return (long) (sizeof (void *)); }
  6661. unsigned long ulongval () { return (long) (sizeof (void *)); }
  6662. #include <stdio.h>
  6663. #include <stdlib.h>
  6664. int
  6665. main ()
  6666. {
  6667.  
  6668. FILE *f = fopen ("conftest.val", "w");
  6669. if (! f)
  6670. exit (1);
  6671. if (((long) (sizeof (void *))) < 0)
  6672. {
  6673. long i = longval ();
  6674. if (i != ((long) (sizeof (void *))))
  6675. exit (1);
  6676. fprintf (f, "%ld\n", i);
  6677. }
  6678. else
  6679. {
  6680. unsigned long i = ulongval ();
  6681. if (i != ((long) (sizeof (void *))))
  6682. exit (1);
  6683. fprintf (f, "%lu\n", i);
  6684. }
  6685. exit (ferror (f) || fclose (f) != 0);
  6686.  
  6687. ;
  6688. return 0;
  6689. }
  6690. _ACEOF
  6691. rm -f conftest$ac_exeext
  6692. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6693. (eval $ac_link) 2>&5
  6694. ac_status=$?
  6695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6696. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6698. (eval $ac_try) 2>&5
  6699. ac_status=$?
  6700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6701. (exit $ac_status); }; }; then
  6702. ac_cv_sizeof_void_p=`cat conftest.val`
  6703. else
  6704. echo "$as_me: program exited with status $ac_status" >&5
  6705. echo "$as_me: failed program was:" >&5
  6706. sed 's/^/| /' conftest.$ac_ext >&5
  6707.  
  6708. ( exit $ac_status )
  6709. { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
  6710. See \`config.log' for more details." >&5
  6711. echo "$as_me: error: cannot compute sizeof (void *), 77
  6712. See \`config.log' for more details." >&2;}
  6713. { (exit 1); exit 1; }; }
  6714. fi
  6715. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6716. fi
  6717. fi
  6718. rm -f conftest.val
  6719. else
  6720. ac_cv_sizeof_void_p=0
  6721. fi
  6722. fi
  6723. echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
  6724. echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
  6725. cat >>confdefs.h <<_ACEOF
  6726. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  6727. _ACEOF
  6728.  
  6729. ;;
  6730. esac
  6731.  
  6732. # Lacking an uint64_t? Test size of long
  6733. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  6734. stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
  6735. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6736. if test "${ac_cv_type_long+set}" = set; then
  6737. echo $ECHO_N "(cached) $ECHO_C" >&6
  6738. else
  6739. cat >conftest.$ac_ext <<_ACEOF
  6740. /* confdefs.h. */
  6741. _ACEOF
  6742. cat confdefs.h >>conftest.$ac_ext
  6743. cat >>conftest.$ac_ext <<_ACEOF
  6744. /* end confdefs.h. */
  6745. $ac_includes_default
  6746. int
  6747. main ()
  6748. {
  6749. if ((long *) 0)
  6750. return 0;
  6751. if (sizeof (long))
  6752. return 0;
  6753. ;
  6754. return 0;
  6755. }
  6756. _ACEOF
  6757. rm -f conftest.$ac_objext
  6758. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6759. (eval $ac_compile) 2>conftest.er1
  6760. ac_status=$?
  6761. grep -v '^ *+' conftest.er1 >conftest.err
  6762. rm -f conftest.er1
  6763. cat conftest.err >&5
  6764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6765. (exit $ac_status); } &&
  6766. { ac_try='test -z "$ac_c_werror_flag"
  6767. || test ! -s conftest.err'
  6768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6769. (eval $ac_try) 2>&5
  6770. ac_status=$?
  6771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6772. (exit $ac_status); }; } &&
  6773. { ac_try='test -s conftest.$ac_objext'
  6774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6775. (eval $ac_try) 2>&5
  6776. ac_status=$?
  6777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); }; }; then
  6779. ac_cv_type_long=yes
  6780. else
  6781. echo "$as_me: failed program was:" >&5
  6782. sed 's/^/| /' conftest.$ac_ext >&5
  6783.  
  6784. ac_cv_type_long=no
  6785. fi
  6786. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6787. fi
  6788. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6789. echo "${ECHO_T}$ac_cv_type_long" >&6
  6790.  
  6791. echo "$as_me:$LINENO: checking size of long" >&5
  6792. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6793. if test "${ac_cv_sizeof_long+set}" = set; then
  6794. echo $ECHO_N "(cached) $ECHO_C" >&6
  6795. else
  6796. if test "$ac_cv_type_long" = yes; then
  6797. # The cast to unsigned long works around a bug in the HP C Compiler
  6798. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6799. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6800. # This bug is HP SR number 8606223364.
  6801. if test "$cross_compiling" = yes; then
  6802. # Depending upon the size, compute the lo and hi bounds.
  6803. cat >conftest.$ac_ext <<_ACEOF
  6804. /* confdefs.h. */
  6805. _ACEOF
  6806. cat confdefs.h >>conftest.$ac_ext
  6807. cat >>conftest.$ac_ext <<_ACEOF
  6808. /* end confdefs.h. */
  6809. $ac_includes_default
  6810. int
  6811. main ()
  6812. {
  6813. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6814. test_array [0] = 0
  6815.  
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. rm -f conftest.$ac_objext
  6821. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6822. (eval $ac_compile) 2>conftest.er1
  6823. ac_status=$?
  6824. grep -v '^ *+' conftest.er1 >conftest.err
  6825. rm -f conftest.er1
  6826. cat conftest.err >&5
  6827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6828. (exit $ac_status); } &&
  6829. { ac_try='test -z "$ac_c_werror_flag"
  6830. || test ! -s conftest.err'
  6831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6832. (eval $ac_try) 2>&5
  6833. ac_status=$?
  6834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6835. (exit $ac_status); }; } &&
  6836. { ac_try='test -s conftest.$ac_objext'
  6837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6838. (eval $ac_try) 2>&5
  6839. ac_status=$?
  6840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); }; }; then
  6842. ac_lo=0 ac_mid=0
  6843. while :; do
  6844. cat >conftest.$ac_ext <<_ACEOF
  6845. /* confdefs.h. */
  6846. _ACEOF
  6847. cat confdefs.h >>conftest.$ac_ext
  6848. cat >>conftest.$ac_ext <<_ACEOF
  6849. /* end confdefs.h. */
  6850. $ac_includes_default
  6851. int
  6852. main ()
  6853. {
  6854. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6855. test_array [0] = 0
  6856.  
  6857. ;
  6858. return 0;
  6859. }
  6860. _ACEOF
  6861. rm -f conftest.$ac_objext
  6862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6863. (eval $ac_compile) 2>conftest.er1
  6864. ac_status=$?
  6865. grep -v '^ *+' conftest.er1 >conftest.err
  6866. rm -f conftest.er1
  6867. cat conftest.err >&5
  6868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6869. (exit $ac_status); } &&
  6870. { ac_try='test -z "$ac_c_werror_flag"
  6871. || test ! -s conftest.err'
  6872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6873. (eval $ac_try) 2>&5
  6874. ac_status=$?
  6875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6876. (exit $ac_status); }; } &&
  6877. { ac_try='test -s conftest.$ac_objext'
  6878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6879. (eval $ac_try) 2>&5
  6880. ac_status=$?
  6881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6882. (exit $ac_status); }; }; then
  6883. ac_hi=$ac_mid; break
  6884. else
  6885. echo "$as_me: failed program was:" >&5
  6886. sed 's/^/| /' conftest.$ac_ext >&5
  6887.  
  6888. ac_lo=`expr $ac_mid + 1`
  6889. if test $ac_lo -le $ac_mid; then
  6890. ac_lo= ac_hi=
  6891. break
  6892. fi
  6893. ac_mid=`expr 2 '*' $ac_mid + 1`
  6894. fi
  6895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6896. done
  6897. else
  6898. echo "$as_me: failed program was:" >&5
  6899. sed 's/^/| /' conftest.$ac_ext >&5
  6900.  
  6901. cat >conftest.$ac_ext <<_ACEOF
  6902. /* confdefs.h. */
  6903. _ACEOF
  6904. cat confdefs.h >>conftest.$ac_ext
  6905. cat >>conftest.$ac_ext <<_ACEOF
  6906. /* end confdefs.h. */
  6907. $ac_includes_default
  6908. int
  6909. main ()
  6910. {
  6911. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6912. test_array [0] = 0
  6913.  
  6914. ;
  6915. return 0;
  6916. }
  6917. _ACEOF
  6918. rm -f conftest.$ac_objext
  6919. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6920. (eval $ac_compile) 2>conftest.er1
  6921. ac_status=$?
  6922. grep -v '^ *+' conftest.er1 >conftest.err
  6923. rm -f conftest.er1
  6924. cat conftest.err >&5
  6925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6926. (exit $ac_status); } &&
  6927. { ac_try='test -z "$ac_c_werror_flag"
  6928. || test ! -s conftest.err'
  6929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6930. (eval $ac_try) 2>&5
  6931. ac_status=$?
  6932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6933. (exit $ac_status); }; } &&
  6934. { ac_try='test -s conftest.$ac_objext'
  6935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6936. (eval $ac_try) 2>&5
  6937. ac_status=$?
  6938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6939. (exit $ac_status); }; }; then
  6940. ac_hi=-1 ac_mid=-1
  6941. while :; do
  6942. cat >conftest.$ac_ext <<_ACEOF
  6943. /* confdefs.h. */
  6944. _ACEOF
  6945. cat confdefs.h >>conftest.$ac_ext
  6946. cat >>conftest.$ac_ext <<_ACEOF
  6947. /* end confdefs.h. */
  6948. $ac_includes_default
  6949. int
  6950. main ()
  6951. {
  6952. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6953. test_array [0] = 0
  6954.  
  6955. ;
  6956. return 0;
  6957. }
  6958. _ACEOF
  6959. rm -f conftest.$ac_objext
  6960. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6961. (eval $ac_compile) 2>conftest.er1
  6962. ac_status=$?
  6963. grep -v '^ *+' conftest.er1 >conftest.err
  6964. rm -f conftest.er1
  6965. cat conftest.err >&5
  6966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6967. (exit $ac_status); } &&
  6968. { ac_try='test -z "$ac_c_werror_flag"
  6969. || test ! -s conftest.err'
  6970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6971. (eval $ac_try) 2>&5
  6972. ac_status=$?
  6973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6974. (exit $ac_status); }; } &&
  6975. { ac_try='test -s conftest.$ac_objext'
  6976. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6977. (eval $ac_try) 2>&5
  6978. ac_status=$?
  6979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6980. (exit $ac_status); }; }; then
  6981. ac_lo=$ac_mid; break
  6982. else
  6983. echo "$as_me: failed program was:" >&5
  6984. sed 's/^/| /' conftest.$ac_ext >&5
  6985.  
  6986. ac_hi=`expr '(' $ac_mid ')' - 1`
  6987. if test $ac_mid -le $ac_hi; then
  6988. ac_lo= ac_hi=
  6989. break
  6990. fi
  6991. ac_mid=`expr 2 '*' $ac_mid`
  6992. fi
  6993. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6994. done
  6995. else
  6996. echo "$as_me: failed program was:" >&5
  6997. sed 's/^/| /' conftest.$ac_ext >&5
  6998.  
  6999. ac_lo= ac_hi=
  7000. fi
  7001. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7002. fi
  7003. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7004. # Binary search between lo and hi bounds.
  7005. while test "x$ac_lo" != "x$ac_hi"; do
  7006. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7007. cat >conftest.$ac_ext <<_ACEOF
  7008. /* confdefs.h. */
  7009. _ACEOF
  7010. cat confdefs.h >>conftest.$ac_ext
  7011. cat >>conftest.$ac_ext <<_ACEOF
  7012. /* end confdefs.h. */
  7013. $ac_includes_default
  7014. int
  7015. main ()
  7016. {
  7017. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7018. test_array [0] = 0
  7019.  
  7020. ;
  7021. return 0;
  7022. }
  7023. _ACEOF
  7024. rm -f conftest.$ac_objext
  7025. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7026. (eval $ac_compile) 2>conftest.er1
  7027. ac_status=$?
  7028. grep -v '^ *+' conftest.er1 >conftest.err
  7029. rm -f conftest.er1
  7030. cat conftest.err >&5
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. (exit $ac_status); } &&
  7033. { ac_try='test -z "$ac_c_werror_flag"
  7034. || test ! -s conftest.err'
  7035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7036. (eval $ac_try) 2>&5
  7037. ac_status=$?
  7038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7039. (exit $ac_status); }; } &&
  7040. { ac_try='test -s conftest.$ac_objext'
  7041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7042. (eval $ac_try) 2>&5
  7043. ac_status=$?
  7044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045. (exit $ac_status); }; }; then
  7046. ac_hi=$ac_mid
  7047. else
  7048. echo "$as_me: failed program was:" >&5
  7049. sed 's/^/| /' conftest.$ac_ext >&5
  7050.  
  7051. ac_lo=`expr '(' $ac_mid ')' + 1`
  7052. fi
  7053. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7054. done
  7055. case $ac_lo in
  7056. ?*) ac_cv_sizeof_long=$ac_lo;;
  7057. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7058. See \`config.log' for more details." >&5
  7059. echo "$as_me: error: cannot compute sizeof (long), 77
  7060. See \`config.log' for more details." >&2;}
  7061. { (exit 1); exit 1; }; } ;;
  7062. esac
  7063. else
  7064. if test "$cross_compiling" = yes; then
  7065. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7066. See \`config.log' for more details." >&5
  7067. echo "$as_me: error: cannot run test program while cross compiling
  7068. See \`config.log' for more details." >&2;}
  7069. { (exit 1); exit 1; }; }
  7070. else
  7071. cat >conftest.$ac_ext <<_ACEOF
  7072. /* confdefs.h. */
  7073. _ACEOF
  7074. cat confdefs.h >>conftest.$ac_ext
  7075. cat >>conftest.$ac_ext <<_ACEOF
  7076. /* end confdefs.h. */
  7077. $ac_includes_default
  7078. long longval () { return (long) (sizeof (long)); }
  7079. unsigned long ulongval () { return (long) (sizeof (long)); }
  7080. #include <stdio.h>
  7081. #include <stdlib.h>
  7082. int
  7083. main ()
  7084. {
  7085.  
  7086. FILE *f = fopen ("conftest.val", "w");
  7087. if (! f)
  7088. exit (1);
  7089. if (((long) (sizeof (long))) < 0)
  7090. {
  7091. long i = longval ();
  7092. if (i != ((long) (sizeof (long))))
  7093. exit (1);
  7094. fprintf (f, "%ld\n", i);
  7095. }
  7096. else
  7097. {
  7098. unsigned long i = ulongval ();
  7099. if (i != ((long) (sizeof (long))))
  7100. exit (1);
  7101. fprintf (f, "%lu\n", i);
  7102. }
  7103. exit (ferror (f) || fclose (f) != 0);
  7104.  
  7105. ;
  7106. return 0;
  7107. }
  7108. _ACEOF
  7109. rm -f conftest$ac_exeext
  7110. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7111. (eval $ac_link) 2>&5
  7112. ac_status=$?
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7116. (eval $ac_try) 2>&5
  7117. ac_status=$?
  7118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7119. (exit $ac_status); }; }; then
  7120. ac_cv_sizeof_long=`cat conftest.val`
  7121. else
  7122. echo "$as_me: program exited with status $ac_status" >&5
  7123. echo "$as_me: failed program was:" >&5
  7124. sed 's/^/| /' conftest.$ac_ext >&5
  7125.  
  7126. ( exit $ac_status )
  7127. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7128. See \`config.log' for more details." >&5
  7129. echo "$as_me: error: cannot compute sizeof (long), 77
  7130. See \`config.log' for more details." >&2;}
  7131. { (exit 1); exit 1; }; }
  7132. fi
  7133. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7134. fi
  7135. fi
  7136. rm -f conftest.val
  7137. else
  7138. ac_cv_sizeof_long=0
  7139. fi
  7140. fi
  7141. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7142. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7143. cat >>confdefs.h <<_ACEOF
  7144. #define SIZEOF_LONG $ac_cv_sizeof_long
  7145. _ACEOF
  7146.  
  7147. ;;
  7148. esac
  7149.  
  7150. if test $acx_cv_header_stdint = stddef.h; then
  7151. # Lacking a good header? Test size of everything and deduce all types.
  7152. echo "$as_me:$LINENO: checking for int" >&5
  7153. echo $ECHO_N "checking for int... $ECHO_C" >&6
  7154. if test "${ac_cv_type_int+set}" = set; then
  7155. echo $ECHO_N "(cached) $ECHO_C" >&6
  7156. else
  7157. cat >conftest.$ac_ext <<_ACEOF
  7158. /* confdefs.h. */
  7159. _ACEOF
  7160. cat confdefs.h >>conftest.$ac_ext
  7161. cat >>conftest.$ac_ext <<_ACEOF
  7162. /* end confdefs.h. */
  7163. $ac_includes_default
  7164. int
  7165. main ()
  7166. {
  7167. if ((int *) 0)
  7168. return 0;
  7169. if (sizeof (int))
  7170. return 0;
  7171. ;
  7172. return 0;
  7173. }
  7174. _ACEOF
  7175. rm -f conftest.$ac_objext
  7176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7177. (eval $ac_compile) 2>conftest.er1
  7178. ac_status=$?
  7179. grep -v '^ *+' conftest.er1 >conftest.err
  7180. rm -f conftest.er1
  7181. cat conftest.err >&5
  7182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7183. (exit $ac_status); } &&
  7184. { ac_try='test -z "$ac_c_werror_flag"
  7185. || test ! -s conftest.err'
  7186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7187. (eval $ac_try) 2>&5
  7188. ac_status=$?
  7189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7190. (exit $ac_status); }; } &&
  7191. { ac_try='test -s conftest.$ac_objext'
  7192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7193. (eval $ac_try) 2>&5
  7194. ac_status=$?
  7195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7196. (exit $ac_status); }; }; then
  7197. ac_cv_type_int=yes
  7198. else
  7199. echo "$as_me: failed program was:" >&5
  7200. sed 's/^/| /' conftest.$ac_ext >&5
  7201.  
  7202. ac_cv_type_int=no
  7203. fi
  7204. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7205. fi
  7206. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  7207. echo "${ECHO_T}$ac_cv_type_int" >&6
  7208.  
  7209. echo "$as_me:$LINENO: checking size of int" >&5
  7210. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  7211. if test "${ac_cv_sizeof_int+set}" = set; then
  7212. echo $ECHO_N "(cached) $ECHO_C" >&6
  7213. else
  7214. if test "$ac_cv_type_int" = yes; then
  7215. # The cast to unsigned long works around a bug in the HP C Compiler
  7216. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7217. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7218. # This bug is HP SR number 8606223364.
  7219. if test "$cross_compiling" = yes; then
  7220. # Depending upon the size, compute the lo and hi bounds.
  7221. cat >conftest.$ac_ext <<_ACEOF
  7222. /* confdefs.h. */
  7223. _ACEOF
  7224. cat confdefs.h >>conftest.$ac_ext
  7225. cat >>conftest.$ac_ext <<_ACEOF
  7226. /* end confdefs.h. */
  7227. $ac_includes_default
  7228. int
  7229. main ()
  7230. {
  7231. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  7232. test_array [0] = 0
  7233.  
  7234. ;
  7235. return 0;
  7236. }
  7237. _ACEOF
  7238. rm -f conftest.$ac_objext
  7239. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7240. (eval $ac_compile) 2>conftest.er1
  7241. ac_status=$?
  7242. grep -v '^ *+' conftest.er1 >conftest.err
  7243. rm -f conftest.er1
  7244. cat conftest.err >&5
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); } &&
  7247. { ac_try='test -z "$ac_c_werror_flag"
  7248. || test ! -s conftest.err'
  7249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7250. (eval $ac_try) 2>&5
  7251. ac_status=$?
  7252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7253. (exit $ac_status); }; } &&
  7254. { ac_try='test -s conftest.$ac_objext'
  7255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7256. (eval $ac_try) 2>&5
  7257. ac_status=$?
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. (exit $ac_status); }; }; then
  7260. ac_lo=0 ac_mid=0
  7261. while :; do
  7262. cat >conftest.$ac_ext <<_ACEOF
  7263. /* confdefs.h. */
  7264. _ACEOF
  7265. cat confdefs.h >>conftest.$ac_ext
  7266. cat >>conftest.$ac_ext <<_ACEOF
  7267. /* end confdefs.h. */
  7268. $ac_includes_default
  7269. int
  7270. main ()
  7271. {
  7272. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7273. test_array [0] = 0
  7274.  
  7275. ;
  7276. return 0;
  7277. }
  7278. _ACEOF
  7279. rm -f conftest.$ac_objext
  7280. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7281. (eval $ac_compile) 2>conftest.er1
  7282. ac_status=$?
  7283. grep -v '^ *+' conftest.er1 >conftest.err
  7284. rm -f conftest.er1
  7285. cat conftest.err >&5
  7286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7287. (exit $ac_status); } &&
  7288. { ac_try='test -z "$ac_c_werror_flag"
  7289. || test ! -s conftest.err'
  7290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7291. (eval $ac_try) 2>&5
  7292. ac_status=$?
  7293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); }; } &&
  7295. { ac_try='test -s conftest.$ac_objext'
  7296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7297. (eval $ac_try) 2>&5
  7298. ac_status=$?
  7299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7300. (exit $ac_status); }; }; then
  7301. ac_hi=$ac_mid; break
  7302. else
  7303. echo "$as_me: failed program was:" >&5
  7304. sed 's/^/| /' conftest.$ac_ext >&5
  7305.  
  7306. ac_lo=`expr $ac_mid + 1`
  7307. if test $ac_lo -le $ac_mid; then
  7308. ac_lo= ac_hi=
  7309. break
  7310. fi
  7311. ac_mid=`expr 2 '*' $ac_mid + 1`
  7312. fi
  7313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7314. done
  7315. else
  7316. echo "$as_me: failed program was:" >&5
  7317. sed 's/^/| /' conftest.$ac_ext >&5
  7318.  
  7319. cat >conftest.$ac_ext <<_ACEOF
  7320. /* confdefs.h. */
  7321. _ACEOF
  7322. cat confdefs.h >>conftest.$ac_ext
  7323. cat >>conftest.$ac_ext <<_ACEOF
  7324. /* end confdefs.h. */
  7325. $ac_includes_default
  7326. int
  7327. main ()
  7328. {
  7329. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7330. test_array [0] = 0
  7331.  
  7332. ;
  7333. return 0;
  7334. }
  7335. _ACEOF
  7336. rm -f conftest.$ac_objext
  7337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7338. (eval $ac_compile) 2>conftest.er1
  7339. ac_status=$?
  7340. grep -v '^ *+' conftest.er1 >conftest.err
  7341. rm -f conftest.er1
  7342. cat conftest.err >&5
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); } &&
  7345. { ac_try='test -z "$ac_c_werror_flag"
  7346. || test ! -s conftest.err'
  7347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7348. (eval $ac_try) 2>&5
  7349. ac_status=$?
  7350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7351. (exit $ac_status); }; } &&
  7352. { ac_try='test -s conftest.$ac_objext'
  7353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7354. (eval $ac_try) 2>&5
  7355. ac_status=$?
  7356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7357. (exit $ac_status); }; }; then
  7358. ac_hi=-1 ac_mid=-1
  7359. while :; do
  7360. cat >conftest.$ac_ext <<_ACEOF
  7361. /* confdefs.h. */
  7362. _ACEOF
  7363. cat confdefs.h >>conftest.$ac_ext
  7364. cat >>conftest.$ac_ext <<_ACEOF
  7365. /* end confdefs.h. */
  7366. $ac_includes_default
  7367. int
  7368. main ()
  7369. {
  7370. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7371. test_array [0] = 0
  7372.  
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. rm -f conftest.$ac_objext
  7378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7379. (eval $ac_compile) 2>conftest.er1
  7380. ac_status=$?
  7381. grep -v '^ *+' conftest.er1 >conftest.err
  7382. rm -f conftest.er1
  7383. cat conftest.err >&5
  7384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7385. (exit $ac_status); } &&
  7386. { ac_try='test -z "$ac_c_werror_flag"
  7387. || test ! -s conftest.err'
  7388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7389. (eval $ac_try) 2>&5
  7390. ac_status=$?
  7391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. (exit $ac_status); }; } &&
  7393. { ac_try='test -s conftest.$ac_objext'
  7394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7395. (eval $ac_try) 2>&5
  7396. ac_status=$?
  7397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7398. (exit $ac_status); }; }; then
  7399. ac_lo=$ac_mid; break
  7400. else
  7401. echo "$as_me: failed program was:" >&5
  7402. sed 's/^/| /' conftest.$ac_ext >&5
  7403.  
  7404. ac_hi=`expr '(' $ac_mid ')' - 1`
  7405. if test $ac_mid -le $ac_hi; then
  7406. ac_lo= ac_hi=
  7407. break
  7408. fi
  7409. ac_mid=`expr 2 '*' $ac_mid`
  7410. fi
  7411. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7412. done
  7413. else
  7414. echo "$as_me: failed program was:" >&5
  7415. sed 's/^/| /' conftest.$ac_ext >&5
  7416.  
  7417. ac_lo= ac_hi=
  7418. fi
  7419. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7420. fi
  7421. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7422. # Binary search between lo and hi bounds.
  7423. while test "x$ac_lo" != "x$ac_hi"; do
  7424. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7425. cat >conftest.$ac_ext <<_ACEOF
  7426. /* confdefs.h. */
  7427. _ACEOF
  7428. cat confdefs.h >>conftest.$ac_ext
  7429. cat >>conftest.$ac_ext <<_ACEOF
  7430. /* end confdefs.h. */
  7431. $ac_includes_default
  7432. int
  7433. main ()
  7434. {
  7435. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7436. test_array [0] = 0
  7437.  
  7438. ;
  7439. return 0;
  7440. }
  7441. _ACEOF
  7442. rm -f conftest.$ac_objext
  7443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7444. (eval $ac_compile) 2>conftest.er1
  7445. ac_status=$?
  7446. grep -v '^ *+' conftest.er1 >conftest.err
  7447. rm -f conftest.er1
  7448. cat conftest.err >&5
  7449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. (exit $ac_status); } &&
  7451. { ac_try='test -z "$ac_c_werror_flag"
  7452. || test ! -s conftest.err'
  7453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7454. (eval $ac_try) 2>&5
  7455. ac_status=$?
  7456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7457. (exit $ac_status); }; } &&
  7458. { ac_try='test -s conftest.$ac_objext'
  7459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7460. (eval $ac_try) 2>&5
  7461. ac_status=$?
  7462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7463. (exit $ac_status); }; }; then
  7464. ac_hi=$ac_mid
  7465. else
  7466. echo "$as_me: failed program was:" >&5
  7467. sed 's/^/| /' conftest.$ac_ext >&5
  7468.  
  7469. ac_lo=`expr '(' $ac_mid ')' + 1`
  7470. fi
  7471. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7472. done
  7473. case $ac_lo in
  7474. ?*) ac_cv_sizeof_int=$ac_lo;;
  7475. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7476. See \`config.log' for more details." >&5
  7477. echo "$as_me: error: cannot compute sizeof (int), 77
  7478. See \`config.log' for more details." >&2;}
  7479. { (exit 1); exit 1; }; } ;;
  7480. esac
  7481. else
  7482. if test "$cross_compiling" = yes; then
  7483. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7484. See \`config.log' for more details." >&5
  7485. echo "$as_me: error: cannot run test program while cross compiling
  7486. See \`config.log' for more details." >&2;}
  7487. { (exit 1); exit 1; }; }
  7488. else
  7489. cat >conftest.$ac_ext <<_ACEOF
  7490. /* confdefs.h. */
  7491. _ACEOF
  7492. cat confdefs.h >>conftest.$ac_ext
  7493. cat >>conftest.$ac_ext <<_ACEOF
  7494. /* end confdefs.h. */
  7495. $ac_includes_default
  7496. long longval () { return (long) (sizeof (int)); }
  7497. unsigned long ulongval () { return (long) (sizeof (int)); }
  7498. #include <stdio.h>
  7499. #include <stdlib.h>
  7500. int
  7501. main ()
  7502. {
  7503.  
  7504. FILE *f = fopen ("conftest.val", "w");
  7505. if (! f)
  7506. exit (1);
  7507. if (((long) (sizeof (int))) < 0)
  7508. {
  7509. long i = longval ();
  7510. if (i != ((long) (sizeof (int))))
  7511. exit (1);
  7512. fprintf (f, "%ld\n", i);
  7513. }
  7514. else
  7515. {
  7516. unsigned long i = ulongval ();
  7517. if (i != ((long) (sizeof (int))))
  7518. exit (1);
  7519. fprintf (f, "%lu\n", i);
  7520. }
  7521. exit (ferror (f) || fclose (f) != 0);
  7522.  
  7523. ;
  7524. return 0;
  7525. }
  7526. _ACEOF
  7527. rm -f conftest$ac_exeext
  7528. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7529. (eval $ac_link) 2>&5
  7530. ac_status=$?
  7531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7532. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7534. (eval $ac_try) 2>&5
  7535. ac_status=$?
  7536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7537. (exit $ac_status); }; }; then
  7538. ac_cv_sizeof_int=`cat conftest.val`
  7539. else
  7540. echo "$as_me: program exited with status $ac_status" >&5
  7541. echo "$as_me: failed program was:" >&5
  7542. sed 's/^/| /' conftest.$ac_ext >&5
  7543.  
  7544. ( exit $ac_status )
  7545. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7546. See \`config.log' for more details." >&5
  7547. echo "$as_me: error: cannot compute sizeof (int), 77
  7548. See \`config.log' for more details." >&2;}
  7549. { (exit 1); exit 1; }; }
  7550. fi
  7551. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7552. fi
  7553. fi
  7554. rm -f conftest.val
  7555. else
  7556. ac_cv_sizeof_int=0
  7557. fi
  7558. fi
  7559. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7560. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7561. cat >>confdefs.h <<_ACEOF
  7562. #define SIZEOF_INT $ac_cv_sizeof_int
  7563. _ACEOF
  7564.  
  7565.  
  7566. echo "$as_me:$LINENO: checking for short" >&5
  7567. echo $ECHO_N "checking for short... $ECHO_C" >&6
  7568. if test "${ac_cv_type_short+set}" = set; then
  7569. echo $ECHO_N "(cached) $ECHO_C" >&6
  7570. else
  7571. cat >conftest.$ac_ext <<_ACEOF
  7572. /* confdefs.h. */
  7573. _ACEOF
  7574. cat confdefs.h >>conftest.$ac_ext
  7575. cat >>conftest.$ac_ext <<_ACEOF
  7576. /* end confdefs.h. */
  7577. $ac_includes_default
  7578. int
  7579. main ()
  7580. {
  7581. if ((short *) 0)
  7582. return 0;
  7583. if (sizeof (short))
  7584. return 0;
  7585. ;
  7586. return 0;
  7587. }
  7588. _ACEOF
  7589. rm -f conftest.$ac_objext
  7590. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7591. (eval $ac_compile) 2>conftest.er1
  7592. ac_status=$?
  7593. grep -v '^ *+' conftest.er1 >conftest.err
  7594. rm -f conftest.er1
  7595. cat conftest.err >&5
  7596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); } &&
  7598. { ac_try='test -z "$ac_c_werror_flag"
  7599. || test ! -s conftest.err'
  7600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7601. (eval $ac_try) 2>&5
  7602. ac_status=$?
  7603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604. (exit $ac_status); }; } &&
  7605. { ac_try='test -s conftest.$ac_objext'
  7606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7607. (eval $ac_try) 2>&5
  7608. ac_status=$?
  7609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7610. (exit $ac_status); }; }; then
  7611. ac_cv_type_short=yes
  7612. else
  7613. echo "$as_me: failed program was:" >&5
  7614. sed 's/^/| /' conftest.$ac_ext >&5
  7615.  
  7616. ac_cv_type_short=no
  7617. fi
  7618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7619. fi
  7620. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  7621. echo "${ECHO_T}$ac_cv_type_short" >&6
  7622.  
  7623. echo "$as_me:$LINENO: checking size of short" >&5
  7624. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  7625. if test "${ac_cv_sizeof_short+set}" = set; then
  7626. echo $ECHO_N "(cached) $ECHO_C" >&6
  7627. else
  7628. if test "$ac_cv_type_short" = yes; then
  7629. # The cast to unsigned long works around a bug in the HP C Compiler
  7630. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7631. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7632. # This bug is HP SR number 8606223364.
  7633. if test "$cross_compiling" = yes; then
  7634. # Depending upon the size, compute the lo and hi bounds.
  7635. cat >conftest.$ac_ext <<_ACEOF
  7636. /* confdefs.h. */
  7637. _ACEOF
  7638. cat confdefs.h >>conftest.$ac_ext
  7639. cat >>conftest.$ac_ext <<_ACEOF
  7640. /* end confdefs.h. */
  7641. $ac_includes_default
  7642. int
  7643. main ()
  7644. {
  7645. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  7646. test_array [0] = 0
  7647.  
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. rm -f conftest.$ac_objext
  7653. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7654. (eval $ac_compile) 2>conftest.er1
  7655. ac_status=$?
  7656. grep -v '^ *+' conftest.er1 >conftest.err
  7657. rm -f conftest.er1
  7658. cat conftest.err >&5
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); } &&
  7661. { ac_try='test -z "$ac_c_werror_flag"
  7662. || test ! -s conftest.err'
  7663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7664. (eval $ac_try) 2>&5
  7665. ac_status=$?
  7666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. (exit $ac_status); }; } &&
  7668. { ac_try='test -s conftest.$ac_objext'
  7669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7670. (eval $ac_try) 2>&5
  7671. ac_status=$?
  7672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7673. (exit $ac_status); }; }; then
  7674. ac_lo=0 ac_mid=0
  7675. while :; do
  7676. cat >conftest.$ac_ext <<_ACEOF
  7677. /* confdefs.h. */
  7678. _ACEOF
  7679. cat confdefs.h >>conftest.$ac_ext
  7680. cat >>conftest.$ac_ext <<_ACEOF
  7681. /* end confdefs.h. */
  7682. $ac_includes_default
  7683. int
  7684. main ()
  7685. {
  7686. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7687. test_array [0] = 0
  7688.  
  7689. ;
  7690. return 0;
  7691. }
  7692. _ACEOF
  7693. rm -f conftest.$ac_objext
  7694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7695. (eval $ac_compile) 2>conftest.er1
  7696. ac_status=$?
  7697. grep -v '^ *+' conftest.er1 >conftest.err
  7698. rm -f conftest.er1
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } &&
  7702. { ac_try='test -z "$ac_c_werror_flag"
  7703. || test ! -s conftest.err'
  7704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7705. (eval $ac_try) 2>&5
  7706. ac_status=$?
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); }; } &&
  7709. { ac_try='test -s conftest.$ac_objext'
  7710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7711. (eval $ac_try) 2>&5
  7712. ac_status=$?
  7713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7714. (exit $ac_status); }; }; then
  7715. ac_hi=$ac_mid; break
  7716. else
  7717. echo "$as_me: failed program was:" >&5
  7718. sed 's/^/| /' conftest.$ac_ext >&5
  7719.  
  7720. ac_lo=`expr $ac_mid + 1`
  7721. if test $ac_lo -le $ac_mid; then
  7722. ac_lo= ac_hi=
  7723. break
  7724. fi
  7725. ac_mid=`expr 2 '*' $ac_mid + 1`
  7726. fi
  7727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7728. done
  7729. else
  7730. echo "$as_me: failed program was:" >&5
  7731. sed 's/^/| /' conftest.$ac_ext >&5
  7732.  
  7733. cat >conftest.$ac_ext <<_ACEOF
  7734. /* confdefs.h. */
  7735. _ACEOF
  7736. cat confdefs.h >>conftest.$ac_ext
  7737. cat >>conftest.$ac_ext <<_ACEOF
  7738. /* end confdefs.h. */
  7739. $ac_includes_default
  7740. int
  7741. main ()
  7742. {
  7743. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  7744. test_array [0] = 0
  7745.  
  7746. ;
  7747. return 0;
  7748. }
  7749. _ACEOF
  7750. rm -f conftest.$ac_objext
  7751. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7752. (eval $ac_compile) 2>conftest.er1
  7753. ac_status=$?
  7754. grep -v '^ *+' conftest.er1 >conftest.err
  7755. rm -f conftest.er1
  7756. cat conftest.err >&5
  7757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. (exit $ac_status); } &&
  7759. { ac_try='test -z "$ac_c_werror_flag"
  7760. || test ! -s conftest.err'
  7761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7762. (eval $ac_try) 2>&5
  7763. ac_status=$?
  7764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7765. (exit $ac_status); }; } &&
  7766. { ac_try='test -s conftest.$ac_objext'
  7767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7768. (eval $ac_try) 2>&5
  7769. ac_status=$?
  7770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7771. (exit $ac_status); }; }; then
  7772. ac_hi=-1 ac_mid=-1
  7773. while :; do
  7774. cat >conftest.$ac_ext <<_ACEOF
  7775. /* confdefs.h. */
  7776. _ACEOF
  7777. cat confdefs.h >>conftest.$ac_ext
  7778. cat >>conftest.$ac_ext <<_ACEOF
  7779. /* end confdefs.h. */
  7780. $ac_includes_default
  7781. int
  7782. main ()
  7783. {
  7784. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  7785. test_array [0] = 0
  7786.  
  7787. ;
  7788. return 0;
  7789. }
  7790. _ACEOF
  7791. rm -f conftest.$ac_objext
  7792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7793. (eval $ac_compile) 2>conftest.er1
  7794. ac_status=$?
  7795. grep -v '^ *+' conftest.er1 >conftest.err
  7796. rm -f conftest.er1
  7797. cat conftest.err >&5
  7798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7799. (exit $ac_status); } &&
  7800. { ac_try='test -z "$ac_c_werror_flag"
  7801. || test ! -s conftest.err'
  7802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7803. (eval $ac_try) 2>&5
  7804. ac_status=$?
  7805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7806. (exit $ac_status); }; } &&
  7807. { ac_try='test -s conftest.$ac_objext'
  7808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7809. (eval $ac_try) 2>&5
  7810. ac_status=$?
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. (exit $ac_status); }; }; then
  7813. ac_lo=$ac_mid; break
  7814. else
  7815. echo "$as_me: failed program was:" >&5
  7816. sed 's/^/| /' conftest.$ac_ext >&5
  7817.  
  7818. ac_hi=`expr '(' $ac_mid ')' - 1`
  7819. if test $ac_mid -le $ac_hi; then
  7820. ac_lo= ac_hi=
  7821. break
  7822. fi
  7823. ac_mid=`expr 2 '*' $ac_mid`
  7824. fi
  7825. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7826. done
  7827. else
  7828. echo "$as_me: failed program was:" >&5
  7829. sed 's/^/| /' conftest.$ac_ext >&5
  7830.  
  7831. ac_lo= ac_hi=
  7832. fi
  7833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7834. fi
  7835. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7836. # Binary search between lo and hi bounds.
  7837. while test "x$ac_lo" != "x$ac_hi"; do
  7838. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7839. cat >conftest.$ac_ext <<_ACEOF
  7840. /* confdefs.h. */
  7841. _ACEOF
  7842. cat confdefs.h >>conftest.$ac_ext
  7843. cat >>conftest.$ac_ext <<_ACEOF
  7844. /* end confdefs.h. */
  7845. $ac_includes_default
  7846. int
  7847. main ()
  7848. {
  7849. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7850. test_array [0] = 0
  7851.  
  7852. ;
  7853. return 0;
  7854. }
  7855. _ACEOF
  7856. rm -f conftest.$ac_objext
  7857. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7858. (eval $ac_compile) 2>conftest.er1
  7859. ac_status=$?
  7860. grep -v '^ *+' conftest.er1 >conftest.err
  7861. rm -f conftest.er1
  7862. cat conftest.err >&5
  7863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7864. (exit $ac_status); } &&
  7865. { ac_try='test -z "$ac_c_werror_flag"
  7866. || test ! -s conftest.err'
  7867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7868. (eval $ac_try) 2>&5
  7869. ac_status=$?
  7870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); }; } &&
  7872. { ac_try='test -s conftest.$ac_objext'
  7873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7874. (eval $ac_try) 2>&5
  7875. ac_status=$?
  7876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7877. (exit $ac_status); }; }; then
  7878. ac_hi=$ac_mid
  7879. else
  7880. echo "$as_me: failed program was:" >&5
  7881. sed 's/^/| /' conftest.$ac_ext >&5
  7882.  
  7883. ac_lo=`expr '(' $ac_mid ')' + 1`
  7884. fi
  7885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7886. done
  7887. case $ac_lo in
  7888. ?*) ac_cv_sizeof_short=$ac_lo;;
  7889. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7890. See \`config.log' for more details." >&5
  7891. echo "$as_me: error: cannot compute sizeof (short), 77
  7892. See \`config.log' for more details." >&2;}
  7893. { (exit 1); exit 1; }; } ;;
  7894. esac
  7895. else
  7896. if test "$cross_compiling" = yes; then
  7897. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  7898. See \`config.log' for more details." >&5
  7899. echo "$as_me: error: cannot run test program while cross compiling
  7900. See \`config.log' for more details." >&2;}
  7901. { (exit 1); exit 1; }; }
  7902. else
  7903. cat >conftest.$ac_ext <<_ACEOF
  7904. /* confdefs.h. */
  7905. _ACEOF
  7906. cat confdefs.h >>conftest.$ac_ext
  7907. cat >>conftest.$ac_ext <<_ACEOF
  7908. /* end confdefs.h. */
  7909. $ac_includes_default
  7910. long longval () { return (long) (sizeof (short)); }
  7911. unsigned long ulongval () { return (long) (sizeof (short)); }
  7912. #include <stdio.h>
  7913. #include <stdlib.h>
  7914. int
  7915. main ()
  7916. {
  7917.  
  7918. FILE *f = fopen ("conftest.val", "w");
  7919. if (! f)
  7920. exit (1);
  7921. if (((long) (sizeof (short))) < 0)
  7922. {
  7923. long i = longval ();
  7924. if (i != ((long) (sizeof (short))))
  7925. exit (1);
  7926. fprintf (f, "%ld\n", i);
  7927. }
  7928. else
  7929. {
  7930. unsigned long i = ulongval ();
  7931. if (i != ((long) (sizeof (short))))
  7932. exit (1);
  7933. fprintf (f, "%lu\n", i);
  7934. }
  7935. exit (ferror (f) || fclose (f) != 0);
  7936.  
  7937. ;
  7938. return 0;
  7939. }
  7940. _ACEOF
  7941. rm -f conftest$ac_exeext
  7942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7943. (eval $ac_link) 2>&5
  7944. ac_status=$?
  7945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7946. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7948. (eval $ac_try) 2>&5
  7949. ac_status=$?
  7950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7951. (exit $ac_status); }; }; then
  7952. ac_cv_sizeof_short=`cat conftest.val`
  7953. else
  7954. echo "$as_me: program exited with status $ac_status" >&5
  7955. echo "$as_me: failed program was:" >&5
  7956. sed 's/^/| /' conftest.$ac_ext >&5
  7957.  
  7958. ( exit $ac_status )
  7959. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7960. See \`config.log' for more details." >&5
  7961. echo "$as_me: error: cannot compute sizeof (short), 77
  7962. See \`config.log' for more details." >&2;}
  7963. { (exit 1); exit 1; }; }
  7964. fi
  7965. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7966. fi
  7967. fi
  7968. rm -f conftest.val
  7969. else
  7970. ac_cv_sizeof_short=0
  7971. fi
  7972. fi
  7973. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7974. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7975. cat >>confdefs.h <<_ACEOF
  7976. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7977. _ACEOF
  7978.  
  7979.  
  7980. echo "$as_me:$LINENO: checking for char" >&5
  7981. echo $ECHO_N "checking for char... $ECHO_C" >&6
  7982. if test "${ac_cv_type_char+set}" = set; then
  7983. echo $ECHO_N "(cached) $ECHO_C" >&6
  7984. else
  7985. cat >conftest.$ac_ext <<_ACEOF
  7986. /* confdefs.h. */
  7987. _ACEOF
  7988. cat confdefs.h >>conftest.$ac_ext
  7989. cat >>conftest.$ac_ext <<_ACEOF
  7990. /* end confdefs.h. */
  7991. $ac_includes_default
  7992. int
  7993. main ()
  7994. {
  7995. if ((char *) 0)
  7996. return 0;
  7997. if (sizeof (char))
  7998. return 0;
  7999. ;
  8000. return 0;
  8001. }
  8002. _ACEOF
  8003. rm -f conftest.$ac_objext
  8004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8005. (eval $ac_compile) 2>conftest.er1
  8006. ac_status=$?
  8007. grep -v '^ *+' conftest.er1 >conftest.err
  8008. rm -f conftest.er1
  8009. cat conftest.err >&5
  8010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8011. (exit $ac_status); } &&
  8012. { ac_try='test -z "$ac_c_werror_flag"
  8013. || test ! -s conftest.err'
  8014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8015. (eval $ac_try) 2>&5
  8016. ac_status=$?
  8017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8018. (exit $ac_status); }; } &&
  8019. { ac_try='test -s conftest.$ac_objext'
  8020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8021. (eval $ac_try) 2>&5
  8022. ac_status=$?
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); }; }; then
  8025. ac_cv_type_char=yes
  8026. else
  8027. echo "$as_me: failed program was:" >&5
  8028. sed 's/^/| /' conftest.$ac_ext >&5
  8029.  
  8030. ac_cv_type_char=no
  8031. fi
  8032. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8033. fi
  8034. echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
  8035. echo "${ECHO_T}$ac_cv_type_char" >&6
  8036.  
  8037. echo "$as_me:$LINENO: checking size of char" >&5
  8038. echo $ECHO_N "checking size of char... $ECHO_C" >&6
  8039. if test "${ac_cv_sizeof_char+set}" = set; then
  8040. echo $ECHO_N "(cached) $ECHO_C" >&6
  8041. else
  8042. if test "$ac_cv_type_char" = yes; then
  8043. # The cast to unsigned long works around a bug in the HP C Compiler
  8044. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8045. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8046. # This bug is HP SR number 8606223364.
  8047. if test "$cross_compiling" = yes; then
  8048. # Depending upon the size, compute the lo and hi bounds.
  8049. cat >conftest.$ac_ext <<_ACEOF
  8050. /* confdefs.h. */
  8051. _ACEOF
  8052. cat confdefs.h >>conftest.$ac_ext
  8053. cat >>conftest.$ac_ext <<_ACEOF
  8054. /* end confdefs.h. */
  8055. $ac_includes_default
  8056. int
  8057. main ()
  8058. {
  8059. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
  8060. test_array [0] = 0
  8061.  
  8062. ;
  8063. return 0;
  8064. }
  8065. _ACEOF
  8066. rm -f conftest.$ac_objext
  8067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8068. (eval $ac_compile) 2>conftest.er1
  8069. ac_status=$?
  8070. grep -v '^ *+' conftest.er1 >conftest.err
  8071. rm -f conftest.er1
  8072. cat conftest.err >&5
  8073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8074. (exit $ac_status); } &&
  8075. { ac_try='test -z "$ac_c_werror_flag"
  8076. || test ! -s conftest.err'
  8077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8078. (eval $ac_try) 2>&5
  8079. ac_status=$?
  8080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8081. (exit $ac_status); }; } &&
  8082. { ac_try='test -s conftest.$ac_objext'
  8083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8084. (eval $ac_try) 2>&5
  8085. ac_status=$?
  8086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8087. (exit $ac_status); }; }; then
  8088. ac_lo=0 ac_mid=0
  8089. while :; do
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. $ac_includes_default
  8097. int
  8098. main ()
  8099. {
  8100. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  8101. test_array [0] = 0
  8102.  
  8103. ;
  8104. return 0;
  8105. }
  8106. _ACEOF
  8107. rm -f conftest.$ac_objext
  8108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8109. (eval $ac_compile) 2>conftest.er1
  8110. ac_status=$?
  8111. grep -v '^ *+' conftest.er1 >conftest.err
  8112. rm -f conftest.er1
  8113. cat conftest.err >&5
  8114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8115. (exit $ac_status); } &&
  8116. { ac_try='test -z "$ac_c_werror_flag"
  8117. || test ! -s conftest.err'
  8118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8119. (eval $ac_try) 2>&5
  8120. ac_status=$?
  8121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); }; } &&
  8123. { ac_try='test -s conftest.$ac_objext'
  8124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8125. (eval $ac_try) 2>&5
  8126. ac_status=$?
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. (exit $ac_status); }; }; then
  8129. ac_hi=$ac_mid; break
  8130. else
  8131. echo "$as_me: failed program was:" >&5
  8132. sed 's/^/| /' conftest.$ac_ext >&5
  8133.  
  8134. ac_lo=`expr $ac_mid + 1`
  8135. if test $ac_lo -le $ac_mid; then
  8136. ac_lo= ac_hi=
  8137. break
  8138. fi
  8139. ac_mid=`expr 2 '*' $ac_mid + 1`
  8140. fi
  8141. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8142. done
  8143. else
  8144. echo "$as_me: failed program was:" >&5
  8145. sed 's/^/| /' conftest.$ac_ext >&5
  8146.  
  8147. cat >conftest.$ac_ext <<_ACEOF
  8148. /* confdefs.h. */
  8149. _ACEOF
  8150. cat confdefs.h >>conftest.$ac_ext
  8151. cat >>conftest.$ac_ext <<_ACEOF
  8152. /* end confdefs.h. */
  8153. $ac_includes_default
  8154. int
  8155. main ()
  8156. {
  8157. static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
  8158. test_array [0] = 0
  8159.  
  8160. ;
  8161. return 0;
  8162. }
  8163. _ACEOF
  8164. rm -f conftest.$ac_objext
  8165. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8166. (eval $ac_compile) 2>conftest.er1
  8167. ac_status=$?
  8168. grep -v '^ *+' conftest.er1 >conftest.err
  8169. rm -f conftest.er1
  8170. cat conftest.err >&5
  8171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8172. (exit $ac_status); } &&
  8173. { ac_try='test -z "$ac_c_werror_flag"
  8174. || test ! -s conftest.err'
  8175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8176. (eval $ac_try) 2>&5
  8177. ac_status=$?
  8178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179. (exit $ac_status); }; } &&
  8180. { ac_try='test -s conftest.$ac_objext'
  8181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8182. (eval $ac_try) 2>&5
  8183. ac_status=$?
  8184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8185. (exit $ac_status); }; }; then
  8186. ac_hi=-1 ac_mid=-1
  8187. while :; do
  8188. cat >conftest.$ac_ext <<_ACEOF
  8189. /* confdefs.h. */
  8190. _ACEOF
  8191. cat confdefs.h >>conftest.$ac_ext
  8192. cat >>conftest.$ac_ext <<_ACEOF
  8193. /* end confdefs.h. */
  8194. $ac_includes_default
  8195. int
  8196. main ()
  8197. {
  8198. static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
  8199. test_array [0] = 0
  8200.  
  8201. ;
  8202. return 0;
  8203. }
  8204. _ACEOF
  8205. rm -f conftest.$ac_objext
  8206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8207. (eval $ac_compile) 2>conftest.er1
  8208. ac_status=$?
  8209. grep -v '^ *+' conftest.er1 >conftest.err
  8210. rm -f conftest.er1
  8211. cat conftest.err >&5
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. (exit $ac_status); } &&
  8214. { ac_try='test -z "$ac_c_werror_flag"
  8215. || test ! -s conftest.err'
  8216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8217. (eval $ac_try) 2>&5
  8218. ac_status=$?
  8219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8220. (exit $ac_status); }; } &&
  8221. { ac_try='test -s conftest.$ac_objext'
  8222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8223. (eval $ac_try) 2>&5
  8224. ac_status=$?
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); }; }; then
  8227. ac_lo=$ac_mid; break
  8228. else
  8229. echo "$as_me: failed program was:" >&5
  8230. sed 's/^/| /' conftest.$ac_ext >&5
  8231.  
  8232. ac_hi=`expr '(' $ac_mid ')' - 1`
  8233. if test $ac_mid -le $ac_hi; then
  8234. ac_lo= ac_hi=
  8235. break
  8236. fi
  8237. ac_mid=`expr 2 '*' $ac_mid`
  8238. fi
  8239. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8240. done
  8241. else
  8242. echo "$as_me: failed program was:" >&5
  8243. sed 's/^/| /' conftest.$ac_ext >&5
  8244.  
  8245. ac_lo= ac_hi=
  8246. fi
  8247. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8248. fi
  8249. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8250. # Binary search between lo and hi bounds.
  8251. while test "x$ac_lo" != "x$ac_hi"; do
  8252. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8253. cat >conftest.$ac_ext <<_ACEOF
  8254. /* confdefs.h. */
  8255. _ACEOF
  8256. cat confdefs.h >>conftest.$ac_ext
  8257. cat >>conftest.$ac_ext <<_ACEOF
  8258. /* end confdefs.h. */
  8259. $ac_includes_default
  8260. int
  8261. main ()
  8262. {
  8263. static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
  8264. test_array [0] = 0
  8265.  
  8266. ;
  8267. return 0;
  8268. }
  8269. _ACEOF
  8270. rm -f conftest.$ac_objext
  8271. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8272. (eval $ac_compile) 2>conftest.er1
  8273. ac_status=$?
  8274. grep -v '^ *+' conftest.er1 >conftest.err
  8275. rm -f conftest.er1
  8276. cat conftest.err >&5
  8277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8278. (exit $ac_status); } &&
  8279. { ac_try='test -z "$ac_c_werror_flag"
  8280. || test ! -s conftest.err'
  8281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8282. (eval $ac_try) 2>&5
  8283. ac_status=$?
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); }; } &&
  8286. { ac_try='test -s conftest.$ac_objext'
  8287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8288. (eval $ac_try) 2>&5
  8289. ac_status=$?
  8290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. (exit $ac_status); }; }; then
  8292. ac_hi=$ac_mid
  8293. else
  8294. echo "$as_me: failed program was:" >&5
  8295. sed 's/^/| /' conftest.$ac_ext >&5
  8296.  
  8297. ac_lo=`expr '(' $ac_mid ')' + 1`
  8298. fi
  8299. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8300. done
  8301. case $ac_lo in
  8302. ?*) ac_cv_sizeof_char=$ac_lo;;
  8303. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  8304. See \`config.log' for more details." >&5
  8305. echo "$as_me: error: cannot compute sizeof (char), 77
  8306. See \`config.log' for more details." >&2;}
  8307. { (exit 1); exit 1; }; } ;;
  8308. esac
  8309. else
  8310. if test "$cross_compiling" = yes; then
  8311. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8312. See \`config.log' for more details." >&5
  8313. echo "$as_me: error: cannot run test program while cross compiling
  8314. See \`config.log' for more details." >&2;}
  8315. { (exit 1); exit 1; }; }
  8316. else
  8317. cat >conftest.$ac_ext <<_ACEOF
  8318. /* confdefs.h. */
  8319. _ACEOF
  8320. cat confdefs.h >>conftest.$ac_ext
  8321. cat >>conftest.$ac_ext <<_ACEOF
  8322. /* end confdefs.h. */
  8323. $ac_includes_default
  8324. long longval () { return (long) (sizeof (char)); }
  8325. unsigned long ulongval () { return (long) (sizeof (char)); }
  8326. #include <stdio.h>
  8327. #include <stdlib.h>
  8328. int
  8329. main ()
  8330. {
  8331.  
  8332. FILE *f = fopen ("conftest.val", "w");
  8333. if (! f)
  8334. exit (1);
  8335. if (((long) (sizeof (char))) < 0)
  8336. {
  8337. long i = longval ();
  8338. if (i != ((long) (sizeof (char))))
  8339. exit (1);
  8340. fprintf (f, "%ld\n", i);
  8341. }
  8342. else
  8343. {
  8344. unsigned long i = ulongval ();
  8345. if (i != ((long) (sizeof (char))))
  8346. exit (1);
  8347. fprintf (f, "%lu\n", i);
  8348. }
  8349. exit (ferror (f) || fclose (f) != 0);
  8350.  
  8351. ;
  8352. return 0;
  8353. }
  8354. _ACEOF
  8355. rm -f conftest$ac_exeext
  8356. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8357. (eval $ac_link) 2>&5
  8358. ac_status=$?
  8359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8360. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8362. (eval $ac_try) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8365. (exit $ac_status); }; }; then
  8366. ac_cv_sizeof_char=`cat conftest.val`
  8367. else
  8368. echo "$as_me: program exited with status $ac_status" >&5
  8369. echo "$as_me: failed program was:" >&5
  8370. sed 's/^/| /' conftest.$ac_ext >&5
  8371.  
  8372. ( exit $ac_status )
  8373. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
  8374. See \`config.log' for more details." >&5
  8375. echo "$as_me: error: cannot compute sizeof (char), 77
  8376. See \`config.log' for more details." >&2;}
  8377. { (exit 1); exit 1; }; }
  8378. fi
  8379. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8380. fi
  8381. fi
  8382. rm -f conftest.val
  8383. else
  8384. ac_cv_sizeof_char=0
  8385. fi
  8386. fi
  8387. echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
  8388. echo "${ECHO_T}$ac_cv_sizeof_char" >&6
  8389. cat >>confdefs.h <<_ACEOF
  8390. #define SIZEOF_CHAR $ac_cv_sizeof_char
  8391. _ACEOF
  8392.  
  8393.  
  8394.  
  8395. echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
  8396. echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
  8397. case "$ac_cv_sizeof_char" in
  8398. 1) acx_cv_type_int8_t=char ;;
  8399. *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
  8400. echo "$as_me: error: no 8-bit type" >&2;}
  8401. { (exit please report a bug); exit please report a bug; }; }
  8402. esac
  8403. echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
  8404. echo "${ECHO_T}$acx_cv_type_int8_t" >&6
  8405.  
  8406. echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
  8407. echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
  8408. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  8409. 2:*) acx_cv_type_int16_t=int ;;
  8410. *:2) acx_cv_type_int16_t=short ;;
  8411. *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
  8412. echo "$as_me: error: no 16-bit type" >&2;}
  8413. { (exit please report a bug); exit please report a bug; }; }
  8414. esac
  8415. echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
  8416. echo "${ECHO_T}$acx_cv_type_int16_t" >&6
  8417.  
  8418. echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
  8419. echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
  8420. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  8421. 4:*) acx_cv_type_int32_t=int ;;
  8422. *:4) acx_cv_type_int32_t=long ;;
  8423. *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
  8424. echo "$as_me: error: no 32-bit type" >&2;}
  8425. { (exit please report a bug); exit please report a bug; }; }
  8426. esac
  8427. echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
  8428. echo "${ECHO_T}$acx_cv_type_int32_t" >&6
  8429. fi
  8430.  
  8431. # These tests are here to make the output prettier
  8432.  
  8433. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  8434. case "$ac_cv_sizeof_long" in
  8435. 8) acx_cv_type_int64_t=long ;;
  8436. esac
  8437. echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
  8438. echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
  8439. echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  8440. echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
  8441. fi
  8442.  
  8443. # Now we can use the above types
  8444.  
  8445. if test "$ac_cv_type_uintptr_t" != yes; then
  8446. echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
  8447. echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
  8448. case $ac_cv_sizeof_void_p in
  8449. 2) acx_cv_type_intptr_t=int16_t ;;
  8450. 4) acx_cv_type_intptr_t=int32_t ;;
  8451. 8) acx_cv_type_intptr_t=int64_t ;;
  8452. *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
  8453. echo "$as_me: error: no equivalent for intptr_t" >&2;}
  8454. { (exit please report a bug); exit please report a bug; }; }
  8455. esac
  8456. echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
  8457. echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
  8458. fi
  8459.  
  8460. # ----------------- done all checks, emit header -------------
  8461. ac_config_commands="$ac_config_commands gstdint.h"
  8462.  
  8463.  
  8464.  
  8465.  
  8466. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  8467. # In case the pthread.h system header is not found, this test will fail.
  8468. XPCFLAGS=""
  8469. CFLAGS="$CFLAGS -pthread"
  8470. cat >conftest.$ac_ext <<_ACEOF
  8471. /* confdefs.h. */
  8472. _ACEOF
  8473. cat confdefs.h >>conftest.$ac_ext
  8474. cat >>conftest.$ac_ext <<_ACEOF
  8475. /* end confdefs.h. */
  8476. #include <pthread.h>
  8477. void *g(void *d) { return NULL; }
  8478. int
  8479. main ()
  8480. {
  8481. pthread_t t; pthread_create(&t,NULL,g,NULL);
  8482. ;
  8483. return 0;
  8484. }
  8485. _ACEOF
  8486. rm -f conftest.$ac_objext conftest$ac_exeext
  8487. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8488. (eval $ac_link) 2>conftest.er1
  8489. ac_status=$?
  8490. grep -v '^ *+' conftest.er1 >conftest.err
  8491. rm -f conftest.er1
  8492. cat conftest.err >&5
  8493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494. (exit $ac_status); } &&
  8495. { ac_try='test -z "$ac_c_werror_flag"
  8496. || test ! -s conftest.err'
  8497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8498. (eval $ac_try) 2>&5
  8499. ac_status=$?
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); }; } &&
  8502. { ac_try='test -s conftest$ac_exeext'
  8503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8504. (eval $ac_try) 2>&5
  8505. ac_status=$?
  8506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8507. (exit $ac_status); }; }; then
  8508. XPCFLAGS=" -Wc,-pthread"
  8509. else
  8510. echo "$as_me: failed program was:" >&5
  8511. sed 's/^/| /' conftest.$ac_ext >&5
  8512.  
  8513. CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
  8514. cat >conftest.$ac_ext <<_ACEOF
  8515. /* confdefs.h. */
  8516. _ACEOF
  8517. cat confdefs.h >>conftest.$ac_ext
  8518. cat >>conftest.$ac_ext <<_ACEOF
  8519. /* end confdefs.h. */
  8520. #include <pthread.h>
  8521. void *g(void *d) { return NULL; }
  8522. int
  8523. main ()
  8524. {
  8525. pthread_t t; pthread_create(&t,NULL,g,NULL);
  8526. ;
  8527. return 0;
  8528. }
  8529. _ACEOF
  8530. rm -f conftest.$ac_objext conftest$ac_exeext
  8531. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8532. (eval $ac_link) 2>conftest.er1
  8533. ac_status=$?
  8534. grep -v '^ *+' conftest.er1 >conftest.err
  8535. rm -f conftest.er1
  8536. cat conftest.err >&5
  8537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8538. (exit $ac_status); } &&
  8539. { ac_try='test -z "$ac_c_werror_flag"
  8540. || test ! -s conftest.err'
  8541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8542. (eval $ac_try) 2>&5
  8543. ac_status=$?
  8544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8545. (exit $ac_status); }; } &&
  8546. { ac_try='test -s conftest$ac_exeext'
  8547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8548. (eval $ac_try) 2>&5
  8549. ac_status=$?
  8550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8551. (exit $ac_status); }; }; then
  8552. :
  8553. else
  8554. echo "$as_me: failed program was:" >&5
  8555. sed 's/^/| /' conftest.$ac_ext >&5
  8556.  
  8557. { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
  8558. echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
  8559. { (echo "Hacked [JM]";); echo "Hacked [JM]"; }; }
  8560. fi
  8561. rm -f conftest.err conftest.$ac_objext \
  8562. conftest$ac_exeext conftest.$ac_ext
  8563. fi
  8564. rm -f conftest.err conftest.$ac_objext \
  8565. conftest$ac_exeext conftest.$ac_ext
  8566.  
  8567. # Check for functions needed.
  8568.  
  8569.  
  8570. for ac_func in getloadavg clock_gettime
  8571. do
  8572. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8573. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8574. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8575. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8576. echo $ECHO_N "(cached) $ECHO_C" >&6
  8577. else
  8578. cat >conftest.$ac_ext <<_ACEOF
  8579. /* confdefs.h. */
  8580. _ACEOF
  8581. cat confdefs.h >>conftest.$ac_ext
  8582. cat >>conftest.$ac_ext <<_ACEOF
  8583. /* end confdefs.h. */
  8584. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8585. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8586. #define $ac_func innocuous_$ac_func
  8587.  
  8588. /* System header to define __stub macros and hopefully few prototypes,
  8589. which can conflict with char $ac_func (); below.
  8590. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8591. <limits.h> exists even on freestanding compilers. */
  8592.  
  8593. #ifdef __STDC__
  8594. # include <limits.h>
  8595. #else
  8596. # include <assert.h>
  8597. #endif
  8598.  
  8599. #undef $ac_func
  8600.  
  8601. /* Override any gcc2 internal prototype to avoid an error. */
  8602. #ifdef __cplusplus
  8603. extern "C"
  8604. {
  8605. #endif
  8606. /* We use char because int might match the return type of a gcc2
  8607. builtin and then its argument prototype would still apply. */
  8608. char $ac_func ();
  8609. /* The GNU C library defines this for functions which it implements
  8610. to always fail with ENOSYS. Some functions are actually named
  8611. something starting with __ and the normal name is an alias. */
  8612. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8613. choke me
  8614. #else
  8615. char (*f) () = $ac_func;
  8616. #endif
  8617. #ifdef __cplusplus
  8618. }
  8619. #endif
  8620.  
  8621. int
  8622. main ()
  8623. {
  8624. return f != $ac_func;
  8625. ;
  8626. return 0;
  8627. }
  8628. _ACEOF
  8629. rm -f conftest.$ac_objext conftest$ac_exeext
  8630. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8631. (eval $ac_link) 2>conftest.er1
  8632. ac_status=$?
  8633. grep -v '^ *+' conftest.er1 >conftest.err
  8634. rm -f conftest.er1
  8635. cat conftest.err >&5
  8636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8637. (exit $ac_status); } &&
  8638. { ac_try='test -z "$ac_c_werror_flag"
  8639. || test ! -s conftest.err'
  8640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8641. (eval $ac_try) 2>&5
  8642. ac_status=$?
  8643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8644. (exit $ac_status); }; } &&
  8645. { ac_try='test -s conftest$ac_exeext'
  8646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8647. (eval $ac_try) 2>&5
  8648. ac_status=$?
  8649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8650. (exit $ac_status); }; }; then
  8651. eval "$as_ac_var=yes"
  8652. else
  8653. echo "$as_me: failed program was:" >&5
  8654. sed 's/^/| /' conftest.$ac_ext >&5
  8655.  
  8656. eval "$as_ac_var=no"
  8657. fi
  8658. rm -f conftest.err conftest.$ac_objext \
  8659. conftest$ac_exeext conftest.$ac_ext
  8660. fi
  8661. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8662. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8663. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8664. cat >>confdefs.h <<_ACEOF
  8665. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8666. _ACEOF
  8667.  
  8668. fi
  8669. done
  8670.  
  8671.  
  8672. # Check for broken semaphore implementation on darwin.
  8673. # sem_init returns: sem_init error: Function not implemented.
  8674. case "$host" in
  8675. *-darwin*)
  8676.  
  8677. cat >>confdefs.h <<\_ACEOF
  8678. #define HAVE_BROKEN_POSIX_SEMAPHORES 1
  8679. _ACEOF
  8680.  
  8681. ;;
  8682. *-linux*)
  8683. case "$enable_linux_futex" in
  8684. default)
  8685. # If headers don't have gettid/futex syscalls definition, then
  8686. # default to no, otherwise there will be compile time failures.
  8687. # Otherwise, default to yes. If we don't detect we are
  8688. # compiled/linked against NPTL and not cross-compiling, check
  8689. # if programs are run by default against NPTL and if not, issue
  8690. # a warning.
  8691. enable_linux_futex=no
  8692. cat >conftest.$ac_ext <<_ACEOF
  8693. /* confdefs.h. */
  8694. _ACEOF
  8695. cat confdefs.h >>conftest.$ac_ext
  8696. cat >>conftest.$ac_ext <<_ACEOF
  8697. /* end confdefs.h. */
  8698. #include <sys/syscall.h>
  8699. int lk;
  8700. int
  8701. main ()
  8702. {
  8703. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  8704. ;
  8705. return 0;
  8706. }
  8707. _ACEOF
  8708. rm -f conftest.$ac_objext conftest$ac_exeext
  8709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8710. (eval $ac_link) 2>conftest.er1
  8711. ac_status=$?
  8712. grep -v '^ *+' conftest.er1 >conftest.err
  8713. rm -f conftest.er1
  8714. cat conftest.err >&5
  8715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8716. (exit $ac_status); } &&
  8717. { ac_try='test -z "$ac_c_werror_flag"
  8718. || test ! -s conftest.err'
  8719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8720. (eval $ac_try) 2>&5
  8721. ac_status=$?
  8722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8723. (exit $ac_status); }; } &&
  8724. { ac_try='test -s conftest$ac_exeext'
  8725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8726. (eval $ac_try) 2>&5
  8727. ac_status=$?
  8728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8729. (exit $ac_status); }; }; then
  8730. cat >conftest.$ac_ext <<_ACEOF
  8731. /* confdefs.h. */
  8732. _ACEOF
  8733. cat confdefs.h >>conftest.$ac_ext
  8734. cat >>conftest.$ac_ext <<_ACEOF
  8735. /* end confdefs.h. */
  8736. #ifndef _GNU_SOURCE
  8737. #define _GNU_SOURCE 1
  8738. #endif
  8739. #include <pthread.h>
  8740. pthread_t th; void *status;
  8741. int
  8742. main ()
  8743. {
  8744. pthread_tryjoin_np (th, &status);
  8745. ;
  8746. return 0;
  8747. }
  8748. _ACEOF
  8749. rm -f conftest.$ac_objext conftest$ac_exeext
  8750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8751. (eval $ac_link) 2>conftest.er1
  8752. ac_status=$?
  8753. grep -v '^ *+' conftest.er1 >conftest.err
  8754. rm -f conftest.er1
  8755. cat conftest.err >&5
  8756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8757. (exit $ac_status); } &&
  8758. { ac_try='test -z "$ac_c_werror_flag"
  8759. || test ! -s conftest.err'
  8760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8761. (eval $ac_try) 2>&5
  8762. ac_status=$?
  8763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8764. (exit $ac_status); }; } &&
  8765. { ac_try='test -s conftest$ac_exeext'
  8766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8767. (eval $ac_try) 2>&5
  8768. ac_status=$?
  8769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8770. (exit $ac_status); }; }; then
  8771. enable_linux_futex=yes
  8772. else
  8773. echo "$as_me: failed program was:" >&5
  8774. sed 's/^/| /' conftest.$ac_ext >&5
  8775.  
  8776. if test x$cross_compiling = xno; then
  8777. if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
  8778. | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
  8779. { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
  8780. If so, please configure with --disable-linux-futex" >&5
  8781. echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
  8782. If so, please configure with --disable-linux-futex" >&2;}
  8783. fi
  8784. fi
  8785. enable_linux_futex=yes
  8786. fi
  8787. rm -f conftest.err conftest.$ac_objext \
  8788. conftest$ac_exeext conftest.$ac_ext
  8789. else
  8790. echo "$as_me: failed program was:" >&5
  8791. sed 's/^/| /' conftest.$ac_ext >&5
  8792.  
  8793. fi
  8794. rm -f conftest.err conftest.$ac_objext \
  8795. conftest$ac_exeext conftest.$ac_ext
  8796. ;;
  8797. yes)
  8798. cat >conftest.$ac_ext <<_ACEOF
  8799. /* confdefs.h. */
  8800. _ACEOF
  8801. cat confdefs.h >>conftest.$ac_ext
  8802. cat >>conftest.$ac_ext <<_ACEOF
  8803. /* end confdefs.h. */
  8804. #include <sys/syscall.h>
  8805. int lk;
  8806. int
  8807. main ()
  8808. {
  8809. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  8810. ;
  8811. return 0;
  8812. }
  8813. _ACEOF
  8814. rm -f conftest.$ac_objext conftest$ac_exeext
  8815. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8816. (eval $ac_link) 2>conftest.er1
  8817. ac_status=$?
  8818. grep -v '^ *+' conftest.er1 >conftest.err
  8819. rm -f conftest.er1
  8820. cat conftest.err >&5
  8821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822. (exit $ac_status); } &&
  8823. { ac_try='test -z "$ac_c_werror_flag"
  8824. || test ! -s conftest.err'
  8825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8826. (eval $ac_try) 2>&5
  8827. ac_status=$?
  8828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8829. (exit $ac_status); }; } &&
  8830. { ac_try='test -s conftest$ac_exeext'
  8831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8832. (eval $ac_try) 2>&5
  8833. ac_status=$?
  8834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8835. (exit $ac_status); }; }; then
  8836. :
  8837. else
  8838. echo "$as_me: failed program was:" >&5
  8839. sed 's/^/| /' conftest.$ac_ext >&5
  8840.  
  8841. { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
  8842. echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
  8843. { (exit 1); exit 1; }; }
  8844. fi
  8845. rm -f conftest.err conftest.$ac_objext \
  8846. conftest$ac_exeext conftest.$ac_ext
  8847. ;;
  8848. esac
  8849. ;;
  8850. esac
  8851.  
  8852. # At least for glibc, clock_gettime is in librt. But don't pull that
  8853. # in if it still doesn't give us the function we want.
  8854. if test $ac_cv_func_clock_gettime = no; then
  8855. echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
  8856. echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
  8857. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
  8858. echo $ECHO_N "(cached) $ECHO_C" >&6
  8859. else
  8860. ac_check_lib_save_LIBS=$LIBS
  8861. LIBS="-lrt $LIBS"
  8862. cat >conftest.$ac_ext <<_ACEOF
  8863. /* confdefs.h. */
  8864. _ACEOF
  8865. cat confdefs.h >>conftest.$ac_ext
  8866. cat >>conftest.$ac_ext <<_ACEOF
  8867. /* end confdefs.h. */
  8868.  
  8869. /* Override any gcc2 internal prototype to avoid an error. */
  8870. #ifdef __cplusplus
  8871. extern "C"
  8872. #endif
  8873. /* We use char because int might match the return type of a gcc2
  8874. builtin and then its argument prototype would still apply. */
  8875. char clock_gettime ();
  8876. int
  8877. main ()
  8878. {
  8879. clock_gettime ();
  8880. ;
  8881. return 0;
  8882. }
  8883. _ACEOF
  8884. rm -f conftest.$ac_objext conftest$ac_exeext
  8885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8886. (eval $ac_link) 2>conftest.er1
  8887. ac_status=$?
  8888. grep -v '^ *+' conftest.er1 >conftest.err
  8889. rm -f conftest.er1
  8890. cat conftest.err >&5
  8891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8892. (exit $ac_status); } &&
  8893. { ac_try='test -z "$ac_c_werror_flag"
  8894. || test ! -s conftest.err'
  8895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8896. (eval $ac_try) 2>&5
  8897. ac_status=$?
  8898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8899. (exit $ac_status); }; } &&
  8900. { ac_try='test -s conftest$ac_exeext'
  8901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8902. (eval $ac_try) 2>&5
  8903. ac_status=$?
  8904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905. (exit $ac_status); }; }; then
  8906. ac_cv_lib_rt_clock_gettime=yes
  8907. else
  8908. echo "$as_me: failed program was:" >&5
  8909. sed 's/^/| /' conftest.$ac_ext >&5
  8910.  
  8911. ac_cv_lib_rt_clock_gettime=no
  8912. fi
  8913. rm -f conftest.err conftest.$ac_objext \
  8914. conftest$ac_exeext conftest.$ac_ext
  8915. LIBS=$ac_check_lib_save_LIBS
  8916. fi
  8917. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
  8918. echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
  8919. if test $ac_cv_lib_rt_clock_gettime = yes; then
  8920. LIBS="-lrt $LIBS"
  8921.  
  8922. cat >>confdefs.h <<\_ACEOF
  8923. #define HAVE_CLOCK_GETTIME 1
  8924. _ACEOF
  8925.  
  8926. fi
  8927.  
  8928. fi
  8929.  
  8930. # See if we support thread-local storage.
  8931.  
  8932. # Check whether --enable-tls or --disable-tls was given.
  8933. if test "${enable_tls+set}" = set; then
  8934. enableval="$enable_tls"
  8935.  
  8936. case "$enableval" in
  8937. yes|no) ;;
  8938. *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
  8939. echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
  8940. { (exit 1); exit 1; }; } ;;
  8941. esac
  8942.  
  8943. else
  8944. enable_tls=yes
  8945. fi;
  8946.  
  8947. echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
  8948. echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
  8949. if test "${have_tls+set}" = set; then
  8950. echo $ECHO_N "(cached) $ECHO_C" >&6
  8951. else
  8952.  
  8953. if test "$cross_compiling" = yes; then
  8954. cat >conftest.$ac_ext <<_ACEOF
  8955. __thread int foo;
  8956. _ACEOF
  8957. rm -f conftest.$ac_objext
  8958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8959. (eval $ac_compile) 2>conftest.er1
  8960. ac_status=$?
  8961. grep -v '^ *+' conftest.er1 >conftest.err
  8962. rm -f conftest.er1
  8963. cat conftest.err >&5
  8964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8965. (exit $ac_status); } &&
  8966. { ac_try='test -z "$ac_c_werror_flag"
  8967. || test ! -s conftest.err'
  8968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8969. (eval $ac_try) 2>&5
  8970. ac_status=$?
  8971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8972. (exit $ac_status); }; } &&
  8973. { ac_try='test -s conftest.$ac_objext'
  8974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8975. (eval $ac_try) 2>&5
  8976. ac_status=$?
  8977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8978. (exit $ac_status); }; }; then
  8979. have_tls=yes
  8980. else
  8981. echo "$as_me: failed program was:" >&5
  8982. sed 's/^/| /' conftest.$ac_ext >&5
  8983.  
  8984. have_tls=no
  8985. fi
  8986. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8987.  
  8988. else
  8989. cat >conftest.$ac_ext <<_ACEOF
  8990. __thread int a; int b; int main() { return a = b; }
  8991. _ACEOF
  8992. rm -f conftest$ac_exeext
  8993. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8994. (eval $ac_link) 2>&5
  8995. ac_status=$?
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8999. (eval $ac_try) 2>&5
  9000. ac_status=$?
  9001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9002. (exit $ac_status); }; }; then
  9003. save_LDFLAGS="$LDFLAGS"
  9004. LDFLAGS="-static $LDFLAGS"
  9005. cat >conftest.$ac_ext <<_ACEOF
  9006. int main() { return 0; }
  9007. _ACEOF
  9008. rm -f conftest.$ac_objext conftest$ac_exeext
  9009. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9010. (eval $ac_link) 2>conftest.er1
  9011. ac_status=$?
  9012. grep -v '^ *+' conftest.er1 >conftest.err
  9013. rm -f conftest.er1
  9014. cat conftest.err >&5
  9015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016. (exit $ac_status); } &&
  9017. { ac_try='test -z "$ac_c_werror_flag"
  9018. || test ! -s conftest.err'
  9019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9020. (eval $ac_try) 2>&5
  9021. ac_status=$?
  9022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9023. (exit $ac_status); }; } &&
  9024. { ac_try='test -s conftest$ac_exeext'
  9025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9026. (eval $ac_try) 2>&5
  9027. ac_status=$?
  9028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9029. (exit $ac_status); }; }; then
  9030. if test "$cross_compiling" = yes; then
  9031. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  9032. See \`config.log' for more details." >&5
  9033. echo "$as_me: error: cannot run test program while cross compiling
  9034. See \`config.log' for more details." >&2;}
  9035. { (exit 1); exit 1; }; }
  9036. else
  9037. cat >conftest.$ac_ext <<_ACEOF
  9038. __thread int a; int b; int main() { return a = b; }
  9039. _ACEOF
  9040. rm -f conftest$ac_exeext
  9041. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9042. (eval $ac_link) 2>&5
  9043. ac_status=$?
  9044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9047. (eval $ac_try) 2>&5
  9048. ac_status=$?
  9049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); }; }; then
  9051. have_tls=yes
  9052. else
  9053. echo "$as_me: program exited with status $ac_status" >&5
  9054. echo "$as_me: failed program was:" >&5
  9055. sed 's/^/| /' conftest.$ac_ext >&5
  9056.  
  9057. ( exit $ac_status )
  9058. have_tls=no
  9059. fi
  9060. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9061. fi
  9062. else
  9063. echo "$as_me: failed program was:" >&5
  9064. sed 's/^/| /' conftest.$ac_ext >&5
  9065.  
  9066. have_tls=yes
  9067. fi
  9068. rm -f conftest.err conftest.$ac_objext \
  9069. conftest$ac_exeext conftest.$ac_ext
  9070. LDFLAGS="$save_LDFLAGS"
  9071. else
  9072. echo "$as_me: program exited with status $ac_status" >&5
  9073. echo "$as_me: failed program was:" >&5
  9074. sed 's/^/| /' conftest.$ac_ext >&5
  9075.  
  9076. ( exit $ac_status )
  9077. have_tls=no
  9078. fi
  9079. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9080. fi
  9081. fi
  9082. echo "$as_me:$LINENO: result: $have_tls" >&5
  9083. echo "${ECHO_T}$have_tls" >&6
  9084. if test "$enable_tls $have_tls" = "yes yes"; then
  9085.  
  9086. cat >>confdefs.h <<\_ACEOF
  9087. #define HAVE_TLS 1
  9088. _ACEOF
  9089.  
  9090. fi
  9091.  
  9092. # See what sort of export controls are availible.
  9093.  
  9094. echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
  9095. echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
  9096. if test "${have_attribute_visibility+set}" = set; then
  9097. echo $ECHO_N "(cached) $ECHO_C" >&6
  9098. else
  9099.  
  9100. save_CFLAGS="$CFLAGS"
  9101. CFLAGS="$CFLAGS -Werror"
  9102. cat >conftest.$ac_ext <<_ACEOF
  9103. /* confdefs.h. */
  9104. _ACEOF
  9105. cat confdefs.h >>conftest.$ac_ext
  9106. cat >>conftest.$ac_ext <<_ACEOF
  9107. /* end confdefs.h. */
  9108. void __attribute__((visibility("hidden"))) foo(void) { }
  9109. int
  9110. main ()
  9111. {
  9112.  
  9113. ;
  9114. return 0;
  9115. }
  9116. _ACEOF
  9117. rm -f conftest.$ac_objext
  9118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9119. (eval $ac_compile) 2>conftest.er1
  9120. ac_status=$?
  9121. grep -v '^ *+' conftest.er1 >conftest.err
  9122. rm -f conftest.er1
  9123. cat conftest.err >&5
  9124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9125. (exit $ac_status); } &&
  9126. { ac_try='test -z "$ac_c_werror_flag"
  9127. || test ! -s conftest.err'
  9128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9129. (eval $ac_try) 2>&5
  9130. ac_status=$?
  9131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9132. (exit $ac_status); }; } &&
  9133. { ac_try='test -s conftest.$ac_objext'
  9134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9135. (eval $ac_try) 2>&5
  9136. ac_status=$?
  9137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9138. (exit $ac_status); }; }; then
  9139. have_attribute_visibility=yes
  9140. else
  9141. echo "$as_me: failed program was:" >&5
  9142. sed 's/^/| /' conftest.$ac_ext >&5
  9143.  
  9144. have_attribute_visibility=no
  9145. fi
  9146. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9147. CFLAGS="$save_CFLAGS"
  9148. fi
  9149. echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
  9150. echo "${ECHO_T}$have_attribute_visibility" >&6
  9151. if test $have_attribute_visibility = yes; then
  9152.  
  9153. cat >>confdefs.h <<\_ACEOF
  9154. #define HAVE_ATTRIBUTE_VISIBILITY 1
  9155. _ACEOF
  9156.  
  9157. fi
  9158.  
  9159. echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
  9160. echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
  9161. if test "${have_attribute_dllexport+set}" = set; then
  9162. echo $ECHO_N "(cached) $ECHO_C" >&6
  9163. else
  9164.  
  9165. save_CFLAGS="$CFLAGS"
  9166. CFLAGS="$CFLAGS -Werror"
  9167. cat >conftest.$ac_ext <<_ACEOF
  9168. /* confdefs.h. */
  9169. _ACEOF
  9170. cat confdefs.h >>conftest.$ac_ext
  9171. cat >>conftest.$ac_ext <<_ACEOF
  9172. /* end confdefs.h. */
  9173. void __attribute__((dllexport)) foo(void) { }
  9174. int
  9175. main ()
  9176. {
  9177.  
  9178. ;
  9179. return 0;
  9180. }
  9181. _ACEOF
  9182. rm -f conftest.$ac_objext
  9183. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9184. (eval $ac_compile) 2>conftest.er1
  9185. ac_status=$?
  9186. grep -v '^ *+' conftest.er1 >conftest.err
  9187. rm -f conftest.er1
  9188. cat conftest.err >&5
  9189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9190. (exit $ac_status); } &&
  9191. { ac_try='test -z "$ac_c_werror_flag"
  9192. || test ! -s conftest.err'
  9193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9194. (eval $ac_try) 2>&5
  9195. ac_status=$?
  9196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9197. (exit $ac_status); }; } &&
  9198. { ac_try='test -s conftest.$ac_objext'
  9199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9200. (eval $ac_try) 2>&5
  9201. ac_status=$?
  9202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9203. (exit $ac_status); }; }; then
  9204. have_attribute_dllexport=yes
  9205. else
  9206. echo "$as_me: failed program was:" >&5
  9207. sed 's/^/| /' conftest.$ac_ext >&5
  9208.  
  9209. have_attribute_dllexport=no
  9210. fi
  9211. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9212. CFLAGS="$save_CFLAGS"
  9213. fi
  9214. echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
  9215. echo "${ECHO_T}$have_attribute_dllexport" >&6
  9216. if test $have_attribute_dllexport = yes; then
  9217.  
  9218. cat >>confdefs.h <<\_ACEOF
  9219. #define HAVE_ATTRIBUTE_DLLEXPORT 1
  9220. _ACEOF
  9221.  
  9222. fi
  9223.  
  9224. echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
  9225. echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
  9226. if test "${have_attribute_alias+set}" = set; then
  9227. echo $ECHO_N "(cached) $ECHO_C" >&6
  9228. else
  9229.  
  9230. cat >conftest.$ac_ext <<_ACEOF
  9231. /* confdefs.h. */
  9232. _ACEOF
  9233. cat confdefs.h >>conftest.$ac_ext
  9234. cat >>conftest.$ac_ext <<_ACEOF
  9235. /* end confdefs.h. */
  9236.  
  9237. void foo(void) { }
  9238. extern void bar(void) __attribute__((alias("foo")));
  9239. int
  9240. main ()
  9241. {
  9242. bar();
  9243. ;
  9244. return 0;
  9245. }
  9246. _ACEOF
  9247. rm -f conftest.$ac_objext conftest$ac_exeext
  9248. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9249. (eval $ac_link) 2>conftest.er1
  9250. ac_status=$?
  9251. grep -v '^ *+' conftest.er1 >conftest.err
  9252. rm -f conftest.er1
  9253. cat conftest.err >&5
  9254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9255. (exit $ac_status); } &&
  9256. { ac_try='test -z "$ac_c_werror_flag"
  9257. || test ! -s conftest.err'
  9258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9259. (eval $ac_try) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); }; } &&
  9263. { ac_try='test -s conftest$ac_exeext'
  9264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9265. (eval $ac_try) 2>&5
  9266. ac_status=$?
  9267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9268. (exit $ac_status); }; }; then
  9269. have_attribute_alias=yes
  9270. else
  9271. echo "$as_me: failed program was:" >&5
  9272. sed 's/^/| /' conftest.$ac_ext >&5
  9273.  
  9274. have_attribute_alias=no
  9275. fi
  9276. rm -f conftest.err conftest.$ac_objext \
  9277. conftest$ac_exeext conftest.$ac_ext
  9278. fi
  9279. echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
  9280. echo "${ECHO_T}$have_attribute_alias" >&6
  9281. if test $have_attribute_alias = yes; then
  9282.  
  9283. cat >>confdefs.h <<\_ACEOF
  9284. #define HAVE_ATTRIBUTE_ALIAS 1
  9285. _ACEOF
  9286.  
  9287. fi
  9288.  
  9289. # If we're not using GNU ld, then there's no point in even trying these
  9290. # tests. Check for that first. We should have already tested for gld
  9291. # by now (in libtool), but require it now just to be safe...
  9292. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  9293. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  9294.  
  9295.  
  9296.  
  9297. # The name set by libtool depends on the version of libtool. Shame on us
  9298. # for depending on an impl detail, but c'est la vie. Older versions used
  9299. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  9300. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  9301. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  9302. # set (hence we're using an older libtool), then set it.
  9303. if test x${with_gnu_ld+set} != xset; then
  9304. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  9305. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  9306. with_gnu_ld=no
  9307. else
  9308. with_gnu_ld=$ac_cv_prog_gnu_ld
  9309. fi
  9310. fi
  9311.  
  9312. # Start by getting the version number. I think the libtool test already
  9313. # does some of this, but throws away the result.
  9314.  
  9315. ldver=`$LD --version 2>/dev/null | head -1 | \
  9316. sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
  9317.  
  9318. libgomp_gnu_ld_version=`echo $ldver | \
  9319. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  9320.  
  9321. # Set --gc-sections.
  9322. if test "$with_gnu_ld" = "notbroken"; then
  9323. # GNU ld it is! Joy and bunny rabbits!
  9324.  
  9325. # All these tests are for C++; save the language and the compiler flags.
  9326. # Need to do this so that g++ won't try to link in libstdc++
  9327. ac_test_CFLAGS="${CFLAGS+set}"
  9328. ac_save_CFLAGS="$CFLAGS"
  9329. CFLAGS='-x c++ -Wl,--gc-sections'
  9330.  
  9331. # Check for -Wl,--gc-sections
  9332. # XXX This test is broken at the moment, as symbols required for linking
  9333. # are now in libsupc++ (not built yet). In addition, this test has
  9334. # cored on solaris in the past. In addition, --gc-sections doesn't
  9335. # really work at the moment (keeps on discarding used sections, first
  9336. # .eh_frame and now some of the glibc sections for iconv).
  9337. # Bzzzzt. Thanks for playing, maybe next time.
  9338. echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
  9339. echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
  9340. if test "$cross_compiling" = yes; then
  9341. ac_sectionLDflags=yes
  9342. else
  9343. cat >conftest.$ac_ext <<_ACEOF
  9344. /* confdefs.h. */
  9345. _ACEOF
  9346. cat confdefs.h >>conftest.$ac_ext
  9347. cat >>conftest.$ac_ext <<_ACEOF
  9348. /* end confdefs.h. */
  9349.  
  9350. int main(void)
  9351. {
  9352. try { throw 1; }
  9353. catch (...) { };
  9354. return 0;
  9355. }
  9356.  
  9357. _ACEOF
  9358. rm -f conftest$ac_exeext
  9359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9360. (eval $ac_link) 2>&5
  9361. ac_status=$?
  9362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9363. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9365. (eval $ac_try) 2>&5
  9366. ac_status=$?
  9367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9368. (exit $ac_status); }; }; then
  9369. ac_sectionLDflags=yes
  9370. else
  9371. echo "$as_me: program exited with status $ac_status" >&5
  9372. echo "$as_me: failed program was:" >&5
  9373. sed 's/^/| /' conftest.$ac_ext >&5
  9374.  
  9375. ( exit $ac_status )
  9376. ac_sectionLDflags=no
  9377. fi
  9378. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9379. fi
  9380. if test "$ac_test_CFLAGS" = set; then
  9381. CFLAGS="$ac_save_CFLAGS"
  9382. else
  9383. # this is the suspicious part
  9384. CFLAGS=''
  9385. fi
  9386. if test "$ac_sectionLDflags" = "yes"; then
  9387. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  9388. fi
  9389. echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
  9390. echo "${ECHO_T}$ac_sectionLDflags" >&6
  9391. fi
  9392.  
  9393. # Set linker optimization flags.
  9394. if test x"$with_gnu_ld" = x"yes"; then
  9395. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  9396. fi
  9397.  
  9398.  
  9399.  
  9400.  
  9401.  
  9402.  
  9403. # Check whether --enable-symvers or --disable-symvers was given.
  9404. if test "${enable_symvers+set}" = set; then
  9405. enableval="$enable_symvers"
  9406.  
  9407. case "$enableval" in
  9408. yes|no|gnu) ;;
  9409. *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
  9410. echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
  9411. { (exit 1); exit 1; }; } ;;
  9412. esac
  9413.  
  9414. else
  9415. enable_symvers=yes
  9416. fi;
  9417.  
  9418.  
  9419. # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
  9420. # don't know enough about $LD to do tricks...
  9421.  
  9422. # FIXME The following test is too strict, in theory.
  9423. if test $enable_shared = no ||
  9424. test "x$LD" = x ||
  9425. test x$libgomp_gnu_ld_version = x; then
  9426. enable_symvers=no
  9427. fi
  9428.  
  9429. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  9430. if test $enable_symvers != no; then
  9431. echo "$as_me:$LINENO: checking for shared libgcc" >&5
  9432. echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
  9433. ac_save_CFLAGS="$CFLAGS"
  9434. CFLAGS=' -lgcc_s'
  9435. cat >conftest.$ac_ext <<_ACEOF
  9436. /* confdefs.h. */
  9437. _ACEOF
  9438. cat confdefs.h >>conftest.$ac_ext
  9439. cat >>conftest.$ac_ext <<_ACEOF
  9440. /* end confdefs.h. */
  9441.  
  9442. int
  9443. main ()
  9444. {
  9445. return 0;
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. rm -f conftest.$ac_objext conftest$ac_exeext
  9451. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9452. (eval $ac_link) 2>conftest.er1
  9453. ac_status=$?
  9454. grep -v '^ *+' conftest.er1 >conftest.err
  9455. rm -f conftest.er1
  9456. cat conftest.err >&5
  9457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9458. (exit $ac_status); } &&
  9459. { ac_try='test -z "$ac_c_werror_flag"
  9460. || test ! -s conftest.err'
  9461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9462. (eval $ac_try) 2>&5
  9463. ac_status=$?
  9464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9465. (exit $ac_status); }; } &&
  9466. { ac_try='test -s conftest$ac_exeext'
  9467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9468. (eval $ac_try) 2>&5
  9469. ac_status=$?
  9470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9471. (exit $ac_status); }; }; then
  9472. libgomp_shared_libgcc=yes
  9473. else
  9474. echo "$as_me: failed program was:" >&5
  9475. sed 's/^/| /' conftest.$ac_ext >&5
  9476.  
  9477. libgomp_shared_libgcc=no
  9478. fi
  9479. rm -f conftest.err conftest.$ac_objext \
  9480. conftest$ac_exeext conftest.$ac_ext
  9481. CFLAGS="$ac_save_CFLAGS"
  9482. if test $libgomp_shared_libgcc = no; then
  9483. cat > conftest.c <<EOF
  9484. int main (void) { return 0; }
  9485. EOF
  9486. libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  9487. -shared -shared-libgcc -o conftest.so \
  9488. conftest.c -v 2>&1 >/dev/null \
  9489. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  9490. rm -f conftest.c conftest.so
  9491. if test x${libgomp_libgcc_s_suffix+set} = xset; then
  9492. CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
  9493. cat >conftest.$ac_ext <<_ACEOF
  9494. /* confdefs.h. */
  9495. _ACEOF
  9496. cat confdefs.h >>conftest.$ac_ext
  9497. cat >>conftest.$ac_ext <<_ACEOF
  9498. /* end confdefs.h. */
  9499.  
  9500. int
  9501. main ()
  9502. {
  9503. return 0;
  9504. ;
  9505. return 0;
  9506. }
  9507. _ACEOF
  9508. rm -f conftest.$ac_objext conftest$ac_exeext
  9509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9510. (eval $ac_link) 2>conftest.er1
  9511. ac_status=$?
  9512. grep -v '^ *+' conftest.er1 >conftest.err
  9513. rm -f conftest.er1
  9514. cat conftest.err >&5
  9515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9516. (exit $ac_status); } &&
  9517. { ac_try='test -z "$ac_c_werror_flag"
  9518. || test ! -s conftest.err'
  9519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9520. (eval $ac_try) 2>&5
  9521. ac_status=$?
  9522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9523. (exit $ac_status); }; } &&
  9524. { ac_try='test -s conftest$ac_exeext'
  9525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9526. (eval $ac_try) 2>&5
  9527. ac_status=$?
  9528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9529. (exit $ac_status); }; }; then
  9530. libgomp_shared_libgcc=yes
  9531. else
  9532. echo "$as_me: failed program was:" >&5
  9533. sed 's/^/| /' conftest.$ac_ext >&5
  9534.  
  9535. fi
  9536. rm -f conftest.err conftest.$ac_objext \
  9537. conftest$ac_exeext conftest.$ac_ext
  9538. CFLAGS="$ac_save_CFLAGS"
  9539. fi
  9540. fi
  9541. echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
  9542. echo "${ECHO_T}$libgomp_shared_libgcc" >&6
  9543. fi
  9544.  
  9545. # For GNU ld, we need at least this version. The format is described in
  9546. # LIBGOMP_CHECK_LINKER_FEATURES above.
  9547. libgomp_min_gnu_ld_version=21400
  9548. # XXXXXXXXXXX libgomp_gnu_ld_version=21390
  9549.  
  9550. # Check to see if unspecified "yes" value can win, given results above.
  9551. # Change "yes" into either "no" or a style name.
  9552. if test $enable_symvers = yes; then
  9553. if test $with_gnu_ld = yes &&
  9554. test $libgomp_shared_libgcc = yes;
  9555. then
  9556. if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
  9557. enable_symvers=gnu
  9558. else
  9559. # The right tools, the right setup, but too old. Fallbacks?
  9560. { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
  9561. echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
  9562. { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
  9563. echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  9564. { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
  9565. echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  9566. { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
  9567. echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
  9568. if test $libgomp_gnu_ld_version -ge 21200 ; then
  9569. # Globbing fix is present, proper block support is not.
  9570. { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
  9571. echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  9572. enable_symvers=no
  9573. else
  9574. # 2.11 or older.
  9575. { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
  9576. echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  9577. enable_symvers=no
  9578. fi
  9579. fi
  9580. else
  9581. # just fail for now
  9582. { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
  9583. echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  9584. { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
  9585. echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  9586. { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
  9587. echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  9588. { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
  9589. echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  9590. enable_symvers=no
  9591. fi
  9592. fi
  9593.  
  9594.  
  9595.  
  9596. if test $enable_symvers != no; then
  9597. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
  9598. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
  9599. else
  9600. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
  9601. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
  9602. fi
  9603.  
  9604. { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
  9605. echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  9606.  
  9607.  
  9608. # Get target configury.
  9609. . ${srcdir}/configure.tgt
  9610. CFLAGS="$save_CFLAGS $XCFLAGS"
  9611.  
  9612. # Check for __sync_val_compare_and_swap, but only after the target has
  9613. # had a chance to set XCFLAGS.
  9614.  
  9615. echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
  9616. echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
  9617. if test "${have_sync_builtins+set}" = set; then
  9618. echo $ECHO_N "(cached) $ECHO_C" >&6
  9619. else
  9620.  
  9621. cat >conftest.$ac_ext <<_ACEOF
  9622. /* confdefs.h. */
  9623. _ACEOF
  9624. cat confdefs.h >>conftest.$ac_ext
  9625. cat >>conftest.$ac_ext <<_ACEOF
  9626. /* end confdefs.h. */
  9627.  
  9628. int
  9629. main ()
  9630. {
  9631. int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
  9632. ;
  9633. return 0;
  9634. }
  9635. _ACEOF
  9636. rm -f conftest.$ac_objext conftest$ac_exeext
  9637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9638. (eval $ac_link) 2>conftest.er1
  9639. ac_status=$?
  9640. grep -v '^ *+' conftest.er1 >conftest.err
  9641. rm -f conftest.er1
  9642. cat conftest.err >&5
  9643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9644. (exit $ac_status); } &&
  9645. { ac_try='test -z "$ac_c_werror_flag"
  9646. || test ! -s conftest.err'
  9647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9648. (eval $ac_try) 2>&5
  9649. ac_status=$?
  9650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9651. (exit $ac_status); }; } &&
  9652. { ac_try='test -s conftest$ac_exeext'
  9653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9654. (eval $ac_try) 2>&5
  9655. ac_status=$?
  9656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9657. (exit $ac_status); }; }; then
  9658. have_sync_builtins=yes
  9659. else
  9660. echo "$as_me: failed program was:" >&5
  9661. sed 's/^/| /' conftest.$ac_ext >&5
  9662.  
  9663. have_sync_builtins=no
  9664. fi
  9665. rm -f conftest.err conftest.$ac_objext \
  9666. conftest$ac_exeext conftest.$ac_ext
  9667. fi
  9668. echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
  9669. echo "${ECHO_T}$have_sync_builtins" >&6
  9670. if test $have_sync_builtins = yes; then
  9671.  
  9672. cat >>confdefs.h <<\_ACEOF
  9673. #define HAVE_SYNC_BUILTINS 1
  9674. _ACEOF
  9675.  
  9676. fi
  9677.  
  9678. XCFLAGS="$XCFLAGS$XPCFLAGS"
  9679.  
  9680.  
  9681.  
  9682.  
  9683.  
  9684. # Cleanup and exit.
  9685. CFLAGS="$save_CFLAGS"
  9686. cat >confcache <<\_ACEOF
  9687. # This file is a shell script that caches the results of configure
  9688. # tests run on this system so they can be shared between configure
  9689. # scripts and configure runs, see configure's option --config-cache.
  9690. # It is not useful on other systems. If it contains results you don't
  9691. # want to keep, you may remove or edit it.
  9692. #
  9693. # config.status only pays attention to the cache file if you give it
  9694. # the --recheck option to rerun configure.
  9695. #
  9696. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9697. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9698. # following values.
  9699.  
  9700. _ACEOF
  9701.  
  9702. # The following way of writing the cache mishandles newlines in values,
  9703. # but we know of no workaround that is simple, portable, and efficient.
  9704. # So, don't put newlines in cache variables' values.
  9705. # Ultrix sh set writes to stderr and can't be redirected directly,
  9706. # and sets the high bit in the cache file unless we assign to the vars.
  9707. {
  9708. (set) 2>&1 |
  9709. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9710. *ac_space=\ *)
  9711. # `set' does not quote correctly, so add quotes (double-quote
  9712. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9713. sed -n \
  9714. "s/'/'\\\\''/g;
  9715. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9716. ;;
  9717. *)
  9718. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9719. sed -n \
  9720. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9721. ;;
  9722. esac;
  9723. } |
  9724. sed '
  9725. t clear
  9726. : clear
  9727. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9728. t end
  9729. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9730. : end' >>confcache
  9731. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9732. if test -w $cache_file; then
  9733. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9734. cat confcache >$cache_file
  9735. else
  9736. echo "not updating unwritable cache $cache_file"
  9737. fi
  9738. fi
  9739. rm -f confcache
  9740.  
  9741. if test ${multilib} = yes; then
  9742. multilib_arg="--enable-multilib"
  9743. else
  9744. multilib_arg=
  9745. fi
  9746.  
  9747. # Set up the set of libraries that we need to link against for libgomp.
  9748. # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
  9749. # which will force linkage against -lpthread (or equivalent for the system).
  9750. # That's not 100% ideal, but about the best we can do easily.
  9751. if test $enable_shared = yes; then
  9752. link_gomp="-lgomp %{static: $LIBS}"
  9753. else
  9754. link_gomp="-lgomp $LIBS"
  9755. fi
  9756.  
  9757.  
  9758.  
  9759.  
  9760. if test "$ac_cv_fc_compiler_gnu" = yes; then
  9761. USE_FORTRAN_TRUE=
  9762. USE_FORTRAN_FALSE='#'
  9763. else
  9764. USE_FORTRAN_TRUE='#'
  9765. USE_FORTRAN_FALSE=
  9766. fi
  9767.  
  9768.  
  9769. # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
  9770. # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
  9771. # the underscore here and update the PREREQ. If it doesn't, then we'll
  9772. # need to copy this macro to our acinclude.m4.
  9773. save_CFLAGS="$CFLAGS"
  9774. for i in $config_path; do
  9775. if test -f $srcdir/config/$i/omp-lock.h; then
  9776. CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
  9777. break
  9778. fi
  9779. done
  9780.  
  9781. if test "$cross_compiling" = yes; then
  9782. # Depending upon the size, compute the lo and hi bounds.
  9783. cat >conftest.$ac_ext <<_ACEOF
  9784. /* confdefs.h. */
  9785. _ACEOF
  9786. cat confdefs.h >>conftest.$ac_ext
  9787. cat >>conftest.$ac_ext <<_ACEOF
  9788. /* end confdefs.h. */
  9789.  
  9790. int
  9791. main ()
  9792. {
  9793. static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
  9794. test_array [0] = 0
  9795.  
  9796. ;
  9797. return 0;
  9798. }
  9799. _ACEOF
  9800. rm -f conftest.$ac_objext
  9801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9802. (eval $ac_compile) 2>conftest.er1
  9803. ac_status=$?
  9804. grep -v '^ *+' conftest.er1 >conftest.err
  9805. rm -f conftest.er1
  9806. cat conftest.err >&5
  9807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9808. (exit $ac_status); } &&
  9809. { ac_try='test -z "$ac_c_werror_flag"
  9810. || test ! -s conftest.err'
  9811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9812. (eval $ac_try) 2>&5
  9813. ac_status=$?
  9814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9815. (exit $ac_status); }; } &&
  9816. { ac_try='test -s conftest.$ac_objext'
  9817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9818. (eval $ac_try) 2>&5
  9819. ac_status=$?
  9820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9821. (exit $ac_status); }; }; then
  9822. ac_lo=0 ac_mid=0
  9823. while :; do
  9824. cat >conftest.$ac_ext <<_ACEOF
  9825. /* confdefs.h. */
  9826. _ACEOF
  9827. cat confdefs.h >>conftest.$ac_ext
  9828. cat >>conftest.$ac_ext <<_ACEOF
  9829. /* end confdefs.h. */
  9830.  
  9831. int
  9832. main ()
  9833. {
  9834. static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
  9835. test_array [0] = 0
  9836.  
  9837. ;
  9838. return 0;
  9839. }
  9840. _ACEOF
  9841. rm -f conftest.$ac_objext
  9842. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9843. (eval $ac_compile) 2>conftest.er1
  9844. ac_status=$?
  9845. grep -v '^ *+' conftest.er1 >conftest.err
  9846. rm -f conftest.er1
  9847. cat conftest.err >&5
  9848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9849. (exit $ac_status); } &&
  9850. { ac_try='test -z "$ac_c_werror_flag"
  9851. || test ! -s conftest.err'
  9852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9853. (eval $ac_try) 2>&5
  9854. ac_status=$?
  9855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856. (exit $ac_status); }; } &&
  9857. { ac_try='test -s conftest.$ac_objext'
  9858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9859. (eval $ac_try) 2>&5
  9860. ac_status=$?
  9861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9862. (exit $ac_status); }; }; then
  9863. ac_hi=$ac_mid; break
  9864. else
  9865. echo "$as_me: failed program was:" >&5
  9866. sed 's/^/| /' conftest.$ac_ext >&5
  9867.  
  9868. ac_lo=`expr $ac_mid + 1`
  9869. if test $ac_lo -le $ac_mid; then
  9870. ac_lo= ac_hi=
  9871. break
  9872. fi
  9873. ac_mid=`expr 2 '*' $ac_mid + 1`
  9874. fi
  9875. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9876. done
  9877. else
  9878. echo "$as_me: failed program was:" >&5
  9879. sed 's/^/| /' conftest.$ac_ext >&5
  9880.  
  9881. cat >conftest.$ac_ext <<_ACEOF
  9882. /* confdefs.h. */
  9883. _ACEOF
  9884. cat confdefs.h >>conftest.$ac_ext
  9885. cat >>conftest.$ac_ext <<_ACEOF
  9886. /* end confdefs.h. */
  9887.  
  9888. int
  9889. main ()
  9890. {
  9891. static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
  9892. test_array [0] = 0
  9893.  
  9894. ;
  9895. return 0;
  9896. }
  9897. _ACEOF
  9898. rm -f conftest.$ac_objext
  9899. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9900. (eval $ac_compile) 2>conftest.er1
  9901. ac_status=$?
  9902. grep -v '^ *+' conftest.er1 >conftest.err
  9903. rm -f conftest.er1
  9904. cat conftest.err >&5
  9905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9906. (exit $ac_status); } &&
  9907. { ac_try='test -z "$ac_c_werror_flag"
  9908. || test ! -s conftest.err'
  9909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9910. (eval $ac_try) 2>&5
  9911. ac_status=$?
  9912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9913. (exit $ac_status); }; } &&
  9914. { ac_try='test -s conftest.$ac_objext'
  9915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9916. (eval $ac_try) 2>&5
  9917. ac_status=$?
  9918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9919. (exit $ac_status); }; }; then
  9920. ac_hi=-1 ac_mid=-1
  9921. while :; do
  9922. cat >conftest.$ac_ext <<_ACEOF
  9923. /* confdefs.h. */
  9924. _ACEOF
  9925. cat confdefs.h >>conftest.$ac_ext
  9926. cat >>conftest.$ac_ext <<_ACEOF
  9927. /* end confdefs.h. */
  9928.  
  9929. int
  9930. main ()
  9931. {
  9932. static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
  9933. test_array [0] = 0
  9934.  
  9935. ;
  9936. return 0;
  9937. }
  9938. _ACEOF
  9939. rm -f conftest.$ac_objext
  9940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9941. (eval $ac_compile) 2>conftest.er1
  9942. ac_status=$?
  9943. grep -v '^ *+' conftest.er1 >conftest.err
  9944. rm -f conftest.er1
  9945. cat conftest.err >&5
  9946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } &&
  9948. { ac_try='test -z "$ac_c_werror_flag"
  9949. || test ! -s conftest.err'
  9950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9951. (eval $ac_try) 2>&5
  9952. ac_status=$?
  9953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); }; } &&
  9955. { ac_try='test -s conftest.$ac_objext'
  9956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9957. (eval $ac_try) 2>&5
  9958. ac_status=$?
  9959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9960. (exit $ac_status); }; }; then
  9961. ac_lo=$ac_mid; break
  9962. else
  9963. echo "$as_me: failed program was:" >&5
  9964. sed 's/^/| /' conftest.$ac_ext >&5
  9965.  
  9966. ac_hi=`expr '(' $ac_mid ')' - 1`
  9967. if test $ac_mid -le $ac_hi; then
  9968. ac_lo= ac_hi=
  9969. break
  9970. fi
  9971. ac_mid=`expr 2 '*' $ac_mid`
  9972. fi
  9973. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9974. done
  9975. else
  9976. echo "$as_me: failed program was:" >&5
  9977. sed 's/^/| /' conftest.$ac_ext >&5
  9978.  
  9979. ac_lo= ac_hi=
  9980. fi
  9981. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9982. fi
  9983. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9984. # Binary search between lo and hi bounds.
  9985. while test "x$ac_lo" != "x$ac_hi"; do
  9986. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  9987. cat >conftest.$ac_ext <<_ACEOF
  9988. /* confdefs.h. */
  9989. _ACEOF
  9990. cat confdefs.h >>conftest.$ac_ext
  9991. cat >>conftest.$ac_ext <<_ACEOF
  9992. /* end confdefs.h. */
  9993.  
  9994. int
  9995. main ()
  9996. {
  9997. static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
  9998. test_array [0] = 0
  9999.  
  10000. ;
  10001. return 0;
  10002. }
  10003. _ACEOF
  10004. rm -f conftest.$ac_objext
  10005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10006. (eval $ac_compile) 2>conftest.er1
  10007. ac_status=$?
  10008. grep -v '^ *+' conftest.er1 >conftest.err
  10009. rm -f conftest.er1
  10010. cat conftest.err >&5
  10011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10012. (exit $ac_status); } &&
  10013. { ac_try='test -z "$ac_c_werror_flag"
  10014. || test ! -s conftest.err'
  10015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10016. (eval $ac_try) 2>&5
  10017. ac_status=$?
  10018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10019. (exit $ac_status); }; } &&
  10020. { ac_try='test -s conftest.$ac_objext'
  10021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10022. (eval $ac_try) 2>&5
  10023. ac_status=$?
  10024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10025. (exit $ac_status); }; }; then
  10026. ac_hi=$ac_mid
  10027. else
  10028. echo "$as_me: failed program was:" >&5
  10029. sed 's/^/| /' conftest.$ac_ext >&5
  10030.  
  10031. ac_lo=`expr '(' $ac_mid ')' + 1`
  10032. fi
  10033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10034. done
  10035. case $ac_lo in
  10036. ?*) OMP_LOCK_SIZE=$ac_lo;;
  10037. '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
  10038. echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
  10039. { (exit 1); exit 1; }; } ;;
  10040. esac
  10041. else
  10042. if test "$cross_compiling" = yes; then
  10043. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10044. See \`config.log' for more details." >&5
  10045. echo "$as_me: error: cannot run test program while cross compiling
  10046. See \`config.log' for more details." >&2;}
  10047. { (exit 1); exit 1; }; }
  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.  
  10056. long longval () { return sizeof (omp_lock_t); }
  10057. unsigned long ulongval () { return sizeof (omp_lock_t); }
  10058. #include <stdio.h>
  10059. #include <stdlib.h>
  10060. int
  10061. main ()
  10062. {
  10063.  
  10064. FILE *f = fopen ("conftest.val", "w");
  10065. if (! f)
  10066. exit (1);
  10067. if ((sizeof (omp_lock_t)) < 0)
  10068. {
  10069. long i = longval ();
  10070. if (i != (sizeof (omp_lock_t)))
  10071. exit (1);
  10072. fprintf (f, "%ld\n", i);
  10073. }
  10074. else
  10075. {
  10076. unsigned long i = ulongval ();
  10077. if (i != (sizeof (omp_lock_t)))
  10078. exit (1);
  10079. fprintf (f, "%lu\n", i);
  10080. }
  10081. exit (ferror (f) || fclose (f) != 0);
  10082.  
  10083. ;
  10084. return 0;
  10085. }
  10086. _ACEOF
  10087. rm -f conftest$ac_exeext
  10088. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10089. (eval $ac_link) 2>&5
  10090. ac_status=$?
  10091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10092. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10094. (eval $ac_try) 2>&5
  10095. ac_status=$?
  10096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10097. (exit $ac_status); }; }; then
  10098. OMP_LOCK_SIZE=`cat conftest.val`
  10099. else
  10100. echo "$as_me: program exited with status $ac_status" >&5
  10101. echo "$as_me: failed program was:" >&5
  10102. sed 's/^/| /' conftest.$ac_ext >&5
  10103.  
  10104. ( exit $ac_status )
  10105. { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
  10106. echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
  10107. { (exit 1); exit 1; }; }
  10108. fi
  10109. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10110. fi
  10111. fi
  10112. rm -f conftest.val
  10113. if test "$cross_compiling" = yes; then
  10114. # Depending upon the size, compute the lo and hi bounds.
  10115. cat >conftest.$ac_ext <<_ACEOF
  10116. /* confdefs.h. */
  10117. _ACEOF
  10118. cat confdefs.h >>conftest.$ac_ext
  10119. cat >>conftest.$ac_ext <<_ACEOF
  10120. /* end confdefs.h. */
  10121.  
  10122. int
  10123. main ()
  10124. {
  10125. static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
  10126. test_array [0] = 0
  10127.  
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. rm -f conftest.$ac_objext
  10133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10134. (eval $ac_compile) 2>conftest.er1
  10135. ac_status=$?
  10136. grep -v '^ *+' conftest.er1 >conftest.err
  10137. rm -f conftest.er1
  10138. cat conftest.err >&5
  10139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10140. (exit $ac_status); } &&
  10141. { ac_try='test -z "$ac_c_werror_flag"
  10142. || test ! -s conftest.err'
  10143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10144. (eval $ac_try) 2>&5
  10145. ac_status=$?
  10146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10147. (exit $ac_status); }; } &&
  10148. { ac_try='test -s conftest.$ac_objext'
  10149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10150. (eval $ac_try) 2>&5
  10151. ac_status=$?
  10152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10153. (exit $ac_status); }; }; then
  10154. ac_lo=0 ac_mid=0
  10155. while :; do
  10156. cat >conftest.$ac_ext <<_ACEOF
  10157. /* confdefs.h. */
  10158. _ACEOF
  10159. cat confdefs.h >>conftest.$ac_ext
  10160. cat >>conftest.$ac_ext <<_ACEOF
  10161. /* end confdefs.h. */
  10162.  
  10163. int
  10164. main ()
  10165. {
  10166. static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
  10167. test_array [0] = 0
  10168.  
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. rm -f conftest.$ac_objext
  10174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10175. (eval $ac_compile) 2>conftest.er1
  10176. ac_status=$?
  10177. grep -v '^ *+' conftest.er1 >conftest.err
  10178. rm -f conftest.er1
  10179. cat conftest.err >&5
  10180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10181. (exit $ac_status); } &&
  10182. { ac_try='test -z "$ac_c_werror_flag"
  10183. || test ! -s conftest.err'
  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); }; } &&
  10189. { ac_try='test -s conftest.$ac_objext'
  10190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10191. (eval $ac_try) 2>&5
  10192. ac_status=$?
  10193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10194. (exit $ac_status); }; }; then
  10195. ac_hi=$ac_mid; break
  10196. else
  10197. echo "$as_me: failed program was:" >&5
  10198. sed 's/^/| /' conftest.$ac_ext >&5
  10199.  
  10200. ac_lo=`expr $ac_mid + 1`
  10201. if test $ac_lo -le $ac_mid; then
  10202. ac_lo= ac_hi=
  10203. break
  10204. fi
  10205. ac_mid=`expr 2 '*' $ac_mid + 1`
  10206. fi
  10207. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10208. done
  10209. else
  10210. echo "$as_me: failed program was:" >&5
  10211. sed 's/^/| /' conftest.$ac_ext >&5
  10212.  
  10213. cat >conftest.$ac_ext <<_ACEOF
  10214. /* confdefs.h. */
  10215. _ACEOF
  10216. cat confdefs.h >>conftest.$ac_ext
  10217. cat >>conftest.$ac_ext <<_ACEOF
  10218. /* end confdefs.h. */
  10219.  
  10220. int
  10221. main ()
  10222. {
  10223. static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
  10224. test_array [0] = 0
  10225.  
  10226. ;
  10227. return 0;
  10228. }
  10229. _ACEOF
  10230. rm -f conftest.$ac_objext
  10231. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10232. (eval $ac_compile) 2>conftest.er1
  10233. ac_status=$?
  10234. grep -v '^ *+' conftest.er1 >conftest.err
  10235. rm -f conftest.er1
  10236. cat conftest.err >&5
  10237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10238. (exit $ac_status); } &&
  10239. { ac_try='test -z "$ac_c_werror_flag"
  10240. || test ! -s conftest.err'
  10241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10242. (eval $ac_try) 2>&5
  10243. ac_status=$?
  10244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10245. (exit $ac_status); }; } &&
  10246. { ac_try='test -s conftest.$ac_objext'
  10247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10248. (eval $ac_try) 2>&5
  10249. ac_status=$?
  10250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10251. (exit $ac_status); }; }; then
  10252. ac_hi=-1 ac_mid=-1
  10253. while :; do
  10254. cat >conftest.$ac_ext <<_ACEOF
  10255. /* confdefs.h. */
  10256. _ACEOF
  10257. cat confdefs.h >>conftest.$ac_ext
  10258. cat >>conftest.$ac_ext <<_ACEOF
  10259. /* end confdefs.h. */
  10260.  
  10261. int
  10262. main ()
  10263. {
  10264. static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
  10265. test_array [0] = 0
  10266.  
  10267. ;
  10268. return 0;
  10269. }
  10270. _ACEOF
  10271. rm -f conftest.$ac_objext
  10272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10273. (eval $ac_compile) 2>conftest.er1
  10274. ac_status=$?
  10275. grep -v '^ *+' conftest.er1 >conftest.err
  10276. rm -f conftest.er1
  10277. cat conftest.err >&5
  10278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10279. (exit $ac_status); } &&
  10280. { ac_try='test -z "$ac_c_werror_flag"
  10281. || test ! -s conftest.err'
  10282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10283. (eval $ac_try) 2>&5
  10284. ac_status=$?
  10285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10286. (exit $ac_status); }; } &&
  10287. { ac_try='test -s conftest.$ac_objext'
  10288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10289. (eval $ac_try) 2>&5
  10290. ac_status=$?
  10291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10292. (exit $ac_status); }; }; then
  10293. ac_lo=$ac_mid; break
  10294. else
  10295. echo "$as_me: failed program was:" >&5
  10296. sed 's/^/| /' conftest.$ac_ext >&5
  10297.  
  10298. ac_hi=`expr '(' $ac_mid ')' - 1`
  10299. if test $ac_mid -le $ac_hi; then
  10300. ac_lo= ac_hi=
  10301. break
  10302. fi
  10303. ac_mid=`expr 2 '*' $ac_mid`
  10304. fi
  10305. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10306. done
  10307. else
  10308. echo "$as_me: failed program was:" >&5
  10309. sed 's/^/| /' conftest.$ac_ext >&5
  10310.  
  10311. ac_lo= ac_hi=
  10312. fi
  10313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10314. fi
  10315. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10316. # Binary search between lo and hi bounds.
  10317. while test "x$ac_lo" != "x$ac_hi"; do
  10318. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10319. cat >conftest.$ac_ext <<_ACEOF
  10320. /* confdefs.h. */
  10321. _ACEOF
  10322. cat confdefs.h >>conftest.$ac_ext
  10323. cat >>conftest.$ac_ext <<_ACEOF
  10324. /* end confdefs.h. */
  10325.  
  10326. int
  10327. main ()
  10328. {
  10329. static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
  10330. test_array [0] = 0
  10331.  
  10332. ;
  10333. return 0;
  10334. }
  10335. _ACEOF
  10336. rm -f conftest.$ac_objext
  10337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10338. (eval $ac_compile) 2>conftest.er1
  10339. ac_status=$?
  10340. grep -v '^ *+' conftest.er1 >conftest.err
  10341. rm -f conftest.er1
  10342. cat conftest.err >&5
  10343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10344. (exit $ac_status); } &&
  10345. { ac_try='test -z "$ac_c_werror_flag"
  10346. || test ! -s conftest.err'
  10347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10348. (eval $ac_try) 2>&5
  10349. ac_status=$?
  10350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10351. (exit $ac_status); }; } &&
  10352. { ac_try='test -s conftest.$ac_objext'
  10353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10354. (eval $ac_try) 2>&5
  10355. ac_status=$?
  10356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10357. (exit $ac_status); }; }; then
  10358. ac_hi=$ac_mid
  10359. else
  10360. echo "$as_me: failed program was:" >&5
  10361. sed 's/^/| /' conftest.$ac_ext >&5
  10362.  
  10363. ac_lo=`expr '(' $ac_mid ')' + 1`
  10364. fi
  10365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10366. done
  10367. case $ac_lo in
  10368. ?*) OMP_LOCK_ALIGN=$ac_lo;;
  10369. '') ;;
  10370. esac
  10371. else
  10372. if test "$cross_compiling" = yes; then
  10373. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10374. See \`config.log' for more details." >&5
  10375. echo "$as_me: error: cannot run test program while cross compiling
  10376. See \`config.log' for more details." >&2;}
  10377. { (exit 1); exit 1; }; }
  10378. else
  10379. cat >conftest.$ac_ext <<_ACEOF
  10380. /* confdefs.h. */
  10381. _ACEOF
  10382. cat confdefs.h >>conftest.$ac_ext
  10383. cat >>conftest.$ac_ext <<_ACEOF
  10384. /* end confdefs.h. */
  10385.  
  10386. long longval () { return __alignof (omp_lock_t); }
  10387. unsigned long ulongval () { return __alignof (omp_lock_t); }
  10388. #include <stdio.h>
  10389. #include <stdlib.h>
  10390. int
  10391. main ()
  10392. {
  10393.  
  10394. FILE *f = fopen ("conftest.val", "w");
  10395. if (! f)
  10396. exit (1);
  10397. if ((__alignof (omp_lock_t)) < 0)
  10398. {
  10399. long i = longval ();
  10400. if (i != (__alignof (omp_lock_t)))
  10401. exit (1);
  10402. fprintf (f, "%ld\n", i);
  10403. }
  10404. else
  10405. {
  10406. unsigned long i = ulongval ();
  10407. if (i != (__alignof (omp_lock_t)))
  10408. exit (1);
  10409. fprintf (f, "%lu\n", i);
  10410. }
  10411. exit (ferror (f) || fclose (f) != 0);
  10412.  
  10413. ;
  10414. return 0;
  10415. }
  10416. _ACEOF
  10417. rm -f conftest$ac_exeext
  10418. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10419. (eval $ac_link) 2>&5
  10420. ac_status=$?
  10421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10422. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10424. (eval $ac_try) 2>&5
  10425. ac_status=$?
  10426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10427. (exit $ac_status); }; }; then
  10428. OMP_LOCK_ALIGN=`cat conftest.val`
  10429. else
  10430. echo "$as_me: program exited with status $ac_status" >&5
  10431. echo "$as_me: failed program was:" >&5
  10432. sed 's/^/| /' conftest.$ac_ext >&5
  10433.  
  10434. fi
  10435. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10436. fi
  10437. fi
  10438. rm -f conftest.val
  10439. if test "$cross_compiling" = yes; then
  10440. # Depending upon the size, compute the lo and hi bounds.
  10441. cat >conftest.$ac_ext <<_ACEOF
  10442. /* confdefs.h. */
  10443. _ACEOF
  10444. cat confdefs.h >>conftest.$ac_ext
  10445. cat >>conftest.$ac_ext <<_ACEOF
  10446. /* end confdefs.h. */
  10447.  
  10448. int
  10449. main ()
  10450. {
  10451. static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
  10452. test_array [0] = 0
  10453.  
  10454. ;
  10455. return 0;
  10456. }
  10457. _ACEOF
  10458. rm -f conftest.$ac_objext
  10459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10460. (eval $ac_compile) 2>conftest.er1
  10461. ac_status=$?
  10462. grep -v '^ *+' conftest.er1 >conftest.err
  10463. rm -f conftest.er1
  10464. cat conftest.err >&5
  10465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10466. (exit $ac_status); } &&
  10467. { ac_try='test -z "$ac_c_werror_flag"
  10468. || test ! -s conftest.err'
  10469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10470. (eval $ac_try) 2>&5
  10471. ac_status=$?
  10472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10473. (exit $ac_status); }; } &&
  10474. { ac_try='test -s conftest.$ac_objext'
  10475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10476. (eval $ac_try) 2>&5
  10477. ac_status=$?
  10478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10479. (exit $ac_status); }; }; then
  10480. ac_lo=0 ac_mid=0
  10481. while :; do
  10482. cat >conftest.$ac_ext <<_ACEOF
  10483. /* confdefs.h. */
  10484. _ACEOF
  10485. cat confdefs.h >>conftest.$ac_ext
  10486. cat >>conftest.$ac_ext <<_ACEOF
  10487. /* end confdefs.h. */
  10488.  
  10489. int
  10490. main ()
  10491. {
  10492. static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
  10493. test_array [0] = 0
  10494.  
  10495. ;
  10496. return 0;
  10497. }
  10498. _ACEOF
  10499. rm -f conftest.$ac_objext
  10500. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10501. (eval $ac_compile) 2>conftest.er1
  10502. ac_status=$?
  10503. grep -v '^ *+' conftest.er1 >conftest.err
  10504. rm -f conftest.er1
  10505. cat conftest.err >&5
  10506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10507. (exit $ac_status); } &&
  10508. { ac_try='test -z "$ac_c_werror_flag"
  10509. || test ! -s conftest.err'
  10510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10511. (eval $ac_try) 2>&5
  10512. ac_status=$?
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); }; } &&
  10515. { ac_try='test -s conftest.$ac_objext'
  10516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10517. (eval $ac_try) 2>&5
  10518. ac_status=$?
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); }; }; then
  10521. ac_hi=$ac_mid; break
  10522. else
  10523. echo "$as_me: failed program was:" >&5
  10524. sed 's/^/| /' conftest.$ac_ext >&5
  10525.  
  10526. ac_lo=`expr $ac_mid + 1`
  10527. if test $ac_lo -le $ac_mid; then
  10528. ac_lo= ac_hi=
  10529. break
  10530. fi
  10531. ac_mid=`expr 2 '*' $ac_mid + 1`
  10532. fi
  10533. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10534. done
  10535. else
  10536. echo "$as_me: failed program was:" >&5
  10537. sed 's/^/| /' conftest.$ac_ext >&5
  10538.  
  10539. cat >conftest.$ac_ext <<_ACEOF
  10540. /* confdefs.h. */
  10541. _ACEOF
  10542. cat confdefs.h >>conftest.$ac_ext
  10543. cat >>conftest.$ac_ext <<_ACEOF
  10544. /* end confdefs.h. */
  10545.  
  10546. int
  10547. main ()
  10548. {
  10549. static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
  10550. test_array [0] = 0
  10551.  
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. rm -f conftest.$ac_objext
  10557. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10558. (eval $ac_compile) 2>conftest.er1
  10559. ac_status=$?
  10560. grep -v '^ *+' conftest.er1 >conftest.err
  10561. rm -f conftest.er1
  10562. cat conftest.err >&5
  10563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10564. (exit $ac_status); } &&
  10565. { ac_try='test -z "$ac_c_werror_flag"
  10566. || test ! -s conftest.err'
  10567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10568. (eval $ac_try) 2>&5
  10569. ac_status=$?
  10570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10571. (exit $ac_status); }; } &&
  10572. { ac_try='test -s conftest.$ac_objext'
  10573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10574. (eval $ac_try) 2>&5
  10575. ac_status=$?
  10576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10577. (exit $ac_status); }; }; then
  10578. ac_hi=-1 ac_mid=-1
  10579. while :; do
  10580. cat >conftest.$ac_ext <<_ACEOF
  10581. /* confdefs.h. */
  10582. _ACEOF
  10583. cat confdefs.h >>conftest.$ac_ext
  10584. cat >>conftest.$ac_ext <<_ACEOF
  10585. /* end confdefs.h. */
  10586.  
  10587. int
  10588. main ()
  10589. {
  10590. static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
  10591. test_array [0] = 0
  10592.  
  10593. ;
  10594. return 0;
  10595. }
  10596. _ACEOF
  10597. rm -f conftest.$ac_objext
  10598. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10599. (eval $ac_compile) 2>conftest.er1
  10600. ac_status=$?
  10601. grep -v '^ *+' conftest.er1 >conftest.err
  10602. rm -f conftest.er1
  10603. cat conftest.err >&5
  10604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10605. (exit $ac_status); } &&
  10606. { ac_try='test -z "$ac_c_werror_flag"
  10607. || test ! -s conftest.err'
  10608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10609. (eval $ac_try) 2>&5
  10610. ac_status=$?
  10611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10612. (exit $ac_status); }; } &&
  10613. { ac_try='test -s conftest.$ac_objext'
  10614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10615. (eval $ac_try) 2>&5
  10616. ac_status=$?
  10617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10618. (exit $ac_status); }; }; then
  10619. ac_lo=$ac_mid; break
  10620. else
  10621. echo "$as_me: failed program was:" >&5
  10622. sed 's/^/| /' conftest.$ac_ext >&5
  10623.  
  10624. ac_hi=`expr '(' $ac_mid ')' - 1`
  10625. if test $ac_mid -le $ac_hi; then
  10626. ac_lo= ac_hi=
  10627. break
  10628. fi
  10629. ac_mid=`expr 2 '*' $ac_mid`
  10630. fi
  10631. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10632. done
  10633. else
  10634. echo "$as_me: failed program was:" >&5
  10635. sed 's/^/| /' conftest.$ac_ext >&5
  10636.  
  10637. ac_lo= ac_hi=
  10638. fi
  10639. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10640. fi
  10641. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10642. # Binary search between lo and hi bounds.
  10643. while test "x$ac_lo" != "x$ac_hi"; do
  10644. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10645. cat >conftest.$ac_ext <<_ACEOF
  10646. /* confdefs.h. */
  10647. _ACEOF
  10648. cat confdefs.h >>conftest.$ac_ext
  10649. cat >>conftest.$ac_ext <<_ACEOF
  10650. /* end confdefs.h. */
  10651.  
  10652. int
  10653. main ()
  10654. {
  10655. static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
  10656. test_array [0] = 0
  10657.  
  10658. ;
  10659. return 0;
  10660. }
  10661. _ACEOF
  10662. rm -f conftest.$ac_objext
  10663. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10664. (eval $ac_compile) 2>conftest.er1
  10665. ac_status=$?
  10666. grep -v '^ *+' conftest.er1 >conftest.err
  10667. rm -f conftest.er1
  10668. cat conftest.err >&5
  10669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10670. (exit $ac_status); } &&
  10671. { ac_try='test -z "$ac_c_werror_flag"
  10672. || test ! -s conftest.err'
  10673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10674. (eval $ac_try) 2>&5
  10675. ac_status=$?
  10676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10677. (exit $ac_status); }; } &&
  10678. { ac_try='test -s conftest.$ac_objext'
  10679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10680. (eval $ac_try) 2>&5
  10681. ac_status=$?
  10682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10683. (exit $ac_status); }; }; then
  10684. ac_hi=$ac_mid
  10685. else
  10686. echo "$as_me: failed program was:" >&5
  10687. sed 's/^/| /' conftest.$ac_ext >&5
  10688.  
  10689. ac_lo=`expr '(' $ac_mid ')' + 1`
  10690. fi
  10691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10692. done
  10693. case $ac_lo in
  10694. ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
  10695. '') ;;
  10696. esac
  10697. else
  10698. if test "$cross_compiling" = yes; then
  10699. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  10700. See \`config.log' for more details." >&5
  10701. echo "$as_me: error: cannot run test program while cross compiling
  10702. See \`config.log' for more details." >&2;}
  10703. { (exit 1); exit 1; }; }
  10704. else
  10705. cat >conftest.$ac_ext <<_ACEOF
  10706. /* confdefs.h. */
  10707. _ACEOF
  10708. cat confdefs.h >>conftest.$ac_ext
  10709. cat >>conftest.$ac_ext <<_ACEOF
  10710. /* end confdefs.h. */
  10711.  
  10712. long longval () { return sizeof (omp_nest_lock_t); }
  10713. unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
  10714. #include <stdio.h>
  10715. #include <stdlib.h>
  10716. int
  10717. main ()
  10718. {
  10719.  
  10720. FILE *f = fopen ("conftest.val", "w");
  10721. if (! f)
  10722. exit (1);
  10723. if ((sizeof (omp_nest_lock_t)) < 0)
  10724. {
  10725. long i = longval ();
  10726. if (i != (sizeof (omp_nest_lock_t)))
  10727. exit (1);
  10728. fprintf (f, "%ld\n", i);
  10729. }
  10730. else
  10731. {
  10732. unsigned long i = ulongval ();
  10733. if (i != (sizeof (omp_nest_lock_t)))
  10734. exit (1);
  10735. fprintf (f, "%lu\n", i);
  10736. }
  10737. exit (ferror (f) || fclose (f) != 0);
  10738.  
  10739. ;
  10740. return 0;
  10741. }
  10742. _ACEOF
  10743. rm -f conftest$ac_exeext
  10744. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10745. (eval $ac_link) 2>&5
  10746. ac_status=$?
  10747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10748. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10750. (eval $ac_try) 2>&5
  10751. ac_status=$?
  10752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10753. (exit $ac_status); }; }; then
  10754. OMP_NEST_LOCK_SIZE=`cat conftest.val`
  10755. else
  10756. echo "$as_me: program exited with status $ac_status" >&5
  10757. echo "$as_me: failed program was:" >&5
  10758. sed 's/^/| /' conftest.$ac_ext >&5
  10759.  
  10760. fi
  10761. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10762. fi
  10763. fi
  10764. rm -f conftest.val
  10765. if test "$cross_compiling" = yes; then
  10766. # Depending upon the size, compute the lo and hi bounds.
  10767. cat >conftest.$ac_ext <<_ACEOF
  10768. /* confdefs.h. */
  10769. _ACEOF
  10770. cat confdefs.h >>conftest.$ac_ext
  10771. cat >>conftest.$ac_ext <<_ACEOF
  10772. /* end confdefs.h. */
  10773.  
  10774. int
  10775. main ()
  10776. {
  10777. static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
  10778. test_array [0] = 0
  10779.  
  10780. ;
  10781. return 0;
  10782. }
  10783. _ACEOF
  10784. rm -f conftest.$ac_objext
  10785. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10786. (eval $ac_compile) 2>conftest.er1
  10787. ac_status=$?
  10788. grep -v '^ *+' conftest.er1 >conftest.err
  10789. rm -f conftest.er1
  10790. cat conftest.err >&5
  10791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10792. (exit $ac_status); } &&
  10793. { ac_try='test -z "$ac_c_werror_flag"
  10794. || test ! -s conftest.err'
  10795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10796. (eval $ac_try) 2>&5
  10797. ac_status=$?
  10798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10799. (exit $ac_status); }; } &&
  10800. { ac_try='test -s conftest.$ac_objext'
  10801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10802. (eval $ac_try) 2>&5
  10803. ac_status=$?
  10804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10805. (exit $ac_status); }; }; then
  10806. ac_lo=0 ac_mid=0
  10807. while :; do
  10808. cat >conftest.$ac_ext <<_ACEOF
  10809. /* confdefs.h. */
  10810. _ACEOF
  10811. cat confdefs.h >>conftest.$ac_ext
  10812. cat >>conftest.$ac_ext <<_ACEOF
  10813. /* end confdefs.h. */
  10814.  
  10815. int
  10816. main ()
  10817. {
  10818. static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
  10819. test_array [0] = 0
  10820.  
  10821. ;
  10822. return 0;
  10823. }
  10824. _ACEOF
  10825. rm -f conftest.$ac_objext
  10826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10827. (eval $ac_compile) 2>conftest.er1
  10828. ac_status=$?
  10829. grep -v '^ *+' conftest.er1 >conftest.err
  10830. rm -f conftest.er1
  10831. cat conftest.err >&5
  10832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10833. (exit $ac_status); } &&
  10834. { ac_try='test -z "$ac_c_werror_flag"
  10835. || test ! -s conftest.err'
  10836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10837. (eval $ac_try) 2>&5
  10838. ac_status=$?
  10839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10840. (exit $ac_status); }; } &&
  10841. { ac_try='test -s conftest.$ac_objext'
  10842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10843. (eval $ac_try) 2>&5
  10844. ac_status=$?
  10845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10846. (exit $ac_status); }; }; then
  10847. ac_hi=$ac_mid; break
  10848. else
  10849. echo "$as_me: failed program was:" >&5
  10850. sed 's/^/| /' conftest.$ac_ext >&5
  10851.  
  10852. ac_lo=`expr $ac_mid + 1`
  10853. if test $ac_lo -le $ac_mid; then
  10854. ac_lo= ac_hi=
  10855. break
  10856. fi
  10857. ac_mid=`expr 2 '*' $ac_mid + 1`
  10858. fi
  10859. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10860. done
  10861. else
  10862. echo "$as_me: failed program was:" >&5
  10863. sed 's/^/| /' conftest.$ac_ext >&5
  10864.  
  10865. cat >conftest.$ac_ext <<_ACEOF
  10866. /* confdefs.h. */
  10867. _ACEOF
  10868. cat confdefs.h >>conftest.$ac_ext
  10869. cat >>conftest.$ac_ext <<_ACEOF
  10870. /* end confdefs.h. */
  10871.  
  10872. int
  10873. main ()
  10874. {
  10875. static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
  10876. test_array [0] = 0
  10877.  
  10878. ;
  10879. return 0;
  10880. }
  10881. _ACEOF
  10882. rm -f conftest.$ac_objext
  10883. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10884. (eval $ac_compile) 2>conftest.er1
  10885. ac_status=$?
  10886. grep -v '^ *+' conftest.er1 >conftest.err
  10887. rm -f conftest.er1
  10888. cat conftest.err >&5
  10889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10890. (exit $ac_status); } &&
  10891. { ac_try='test -z "$ac_c_werror_flag"
  10892. || test ! -s conftest.err'
  10893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10894. (eval $ac_try) 2>&5
  10895. ac_status=$?
  10896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10897. (exit $ac_status); }; } &&
  10898. { ac_try='test -s conftest.$ac_objext'
  10899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10900. (eval $ac_try) 2>&5
  10901. ac_status=$?
  10902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10903. (exit $ac_status); }; }; then
  10904. ac_hi=-1 ac_mid=-1
  10905. while :; do
  10906. cat >conftest.$ac_ext <<_ACEOF
  10907. /* confdefs.h. */
  10908. _ACEOF
  10909. cat confdefs.h >>conftest.$ac_ext
  10910. cat >>conftest.$ac_ext <<_ACEOF
  10911. /* end confdefs.h. */
  10912.  
  10913. int
  10914. main ()
  10915. {
  10916. static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
  10917. test_array [0] = 0
  10918.  
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. rm -f conftest.$ac_objext
  10924. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10925. (eval $ac_compile) 2>conftest.er1
  10926. ac_status=$?
  10927. grep -v '^ *+' conftest.er1 >conftest.err
  10928. rm -f conftest.er1
  10929. cat conftest.err >&5
  10930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10931. (exit $ac_status); } &&
  10932. { ac_try='test -z "$ac_c_werror_flag"
  10933. || test ! -s conftest.err'
  10934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10935. (eval $ac_try) 2>&5
  10936. ac_status=$?
  10937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10938. (exit $ac_status); }; } &&
  10939. { ac_try='test -s conftest.$ac_objext'
  10940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10941. (eval $ac_try) 2>&5
  10942. ac_status=$?
  10943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10944. (exit $ac_status); }; }; then
  10945. ac_lo=$ac_mid; break
  10946. else
  10947. echo "$as_me: failed program was:" >&5
  10948. sed 's/^/| /' conftest.$ac_ext >&5
  10949.  
  10950. ac_hi=`expr '(' $ac_mid ')' - 1`
  10951. if test $ac_mid -le $ac_hi; then
  10952. ac_lo= ac_hi=
  10953. break
  10954. fi
  10955. ac_mid=`expr 2 '*' $ac_mid`
  10956. fi
  10957. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10958. done
  10959. else
  10960. echo "$as_me: failed program was:" >&5
  10961. sed 's/^/| /' conftest.$ac_ext >&5
  10962.  
  10963. ac_lo= ac_hi=
  10964. fi
  10965. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10966. fi
  10967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10968. # Binary search between lo and hi bounds.
  10969. while test "x$ac_lo" != "x$ac_hi"; do
  10970. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  10971. cat >conftest.$ac_ext <<_ACEOF
  10972. /* confdefs.h. */
  10973. _ACEOF
  10974. cat confdefs.h >>conftest.$ac_ext
  10975. cat >>conftest.$ac_ext <<_ACEOF
  10976. /* end confdefs.h. */
  10977.  
  10978. int
  10979. main ()
  10980. {
  10981. static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
  10982. test_array [0] = 0
  10983.  
  10984. ;
  10985. return 0;
  10986. }
  10987. _ACEOF
  10988. rm -f conftest.$ac_objext
  10989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10990. (eval $ac_compile) 2>conftest.er1
  10991. ac_status=$?
  10992. grep -v '^ *+' conftest.er1 >conftest.err
  10993. rm -f conftest.er1
  10994. cat conftest.err >&5
  10995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10996. (exit $ac_status); } &&
  10997. { ac_try='test -z "$ac_c_werror_flag"
  10998. || test ! -s conftest.err'
  10999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11000. (eval $ac_try) 2>&5
  11001. ac_status=$?
  11002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11003. (exit $ac_status); }; } &&
  11004. { ac_try='test -s conftest.$ac_objext'
  11005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11006. (eval $ac_try) 2>&5
  11007. ac_status=$?
  11008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11009. (exit $ac_status); }; }; then
  11010. ac_hi=$ac_mid
  11011. else
  11012. echo "$as_me: failed program was:" >&5
  11013. sed 's/^/| /' conftest.$ac_ext >&5
  11014.  
  11015. ac_lo=`expr '(' $ac_mid ')' + 1`
  11016. fi
  11017. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11018. done
  11019. case $ac_lo in
  11020. ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
  11021. '') ;;
  11022. esac
  11023. else
  11024. if test "$cross_compiling" = yes; then
  11025. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  11026. See \`config.log' for more details." >&5
  11027. echo "$as_me: error: cannot run test program while cross compiling
  11028. See \`config.log' for more details." >&2;}
  11029. { (exit 1); exit 1; }; }
  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.  
  11038. long longval () { return __alignof (omp_nest_lock_t); }
  11039. unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
  11040. #include <stdio.h>
  11041. #include <stdlib.h>
  11042. int
  11043. main ()
  11044. {
  11045.  
  11046. FILE *f = fopen ("conftest.val", "w");
  11047. if (! f)
  11048. exit (1);
  11049. if ((__alignof (omp_nest_lock_t)) < 0)
  11050. {
  11051. long i = longval ();
  11052. if (i != (__alignof (omp_nest_lock_t)))
  11053. exit (1);
  11054. fprintf (f, "%ld\n", i);
  11055. }
  11056. else
  11057. {
  11058. unsigned long i = ulongval ();
  11059. if (i != (__alignof (omp_nest_lock_t)))
  11060. exit (1);
  11061. fprintf (f, "%lu\n", i);
  11062. }
  11063. exit (ferror (f) || fclose (f) != 0);
  11064.  
  11065. ;
  11066. return 0;
  11067. }
  11068. _ACEOF
  11069. rm -f conftest$ac_exeext
  11070. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11071. (eval $ac_link) 2>&5
  11072. ac_status=$?
  11073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11074. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11076. (eval $ac_try) 2>&5
  11077. ac_status=$?
  11078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11079. (exit $ac_status); }; }; then
  11080. OMP_NEST_LOCK_ALIGN=`cat conftest.val`
  11081. else
  11082. echo "$as_me: program exited with status $ac_status" >&5
  11083. echo "$as_me: failed program was:" >&5
  11084. sed 's/^/| /' conftest.$ac_ext >&5
  11085.  
  11086. fi
  11087. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11088. fi
  11089. fi
  11090. rm -f conftest.val
  11091.  
  11092. # If the lock fits in an integer, then arrange for Fortran to use that
  11093. # integer. If it doesn't, then arrange for Fortran to use a pointer.
  11094. # Except that we don't have a way at present to multi-lib the installed
  11095. # Fortran modules, so we assume 8 bytes for pointers, regardless of the
  11096. # actual target.
  11097. OMP_LOCK_KIND=$OMP_LOCK_SIZE
  11098. OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
  11099. if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
  11100. OMP_LOCK_KIND=8
  11101. fi
  11102. if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
  11103. OMP_NEST_LOCK_KIND=8
  11104. fi
  11105.  
  11106.  
  11107.  
  11108.  
  11109.  
  11110.  
  11111.  
  11112. CFLAGS="$save_CFLAGS"
  11113.  
  11114. ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
  11115.  
  11116. ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
  11117.  
  11118. cat >confcache <<\_ACEOF
  11119. # This file is a shell script that caches the results of configure
  11120. # tests run on this system so they can be shared between configure
  11121. # scripts and configure runs, see configure's option --config-cache.
  11122. # It is not useful on other systems. If it contains results you don't
  11123. # want to keep, you may remove or edit it.
  11124. #
  11125. # config.status only pays attention to the cache file if you give it
  11126. # the --recheck option to rerun configure.
  11127. #
  11128. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11129. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11130. # following values.
  11131.  
  11132. _ACEOF
  11133.  
  11134. # The following way of writing the cache mishandles newlines in values,
  11135. # but we know of no workaround that is simple, portable, and efficient.
  11136. # So, don't put newlines in cache variables' values.
  11137. # Ultrix sh set writes to stderr and can't be redirected directly,
  11138. # and sets the high bit in the cache file unless we assign to the vars.
  11139. {
  11140. (set) 2>&1 |
  11141. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11142. *ac_space=\ *)
  11143. # `set' does not quote correctly, so add quotes (double-quote
  11144. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11145. sed -n \
  11146. "s/'/'\\\\''/g;
  11147. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11148. ;;
  11149. *)
  11150. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11151. sed -n \
  11152. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11153. ;;
  11154. esac;
  11155. } |
  11156. sed '
  11157. t clear
  11158. : clear
  11159. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11160. t end
  11161. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11162. : end' >>confcache
  11163. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11164. if test -w $cache_file; then
  11165. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  11166. cat confcache >$cache_file
  11167. else
  11168. echo "not updating unwritable cache $cache_file"
  11169. fi
  11170. fi
  11171. rm -f confcache
  11172.  
  11173. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11174. # Let make expand exec_prefix.
  11175. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11176.  
  11177. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11178. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11179. # trailing colons and then remove the whole line if VPATH becomes empty
  11180. # (actually we leave an empty line to preserve line numbers).
  11181. if test "x$srcdir" = x.; then
  11182. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11183. s/:*\$(srcdir):*/:/;
  11184. s/:*\${srcdir}:*/:/;
  11185. s/:*@srcdir@:*/:/;
  11186. s/^\([^=]*=[ ]*\):*/\1/;
  11187. s/:*$//;
  11188. s/^[^=]*=[ ]*$//;
  11189. }'
  11190. fi
  11191.  
  11192. DEFS=-DHAVE_CONFIG_H
  11193.  
  11194. ac_libobjs=
  11195. ac_ltlibobjs=
  11196. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11197. # 1. Remove the extension, and $U if already installed.
  11198. ac_i=`echo "$ac_i" |
  11199. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11200. # 2. Add them.
  11201. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11202. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11203. done
  11204. LIBOBJS=$ac_libobjs
  11205.  
  11206. LTLIBOBJS=$ac_ltlibobjs
  11207.  
  11208.  
  11209. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  11210. { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
  11211. Usually this means the macro was only invoked conditionally." >&5
  11212. echo "$as_me: error: conditional \"GENINSRC\" was never defined.
  11213. Usually this means the macro was only invoked conditionally." >&2;}
  11214. { (exit 1); exit 1; }; }
  11215. fi
  11216. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11217. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11218. Usually this means the macro was only invoked conditionally." >&5
  11219. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11220. Usually this means the macro was only invoked conditionally." >&2;}
  11221. { (exit 1); exit 1; }; }
  11222. fi
  11223. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11224. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11225. Usually this means the macro was only invoked conditionally." >&5
  11226. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11227. Usually this means the macro was only invoked conditionally." >&2;}
  11228. { (exit 1); exit 1; }; }
  11229. fi
  11230. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  11231. { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
  11232. Usually this means the macro was only invoked conditionally." >&5
  11233. echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
  11234. Usually this means the macro was only invoked conditionally." >&2;}
  11235. { (exit 1); exit 1; }; }
  11236. fi
  11237. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11238. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  11239. Usually this means the macro was only invoked conditionally." >&5
  11240. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  11241. Usually this means the macro was only invoked conditionally." >&2;}
  11242. { (exit 1); exit 1; }; }
  11243. fi
  11244. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
  11245. { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
  11246. Usually this means the macro was only invoked conditionally." >&5
  11247. echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
  11248. Usually this means the macro was only invoked conditionally." >&2;}
  11249. { (exit 1); exit 1; }; }
  11250. fi
  11251. if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
  11252. { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
  11253. Usually this means the macro was only invoked conditionally." >&5
  11254. echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
  11255. Usually this means the macro was only invoked conditionally." >&2;}
  11256. { (exit 1); exit 1; }; }
  11257. fi
  11258.  
  11259. : ${CONFIG_STATUS=./config.status}
  11260. ac_clean_files_save=$ac_clean_files
  11261. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11262. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11263. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11264. cat >$CONFIG_STATUS <<_ACEOF
  11265. #! $SHELL
  11266. # Generated by $as_me.
  11267. # Run this file to recreate the current configuration.
  11268. # Compiler output produced by configure, useful for debugging
  11269. # configure, is in config.log if it exists.
  11270.  
  11271. debug=false
  11272. ac_cs_recheck=false
  11273. ac_cs_silent=false
  11274. SHELL=\${CONFIG_SHELL-$SHELL}
  11275. _ACEOF
  11276.  
  11277. cat >>$CONFIG_STATUS <<\_ACEOF
  11278. ## --------------------- ##
  11279. ## M4sh Initialization. ##
  11280. ## --------------------- ##
  11281.  
  11282. # Be Bourne compatible
  11283. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11284. emulate sh
  11285. NULLCMD=:
  11286. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11287. # is contrary to our usage. Disable this feature.
  11288. alias -g '${1+"$@"}'='"$@"'
  11289. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11290. set -o posix
  11291. fi
  11292. DUALCASE=1; export DUALCASE # for MKS sh
  11293.  
  11294. # Support unset when possible.
  11295. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11296. as_unset=unset
  11297. else
  11298. as_unset=false
  11299. fi
  11300.  
  11301.  
  11302. # Work around bugs in pre-3.0 UWIN ksh.
  11303. $as_unset ENV MAIL MAILPATH
  11304. PS1='$ '
  11305. PS2='> '
  11306. PS4='+ '
  11307.  
  11308. # NLS nuisances.
  11309. for as_var in \
  11310. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11311. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11312. LC_TELEPHONE LC_TIME
  11313. do
  11314. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11315. eval $as_var=C; export $as_var
  11316. else
  11317. $as_unset $as_var
  11318. fi
  11319. done
  11320.  
  11321. # Required to use basename.
  11322. if expr a : '\(a\)' >/dev/null 2>&1; then
  11323. as_expr=expr
  11324. else
  11325. as_expr=false
  11326. fi
  11327.  
  11328. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11329. as_basename=basename
  11330. else
  11331. as_basename=false
  11332. fi
  11333.  
  11334.  
  11335. # Name of the executable.
  11336. as_me=`$as_basename "$0" ||
  11337. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11338. X"$0" : 'X\(//\)$' \| \
  11339. X"$0" : 'X\(/\)$' \| \
  11340. . : '\(.\)' 2>/dev/null ||
  11341. echo X/"$0" |
  11342. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11343. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11344. /^X\/\(\/\).*/{ s//\1/; q; }
  11345. s/.*/./; q'`
  11346.  
  11347.  
  11348. # PATH needs CR, and LINENO needs CR and PATH.
  11349. # Avoid depending upon Character Ranges.
  11350. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11351. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11352. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11353. as_cr_digits='0123456789'
  11354. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11355.  
  11356. # The user is always right.
  11357. if test "${PATH_SEPARATOR+set}" != set; then
  11358. echo "#! /bin/sh" >conf$$.sh
  11359. echo "exit 0" >>conf$$.sh
  11360. chmod +x conf$$.sh
  11361. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11362. PATH_SEPARATOR=';'
  11363. else
  11364. PATH_SEPARATOR=:
  11365. fi
  11366. rm -f conf$$.sh
  11367. fi
  11368.  
  11369.  
  11370. as_lineno_1=$LINENO
  11371. as_lineno_2=$LINENO
  11372. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11373. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11374. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11375. # Find who we are. Look in the path if we contain no path at all
  11376. # relative or not.
  11377. case $0 in
  11378. *[\\/]* ) as_myself=$0 ;;
  11379. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11380. for as_dir in $PATH
  11381. do
  11382. IFS=$as_save_IFS
  11383. test -z "$as_dir" && as_dir=.
  11384. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11385. done
  11386.  
  11387. ;;
  11388. esac
  11389. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11390. # in which case we are not to be found in the path.
  11391. if test "x$as_myself" = x; then
  11392. as_myself=$0
  11393. fi
  11394. if test ! -f "$as_myself"; then
  11395. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11396. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11397. { (exit 1); exit 1; }; }
  11398. fi
  11399. case $CONFIG_SHELL in
  11400. '')
  11401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11402. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11403. do
  11404. IFS=$as_save_IFS
  11405. test -z "$as_dir" && as_dir=.
  11406. for as_base in sh bash ksh sh5; do
  11407. case $as_dir in
  11408. /*)
  11409. if ("$as_dir/$as_base" -c '
  11410. as_lineno_1=$LINENO
  11411. as_lineno_2=$LINENO
  11412. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11413. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11414. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11415. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11416. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11417. CONFIG_SHELL=$as_dir/$as_base
  11418. export CONFIG_SHELL
  11419. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11420. fi;;
  11421. esac
  11422. done
  11423. done
  11424. ;;
  11425. esac
  11426.  
  11427. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11428. # uniformly replaced by the line number. The first 'sed' inserts a
  11429. # line-number line before each line; the second 'sed' does the real
  11430. # work. The second script uses 'N' to pair each line-number line
  11431. # with the numbered line, and appends trailing '-' during
  11432. # substitution so that $LINENO is not a special case at line end.
  11433. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11434. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11435. sed '=' <$as_myself |
  11436. sed '
  11437. N
  11438. s,$,-,
  11439. : loop
  11440. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11441. t loop
  11442. s,-$,,
  11443. s,^['$as_cr_digits']*\n,,
  11444. ' >$as_me.lineno &&
  11445. chmod +x $as_me.lineno ||
  11446. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11447. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11448. { (exit 1); exit 1; }; }
  11449.  
  11450. # Don't try to exec as it changes $[0], causing all sort of problems
  11451. # (the dirname of $[0] is not the place where we might find the
  11452. # original and so on. Autoconf is especially sensible to this).
  11453. . ./$as_me.lineno
  11454. # Exit status is that of the last command.
  11455. exit
  11456. }
  11457.  
  11458.  
  11459. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11460. *c*,-n*) ECHO_N= ECHO_C='
  11461. ' ECHO_T=' ' ;;
  11462. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11463. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11464. esac
  11465.  
  11466. if expr a : '\(a\)' >/dev/null 2>&1; then
  11467. as_expr=expr
  11468. else
  11469. as_expr=false
  11470. fi
  11471.  
  11472. rm -f conf$$ conf$$.exe conf$$.file
  11473. echo >conf$$.file
  11474. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11475. # We could just check for DJGPP; but this test a) works b) is more generic
  11476. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11477. if test -f conf$$.exe; then
  11478. # Don't use ln at all; we don't have any links
  11479. as_ln_s='cp -p'
  11480. else
  11481. as_ln_s='ln -s'
  11482. fi
  11483. elif ln conf$$.file conf$$ 2>/dev/null; then
  11484. as_ln_s=ln
  11485. else
  11486. as_ln_s='cp -p'
  11487. fi
  11488. rm -f conf$$ conf$$.exe conf$$.file
  11489.  
  11490. if mkdir -p . 2>/dev/null; then
  11491. as_mkdir_p=:
  11492. else
  11493. test -d ./-p && rmdir ./-p
  11494. as_mkdir_p=false
  11495. fi
  11496.  
  11497. as_executable_p="test -f"
  11498.  
  11499. # Sed expression to map a string onto a valid CPP name.
  11500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11501.  
  11502. # Sed expression to map a string onto a valid variable name.
  11503. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11504.  
  11505.  
  11506. # IFS
  11507. # We need space, tab and new line, in precisely that order.
  11508. as_nl='
  11509. '
  11510. IFS=" $as_nl"
  11511.  
  11512. # CDPATH.
  11513. $as_unset CDPATH
  11514.  
  11515. exec 6>&1
  11516.  
  11517. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11518. # report actual input values of CONFIG_FILES etc. instead of their
  11519. # values after options handling. Logging --version etc. is OK.
  11520. exec 5>>config.log
  11521. {
  11522. echo
  11523. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11524. ## Running $as_me. ##
  11525. _ASBOX
  11526. } >&5
  11527. cat >&5 <<_CSEOF
  11528.  
  11529. This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
  11530. generated by GNU Autoconf 2.59. Invocation command line was
  11531.  
  11532. CONFIG_FILES = $CONFIG_FILES
  11533. CONFIG_HEADERS = $CONFIG_HEADERS
  11534. CONFIG_LINKS = $CONFIG_LINKS
  11535. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11536. $ $0 $@
  11537.  
  11538. _CSEOF
  11539. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11540. echo >&5
  11541. _ACEOF
  11542.  
  11543. # Files that config.status was made for.
  11544. if test -n "$ac_config_files"; then
  11545. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11546. fi
  11547.  
  11548. if test -n "$ac_config_headers"; then
  11549. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11550. fi
  11551.  
  11552. if test -n "$ac_config_links"; then
  11553. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11554. fi
  11555.  
  11556. if test -n "$ac_config_commands"; then
  11557. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11558. fi
  11559.  
  11560. cat >>$CONFIG_STATUS <<\_ACEOF
  11561.  
  11562. ac_cs_usage="\
  11563. \`$as_me' instantiates files from templates according to the
  11564. current configuration.
  11565.  
  11566. Usage: $0 [OPTIONS] [FILE]...
  11567.  
  11568. -h, --help print this help, then exit
  11569. -V, --version print version number, then exit
  11570. -q, --quiet do not print progress messages
  11571. -d, --debug don't remove temporary files
  11572. --recheck update $as_me by reconfiguring in the same conditions
  11573. --file=FILE[:TEMPLATE]
  11574. instantiate the configuration file FILE
  11575. --header=FILE[:TEMPLATE]
  11576. instantiate the configuration header FILE
  11577.  
  11578. Configuration files:
  11579. $config_files
  11580.  
  11581. Configuration headers:
  11582. $config_headers
  11583.  
  11584. Configuration commands:
  11585. $config_commands
  11586.  
  11587. Report bugs to <[email protected]>."
  11588. _ACEOF
  11589.  
  11590. cat >>$CONFIG_STATUS <<_ACEOF
  11591. ac_cs_version="\\
  11592. GNU OpenMP Runtime Library config.status 1.0
  11593. configured by $0, generated by GNU Autoconf 2.59,
  11594. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11595.  
  11596. Copyright (C) 2003 Free Software Foundation, Inc.
  11597. This config.status script is free software; the Free Software Foundation
  11598. gives unlimited permission to copy, distribute and modify it."
  11599. srcdir=$srcdir
  11600. INSTALL="$INSTALL"
  11601. _ACEOF
  11602.  
  11603. cat >>$CONFIG_STATUS <<\_ACEOF
  11604. # If no file are specified by the user, then we need to provide default
  11605. # value. By we need to know if files were specified by the user.
  11606. ac_need_defaults=:
  11607. while test $# != 0
  11608. do
  11609. case $1 in
  11610. --*=*)
  11611. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11612. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11613. ac_shift=:
  11614. ;;
  11615. -*)
  11616. ac_option=$1
  11617. ac_optarg=$2
  11618. ac_shift=shift
  11619. ;;
  11620. *) # This is not an option, so the user has probably given explicit
  11621. # arguments.
  11622. ac_option=$1
  11623. ac_need_defaults=false;;
  11624. esac
  11625.  
  11626. case $ac_option in
  11627. # Handling of the options.
  11628. _ACEOF
  11629. cat >>$CONFIG_STATUS <<\_ACEOF
  11630. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11631. ac_cs_recheck=: ;;
  11632. --version | --vers* | -V )
  11633. echo "$ac_cs_version"; exit 0 ;;
  11634. --he | --h)
  11635. # Conflict between --help and --header
  11636. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11637. Try \`$0 --help' for more information." >&5
  11638. echo "$as_me: error: ambiguous option: $1
  11639. Try \`$0 --help' for more information." >&2;}
  11640. { (exit 1); exit 1; }; };;
  11641. --help | --hel | -h )
  11642. echo "$ac_cs_usage"; exit 0 ;;
  11643. --debug | --d* | -d )
  11644. debug=: ;;
  11645. --file | --fil | --fi | --f )
  11646. $ac_shift
  11647. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11648. ac_need_defaults=false;;
  11649. --header | --heade | --head | --hea )
  11650. $ac_shift
  11651. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11652. ac_need_defaults=false;;
  11653. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11654. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11655. ac_cs_silent=: ;;
  11656.  
  11657. # This is an error.
  11658. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11659. Try \`$0 --help' for more information." >&5
  11660. echo "$as_me: error: unrecognized option: $1
  11661. Try \`$0 --help' for more information." >&2;}
  11662. { (exit 1); exit 1; }; } ;;
  11663.  
  11664. *) ac_config_targets="$ac_config_targets $1" ;;
  11665.  
  11666. esac
  11667. shift
  11668. done
  11669.  
  11670. ac_configure_extra_args=
  11671.  
  11672. if $ac_cs_silent; then
  11673. exec 6>/dev/null
  11674. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11675. fi
  11676.  
  11677. _ACEOF
  11678. cat >>$CONFIG_STATUS <<_ACEOF
  11679. if \$ac_cs_recheck; then
  11680. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11681. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11682. fi
  11683.  
  11684. _ACEOF
  11685.  
  11686. cat >>$CONFIG_STATUS <<_ACEOF
  11687. #
  11688. # INIT-COMMANDS section.
  11689. #
  11690.  
  11691.  
  11692. srcdir="$srcdir"
  11693. host="$host"
  11694. target="$target"
  11695. with_multisubdir="$with_multisubdir"
  11696. with_multisrctop="$with_multisrctop"
  11697. with_target_subdir="$with_target_subdir"
  11698. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  11699. multi_basedir="$multi_basedir"
  11700. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  11701. CC="$CC"
  11702. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11703.  
  11704. GCC="$GCC"
  11705. CC="$CC"
  11706. acx_cv_header_stdint="$acx_cv_header_stdint"
  11707. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  11708. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  11709. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  11710. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  11711. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  11712. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  11713. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  11714. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  11715. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  11716. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  11717. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  11718. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  11719. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  11720.  
  11721.  
  11722. _ACEOF
  11723.  
  11724.  
  11725.  
  11726. cat >>$CONFIG_STATUS <<\_ACEOF
  11727. for ac_config_target in $ac_config_targets
  11728. do
  11729. case "$ac_config_target" in
  11730. # Handling of arguments.
  11731. "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
  11732. "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
  11733. "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
  11734. "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
  11735. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11736. "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  11737. "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
  11738. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11739. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11740. "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  11741. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11742. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11743. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11744. { (exit 1); exit 1; }; };;
  11745. esac
  11746. done
  11747.  
  11748. # If the user did not use the arguments to specify the items to instantiate,
  11749. # then the envvar interface is used. Set only those that are not.
  11750. # We use the long form for the default assignment because of an extremely
  11751. # bizarre bug on SunOS 4.1.3.
  11752. if $ac_need_defaults; then
  11753. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11754. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11755. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11756. fi
  11757.  
  11758. # Have a temporary directory for convenience. Make it in the build tree
  11759. # simply because there is no reason to put it here, and in addition,
  11760. # creating and moving files from /tmp can sometimes cause problems.
  11761. # Create a temporary directory, and hook for its removal unless debugging.
  11762. $debug ||
  11763. {
  11764. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11765. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11766. }
  11767.  
  11768. # Create a (secure) tmp directory for tmp files.
  11769.  
  11770. {
  11771. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11772. test -n "$tmp" && test -d "$tmp"
  11773. } ||
  11774. {
  11775. tmp=./confstat$$-$RANDOM
  11776. (umask 077 && mkdir $tmp)
  11777. } ||
  11778. {
  11779. echo "$me: cannot create a temporary directory in ." >&2
  11780. { (exit 1); exit 1; }
  11781. }
  11782.  
  11783. _ACEOF
  11784.  
  11785. cat >>$CONFIG_STATUS <<_ACEOF
  11786.  
  11787. #
  11788. # CONFIG_FILES section.
  11789. #
  11790.  
  11791. # No need to generate the scripts if there are no CONFIG_FILES.
  11792. # This happens for instance when ./config.status config.h
  11793. if test -n "\$CONFIG_FILES"; then
  11794. # Protect against being on the right side of a sed subst in config.status.
  11795. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11796. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11797. s,@SHELL@,$SHELL,;t t
  11798. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11799. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11800. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11801. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11802. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11803. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11804. s,@exec_prefix@,$exec_prefix,;t t
  11805. s,@prefix@,$prefix,;t t
  11806. s,@program_transform_name@,$program_transform_name,;t t
  11807. s,@bindir@,$bindir,;t t
  11808. s,@sbindir@,$sbindir,;t t
  11809. s,@libexecdir@,$libexecdir,;t t
  11810. s,@datadir@,$datadir,;t t
  11811. s,@sysconfdir@,$sysconfdir,;t t
  11812. s,@sharedstatedir@,$sharedstatedir,;t t
  11813. s,@localstatedir@,$localstatedir,;t t
  11814. s,@libdir@,$libdir,;t t
  11815. s,@includedir@,$includedir,;t t
  11816. s,@oldincludedir@,$oldincludedir,;t t
  11817. s,@infodir@,$infodir,;t t
  11818. s,@mandir@,$mandir,;t t
  11819. s,@build_alias@,$build_alias,;t t
  11820. s,@host_alias@,$host_alias,;t t
  11821. s,@target_alias@,$target_alias,;t t
  11822. s,@DEFS@,$DEFS,;t t
  11823. s,@ECHO_C@,$ECHO_C,;t t
  11824. s,@ECHO_N@,$ECHO_N,;t t
  11825. s,@ECHO_T@,$ECHO_T,;t t
  11826. s,@LIBS@,$LIBS,;t t
  11827. s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
  11828. s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
  11829. s,@build@,$build,;t t
  11830. s,@build_cpu@,$build_cpu,;t t
  11831. s,@build_vendor@,$build_vendor,;t t
  11832. s,@build_os@,$build_os,;t t
  11833. s,@host@,$host,;t t
  11834. s,@host_cpu@,$host_cpu,;t t
  11835. s,@host_vendor@,$host_vendor,;t t
  11836. s,@host_os@,$host_os,;t t
  11837. s,@target@,$target,;t t
  11838. s,@target_cpu@,$target_cpu,;t t
  11839. s,@target_vendor@,$target_vendor,;t t
  11840. s,@target_os@,$target_os,;t t
  11841. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11842. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11843. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11844. s,@CYGPATH_W@,$CYGPATH_W,;t t
  11845. s,@PACKAGE@,$PACKAGE,;t t
  11846. s,@VERSION@,$VERSION,;t t
  11847. s,@ACLOCAL@,$ACLOCAL,;t t
  11848. s,@AUTOCONF@,$AUTOCONF,;t t
  11849. s,@AUTOMAKE@,$AUTOMAKE,;t t
  11850. s,@AUTOHEADER@,$AUTOHEADER,;t t
  11851. s,@MAKEINFO@,$MAKEINFO,;t t
  11852. s,@install_sh@,$install_sh,;t t
  11853. s,@STRIP@,$STRIP,;t t
  11854. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11855. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  11856. s,@mkdir_p@,$mkdir_p,;t t
  11857. s,@AWK@,$AWK,;t t
  11858. s,@SET_MAKE@,$SET_MAKE,;t t
  11859. s,@am__leading_dot@,$am__leading_dot,;t t
  11860. s,@AMTAR@,$AMTAR,;t t
  11861. s,@am__tar@,$am__tar,;t t
  11862. s,@am__untar@,$am__untar,;t t
  11863. s,@multi_basedir@,$multi_basedir,;t t
  11864. s,@toolexecdir@,$toolexecdir,;t t
  11865. s,@toolexeclibdir@,$toolexeclibdir,;t t
  11866. s,@CC@,$CC,;t t
  11867. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11868. s,@EXEEXT@,$EXEEXT,;t t
  11869. s,@OBJEXT@,$OBJEXT,;t t
  11870. s,@DEPDIR@,$DEPDIR,;t t
  11871. s,@am__include@,$am__include,;t t
  11872. s,@am__quote@,$am__quote,;t t
  11873. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  11874. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  11875. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  11876. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11877. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  11878. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  11879. s,@CFLAGS@,$CFLAGS,;t t
  11880. s,@AR@,$AR,;t t
  11881. s,@ac_ct_AR@,$ac_ct_AR,;t t
  11882. s,@RANLIB@,$RANLIB,;t t
  11883. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11884. s,@PERL@,$PERL,;t t
  11885. s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
  11886. s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
  11887. s,@LN_S@,$LN_S,;t t
  11888. s,@LIBTOOL@,$LIBTOOL,;t t
  11889. s,@enable_shared@,$enable_shared,;t t
  11890. s,@enable_static@,$enable_static,;t t
  11891. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  11892. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  11893. s,@MAINT@,$MAINT,;t t
  11894. s,@FC@,$FC,;t t
  11895. s,@FCFLAGS@,$FCFLAGS,;t t
  11896. s,@LDFLAGS@,$LDFLAGS,;t t
  11897. s,@ac_ct_FC@,$ac_ct_FC,;t t
  11898. s,@libtool_VERSION@,$libtool_VERSION,;t t
  11899. s,@CPP@,$CPP,;t t
  11900. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11901. s,@EGREP@,$EGREP,;t t
  11902. s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
  11903. s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
  11904. s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
  11905. s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
  11906. s,@config_path@,$config_path,;t t
  11907. s,@XCFLAGS@,$XCFLAGS,;t t
  11908. s,@XLDFLAGS@,$XLDFLAGS,;t t
  11909. s,@link_gomp@,$link_gomp,;t t
  11910. s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
  11911. s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
  11912. s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
  11913. s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
  11914. s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
  11915. s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
  11916. s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
  11917. s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
  11918. s,@LIBOBJS@,$LIBOBJS,;t t
  11919. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11920. CEOF
  11921.  
  11922. _ACEOF
  11923.  
  11924. cat >>$CONFIG_STATUS <<\_ACEOF
  11925. # Split the substitutions into bite-sized pieces for seds with
  11926. # small command number limits, like on Digital OSF/1 and HP-UX.
  11927. ac_max_sed_lines=48
  11928. ac_sed_frag=1 # Number of current file.
  11929. ac_beg=1 # First line for current file.
  11930. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11931. ac_more_lines=:
  11932. ac_sed_cmds=
  11933. while $ac_more_lines; do
  11934. if test $ac_beg -gt 1; then
  11935. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11936. else
  11937. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11938. fi
  11939. if test ! -s $tmp/subs.frag; then
  11940. ac_more_lines=false
  11941. else
  11942. # The purpose of the label and of the branching condition is to
  11943. # speed up the sed processing (if there are no `@' at all, there
  11944. # is no need to browse any of the substitutions).
  11945. # These are the two extra sed commands mentioned above.
  11946. (echo ':t
  11947. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11948. if test -z "$ac_sed_cmds"; then
  11949. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11950. else
  11951. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11952. fi
  11953. ac_sed_frag=`expr $ac_sed_frag + 1`
  11954. ac_beg=$ac_end
  11955. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11956. fi
  11957. done
  11958. if test -z "$ac_sed_cmds"; then
  11959. ac_sed_cmds=cat
  11960. fi
  11961. fi # test -n "$CONFIG_FILES"
  11962.  
  11963. _ACEOF
  11964. cat >>$CONFIG_STATUS <<\_ACEOF
  11965. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11966. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11967. case $ac_file in
  11968. - | *:- | *:-:* ) # input from stdin
  11969. cat >$tmp/stdin
  11970. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11971. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11972. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11973. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11974. * ) ac_file_in=$ac_file.in ;;
  11975. esac
  11976.  
  11977. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11978. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11979. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11980. X"$ac_file" : 'X\(//\)[^/]' \| \
  11981. X"$ac_file" : 'X\(//\)$' \| \
  11982. X"$ac_file" : 'X\(/\)' \| \
  11983. . : '\(.\)' 2>/dev/null ||
  11984. echo X"$ac_file" |
  11985. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11986. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11987. /^X\(\/\/\)$/{ s//\1/; q; }
  11988. /^X\(\/\).*/{ s//\1/; q; }
  11989. s/.*/./; q'`
  11990. { if $as_mkdir_p; then
  11991. mkdir -p "$ac_dir"
  11992. else
  11993. as_dir="$ac_dir"
  11994. as_dirs=
  11995. while test ! -d "$as_dir"; do
  11996. as_dirs="$as_dir $as_dirs"
  11997. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11998. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11999. X"$as_dir" : 'X\(//\)[^/]' \| \
  12000. X"$as_dir" : 'X\(//\)$' \| \
  12001. X"$as_dir" : 'X\(/\)' \| \
  12002. . : '\(.\)' 2>/dev/null ||
  12003. echo X"$as_dir" |
  12004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12005. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12006. /^X\(\/\/\)$/{ s//\1/; q; }
  12007. /^X\(\/\).*/{ s//\1/; q; }
  12008. s/.*/./; q'`
  12009. done
  12010. test ! -n "$as_dirs" || mkdir $as_dirs
  12011. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12012. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12013. { (exit 1); exit 1; }; }; }
  12014.  
  12015. ac_builddir=.
  12016.  
  12017. if test "$ac_dir" != .; then
  12018. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12019. # A "../" for each directory in $ac_dir_suffix.
  12020. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12021. else
  12022. ac_dir_suffix= ac_top_builddir=
  12023. fi
  12024.  
  12025. case $srcdir in
  12026. .) # No --srcdir option. We are building in place.
  12027. ac_srcdir=.
  12028. if test -z "$ac_top_builddir"; then
  12029. ac_top_srcdir=.
  12030. else
  12031. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12032. fi ;;
  12033. [\\/]* | ?:[\\/]* ) # Absolute path.
  12034. ac_srcdir=$srcdir$ac_dir_suffix;
  12035. ac_top_srcdir=$srcdir ;;
  12036. *) # Relative path.
  12037. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12038. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12039. esac
  12040.  
  12041. # Do not use `cd foo && pwd` to compute absolute paths, because
  12042. # the directories may not exist.
  12043. case `pwd` in
  12044. .) ac_abs_builddir="$ac_dir";;
  12045. *)
  12046. case "$ac_dir" in
  12047. .) ac_abs_builddir=`pwd`;;
  12048. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12049. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12050. esac;;
  12051. esac
  12052. case $ac_abs_builddir in
  12053. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12054. *)
  12055. case ${ac_top_builddir}. in
  12056. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12057. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12058. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12059. esac;;
  12060. esac
  12061. case $ac_abs_builddir in
  12062. .) ac_abs_srcdir=$ac_srcdir;;
  12063. *)
  12064. case $ac_srcdir in
  12065. .) ac_abs_srcdir=$ac_abs_builddir;;
  12066. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12067. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12068. esac;;
  12069. esac
  12070. case $ac_abs_builddir in
  12071. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12072. *)
  12073. case $ac_top_srcdir in
  12074. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12075. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12076. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12077. esac;;
  12078. esac
  12079.  
  12080.  
  12081. case $INSTALL in
  12082. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12083. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  12084. esac
  12085.  
  12086. if test x"$ac_file" != x-; then
  12087. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12088. echo "$as_me: creating $ac_file" >&6;}
  12089. rm -f "$ac_file"
  12090. fi
  12091. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12092. # use $as_me), people would be surprised to read:
  12093. # /* config.h. Generated by config.status. */
  12094. if test x"$ac_file" = x-; then
  12095. configure_input=
  12096. else
  12097. configure_input="$ac_file. "
  12098. fi
  12099. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12100. sed 's,.*/,,'` by configure."
  12101.  
  12102. # First look for the input files in the build tree, otherwise in the
  12103. # src tree.
  12104. ac_file_inputs=`IFS=:
  12105. for f in $ac_file_in; do
  12106. case $f in
  12107. -) echo $tmp/stdin ;;
  12108. [\\/$]*)
  12109. # Absolute (can't be DOS-style, as IFS=:)
  12110. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12111. echo "$as_me: error: cannot find input file: $f" >&2;}
  12112. { (exit 1); exit 1; }; }
  12113. echo "$f";;
  12114. *) # Relative
  12115. if test -f "$f"; then
  12116. # Build tree
  12117. echo "$f"
  12118. elif test -f "$srcdir/$f"; then
  12119. # Source tree
  12120. echo "$srcdir/$f"
  12121. else
  12122. # /dev/null tree
  12123. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12124. echo "$as_me: error: cannot find input file: $f" >&2;}
  12125. { (exit 1); exit 1; }; }
  12126. fi;;
  12127. esac
  12128. done` || { (exit 1); exit 1; }
  12129. _ACEOF
  12130. cat >>$CONFIG_STATUS <<_ACEOF
  12131. sed "$ac_vpsub
  12132. $extrasub
  12133. _ACEOF
  12134. cat >>$CONFIG_STATUS <<\_ACEOF
  12135. :t
  12136. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12137. s,@configure_input@,$configure_input,;t t
  12138. s,@srcdir@,$ac_srcdir,;t t
  12139. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12140. s,@top_srcdir@,$ac_top_srcdir,;t t
  12141. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12142. s,@builddir@,$ac_builddir,;t t
  12143. s,@abs_builddir@,$ac_abs_builddir,;t t
  12144. s,@top_builddir@,$ac_top_builddir,;t t
  12145. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12146. s,@INSTALL@,$ac_INSTALL,;t t
  12147. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12148. rm -f $tmp/stdin
  12149. if test x"$ac_file" != x-; then
  12150. mv $tmp/out $ac_file
  12151. else
  12152. cat $tmp/out
  12153. rm -f $tmp/out
  12154. fi
  12155.  
  12156. done
  12157. _ACEOF
  12158. cat >>$CONFIG_STATUS <<\_ACEOF
  12159.  
  12160. #
  12161. # CONFIG_HEADER section.
  12162. #
  12163.  
  12164. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12165. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12166. #
  12167. # ac_d sets the value in "#define NAME VALUE" lines.
  12168. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12169. ac_dB='[ ].*$,\1#\2'
  12170. ac_dC=' '
  12171. ac_dD=',;t'
  12172. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12173. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12174. ac_uB='$,\1#\2define\3'
  12175. ac_uC=' '
  12176. ac_uD=',;t'
  12177.  
  12178. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12179. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12180. case $ac_file in
  12181. - | *:- | *:-:* ) # input from stdin
  12182. cat >$tmp/stdin
  12183. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12184. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12185. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12186. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12187. * ) ac_file_in=$ac_file.in ;;
  12188. esac
  12189.  
  12190. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12191. echo "$as_me: creating $ac_file" >&6;}
  12192.  
  12193. # First look for the input files in the build tree, otherwise in the
  12194. # src tree.
  12195. ac_file_inputs=`IFS=:
  12196. for f in $ac_file_in; do
  12197. case $f in
  12198. -) echo $tmp/stdin ;;
  12199. [\\/$]*)
  12200. # Absolute (can't be DOS-style, as IFS=:)
  12201. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12202. echo "$as_me: error: cannot find input file: $f" >&2;}
  12203. { (exit 1); exit 1; }; }
  12204. # Do quote $f, to prevent DOS paths from being IFS'd.
  12205. echo "$f";;
  12206. *) # Relative
  12207. if test -f "$f"; then
  12208. # Build tree
  12209. echo "$f"
  12210. elif test -f "$srcdir/$f"; then
  12211. # Source tree
  12212. echo "$srcdir/$f"
  12213. else
  12214. # /dev/null tree
  12215. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12216. echo "$as_me: error: cannot find input file: $f" >&2;}
  12217. { (exit 1); exit 1; }; }
  12218. fi;;
  12219. esac
  12220. done` || { (exit 1); exit 1; }
  12221. # Remove the trailing spaces.
  12222. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12223.  
  12224. _ACEOF
  12225.  
  12226. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12227. # `conftest.undefs', that substitutes the proper values into
  12228. # config.h.in to produce config.h. The first handles `#define'
  12229. # templates, and the second `#undef' templates.
  12230. # And first: Protect against being on the right side of a sed subst in
  12231. # config.status. Protect against being in an unquoted here document
  12232. # in config.status.
  12233. rm -f conftest.defines conftest.undefs
  12234. # Using a here document instead of a string reduces the quoting nightmare.
  12235. # Putting comments in sed scripts is not portable.
  12236. #
  12237. # `end' is used to avoid that the second main sed command (meant for
  12238. # 0-ary CPP macros) applies to n-ary macro definitions.
  12239. # See the Autoconf documentation for `clear'.
  12240. cat >confdef2sed.sed <<\_ACEOF
  12241. s/[\\&,]/\\&/g
  12242. s,[\\$`],\\&,g
  12243. t clear
  12244. : clear
  12245. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12246. t end
  12247. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12248. : end
  12249. _ACEOF
  12250. # If some macros were called several times there might be several times
  12251. # the same #defines, which is useless. Nevertheless, we may not want to
  12252. # sort them, since we want the *last* AC-DEFINE to be honored.
  12253. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12254. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12255. rm -f confdef2sed.sed
  12256.  
  12257. # This sed command replaces #undef with comments. This is necessary, for
  12258. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12259. # on some systems where configure will not decide to define it.
  12260. cat >>conftest.undefs <<\_ACEOF
  12261. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12262. _ACEOF
  12263.  
  12264. # Break up conftest.defines because some shells have a limit on the size
  12265. # of here documents, and old seds have small limits too (100 cmds).
  12266. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12267. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12268. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12269. echo ' :' >>$CONFIG_STATUS
  12270. rm -f conftest.tail
  12271. while grep . conftest.defines >/dev/null
  12272. do
  12273. # Write a limited-size here document to $tmp/defines.sed.
  12274. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12275. # Speed up: don't consider the non `#define' lines.
  12276. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12277. # Work around the forget-to-reset-the-flag bug.
  12278. echo 't clr' >>$CONFIG_STATUS
  12279. echo ': clr' >>$CONFIG_STATUS
  12280. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12281. echo 'CEOF
  12282. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12283. rm -f $tmp/in
  12284. mv $tmp/out $tmp/in
  12285. ' >>$CONFIG_STATUS
  12286. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12287. rm -f conftest.defines
  12288. mv conftest.tail conftest.defines
  12289. done
  12290. rm -f conftest.defines
  12291. echo ' fi # grep' >>$CONFIG_STATUS
  12292. echo >>$CONFIG_STATUS
  12293.  
  12294. # Break up conftest.undefs because some shells have a limit on the size
  12295. # of here documents, and old seds have small limits too (100 cmds).
  12296. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12297. rm -f conftest.tail
  12298. while grep . conftest.undefs >/dev/null
  12299. do
  12300. # Write a limited-size here document to $tmp/undefs.sed.
  12301. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12302. # Speed up: don't consider the non `#undef'
  12303. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12304. # Work around the forget-to-reset-the-flag bug.
  12305. echo 't clr' >>$CONFIG_STATUS
  12306. echo ': clr' >>$CONFIG_STATUS
  12307. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12308. echo 'CEOF
  12309. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12310. rm -f $tmp/in
  12311. mv $tmp/out $tmp/in
  12312. ' >>$CONFIG_STATUS
  12313. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12314. rm -f conftest.undefs
  12315. mv conftest.tail conftest.undefs
  12316. done
  12317. rm -f conftest.undefs
  12318.  
  12319. cat >>$CONFIG_STATUS <<\_ACEOF
  12320. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12321. # use $as_me), people would be surprised to read:
  12322. # /* config.h. Generated by config.status. */
  12323. if test x"$ac_file" = x-; then
  12324. echo "/* Generated by configure. */" >$tmp/config.h
  12325. else
  12326. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12327. fi
  12328. cat $tmp/in >>$tmp/config.h
  12329. rm -f $tmp/in
  12330. if test x"$ac_file" != x-; then
  12331. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12332. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12333. echo "$as_me: $ac_file is unchanged" >&6;}
  12334. else
  12335. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12336. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12337. X"$ac_file" : 'X\(//\)[^/]' \| \
  12338. X"$ac_file" : 'X\(//\)$' \| \
  12339. X"$ac_file" : 'X\(/\)' \| \
  12340. . : '\(.\)' 2>/dev/null ||
  12341. echo X"$ac_file" |
  12342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12343. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12344. /^X\(\/\/\)$/{ s//\1/; q; }
  12345. /^X\(\/\).*/{ s//\1/; q; }
  12346. s/.*/./; q'`
  12347. { if $as_mkdir_p; then
  12348. mkdir -p "$ac_dir"
  12349. else
  12350. as_dir="$ac_dir"
  12351. as_dirs=
  12352. while test ! -d "$as_dir"; do
  12353. as_dirs="$as_dir $as_dirs"
  12354. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12355. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12356. X"$as_dir" : 'X\(//\)[^/]' \| \
  12357. X"$as_dir" : 'X\(//\)$' \| \
  12358. X"$as_dir" : 'X\(/\)' \| \
  12359. . : '\(.\)' 2>/dev/null ||
  12360. echo X"$as_dir" |
  12361. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12362. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12363. /^X\(\/\/\)$/{ s//\1/; q; }
  12364. /^X\(\/\).*/{ s//\1/; q; }
  12365. s/.*/./; q'`
  12366. done
  12367. test ! -n "$as_dirs" || mkdir $as_dirs
  12368. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12369. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12370. { (exit 1); exit 1; }; }; }
  12371.  
  12372. rm -f $ac_file
  12373. mv $tmp/config.h $ac_file
  12374. fi
  12375. else
  12376. cat $tmp/config.h
  12377. rm -f $tmp/config.h
  12378. fi
  12379. # Compute $ac_file's index in $config_headers.
  12380. _am_stamp_count=1
  12381. for _am_header in $config_headers :; do
  12382. case $_am_header in
  12383. $ac_file | $ac_file:* )
  12384. break ;;
  12385. * )
  12386. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12387. esac
  12388. done
  12389. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  12390. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12391. X$ac_file : 'X\(//\)[^/]' \| \
  12392. X$ac_file : 'X\(//\)$' \| \
  12393. X$ac_file : 'X\(/\)' \| \
  12394. . : '\(.\)' 2>/dev/null ||
  12395. echo X$ac_file |
  12396. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12397. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12398. /^X\(\/\/\)$/{ s//\1/; q; }
  12399. /^X\(\/\).*/{ s//\1/; q; }
  12400. s/.*/./; q'`/stamp-h$_am_stamp_count
  12401. done
  12402. _ACEOF
  12403. cat >>$CONFIG_STATUS <<\_ACEOF
  12404.  
  12405. #
  12406. # CONFIG_COMMANDS section.
  12407. #
  12408. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12409. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12410. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12411. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12412. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12413. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12414. X"$ac_dest" : 'X\(//\)$' \| \
  12415. X"$ac_dest" : 'X\(/\)' \| \
  12416. . : '\(.\)' 2>/dev/null ||
  12417. echo X"$ac_dest" |
  12418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12419. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12420. /^X\(\/\/\)$/{ s//\1/; q; }
  12421. /^X\(\/\).*/{ s//\1/; q; }
  12422. s/.*/./; q'`
  12423. { if $as_mkdir_p; then
  12424. mkdir -p "$ac_dir"
  12425. else
  12426. as_dir="$ac_dir"
  12427. as_dirs=
  12428. while test ! -d "$as_dir"; do
  12429. as_dirs="$as_dir $as_dirs"
  12430. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12431. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12432. X"$as_dir" : 'X\(//\)[^/]' \| \
  12433. X"$as_dir" : 'X\(//\)$' \| \
  12434. X"$as_dir" : 'X\(/\)' \| \
  12435. . : '\(.\)' 2>/dev/null ||
  12436. echo X"$as_dir" |
  12437. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12438. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12439. /^X\(\/\/\)$/{ s//\1/; q; }
  12440. /^X\(\/\).*/{ s//\1/; q; }
  12441. s/.*/./; q'`
  12442. done
  12443. test ! -n "$as_dirs" || mkdir $as_dirs
  12444. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12445. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12446. { (exit 1); exit 1; }; }; }
  12447.  
  12448. ac_builddir=.
  12449.  
  12450. if test "$ac_dir" != .; then
  12451. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12452. # A "../" for each directory in $ac_dir_suffix.
  12453. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12454. else
  12455. ac_dir_suffix= ac_top_builddir=
  12456. fi
  12457.  
  12458. case $srcdir in
  12459. .) # No --srcdir option. We are building in place.
  12460. ac_srcdir=.
  12461. if test -z "$ac_top_builddir"; then
  12462. ac_top_srcdir=.
  12463. else
  12464. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12465. fi ;;
  12466. [\\/]* | ?:[\\/]* ) # Absolute path.
  12467. ac_srcdir=$srcdir$ac_dir_suffix;
  12468. ac_top_srcdir=$srcdir ;;
  12469. *) # Relative path.
  12470. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12471. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12472. esac
  12473.  
  12474. # Do not use `cd foo && pwd` to compute absolute paths, because
  12475. # the directories may not exist.
  12476. case `pwd` in
  12477. .) ac_abs_builddir="$ac_dir";;
  12478. *)
  12479. case "$ac_dir" in
  12480. .) ac_abs_builddir=`pwd`;;
  12481. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12482. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12483. esac;;
  12484. esac
  12485. case $ac_abs_builddir in
  12486. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12487. *)
  12488. case ${ac_top_builddir}. in
  12489. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12490. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12491. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12492. esac;;
  12493. esac
  12494. case $ac_abs_builddir in
  12495. .) ac_abs_srcdir=$ac_srcdir;;
  12496. *)
  12497. case $ac_srcdir in
  12498. .) ac_abs_srcdir=$ac_abs_builddir;;
  12499. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12500. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12501. esac;;
  12502. esac
  12503. case $ac_abs_builddir in
  12504. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12505. *)
  12506. case $ac_top_srcdir in
  12507. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12508. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12509. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12510. esac;;
  12511. esac
  12512.  
  12513.  
  12514. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12515. echo "$as_me: executing $ac_dest commands" >&6;}
  12516. case $ac_dest in
  12517. default-1 )
  12518. # Only add multilib support code if we just rebuilt the top-level
  12519. # Makefile.
  12520. case " $CONFIG_FILES " in
  12521. *" Makefile "*)
  12522. ac_file=Makefile . ${multi_basedir}/config-ml.in
  12523. ;;
  12524. esac ;;
  12525. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  12526. # Strip MF so we end up with the name of the file.
  12527. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12528. # Check whether this is an Automake generated Makefile or not.
  12529. # We used to match only the files named `Makefile.in', but
  12530. # some people rename them; so instead we look at the file content.
  12531. # Grep'ing the first line is not enough: some people post-process
  12532. # each Makefile.in and add a new line on top of each file to say so.
  12533. # So let's grep whole file.
  12534. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12535. dirpart=`(dirname "$mf") 2>/dev/null ||
  12536. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12537. X"$mf" : 'X\(//\)[^/]' \| \
  12538. X"$mf" : 'X\(//\)$' \| \
  12539. X"$mf" : 'X\(/\)' \| \
  12540. . : '\(.\)' 2>/dev/null ||
  12541. echo X"$mf" |
  12542. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12543. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12544. /^X\(\/\/\)$/{ s//\1/; q; }
  12545. /^X\(\/\).*/{ s//\1/; q; }
  12546. s/.*/./; q'`
  12547. else
  12548. continue
  12549. fi
  12550. # Extract the definition of DEPDIR, am__include, and am__quote
  12551. # from the Makefile without running `make'.
  12552. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12553. test -z "$DEPDIR" && continue
  12554. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12555. test -z "am__include" && continue
  12556. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12557. # When using ansi2knr, U may be empty or an underscore; expand it
  12558. U=`sed -n 's/^U = //p' < "$mf"`
  12559. # Find all dependency output files, they are included files with
  12560. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12561. # simplest approach to changing $(DEPDIR) to its actual value in the
  12562. # expansion.
  12563. for file in `sed -n "
  12564. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12565. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12566. # Make sure the directory exists.
  12567. test -f "$dirpart/$file" && continue
  12568. fdir=`(dirname "$file") 2>/dev/null ||
  12569. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12570. X"$file" : 'X\(//\)[^/]' \| \
  12571. X"$file" : 'X\(//\)$' \| \
  12572. X"$file" : 'X\(/\)' \| \
  12573. . : '\(.\)' 2>/dev/null ||
  12574. echo X"$file" |
  12575. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12576. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12577. /^X\(\/\/\)$/{ s//\1/; q; }
  12578. /^X\(\/\).*/{ s//\1/; q; }
  12579. s/.*/./; q'`
  12580. { if $as_mkdir_p; then
  12581. mkdir -p $dirpart/$fdir
  12582. else
  12583. as_dir=$dirpart/$fdir
  12584. as_dirs=
  12585. while test ! -d "$as_dir"; do
  12586. as_dirs="$as_dir $as_dirs"
  12587. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12588. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12589. X"$as_dir" : 'X\(//\)[^/]' \| \
  12590. X"$as_dir" : 'X\(//\)$' \| \
  12591. X"$as_dir" : 'X\(/\)' \| \
  12592. . : '\(.\)' 2>/dev/null ||
  12593. echo X"$as_dir" |
  12594. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12595. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12596. /^X\(\/\/\)$/{ s//\1/; q; }
  12597. /^X\(\/\).*/{ s//\1/; q; }
  12598. s/.*/./; q'`
  12599. done
  12600. test ! -n "$as_dirs" || mkdir $as_dirs
  12601. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  12602. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  12603. { (exit 1); exit 1; }; }; }
  12604.  
  12605. # echo "creating $dirpart/$file"
  12606. echo '# dummy' > "$dirpart/$file"
  12607. done
  12608. done
  12609. ;;
  12610. gstdint.h )
  12611. if test "$GCC" = yes; then
  12612. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  12613. else
  12614. echo "/* generated for $CC */" > tmp-stdint.h
  12615. fi
  12616.  
  12617. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12618.  
  12619. #ifndef GCC_GENERATED_STDINT_H
  12620. #define GCC_GENERATED_STDINT_H 1
  12621.  
  12622. #include <sys/types.h>
  12623. EOF
  12624.  
  12625. if test "$acx_cv_header_stdint" != stdint.h; then
  12626. echo "#include <stddef.h>" >> tmp-stdint.h
  12627. fi
  12628. if test "$acx_cv_header_stdint" != stddef.h; then
  12629. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  12630. fi
  12631.  
  12632. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12633. /* glibc uses these symbols as guards to prevent redefinitions. */
  12634. #ifdef __int8_t_defined
  12635. #define _INT8_T
  12636. #define _INT16_T
  12637. #define _INT32_T
  12638. #endif
  12639. #ifdef __uint32_t_defined
  12640. #define _UINT32_T
  12641. #endif
  12642.  
  12643. EOF
  12644.  
  12645. # ----------------- done header, emit basic int types -------------
  12646. if test "$acx_cv_header_stdint" = stddef.h; then
  12647. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12648.  
  12649. #ifndef _UINT8_T
  12650. #define _UINT8_T
  12651. typedef unsigned $acx_cv_type_int8_t uint8_t;
  12652. #endif
  12653.  
  12654. #ifndef _UINT16_T
  12655. #define _UINT16_T
  12656. typedef unsigned $acx_cv_type_int16_t uint16_t;
  12657. #endif
  12658.  
  12659. #ifndef _UINT32_T
  12660. #define _UINT32_T
  12661. typedef unsigned $acx_cv_type_int32_t uint32_t;
  12662. #endif
  12663.  
  12664. #ifndef _INT8_T
  12665. #define _INT8_T
  12666. typedef $acx_cv_type_int8_t int8_t;
  12667. #endif
  12668.  
  12669. #ifndef _INT16_T
  12670. #define _INT16_T
  12671. typedef $acx_cv_type_int16_t int16_t;
  12672. #endif
  12673.  
  12674. #ifndef _INT32_T
  12675. #define _INT32_T
  12676. typedef $acx_cv_type_int32_t int32_t;
  12677. #endif
  12678. EOF
  12679. elif test "$ac_cv_type_u_int32_t" = yes; then
  12680. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12681.  
  12682. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  12683. #ifndef _INT8_T
  12684. #define _INT8_T
  12685. #endif
  12686. #ifndef _INT16_T
  12687. #define _INT16_T
  12688. #endif
  12689. #ifndef _INT32_T
  12690. #define _INT32_T
  12691. #endif
  12692.  
  12693. #ifndef _UINT8_T
  12694. #define _UINT8_T
  12695. typedef u_int8_t uint8_t;
  12696. #endif
  12697.  
  12698. #ifndef _UINT16_T
  12699. #define _UINT16_T
  12700. typedef u_int16_t uint16_t;
  12701. #endif
  12702.  
  12703. #ifndef _UINT32_T
  12704. #define _UINT32_T
  12705. typedef u_int32_t uint32_t;
  12706. #endif
  12707. EOF
  12708. else
  12709. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12710.  
  12711. /* Some systems have guard macros to prevent redefinitions, define them. */
  12712. #ifndef _INT8_T
  12713. #define _INT8_T
  12714. #endif
  12715. #ifndef _INT16_T
  12716. #define _INT16_T
  12717. #endif
  12718. #ifndef _INT32_T
  12719. #define _INT32_T
  12720. #endif
  12721. #ifndef _UINT8_T
  12722. #define _UINT8_T
  12723. #endif
  12724. #ifndef _UINT16_T
  12725. #define _UINT16_T
  12726. #endif
  12727. #ifndef _UINT32_T
  12728. #define _UINT32_T
  12729. #endif
  12730. EOF
  12731. fi
  12732.  
  12733. # ------------- done basic int types, emit int64_t types ------------
  12734. if test "$ac_cv_type_uint64_t" = yes; then
  12735. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12736.  
  12737. /* system headers have good uint64_t and int64_t */
  12738. #ifndef _INT64_T
  12739. #define _INT64_T
  12740. #endif
  12741. #ifndef _UINT64_T
  12742. #define _UINT64_T
  12743. #endif
  12744. EOF
  12745. elif test "$ac_cv_type_u_int64_t" = yes; then
  12746. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12747.  
  12748. /* system headers have an u_int64_t (and int64_t) */
  12749. #ifndef _INT64_T
  12750. #define _INT64_T
  12751. #endif
  12752. #ifndef _UINT64_T
  12753. #define _UINT64_T
  12754. typedef u_int64_t uint64_t;
  12755. #endif
  12756. EOF
  12757. elif test -n "$acx_cv_type_int64_t"; then
  12758. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12759.  
  12760. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  12761. #ifndef _INT64_T
  12762. #define _INT64_T
  12763. typedef $acx_cv_type_int64_t int64_t;
  12764. #endif
  12765. #ifndef _UINT64_T
  12766. #define _UINT64_T
  12767. typedef unsigned $acx_cv_type_int64_t uint64_t;
  12768. #endif
  12769. EOF
  12770. else
  12771. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12772.  
  12773. /* some common heuristics for int64_t, using compiler-specific tests */
  12774. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  12775. #ifndef _INT64_T
  12776. #define _INT64_T
  12777. typedef long long int64_t;
  12778. #endif
  12779. #ifndef _UINT64_T
  12780. #define _UINT64_T
  12781. typedef unsigned long long uint64_t;
  12782. #endif
  12783.  
  12784. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  12785. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  12786. does not implement __extension__. But that compiler doesn't define
  12787. __GNUC_MINOR__. */
  12788. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  12789. # define __extension__
  12790. # endif
  12791.  
  12792. # ifndef _INT64_T
  12793. # define _INT64_T
  12794. __extension__ typedef long long int64_t;
  12795. # endif
  12796. # ifndef _UINT64_T
  12797. # define _UINT64_T
  12798. __extension__ typedef unsigned long long uint64_t;
  12799. # endif
  12800.  
  12801. #elif !defined __STRICT_ANSI__
  12802. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  12803.  
  12804. # ifndef _INT64_T
  12805. # define _INT64_T
  12806. typedef __int64 int64_t;
  12807. # endif
  12808. # ifndef _UINT64_T
  12809. # define _UINT64_T
  12810. typedef unsigned __int64 uint64_t;
  12811. # endif
  12812. # endif /* compiler */
  12813.  
  12814. #endif /* ANSI version */
  12815. EOF
  12816. fi
  12817.  
  12818. # ------------- done int64_t types, emit intptr types ------------
  12819. if test "$ac_cv_type_uintptr_t" != yes; then
  12820. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12821.  
  12822. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  12823. typedef u$acx_cv_type_intptr_t uintptr_t;
  12824. typedef $acx_cv_type_intptr_t intptr_t;
  12825. EOF
  12826. fi
  12827.  
  12828. # ------------- done intptr types, emit int_least types ------------
  12829. if test "$ac_cv_type_int_least32_t" != yes; then
  12830. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12831.  
  12832. /* Define int_least types */
  12833. typedef int8_t int_least8_t;
  12834. typedef int16_t int_least16_t;
  12835. typedef int32_t int_least32_t;
  12836. #ifdef _INT64_T
  12837. typedef int64_t int_least64_t;
  12838. #endif
  12839.  
  12840. typedef uint8_t uint_least8_t;
  12841. typedef uint16_t uint_least16_t;
  12842. typedef uint32_t uint_least32_t;
  12843. #ifdef _UINT64_T
  12844. typedef uint64_t uint_least64_t;
  12845. #endif
  12846. EOF
  12847. fi
  12848.  
  12849. # ------------- done intptr types, emit int_fast types ------------
  12850. if test "$ac_cv_type_int_fast32_t" != yes; then
  12851. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12852.  
  12853. /* Define int_fast types. short is often slow */
  12854. typedef int8_t int_fast8_t;
  12855. typedef int int_fast16_t;
  12856. typedef int32_t int_fast32_t;
  12857. #ifdef _INT64_T
  12858. typedef int64_t int_fast64_t;
  12859. #endif
  12860.  
  12861. typedef uint8_t uint_fast8_t;
  12862. typedef unsigned int uint_fast16_t;
  12863. typedef uint32_t uint_fast32_t;
  12864. #ifdef _UINT64_T
  12865. typedef uint64_t uint_fast64_t;
  12866. #endif
  12867. EOF
  12868. fi
  12869.  
  12870. if test "$ac_cv_type_uintmax_t" != yes; then
  12871. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12872.  
  12873. /* Define intmax based on what we found */
  12874. #ifdef _INT64_T
  12875. typedef int64_t intmax_t;
  12876. #else
  12877. typedef long intmax_t;
  12878. #endif
  12879. #ifdef _UINT64_T
  12880. typedef uint64_t uintmax_t;
  12881. #else
  12882. typedef unsigned long uintmax_t;
  12883. #endif
  12884. EOF
  12885. fi
  12886.  
  12887. sed 's/^ *//' >> tmp-stdint.h <<EOF
  12888.  
  12889. #endif /* GCC_GENERATED_STDINT_H */
  12890. EOF
  12891.  
  12892. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  12893. rm -f tmp-stdint.h
  12894. else
  12895. mv -f tmp-stdint.h gstdint.h
  12896. fi
  12897.  
  12898. ;;
  12899. esac
  12900. done
  12901. _ACEOF
  12902.  
  12903. cat >>$CONFIG_STATUS <<\_ACEOF
  12904.  
  12905. { (exit 0); exit 0; }
  12906. _ACEOF
  12907. chmod +x $CONFIG_STATUS
  12908. ac_clean_files=$ac_clean_files_save
  12909.  
  12910.  
  12911. # configure is writing to config.log, and then calls config.status.
  12912. # config.status does its own redirection, appending to config.log.
  12913. # Unfortunately, on DOS this fails, as config.log is still kept open
  12914. # by configure, so config.status won't be able to write to it; its
  12915. # output is simply discarded. So we exec the FD to /dev/null,
  12916. # effectively closing config.log, so it can be properly (re)opened and
  12917. # appended to by config.status. When coming back to configure, we
  12918. # need to make the FD available again.
  12919. if test "$no_create" != yes; then
  12920. ac_cs_success=:
  12921. ac_config_status_args=
  12922. test "$silent" = yes &&
  12923. ac_config_status_args="$ac_config_status_args --quiet"
  12924. exec 5>/dev/null
  12925. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12926. exec 5>>config.log
  12927. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12928. # would make configure fail if this is the last instruction.
  12929. $ac_cs_success || { (exit 1); exit 1; }
  12930. fi
Advertisement
Add Comment
Please, Sign In to add comment