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

16131 lines
476KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="move-if-change"
  507. enable_option_checking=no
  508. ac_subst_vars='LTLIBOBJS
  509. LIBOBJS
  510. compare_exclusions
  511. host_shared
  512. stage2_werror_flag
  513. stage1_checking
  514. stage1_cflags
  515. MAINT
  516. MAINTAINER_MODE_FALSE
  517. MAINTAINER_MODE_TRUE
  518. COMPILER_NM_FOR_TARGET
  519. COMPILER_LD_FOR_TARGET
  520. COMPILER_AS_FOR_TARGET
  521. FLAGS_FOR_TARGET
  522. RAW_CXX_FOR_TARGET
  523. WINDMC_FOR_TARGET
  524. WINDRES_FOR_TARGET
  525. STRIP_FOR_TARGET
  526. READELF_FOR_TARGET
  527. RANLIB_FOR_TARGET
  528. OBJDUMP_FOR_TARGET
  529. OBJCOPY_FOR_TARGET
  530. NM_FOR_TARGET
  531. LIPO_FOR_TARGET
  532. LD_FOR_TARGET
  533. DLLTOOL_FOR_TARGET
  534. AS_FOR_TARGET
  535. AR_FOR_TARGET
  536. GOC_FOR_TARGET
  537. GFORTRAN_FOR_TARGET
  538. GCJ_FOR_TARGET
  539. GCC_FOR_TARGET
  540. CXX_FOR_TARGET
  541. CC_FOR_TARGET
  542. READELF
  543. OBJDUMP
  544. OBJCOPY
  545. WINDMC
  546. WINDRES
  547. STRIP
  548. RANLIB
  549. NM
  550. LIPO
  551. LD
  552. DLLTOOL
  553. AS
  554. AR
  555. RUNTEST
  556. EXPECT
  557. MAKEINFO
  558. FLEX
  559. LEX
  560. M4
  561. BISON
  562. YACC
  563. WINDRES_FOR_BUILD
  564. WINDMC_FOR_BUILD
  565. RANLIB_FOR_BUILD
  566. NM_FOR_BUILD
  567. LD_FOR_BUILD
  568. LDFLAGS_FOR_BUILD
  569. GOC_FOR_BUILD
  570. GFORTRAN_FOR_BUILD
  571. GCJ_FOR_BUILD
  572. DLLTOOL_FOR_BUILD
  573. CXX_FOR_BUILD
  574. CXXFLAGS_FOR_BUILD
  575. CFLAGS_FOR_BUILD
  576. CC_FOR_BUILD
  577. AS_FOR_BUILD
  578. AR_FOR_BUILD
  579. target_configdirs
  580. configdirs
  581. build_configdirs
  582. INSTALL_GDB_TK
  583. GDB_TK
  584. CONFIGURE_GDB_TK
  585. build_tooldir
  586. tooldir
  587. GCC_SHLIB_SUBDIR
  588. RPATH_ENVVAR
  589. target_configargs
  590. host_configargs
  591. build_configargs
  592. BUILD_CONFIG
  593. LDFLAGS_FOR_TARGET
  594. CXXFLAGS_FOR_TARGET
  595. CFLAGS_FOR_TARGET
  596. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  597. SYSROOT_CFLAGS_FOR_TARGET
  598. extra_host_zlib_configure_flags
  599. extra_host_libiberty_configure_flags
  600. stage1_languages
  601. extra_linker_plugin_flags
  602. extra_linker_plugin_configure_flags
  603. islinc
  604. isllibs
  605. islver
  606. poststage1_ldflags
  607. poststage1_libs
  608. stage1_ldflags
  609. stage1_libs
  610. extra_isl_gmp_configure_flags
  611. extra_mpc_mpfr_configure_flags
  612. extra_mpc_gmp_configure_flags
  613. extra_mpfr_configure_flags
  614. gmpinc
  615. gmplibs
  616. do_compare
  617. GNATMAKE
  618. GNATBIND
  619. ac_ct_CXX
  620. CXXFLAGS
  621. CXX
  622. OBJEXT
  623. EXEEXT
  624. ac_ct_CC
  625. CPPFLAGS
  626. LDFLAGS
  627. CFLAGS
  628. CC
  629. EXTRA_CONFIGARGS_LIBJAVA
  630. extra_liboffloadmic_configure_flags
  631. target_subdir
  632. host_subdir
  633. build_subdir
  634. build_libsubdir
  635. AWK
  636. SED
  637. LN_S
  638. LN
  639. INSTALL_DATA
  640. INSTALL_SCRIPT
  641. INSTALL_PROGRAM
  642. target_os
  643. target_vendor
  644. target_cpu
  645. target
  646. host_os
  647. host_vendor
  648. host_cpu
  649. host
  650. target_noncanonical
  651. host_noncanonical
  652. build_noncanonical
  653. build_os
  654. build_vendor
  655. build_cpu
  656. build
  657. TOPLEVEL_CONFIGURE_ARGUMENTS
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files='serialization_dependencies
  697. host_makefile_frag
  698. target_makefile_frag
  699. alphaieee_frag
  700. ospace_frag'
  701. ac_user_opts='
  702. enable_option_checking
  703. with_build_libsubdir
  704. with_system_zlib
  705. enable_as_accelerator_for
  706. enable_offload_targets
  707. enable_gold
  708. enable_ld
  709. enable_compressed_debug_sections
  710. enable_libquadmath
  711. enable_libquadmath_support
  712. enable_libada
  713. enable_libssp
  714. enable_libstdcxx
  715. enable_liboffloadmic
  716. enable_static_libjava
  717. enable_bootstrap
  718. with_mpc
  719. with_mpc_include
  720. with_mpc_lib
  721. with_mpfr_dir
  722. with_mpfr
  723. with_mpfr_include
  724. with_mpfr_lib
  725. with_gmp_dir
  726. with_gmp
  727. with_gmp_include
  728. with_gmp_lib
  729. with_stage1_libs
  730. with_stage1_ldflags
  731. with_boot_libs
  732. with_boot_ldflags
  733. with_isl
  734. with_isl_include
  735. with_isl_lib
  736. enable_isl_version_check
  737. enable_lto
  738. enable_linker_plugin_configure_flags
  739. enable_linker_plugin_flags
  740. enable_stage1_languages
  741. enable_objc_gc
  742. with_build_sysroot
  743. with_debug_prefix_map
  744. with_build_config
  745. enable_vtable_verify
  746. enable_serial_configure
  747. with_build_time_tools
  748. enable_maintainer_mode
  749. enable_stage1_checking
  750. enable_werror
  751. enable_host_shared
  752. '
  753. ac_precious_vars='build_alias
  754. host_alias
  755. target_alias
  756. CC
  757. CFLAGS
  758. LDFLAGS
  759. LIBS
  760. CPPFLAGS
  761. CXX
  762. CXXFLAGS
  763. CCC
  764. build_configargs
  765. host_configargs
  766. target_configargs
  767. AR
  768. AS
  769. DLLTOOL
  770. LD
  771. LIPO
  772. NM
  773. RANLIB
  774. STRIP
  775. WINDRES
  776. WINDMC
  777. OBJCOPY
  778. OBJDUMP
  779. READELF
  780. CC_FOR_TARGET
  781. CXX_FOR_TARGET
  782. GCC_FOR_TARGET
  783. GCJ_FOR_TARGET
  784. GFORTRAN_FOR_TARGET
  785. GOC_FOR_TARGET
  786. AR_FOR_TARGET
  787. AS_FOR_TARGET
  788. DLLTOOL_FOR_TARGET
  789. LD_FOR_TARGET
  790. LIPO_FOR_TARGET
  791. NM_FOR_TARGET
  792. OBJCOPY_FOR_TARGET
  793. OBJDUMP_FOR_TARGET
  794. RANLIB_FOR_TARGET
  795. READELF_FOR_TARGET
  796. STRIP_FOR_TARGET
  797. WINDRES_FOR_TARGET
  798. WINDMC_FOR_TARGET'
  799. # Initialize some variables set by options.
  800. ac_init_help=
  801. ac_init_version=false
  802. ac_unrecognized_opts=
  803. ac_unrecognized_sep=
  804. # The variables have the same names as the options, with
  805. # dashes changed to underlines.
  806. cache_file=/dev/null
  807. exec_prefix=NONE
  808. no_create=
  809. no_recursion=
  810. prefix=NONE
  811. program_prefix=NONE
  812. program_suffix=NONE
  813. program_transform_name=s,x,x,
  814. silent=
  815. site=
  816. srcdir=
  817. verbose=
  818. x_includes=NONE
  819. x_libraries=NONE
  820. # Installation directory options.
  821. # These are left unexpanded so users can "make install exec_prefix=/foo"
  822. # and all the variables that are supposed to be based on exec_prefix
  823. # by default will actually change.
  824. # Use braces instead of parens because sh, perl, etc. also accept them.
  825. # (The list follows the same order as the GNU Coding Standards.)
  826. bindir='${exec_prefix}/bin'
  827. sbindir='${exec_prefix}/sbin'
  828. libexecdir='${exec_prefix}/libexec'
  829. datarootdir='${prefix}/share'
  830. datadir='${datarootdir}'
  831. sysconfdir='${prefix}/etc'
  832. sharedstatedir='${prefix}/com'
  833. localstatedir='${prefix}/var'
  834. includedir='${prefix}/include'
  835. oldincludedir='/usr/include'
  836. docdir='${datarootdir}/doc/${PACKAGE}'
  837. infodir='${datarootdir}/info'
  838. htmldir='${docdir}'
  839. dvidir='${docdir}'
  840. pdfdir='${docdir}'
  841. psdir='${docdir}'
  842. libdir='${exec_prefix}/lib'
  843. localedir='${datarootdir}/locale'
  844. mandir='${datarootdir}/man'
  845. ac_prev=
  846. ac_dashdash=
  847. for ac_option
  848. do
  849. # If the previous option needs an argument, assign it.
  850. if test -n "$ac_prev"; then
  851. eval $ac_prev=\$ac_option
  852. ac_prev=
  853. continue
  854. fi
  855. case $ac_option in
  856. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  857. *) ac_optarg=yes ;;
  858. esac
  859. # Accept the important Cygnus configure options, so we can diagnose typos.
  860. case $ac_dashdash$ac_option in
  861. --)
  862. ac_dashdash=yes ;;
  863. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  864. ac_prev=bindir ;;
  865. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  866. bindir=$ac_optarg ;;
  867. -build | --build | --buil | --bui | --bu)
  868. ac_prev=build_alias ;;
  869. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  870. build_alias=$ac_optarg ;;
  871. -cache-file | --cache-file | --cache-fil | --cache-fi \
  872. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  873. ac_prev=cache_file ;;
  874. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  875. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  876. cache_file=$ac_optarg ;;
  877. --config-cache | -C)
  878. cache_file=config.cache ;;
  879. -datadir | --datadir | --datadi | --datad)
  880. ac_prev=datadir ;;
  881. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  882. datadir=$ac_optarg ;;
  883. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  884. | --dataroo | --dataro | --datar)
  885. ac_prev=datarootdir ;;
  886. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  887. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  888. datarootdir=$ac_optarg ;;
  889. -disable-* | --disable-*)
  890. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  891. # Reject names that are not valid shell variable names.
  892. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  893. as_fn_error "invalid feature name: $ac_useropt"
  894. ac_useropt_orig=$ac_useropt
  895. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  896. case $ac_user_opts in
  897. *"
  898. "enable_$ac_useropt"
  899. "*) ;;
  900. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  901. ac_unrecognized_sep=', ';;
  902. esac
  903. eval enable_$ac_useropt=no ;;
  904. -docdir | --docdir | --docdi | --doc | --do)
  905. ac_prev=docdir ;;
  906. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  907. docdir=$ac_optarg ;;
  908. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  909. ac_prev=dvidir ;;
  910. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  911. dvidir=$ac_optarg ;;
  912. -enable-* | --enable-*)
  913. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  914. # Reject names that are not valid shell variable names.
  915. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  916. as_fn_error "invalid feature name: $ac_useropt"
  917. ac_useropt_orig=$ac_useropt
  918. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  919. case $ac_user_opts in
  920. *"
  921. "enable_$ac_useropt"
  922. "*) ;;
  923. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  924. ac_unrecognized_sep=', ';;
  925. esac
  926. eval enable_$ac_useropt=\$ac_optarg ;;
  927. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  928. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  929. | --exec | --exe | --ex)
  930. ac_prev=exec_prefix ;;
  931. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  932. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  933. | --exec=* | --exe=* | --ex=*)
  934. exec_prefix=$ac_optarg ;;
  935. -gas | --gas | --ga | --g)
  936. # Obsolete; use --with-gas.
  937. with_gas=yes ;;
  938. -help | --help | --hel | --he | -h)
  939. ac_init_help=long ;;
  940. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  941. ac_init_help=recursive ;;
  942. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  943. ac_init_help=short ;;
  944. -host | --host | --hos | --ho)
  945. ac_prev=host_alias ;;
  946. -host=* | --host=* | --hos=* | --ho=*)
  947. host_alias=$ac_optarg ;;
  948. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  949. ac_prev=htmldir ;;
  950. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  951. | --ht=*)
  952. htmldir=$ac_optarg ;;
  953. -includedir | --includedir | --includedi | --included | --include \
  954. | --includ | --inclu | --incl | --inc)
  955. ac_prev=includedir ;;
  956. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  957. | --includ=* | --inclu=* | --incl=* | --inc=*)
  958. includedir=$ac_optarg ;;
  959. -infodir | --infodir | --infodi | --infod | --info | --inf)
  960. ac_prev=infodir ;;
  961. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  962. infodir=$ac_optarg ;;
  963. -libdir | --libdir | --libdi | --libd)
  964. ac_prev=libdir ;;
  965. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  966. libdir=$ac_optarg ;;
  967. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  968. | --libexe | --libex | --libe)
  969. ac_prev=libexecdir ;;
  970. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  971. | --libexe=* | --libex=* | --libe=*)
  972. libexecdir=$ac_optarg ;;
  973. -localedir | --localedir | --localedi | --localed | --locale)
  974. ac_prev=localedir ;;
  975. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  976. localedir=$ac_optarg ;;
  977. -localstatedir | --localstatedir | --localstatedi | --localstated \
  978. | --localstate | --localstat | --localsta | --localst | --locals)
  979. ac_prev=localstatedir ;;
  980. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  981. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  982. localstatedir=$ac_optarg ;;
  983. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  984. ac_prev=mandir ;;
  985. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  986. mandir=$ac_optarg ;;
  987. -nfp | --nfp | --nf)
  988. # Obsolete; use --without-fp.
  989. with_fp=no ;;
  990. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  991. | --no-cr | --no-c | -n)
  992. no_create=yes ;;
  993. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  994. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  995. no_recursion=yes ;;
  996. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  997. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  998. | --oldin | --oldi | --old | --ol | --o)
  999. ac_prev=oldincludedir ;;
  1000. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1001. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1002. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1003. oldincludedir=$ac_optarg ;;
  1004. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1005. ac_prev=prefix ;;
  1006. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1007. prefix=$ac_optarg ;;
  1008. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1009. | --program-pre | --program-pr | --program-p)
  1010. ac_prev=program_prefix ;;
  1011. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1012. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1013. program_prefix=$ac_optarg ;;
  1014. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1015. | --program-suf | --program-su | --program-s)
  1016. ac_prev=program_suffix ;;
  1017. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1018. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1019. program_suffix=$ac_optarg ;;
  1020. -program-transform-name | --program-transform-name \
  1021. | --program-transform-nam | --program-transform-na \
  1022. | --program-transform-n | --program-transform- \
  1023. | --program-transform | --program-transfor \
  1024. | --program-transfo | --program-transf \
  1025. | --program-trans | --program-tran \
  1026. | --progr-tra | --program-tr | --program-t)
  1027. ac_prev=program_transform_name ;;
  1028. -program-transform-name=* | --program-transform-name=* \
  1029. | --program-transform-nam=* | --program-transform-na=* \
  1030. | --program-transform-n=* | --program-transform-=* \
  1031. | --program-transform=* | --program-transfor=* \
  1032. | --program-transfo=* | --program-transf=* \
  1033. | --program-trans=* | --program-tran=* \
  1034. | --progr-tra=* | --program-tr=* | --program-t=*)
  1035. program_transform_name=$ac_optarg ;;
  1036. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1037. ac_prev=pdfdir ;;
  1038. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1039. pdfdir=$ac_optarg ;;
  1040. -psdir | --psdir | --psdi | --psd | --ps)
  1041. ac_prev=psdir ;;
  1042. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1043. psdir=$ac_optarg ;;
  1044. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1045. | -silent | --silent | --silen | --sile | --sil)
  1046. silent=yes ;;
  1047. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1048. ac_prev=sbindir ;;
  1049. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1050. | --sbi=* | --sb=*)
  1051. sbindir=$ac_optarg ;;
  1052. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1053. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1054. | --sharedst | --shareds | --shared | --share | --shar \
  1055. | --sha | --sh)
  1056. ac_prev=sharedstatedir ;;
  1057. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1058. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1059. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1060. | --sha=* | --sh=*)
  1061. sharedstatedir=$ac_optarg ;;
  1062. -site | --site | --sit)
  1063. ac_prev=site ;;
  1064. -site=* | --site=* | --sit=*)
  1065. site=$ac_optarg ;;
  1066. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1067. ac_prev=srcdir ;;
  1068. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1069. srcdir=$ac_optarg ;;
  1070. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1071. | --syscon | --sysco | --sysc | --sys | --sy)
  1072. ac_prev=sysconfdir ;;
  1073. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1074. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1075. sysconfdir=$ac_optarg ;;
  1076. -target | --target | --targe | --targ | --tar | --ta | --t)
  1077. ac_prev=target_alias ;;
  1078. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1079. target_alias=$ac_optarg ;;
  1080. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1081. verbose=yes ;;
  1082. -version | --version | --versio | --versi | --vers | -V)
  1083. ac_init_version=: ;;
  1084. -with-* | --with-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error "invalid package name: $ac_useropt"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=\$ac_optarg ;;
  1099. -without-* | --without-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=no ;;
  1114. --x)
  1115. # Obsolete; use --with-x.
  1116. with_x=yes ;;
  1117. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1118. | --x-incl | --x-inc | --x-in | --x-i)
  1119. ac_prev=x_includes ;;
  1120. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1121. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1122. x_includes=$ac_optarg ;;
  1123. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125. ac_prev=x_libraries ;;
  1126. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128. x_libraries=$ac_optarg ;;
  1129. -*) as_fn_error "unrecognized option: \`$ac_option'
  1130. Try \`$0 --help' for more information."
  1131. ;;
  1132. *=*)
  1133. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1134. # Reject names that are not valid shell variable names.
  1135. case $ac_envvar in #(
  1136. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1137. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1138. esac
  1139. eval $ac_envvar=\$ac_optarg
  1140. export $ac_envvar ;;
  1141. *)
  1142. # FIXME: should be removed in autoconf 3.0.
  1143. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1144. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1145. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1146. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1147. ;;
  1148. esac
  1149. done
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. as_fn_error "missing argument to $ac_option"
  1153. fi
  1154. if test -n "$ac_unrecognized_opts"; then
  1155. case $enable_option_checking in
  1156. no) ;;
  1157. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1158. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1159. esac
  1160. fi
  1161. # Check all directory arguments for consistency.
  1162. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1163. datadir sysconfdir sharedstatedir localstatedir includedir \
  1164. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1165. libdir localedir mandir
  1166. do
  1167. eval ac_val=\$$ac_var
  1168. # Remove trailing slashes.
  1169. case $ac_val in
  1170. */ )
  1171. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1172. eval $ac_var=\$ac_val;;
  1173. esac
  1174. # Be sure to have absolute directory names.
  1175. case $ac_val in
  1176. [\\/$]* | ?:[\\/]* ) continue;;
  1177. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1178. esac
  1179. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1180. done
  1181. # There might be people who depend on the old broken behavior: `$host'
  1182. # used to hold the argument of --host etc.
  1183. # FIXME: To remove some day.
  1184. build=$build_alias
  1185. host=$host_alias
  1186. target=$target_alias
  1187. # FIXME: To remove some day.
  1188. if test "x$host_alias" != x; then
  1189. if test "x$build_alias" = x; then
  1190. cross_compiling=maybe
  1191. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1192. If a cross compiler is detected then cross compile mode will be used." >&2
  1193. elif test "x$build_alias" != "x$host_alias"; then
  1194. cross_compiling=yes
  1195. fi
  1196. fi
  1197. ac_tool_prefix=
  1198. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1199. test "$silent" = yes && exec 6>/dev/null
  1200. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1201. ac_ls_di=`ls -di .` &&
  1202. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1203. as_fn_error "working directory cannot be determined"
  1204. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1205. as_fn_error "pwd does not report name of working directory"
  1206. # Find the source files, if location was not specified.
  1207. if test -z "$srcdir"; then
  1208. ac_srcdir_defaulted=yes
  1209. # Try the directory containing this script, then the parent directory.
  1210. ac_confdir=`$as_dirname -- "$as_myself" ||
  1211. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1212. X"$as_myself" : 'X\(//\)[^/]' \| \
  1213. X"$as_myself" : 'X\(//\)$' \| \
  1214. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1215. $as_echo X"$as_myself" |
  1216. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1217. s//\1/
  1218. q
  1219. }
  1220. /^X\(\/\/\)[^/].*/{
  1221. s//\1/
  1222. q
  1223. }
  1224. /^X\(\/\/\)$/{
  1225. s//\1/
  1226. q
  1227. }
  1228. /^X\(\/\).*/{
  1229. s//\1/
  1230. q
  1231. }
  1232. s/.*/./; q'`
  1233. srcdir=$ac_confdir
  1234. if test ! -r "$srcdir/$ac_unique_file"; then
  1235. srcdir=..
  1236. fi
  1237. else
  1238. ac_srcdir_defaulted=no
  1239. fi
  1240. if test ! -r "$srcdir/$ac_unique_file"; then
  1241. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1242. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1243. fi
  1244. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1245. ac_abs_confdir=`(
  1246. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1247. pwd)`
  1248. # When building in place, set srcdir=.
  1249. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1250. srcdir=.
  1251. fi
  1252. # Remove unnecessary trailing slashes from srcdir.
  1253. # Double slashes in file names in object file debugging info
  1254. # mess up M-x gdb in Emacs.
  1255. case $srcdir in
  1256. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1257. esac
  1258. case $srcdir in
  1259. *" "*)
  1260. as_fn_error "path to source, $srcdir, contains spaces"
  1261. ;;
  1262. esac
  1263. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1264. for ac_var in $ac_precious_vars; do
  1265. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_env_${ac_var}_value=\$${ac_var}
  1267. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269. done
  1270. #
  1271. # Report the --help message.
  1272. #
  1273. if test "$ac_init_help" = "long"; then
  1274. # Omit some internal or obsolete options to make the list less imposing.
  1275. # This message is too long to be a string in the A/UX 3.1 sh.
  1276. cat <<_ACEOF
  1277. \`configure' configures this package to adapt to many kinds of systems.
  1278. Usage: $0 [OPTION]... [VAR=VALUE]...
  1279. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1280. VAR=VALUE. See below for descriptions of some of the useful variables.
  1281. Defaults for the options are specified in brackets.
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292. Installation directories:
  1293. --prefix=PREFIX install architecture-independent files in PREFIX
  1294. [$ac_default_prefix]
  1295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1296. [PREFIX]
  1297. By default, \`make install' will install all the files in
  1298. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1299. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1300. for instance \`--prefix=\$HOME'.
  1301. For better control, use the options below.
  1302. Fine tuning of the installation directories:
  1303. --bindir=DIR user executables [EPREFIX/bin]
  1304. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1305. --libexecdir=DIR program executables [EPREFIX/libexec]
  1306. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1307. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1308. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1309. --libdir=DIR object code libraries [EPREFIX/lib]
  1310. --includedir=DIR C header files [PREFIX/include]
  1311. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1312. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1313. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1314. --infodir=DIR info documentation [DATAROOTDIR/info]
  1315. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1316. --mandir=DIR man documentation [DATAROOTDIR/man]
  1317. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1318. --htmldir=DIR html documentation [DOCDIR]
  1319. --dvidir=DIR dvi documentation [DOCDIR]
  1320. --pdfdir=DIR pdf documentation [DOCDIR]
  1321. --psdir=DIR ps documentation [DOCDIR]
  1322. _ACEOF
  1323. cat <<\_ACEOF
  1324. Program names:
  1325. --program-prefix=PREFIX prepend PREFIX to installed program names
  1326. --program-suffix=SUFFIX append SUFFIX to installed program names
  1327. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1328. System types:
  1329. --build=BUILD configure for building on BUILD [guessed]
  1330. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1331. --target=TARGET configure for building compilers for TARGET [HOST]
  1332. _ACEOF
  1333. fi
  1334. if test -n "$ac_init_help"; then
  1335. cat <<\_ACEOF
  1336. Optional Features:
  1337. --disable-option-checking ignore unrecognized --enable/--with options
  1338. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1339. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1340. --enable-as-accelerator-for=ARG
  1341. build as offload target compiler. Specify offload
  1342. host triple by ARG
  1343. --enable-offload-targets=LIST
  1344. enable offloading to devices from comma-separated
  1345. LIST of TARGET[=DIR]. Use optional path to find
  1346. offload target compiler during the build
  1347. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1348. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1349. --enable-compressed-debug-sections={all,gas,gold,ld,none}
  1350. Enable compressed debug sections for gas, gold or ld
  1351. by default
  1352. --disable-libquadmath do not build libquadmath directory
  1353. --disable-libquadmath-support
  1354. disable libquadmath support for Fortran
  1355. --enable-libada build libada directory
  1356. --enable-libssp build libssp directory
  1357. --disable-libstdcxx do not build libstdc++-v3 directory
  1358. --enable-liboffloadmic=ARG
  1359. build liboffloadmic [ARG={no,host,target}]
  1360. --enable-static-libjava[=ARG]
  1361. build static libjava [default=no]
  1362. --enable-bootstrap enable bootstrapping [yes if native build]
  1363. --disable-isl-version-check
  1364. disable check for isl version
  1365. --enable-lto enable link time optimization support
  1366. --enable-linker-plugin-configure-flags=FLAGS
  1367. additional flags for configuring linker plugins
  1368. [none]
  1369. --enable-linker-plugin-flags=FLAGS
  1370. additional flags for configuring and building linker
  1371. plugins [none]
  1372. --enable-stage1-languages[=all]
  1373. choose additional languages to build during stage1.
  1374. Mostly useful for compiler development
  1375. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1376. Objective-C runtime
  1377. --enable-vtable-verify Enable vtable verification feature
  1378. --enable-serial-[{host,target,build}-]configure
  1379. force sequential configuration of sub-packages for
  1380. the host, target or build machine, or all
  1381. sub-packages
  1382. --enable-maintainer-mode
  1383. enable make rules and dependencies not useful (and
  1384. sometimes confusing) to the casual installer
  1385. --enable-stage1-checking[=all]
  1386. choose additional checking for stage1 of the
  1387. compiler
  1388. --enable-werror enable -Werror in bootstrap stage2 and later
  1389. --enable-host-shared build host code as shared libraries
  1390. Optional Packages:
  1391. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1392. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1393. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1394. --with-system-zlib use installed libz
  1395. --with-mpc=PATH specify prefix directory for installed MPC package.
  1396. Equivalent to --with-mpc-include=PATH/include plus
  1397. --with-mpc-lib=PATH/lib
  1398. --with-mpc-include=PATH specify directory for installed MPC include files
  1399. --with-mpc-lib=PATH specify directory for the installed MPC library
  1400. --with-mpfr-dir=PATH this option has been REMOVED
  1401. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1402. Equivalent to --with-mpfr-include=PATH/include plus
  1403. --with-mpfr-lib=PATH/lib
  1404. --with-mpfr-include=PATH
  1405. specify directory for installed MPFR include files
  1406. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1407. --with-gmp-dir=PATH this option has been REMOVED
  1408. --with-gmp=PATH specify prefix directory for the installed GMP
  1409. package. Equivalent to
  1410. --with-gmp-include=PATH/include plus
  1411. --with-gmp-lib=PATH/lib
  1412. --with-gmp-include=PATH specify directory for installed GMP include files
  1413. --with-gmp-lib=PATH specify directory for the installed GMP library
  1414. --with-stage1-libs=LIBS libraries for stage1
  1415. --with-stage1-ldflags=FLAGS
  1416. linker flags for stage1
  1417. --with-boot-libs=LIBS libraries for stage2 and later
  1418. --with-boot-ldflags=FLAGS
  1419. linker flags for stage2 and later
  1420. --with-isl=PATH Specify prefix directory for the installed isl
  1421. package. Equivalent to
  1422. --with-isl-include=PATH/include plus
  1423. --with-isl-lib=PATH/lib
  1424. --with-isl-include=PATH Specify directory for installed isl include files
  1425. --with-isl-lib=PATH Specify the directory for the installed isl library
  1426. --with-build-sysroot=SYSROOT
  1427. use sysroot as the system root during the build
  1428. --with-debug-prefix-map='A=B C=D ...'
  1429. map A to B, C to D ... in debug information
  1430. --with-build-config='NAME NAME2...'
  1431. use config/NAME.mk build configuration
  1432. --with-build-time-tools=PATH
  1433. use given path to find target tools during the build
  1434. Some influential environment variables:
  1435. CC C compiler command
  1436. CFLAGS C compiler flags
  1437. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1438. nonstandard directory <lib dir>
  1439. LIBS libraries to pass to the linker, e.g. -l<library>
  1440. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1441. you have headers in a nonstandard directory <include dir>
  1442. CXX C++ compiler command
  1443. CXXFLAGS C++ compiler flags
  1444. build_configargs
  1445. additional configure arguments for build directories
  1446. host_configargs
  1447. additional configure arguments for host directories
  1448. target_configargs
  1449. additional configure arguments for target directories
  1450. AR AR for the host
  1451. AS AS for the host
  1452. DLLTOOL DLLTOOL for the host
  1453. LD LD for the host
  1454. LIPO LIPO for the host
  1455. NM NM for the host
  1456. RANLIB RANLIB for the host
  1457. STRIP STRIP for the host
  1458. WINDRES WINDRES for the host
  1459. WINDMC WINDMC for the host
  1460. OBJCOPY OBJCOPY for the host
  1461. OBJDUMP OBJDUMP for the host
  1462. READELF READELF for the host
  1463. CC_FOR_TARGET
  1464. CC for the target
  1465. CXX_FOR_TARGET
  1466. CXX for the target
  1467. GCC_FOR_TARGET
  1468. GCC for the target
  1469. GCJ_FOR_TARGET
  1470. GCJ for the target
  1471. GFORTRAN_FOR_TARGET
  1472. GFORTRAN for the target
  1473. GOC_FOR_TARGET
  1474. GOC for the target
  1475. AR_FOR_TARGET
  1476. AR for the target
  1477. AS_FOR_TARGET
  1478. AS for the target
  1479. DLLTOOL_FOR_TARGET
  1480. DLLTOOL for the target
  1481. LD_FOR_TARGET
  1482. LD for the target
  1483. LIPO_FOR_TARGET
  1484. LIPO for the target
  1485. NM_FOR_TARGET
  1486. NM for the target
  1487. OBJCOPY_FOR_TARGET
  1488. OBJCOPY for the target
  1489. OBJDUMP_FOR_TARGET
  1490. OBJDUMP for the target
  1491. RANLIB_FOR_TARGET
  1492. RANLIB for the target
  1493. READELF_FOR_TARGET
  1494. READELF for the target
  1495. STRIP_FOR_TARGET
  1496. STRIP for the target
  1497. WINDRES_FOR_TARGET
  1498. WINDRES for the target
  1499. WINDMC_FOR_TARGET
  1500. WINDMC for the target
  1501. Use these variables to override the choices made by `configure' or to help
  1502. it to find libraries and programs with nonstandard names/locations.
  1503. Report bugs to the package provider.
  1504. _ACEOF
  1505. ac_status=$?
  1506. fi
  1507. if test "$ac_init_help" = "recursive"; then
  1508. # If there are subdirs, report their specific --help.
  1509. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1510. test -d "$ac_dir" ||
  1511. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1512. continue
  1513. ac_builddir=.
  1514. case "$ac_dir" in
  1515. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1516. *)
  1517. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1518. # A ".." for each directory in $ac_dir_suffix.
  1519. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1520. case $ac_top_builddir_sub in
  1521. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1522. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1523. esac ;;
  1524. esac
  1525. ac_abs_top_builddir=$ac_pwd
  1526. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1527. # for backward compatibility:
  1528. ac_top_builddir=$ac_top_build_prefix
  1529. case $srcdir in
  1530. .) # We are building in place.
  1531. ac_srcdir=.
  1532. ac_top_srcdir=$ac_top_builddir_sub
  1533. ac_abs_top_srcdir=$ac_pwd ;;
  1534. [\\/]* | ?:[\\/]* ) # Absolute name.
  1535. ac_srcdir=$srcdir$ac_dir_suffix;
  1536. ac_top_srcdir=$srcdir
  1537. ac_abs_top_srcdir=$srcdir ;;
  1538. *) # Relative name.
  1539. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1540. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1541. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1542. esac
  1543. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1544. cd "$ac_dir" || { ac_status=$?; continue; }
  1545. # Check for guested configure.
  1546. if test -f "$ac_srcdir/configure.gnu"; then
  1547. echo &&
  1548. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1549. elif test -f "$ac_srcdir/configure"; then
  1550. echo &&
  1551. $SHELL "$ac_srcdir/configure" --help=recursive
  1552. else
  1553. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1554. fi || ac_status=$?
  1555. cd "$ac_pwd" || { ac_status=$?; break; }
  1556. done
  1557. fi
  1558. test -n "$ac_init_help" && exit $ac_status
  1559. if $ac_init_version; then
  1560. cat <<\_ACEOF
  1561. configure
  1562. generated by GNU Autoconf 2.64
  1563. Copyright (C) 2009 Free Software Foundation, Inc.
  1564. This configure script is free software; the Free Software Foundation
  1565. gives unlimited permission to copy, distribute and modify it.
  1566. _ACEOF
  1567. exit
  1568. fi
  1569. ## ------------------------ ##
  1570. ## Autoconf initialization. ##
  1571. ## ------------------------ ##
  1572. # ac_fn_c_try_compile LINENO
  1573. # --------------------------
  1574. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1575. ac_fn_c_try_compile ()
  1576. {
  1577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1578. rm -f conftest.$ac_objext
  1579. if { { ac_try="$ac_compile"
  1580. case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_compile") 2>conftest.err
  1587. ac_status=$?
  1588. if test -s conftest.err; then
  1589. grep -v '^ *+' conftest.err >conftest.er1
  1590. cat conftest.er1 >&5
  1591. mv -f conftest.er1 conftest.err
  1592. fi
  1593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1594. test $ac_status = 0; } && {
  1595. test -z "$ac_c_werror_flag" ||
  1596. test ! -s conftest.err
  1597. } && test -s conftest.$ac_objext; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=1
  1603. fi
  1604. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1605. return $ac_retval
  1606. } # ac_fn_c_try_compile
  1607. # ac_fn_cxx_try_compile LINENO
  1608. # ----------------------------
  1609. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1610. ac_fn_cxx_try_compile ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. rm -f conftest.$ac_objext
  1614. if { { ac_try="$ac_compile"
  1615. case "(($ac_try" in
  1616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617. *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621. (eval "$ac_compile") 2>conftest.err
  1622. ac_status=$?
  1623. if test -s conftest.err; then
  1624. grep -v '^ *+' conftest.err >conftest.er1
  1625. cat conftest.er1 >&5
  1626. mv -f conftest.er1 conftest.err
  1627. fi
  1628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1629. test $ac_status = 0; } && {
  1630. test -z "$ac_cxx_werror_flag" ||
  1631. test ! -s conftest.err
  1632. } && test -s conftest.$ac_objext; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: failed program was:" >&5
  1636. sed 's/^/| /' conftest.$ac_ext >&5
  1637. ac_retval=1
  1638. fi
  1639. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1640. return $ac_retval
  1641. } # ac_fn_cxx_try_compile
  1642. # ac_fn_cxx_try_link LINENO
  1643. # -------------------------
  1644. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1645. ac_fn_cxx_try_link ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. rm -f conftest.$ac_objext conftest$ac_exeext
  1649. if { { ac_try="$ac_link"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_link") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } && {
  1665. test -z "$ac_cxx_werror_flag" ||
  1666. test ! -s conftest.err
  1667. } && test -s conftest$ac_exeext && {
  1668. test "$cross_compiling" = yes ||
  1669. $as_test_x conftest$ac_exeext
  1670. }; then :
  1671. ac_retval=0
  1672. else
  1673. $as_echo "$as_me: failed program was:" >&5
  1674. sed 's/^/| /' conftest.$ac_ext >&5
  1675. ac_retval=1
  1676. fi
  1677. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1678. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1679. # interfere with the next link command; also delete a directory that is
  1680. # left behind by Apple's compiler. We do this before executing the actions.
  1681. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1682. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1683. return $ac_retval
  1684. } # ac_fn_cxx_try_link
  1685. # ac_fn_c_try_link LINENO
  1686. # -----------------------
  1687. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_c_try_link ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. rm -f conftest.$ac_objext conftest$ac_exeext
  1692. if { { ac_try="$ac_link"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_link") 2>conftest.err
  1700. ac_status=$?
  1701. if test -s conftest.err; then
  1702. grep -v '^ *+' conftest.err >conftest.er1
  1703. cat conftest.er1 >&5
  1704. mv -f conftest.er1 conftest.err
  1705. fi
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; } && {
  1708. test -z "$ac_c_werror_flag" ||
  1709. test ! -s conftest.err
  1710. } && test -s conftest$ac_exeext && {
  1711. test "$cross_compiling" = yes ||
  1712. $as_test_x conftest$ac_exeext
  1713. }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718. ac_retval=1
  1719. fi
  1720. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1721. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1722. # interfere with the next link command; also delete a directory that is
  1723. # left behind by Apple's compiler. We do this before executing the actions.
  1724. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1725. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1726. return $ac_retval
  1727. } # ac_fn_c_try_link
  1728. cat >config.log <<_ACEOF
  1729. This file contains any messages produced by compilers while
  1730. running configure, to aid debugging if configure makes a mistake.
  1731. It was created by $as_me, which was
  1732. generated by GNU Autoconf 2.64. Invocation command line was
  1733. $ $0 $@
  1734. _ACEOF
  1735. exec 5>>config.log
  1736. {
  1737. cat <<_ASUNAME
  1738. ## --------- ##
  1739. ## Platform. ##
  1740. ## --------- ##
  1741. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1742. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1743. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1744. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1745. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1746. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1747. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1748. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1749. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1750. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1751. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1752. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1753. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1754. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1755. _ASUNAME
  1756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1757. for as_dir in $PATH
  1758. do
  1759. IFS=$as_save_IFS
  1760. test -z "$as_dir" && as_dir=.
  1761. $as_echo "PATH: $as_dir"
  1762. done
  1763. IFS=$as_save_IFS
  1764. } >&5
  1765. cat >&5 <<_ACEOF
  1766. ## ----------- ##
  1767. ## Core tests. ##
  1768. ## ----------- ##
  1769. _ACEOF
  1770. # Keep a trace of the command line.
  1771. # Strip out --no-create and --no-recursion so they do not pile up.
  1772. # Strip out --silent because we don't want to record it for future runs.
  1773. # Also quote any args containing shell meta-characters.
  1774. # Make two passes to allow for proper duplicate-argument suppression.
  1775. ac_configure_args=
  1776. ac_configure_args0=
  1777. ac_configure_args1=
  1778. ac_must_keep_next=false
  1779. for ac_pass in 1 2
  1780. do
  1781. for ac_arg
  1782. do
  1783. case $ac_arg in
  1784. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1785. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1786. | -silent | --silent | --silen | --sile | --sil)
  1787. continue ;;
  1788. *\'*)
  1789. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1790. esac
  1791. case $ac_pass in
  1792. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1793. 2)
  1794. as_fn_append ac_configure_args1 " '$ac_arg'"
  1795. if test $ac_must_keep_next = true; then
  1796. ac_must_keep_next=false # Got value, back to normal.
  1797. else
  1798. case $ac_arg in
  1799. *=* | --config-cache | -C | -disable-* | --disable-* \
  1800. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1801. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1802. | -with-* | --with-* | -without-* | --without-* | --x)
  1803. case "$ac_configure_args0 " in
  1804. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1805. esac
  1806. ;;
  1807. -* ) ac_must_keep_next=true ;;
  1808. esac
  1809. fi
  1810. as_fn_append ac_configure_args " '$ac_arg'"
  1811. ;;
  1812. esac
  1813. done
  1814. done
  1815. { ac_configure_args0=; unset ac_configure_args0;}
  1816. { ac_configure_args1=; unset ac_configure_args1;}
  1817. # When interrupted or exit'd, cleanup temporary files, and complete
  1818. # config.log. We remove comments because anyway the quotes in there
  1819. # would cause problems or look ugly.
  1820. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1821. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1822. trap 'exit_status=$?
  1823. # Save into config.log some information that might help in debugging.
  1824. {
  1825. echo
  1826. cat <<\_ASBOX
  1827. ## ---------------- ##
  1828. ## Cache variables. ##
  1829. ## ---------------- ##
  1830. _ASBOX
  1831. echo
  1832. # The following way of writing the cache mishandles newlines in values,
  1833. (
  1834. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1835. eval ac_val=\$$ac_var
  1836. case $ac_val in #(
  1837. *${as_nl}*)
  1838. case $ac_var in #(
  1839. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1840. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1841. esac
  1842. case $ac_var in #(
  1843. _ | IFS | as_nl) ;; #(
  1844. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1845. *) { eval $ac_var=; unset $ac_var;} ;;
  1846. esac ;;
  1847. esac
  1848. done
  1849. (set) 2>&1 |
  1850. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1851. *${as_nl}ac_space=\ *)
  1852. sed -n \
  1853. "s/'\''/'\''\\\\'\'''\''/g;
  1854. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1855. ;; #(
  1856. *)
  1857. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1858. ;;
  1859. esac |
  1860. sort
  1861. )
  1862. echo
  1863. cat <<\_ASBOX
  1864. ## ----------------- ##
  1865. ## Output variables. ##
  1866. ## ----------------- ##
  1867. _ASBOX
  1868. echo
  1869. for ac_var in $ac_subst_vars
  1870. do
  1871. eval ac_val=\$$ac_var
  1872. case $ac_val in
  1873. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1874. esac
  1875. $as_echo "$ac_var='\''$ac_val'\''"
  1876. done | sort
  1877. echo
  1878. if test -n "$ac_subst_files"; then
  1879. cat <<\_ASBOX
  1880. ## ------------------- ##
  1881. ## File substitutions. ##
  1882. ## ------------------- ##
  1883. _ASBOX
  1884. echo
  1885. for ac_var in $ac_subst_files
  1886. do
  1887. eval ac_val=\$$ac_var
  1888. case $ac_val in
  1889. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1890. esac
  1891. $as_echo "$ac_var='\''$ac_val'\''"
  1892. done | sort
  1893. echo
  1894. fi
  1895. if test -s confdefs.h; then
  1896. cat <<\_ASBOX
  1897. ## ----------- ##
  1898. ## confdefs.h. ##
  1899. ## ----------- ##
  1900. _ASBOX
  1901. echo
  1902. cat confdefs.h
  1903. echo
  1904. fi
  1905. test "$ac_signal" != 0 &&
  1906. $as_echo "$as_me: caught signal $ac_signal"
  1907. $as_echo "$as_me: exit $exit_status"
  1908. } >&5
  1909. rm -f core *.core core.conftest.* &&
  1910. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1911. exit $exit_status
  1912. ' 0
  1913. for ac_signal in 1 2 13 15; do
  1914. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1915. done
  1916. ac_signal=0
  1917. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1918. rm -f -r conftest* confdefs.h
  1919. $as_echo "/* confdefs.h */" > confdefs.h
  1920. # Predefined preprocessor variables.
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_NAME "$PACKAGE_NAME"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1929. _ACEOF
  1930. cat >>confdefs.h <<_ACEOF
  1931. #define PACKAGE_STRING "$PACKAGE_STRING"
  1932. _ACEOF
  1933. cat >>confdefs.h <<_ACEOF
  1934. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1935. _ACEOF
  1936. cat >>confdefs.h <<_ACEOF
  1937. #define PACKAGE_URL "$PACKAGE_URL"
  1938. _ACEOF
  1939. # Let the site file select an alternate cache file if it wants to.
  1940. # Prefer an explicitly selected file to automatically selected ones.
  1941. ac_site_file1=NONE
  1942. ac_site_file2=NONE
  1943. if test -n "$CONFIG_SITE"; then
  1944. ac_site_file1=$CONFIG_SITE
  1945. elif test "x$prefix" != xNONE; then
  1946. ac_site_file1=$prefix/share/config.site
  1947. ac_site_file2=$prefix/etc/config.site
  1948. else
  1949. ac_site_file1=$ac_default_prefix/share/config.site
  1950. ac_site_file2=$ac_default_prefix/etc/config.site
  1951. fi
  1952. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1953. do
  1954. test "x$ac_site_file" = xNONE && continue
  1955. if test -r "$ac_site_file"; then
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1957. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1958. sed 's/^/| /' "$ac_site_file" >&5
  1959. . "$ac_site_file"
  1960. fi
  1961. done
  1962. if test -r "$cache_file"; then
  1963. # Some versions of bash will fail to source /dev/null (special
  1964. # files actually), so we avoid doing that.
  1965. if test -f "$cache_file"; then
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1967. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1968. case $cache_file in
  1969. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1970. *) . "./$cache_file";;
  1971. esac
  1972. fi
  1973. else
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1975. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1976. >$cache_file
  1977. fi
  1978. # Check that the precious variables saved in the cache have kept the same
  1979. # value.
  1980. ac_cache_corrupted=false
  1981. for ac_var in $ac_precious_vars; do
  1982. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1983. eval ac_new_set=\$ac_env_${ac_var}_set
  1984. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1985. eval ac_new_val=\$ac_env_${ac_var}_value
  1986. case $ac_old_set,$ac_new_set in
  1987. set,)
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1989. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1990. ac_cache_corrupted=: ;;
  1991. ,set)
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1993. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1994. ac_cache_corrupted=: ;;
  1995. ,);;
  1996. *)
  1997. if test "x$ac_old_val" != "x$ac_new_val"; then
  1998. # differences in whitespace do not lead to failure.
  1999. ac_old_val_w=`echo x $ac_old_val`
  2000. ac_new_val_w=`echo x $ac_new_val`
  2001. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2003. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2004. ac_cache_corrupted=:
  2005. else
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2007. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2008. eval $ac_var=\$ac_old_val
  2009. fi
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2011. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2013. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2014. fi;;
  2015. esac
  2016. # Pass precious variables to config.status.
  2017. if test "$ac_new_set" = set; then
  2018. case $ac_new_val in
  2019. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2020. *) ac_arg=$ac_var=$ac_new_val ;;
  2021. esac
  2022. case " $ac_configure_args " in
  2023. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2024. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2025. esac
  2026. fi
  2027. done
  2028. if $ac_cache_corrupted; then
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2032. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2033. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2034. fi
  2035. ## -------------------- ##
  2036. ## Main body of script. ##
  2037. ## -------------------- ##
  2038. ac_ext=c
  2039. ac_cpp='$CPP $CPPFLAGS'
  2040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2043. progname=$0
  2044. # if PWD already has a value, it is probably wrong.
  2045. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2046. # Export original configure arguments for use by sub-configures.
  2047. # Quote arguments with shell meta charatcers.
  2048. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2049. set -- "$progname" "$@"
  2050. for ac_arg
  2051. do
  2052. case "$ac_arg" in
  2053. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2054. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2055. # if the argument is of the form -foo=baz, quote the baz part only
  2056. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2057. *) ;;
  2058. esac
  2059. # Add the quoted argument to the list.
  2060. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2061. done
  2062. if test "$silent" = yes; then
  2063. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2064. fi
  2065. # Remove the initial space we just introduced and, as these will be
  2066. # expanded by make, quote '$'.
  2067. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2068. # Find the build, host, and target systems.
  2069. ac_aux_dir=
  2070. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2071. for ac_t in install-sh install.sh shtool; do
  2072. if test -f "$ac_dir/$ac_t"; then
  2073. ac_aux_dir=$ac_dir
  2074. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2075. break 2
  2076. fi
  2077. done
  2078. done
  2079. if test -z "$ac_aux_dir"; then
  2080. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2081. fi
  2082. # These three variables are undocumented and unsupported,
  2083. # and are intended to be withdrawn in a future Autoconf release.
  2084. # They can cause serious problems if a builder's source tree is in a directory
  2085. # whose full name contains unusual characters.
  2086. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2087. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2088. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2089. # Make sure we can run config.sub.
  2090. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2091. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2093. $as_echo_n "checking build system type... " >&6; }
  2094. if test "${ac_cv_build+set}" = set; then :
  2095. $as_echo_n "(cached) " >&6
  2096. else
  2097. ac_build_alias=$build_alias
  2098. test "x$ac_build_alias" = x &&
  2099. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2100. test "x$ac_build_alias" = x &&
  2101. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2102. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2103. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2104. fi
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2106. $as_echo "$ac_cv_build" >&6; }
  2107. case $ac_cv_build in
  2108. *-*-*) ;;
  2109. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2110. esac
  2111. build=$ac_cv_build
  2112. ac_save_IFS=$IFS; IFS='-'
  2113. set x $ac_cv_build
  2114. shift
  2115. build_cpu=$1
  2116. build_vendor=$2
  2117. shift; shift
  2118. # Remember, the first character of IFS is used to create $*,
  2119. # except with old shells:
  2120. build_os=$*
  2121. IFS=$ac_save_IFS
  2122. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2123. case ${build_alias} in
  2124. "") build_noncanonical=${build} ;;
  2125. *) build_noncanonical=${build_alias} ;;
  2126. esac
  2127. case ${host_alias} in
  2128. "") host_noncanonical=${build_noncanonical} ;;
  2129. *) host_noncanonical=${host_alias} ;;
  2130. esac
  2131. case ${target_alias} in
  2132. "") target_noncanonical=${host_noncanonical} ;;
  2133. *) target_noncanonical=${target_alias} ;;
  2134. esac
  2135. test "$host_noncanonical" = "$target_noncanonical" &&
  2136. test "$program_prefix$program_suffix$program_transform_name" = \
  2137. NONENONEs,x,x, &&
  2138. program_transform_name=s,y,y,
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2140. $as_echo_n "checking host system type... " >&6; }
  2141. if test "${ac_cv_host+set}" = set; then :
  2142. $as_echo_n "(cached) " >&6
  2143. else
  2144. if test "x$host_alias" = x; then
  2145. ac_cv_host=$ac_cv_build
  2146. else
  2147. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2148. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2149. fi
  2150. fi
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2152. $as_echo "$ac_cv_host" >&6; }
  2153. case $ac_cv_host in
  2154. *-*-*) ;;
  2155. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2156. esac
  2157. host=$ac_cv_host
  2158. ac_save_IFS=$IFS; IFS='-'
  2159. set x $ac_cv_host
  2160. shift
  2161. host_cpu=$1
  2162. host_vendor=$2
  2163. shift; shift
  2164. # Remember, the first character of IFS is used to create $*,
  2165. # except with old shells:
  2166. host_os=$*
  2167. IFS=$ac_save_IFS
  2168. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2170. $as_echo_n "checking target system type... " >&6; }
  2171. if test "${ac_cv_target+set}" = set; then :
  2172. $as_echo_n "(cached) " >&6
  2173. else
  2174. if test "x$target_alias" = x; then
  2175. ac_cv_target=$ac_cv_host
  2176. else
  2177. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2178. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2179. fi
  2180. fi
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2182. $as_echo "$ac_cv_target" >&6; }
  2183. case $ac_cv_target in
  2184. *-*-*) ;;
  2185. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2186. esac
  2187. target=$ac_cv_target
  2188. ac_save_IFS=$IFS; IFS='-'
  2189. set x $ac_cv_target
  2190. shift
  2191. target_cpu=$1
  2192. target_vendor=$2
  2193. shift; shift
  2194. # Remember, the first character of IFS is used to create $*,
  2195. # except with old shells:
  2196. target_os=$*
  2197. IFS=$ac_save_IFS
  2198. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2199. # The aliases save the names the user supplied, while $host etc.
  2200. # will get canonicalized.
  2201. test -n "$target_alias" &&
  2202. test "$program_prefix$program_suffix$program_transform_name" = \
  2203. NONENONEs,x,x, &&
  2204. program_prefix=${target_alias}-
  2205. test "$program_prefix" != NONE &&
  2206. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2207. # Use a double $ so make ignores it.
  2208. test "$program_suffix" != NONE &&
  2209. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2210. # Double any \ or $.
  2211. # By default was `s,x,x', remove it if useless.
  2212. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2213. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2214. # Get 'install' or 'install-sh' and its variants.
  2215. # Find a good install program. We prefer a C program (faster),
  2216. # so one script is as good as another. But avoid the broken or
  2217. # incompatible versions:
  2218. # SysV /etc/install, /usr/sbin/install
  2219. # SunOS /usr/etc/install
  2220. # IRIX /sbin/install
  2221. # AIX /bin/install
  2222. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2223. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2224. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2225. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2226. # OS/2's system install, which has a completely different semantic
  2227. # ./install, which can be erroneously created by make from ./install.sh.
  2228. # Reject install programs that cannot install multiple files.
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2230. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2231. if test -z "$INSTALL"; then
  2232. if test "${ac_cv_path_install+set}" = set; then :
  2233. $as_echo_n "(cached) " >&6
  2234. else
  2235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2236. for as_dir in $PATH
  2237. do
  2238. IFS=$as_save_IFS
  2239. test -z "$as_dir" && as_dir=.
  2240. # Account for people who put trailing slashes in PATH elements.
  2241. case $as_dir/ in #((
  2242. ./ | .// | /[cC]/* | \
  2243. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2244. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2245. /usr/ucb/* ) ;;
  2246. *)
  2247. # OSF1 and SCO ODT 3.0 have their own names for install.
  2248. # Don't use installbsd from OSF since it installs stuff as root
  2249. # by default.
  2250. for ac_prog in ginstall scoinst install; do
  2251. for ac_exec_ext in '' $ac_executable_extensions; do
  2252. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2253. if test $ac_prog = install &&
  2254. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2255. # AIX install. It has an incompatible calling convention.
  2256. :
  2257. elif test $ac_prog = install &&
  2258. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2259. # program-specific install script used by HP pwplus--don't use.
  2260. :
  2261. else
  2262. rm -rf conftest.one conftest.two conftest.dir
  2263. echo one > conftest.one
  2264. echo two > conftest.two
  2265. mkdir conftest.dir
  2266. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2267. test -s conftest.one && test -s conftest.two &&
  2268. test -s conftest.dir/conftest.one &&
  2269. test -s conftest.dir/conftest.two
  2270. then
  2271. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2272. break 3
  2273. fi
  2274. fi
  2275. fi
  2276. done
  2277. done
  2278. ;;
  2279. esac
  2280. done
  2281. IFS=$as_save_IFS
  2282. rm -rf conftest.one conftest.two conftest.dir
  2283. fi
  2284. if test "${ac_cv_path_install+set}" = set; then
  2285. INSTALL=$ac_cv_path_install
  2286. else
  2287. # As a last resort, use the slow shell script. Don't cache a
  2288. # value for INSTALL within a source directory, because that will
  2289. # break other packages using the cache if that directory is
  2290. # removed, or if the value is a relative name.
  2291. INSTALL=$ac_install_sh
  2292. fi
  2293. fi
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2295. $as_echo "$INSTALL" >&6; }
  2296. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2297. # It thinks the first close brace ends the variable substitution.
  2298. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2299. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2300. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2302. $as_echo_n "checking whether ln works... " >&6; }
  2303. if test "${acx_cv_prog_LN+set}" = set; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. rm -f conftestdata_t
  2307. echo >conftestdata_f
  2308. if ln conftestdata_f conftestdata_t 2>/dev/null
  2309. then
  2310. acx_cv_prog_LN=ln
  2311. else
  2312. acx_cv_prog_LN=no
  2313. fi
  2314. rm -f conftestdata_f conftestdata_t
  2315. fi
  2316. if test $acx_cv_prog_LN = no; then
  2317. LN="cp"
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2319. $as_echo "no, using $LN" >&6; }
  2320. else
  2321. LN="$acx_cv_prog_LN"
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2323. $as_echo "yes" >&6; }
  2324. fi
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2326. $as_echo_n "checking whether ln -s works... " >&6; }
  2327. LN_S=$as_ln_s
  2328. if test "$LN_S" = "ln -s"; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2330. $as_echo "yes" >&6; }
  2331. else
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2333. $as_echo "no, using $LN_S" >&6; }
  2334. fi
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2336. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2337. if test "${ac_cv_path_SED+set}" = set; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2341. for ac_i in 1 2 3 4 5 6 7; do
  2342. ac_script="$ac_script$as_nl$ac_script"
  2343. done
  2344. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2345. { ac_script=; unset ac_script;}
  2346. if test -z "$SED"; then
  2347. ac_path_SED_found=false
  2348. # Loop through the user's path and test for each of PROGNAME-LIST
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_prog in sed gsed; do
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2357. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2358. # Check for GNU ac_path_SED and select it if it is found.
  2359. # Check for GNU $ac_path_SED
  2360. case `"$ac_path_SED" --version 2>&1` in
  2361. *GNU*)
  2362. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2363. *)
  2364. ac_count=0
  2365. $as_echo_n 0123456789 >"conftest.in"
  2366. while :
  2367. do
  2368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2369. mv "conftest.tmp" "conftest.in"
  2370. cp "conftest.in" "conftest.nl"
  2371. $as_echo '' >> "conftest.nl"
  2372. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2375. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2376. # Best one so far, save it but keep looking for a better one
  2377. ac_cv_path_SED="$ac_path_SED"
  2378. ac_path_SED_max=$ac_count
  2379. fi
  2380. # 10*(2^10) chars as input seems more than enough
  2381. test $ac_count -gt 10 && break
  2382. done
  2383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2384. esac
  2385. $ac_path_SED_found && break 3
  2386. done
  2387. done
  2388. done
  2389. IFS=$as_save_IFS
  2390. if test -z "$ac_cv_path_SED"; then
  2391. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2392. fi
  2393. else
  2394. ac_cv_path_SED=$SED
  2395. fi
  2396. fi
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2398. $as_echo "$ac_cv_path_SED" >&6; }
  2399. SED="$ac_cv_path_SED"
  2400. rm -f conftest.sed
  2401. for ac_prog in gawk mawk nawk awk
  2402. do
  2403. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2404. set dummy $ac_prog; ac_word=$2
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2406. $as_echo_n "checking for $ac_word... " >&6; }
  2407. if test "${ac_cv_prog_AWK+set}" = set; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test -n "$AWK"; then
  2411. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2420. ac_cv_prog_AWK="$ac_prog"
  2421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. AWK=$ac_cv_prog_AWK
  2430. if test -n "$AWK"; then
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2432. $as_echo "$AWK" >&6; }
  2433. else
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2435. $as_echo "no" >&6; }
  2436. fi
  2437. test -n "$AWK" && break
  2438. done
  2439. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2440. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2441. # a relative path.
  2442. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2443. INSTALL="${srcpwd}/install-sh -c"
  2444. fi
  2445. # Set srcdir to "." if that's what it is.
  2446. # This is important for multilib support.
  2447. pwd=`${PWDCMD-pwd}`
  2448. if test "${pwd}" = "${srcpwd}" ; then
  2449. srcdir=.
  2450. fi
  2451. topsrcdir=$srcpwd
  2452. extra_host_args=
  2453. ### To add a new directory to the tree, first choose whether it is a target
  2454. ### or a host dependent tool. Then put it into the appropriate list
  2455. ### (library or tools, host or target), doing a dependency sort.
  2456. # Subdirs will be configured in the order listed in build_configdirs,
  2457. # configdirs, or target_configdirs; see the serialization section below.
  2458. # Dependency sorting is only needed when *configuration* must be done in
  2459. # a particular order. In all cases a dependency should be specified in
  2460. # the Makefile, whether or not it's implicitly specified here.
  2461. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2462. # cause circular dependencies and break everything horribly.
  2463. # these library is used by various programs built for the build
  2464. # environment
  2465. #
  2466. build_libs="build-libiberty build-libcpp"
  2467. # these tools are built for the build environment
  2468. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2469. # these libraries are used by various programs built for the host environment
  2470. #f
  2471. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
  2472. # these tools are built for the host environment
  2473. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2474. # know that we are building the simulator.
  2475. # binutils, gas and ld appear in that order because it makes sense to run
  2476. # "make check" in that particular order.
  2477. # If --enable-gold is used, "gold" may replace "ld".
  2478. host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
  2479. # libgcj represents the runtime libraries only used by gcj.
  2480. libgcj="target-libffi \
  2481. target-zlib \
  2482. target-libjava"
  2483. # these libraries are built for the target environment, and are built after
  2484. # the host libraries and the host tools (which may be a cross compiler)
  2485. # Note that libiberty is not a target library.
  2486. target_libraries="target-libgcc \
  2487. target-libbacktrace \
  2488. target-libgloss \
  2489. target-newlib \
  2490. target-libgomp \
  2491. target-libcilkrts \
  2492. target-liboffloadmic \
  2493. target-libatomic \
  2494. target-libitm \
  2495. target-libstdc++-v3 \
  2496. target-libsanitizer \
  2497. target-libvtv \
  2498. target-libmpx \
  2499. target-libssp \
  2500. target-libquadmath \
  2501. target-libgfortran \
  2502. target-boehm-gc \
  2503. ${libgcj} \
  2504. target-libobjc \
  2505. target-libada \
  2506. target-libgo"
  2507. # these tools are built using the target libraries, and are intended to
  2508. # run only in the target environment
  2509. #
  2510. # note: any program that *uses* libraries that are in the "target_libraries"
  2511. # list belongs in this list.
  2512. #
  2513. target_tools="target-rda"
  2514. ################################################################################
  2515. ## All tools belong in one of the four categories, and are assigned above
  2516. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2517. ## is important because configure will choke if they ever get through.
  2518. ## ${configdirs} is directories we build using the host tools.
  2519. ## ${target_configdirs} is directories we build using the target tools.
  2520. configdirs=`echo ${host_libs} ${host_tools}`
  2521. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2522. build_configdirs=`echo ${build_libs} ${build_tools}`
  2523. ################################################################################
  2524. srcname="gnu development package"
  2525. # This gets set non-empty for some net releases of packages.
  2526. appdirs=""
  2527. # Define is_cross_compiler to save on calls to 'test'.
  2528. is_cross_compiler=
  2529. if test x"${host}" = x"${target}" ; then
  2530. is_cross_compiler=no
  2531. else
  2532. is_cross_compiler=yes
  2533. fi
  2534. # Find the build and target subdir names.
  2535. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2536. # have matching libraries, they should use host libraries: Makefile.tpl
  2537. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2538. # However, they still use the build modules, because the corresponding
  2539. # host modules (e.g. bison) are only built for the host when bootstrap
  2540. # finishes. So:
  2541. # - build_subdir is where we find build modules, and never changes.
  2542. # - build_libsubdir is where we find build libraries, and can be overridden.
  2543. # Prefix 'build-' so this never conflicts with target_subdir.
  2544. build_subdir="build-${build_noncanonical}"
  2545. # Check whether --with-build-libsubdir was given.
  2546. if test "${with_build_libsubdir+set}" = set; then :
  2547. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2548. else
  2549. build_libsubdir="$build_subdir"
  2550. fi
  2551. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2552. if ( test $srcdir = . && test -d gcc ) \
  2553. || test -d $srcdir/../host-${host_noncanonical}; then
  2554. host_subdir="host-${host_noncanonical}"
  2555. else
  2556. host_subdir=.
  2557. fi
  2558. # No prefix.
  2559. target_subdir=${target_noncanonical}
  2560. # Be sure to cover against remnants of an in-tree build.
  2561. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2562. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2563. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2564. fi
  2565. # Skipdirs are removed silently.
  2566. skipdirs=
  2567. # Noconfigdirs are removed loudly.
  2568. noconfigdirs=""
  2569. use_gnu_ld=
  2570. # Make sure we don't let GNU ld be added if we didn't want it.
  2571. if test x$with_gnu_ld = xno ; then
  2572. use_gnu_ld=no
  2573. noconfigdirs="$noconfigdirs ld gold"
  2574. fi
  2575. use_gnu_as=
  2576. # Make sure we don't let GNU as be added if we didn't want it.
  2577. if test x$with_gnu_as = xno ; then
  2578. use_gnu_as=no
  2579. noconfigdirs="$noconfigdirs gas"
  2580. fi
  2581. use_included_zlib=
  2582. # Check whether --with-system-zlib was given.
  2583. if test "${with_system_zlib+set}" = set; then :
  2584. withval=$with_system_zlib;
  2585. fi
  2586. # Make sure we don't let ZLIB be added if we didn't want it.
  2587. if test x$with_system_zlib = xyes ; then
  2588. use_included_zlib=no
  2589. noconfigdirs="$noconfigdirs zlib"
  2590. fi
  2591. # some tools are so dependent upon X11 that if we're not building with X,
  2592. # it's not even worth trying to configure, much less build, that tool.
  2593. case ${with_x} in
  2594. yes | "") ;; # the default value for this tree is that X11 is available
  2595. no)
  2596. skipdirs="${skipdirs} tk itcl libgui"
  2597. # We won't be able to build gdbtk without X.
  2598. enable_gdbtk=no
  2599. ;;
  2600. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2601. esac
  2602. # Some are only suitable for cross toolchains.
  2603. # Remove these if host=target.
  2604. cross_only="target-libgloss target-newlib target-opcodes"
  2605. case $is_cross_compiler in
  2606. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2607. esac
  2608. # If both --with-headers and --with-libs are specified, default to
  2609. # --without-newlib.
  2610. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2611. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2612. if test x"${with_newlib}" = x ; then
  2613. with_newlib=no
  2614. fi
  2615. fi
  2616. # Recognize --with-newlib/--without-newlib.
  2617. case ${with_newlib} in
  2618. no) skipdirs="${skipdirs} target-newlib" ;;
  2619. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2620. esac
  2621. # Check whether --enable-as-accelerator-for was given.
  2622. if test "${enable_as_accelerator_for+set}" = set; then :
  2623. enableval=$enable_as_accelerator_for;
  2624. fi
  2625. # Check whether --enable-offload-targets was given.
  2626. if test "${enable_offload_targets+set}" = set; then :
  2627. enableval=$enable_offload_targets;
  2628. if test x"$enable_offload_targets" = x; then
  2629. as_fn_error "no offload targets specified" "$LINENO" 5
  2630. fi
  2631. else
  2632. enable_offload_targets=
  2633. fi
  2634. # Handle --enable-gold, --enable-ld.
  2635. # --disable-gold [--enable-ld]
  2636. # Build only ld. Default option.
  2637. # --enable-gold [--enable-ld]
  2638. # Build both gold and ld. Install gold as "ld.gold", install ld
  2639. # as "ld.bfd" and "ld".
  2640. # --enable-gold=default [--enable-ld]
  2641. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2642. # install ld as "ld.bfd".
  2643. # --enable-gold[=default] --disable-ld
  2644. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2645. # --enable-gold --enable-ld=default
  2646. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2647. # and ld.bfd).
  2648. # In other words, ld is default
  2649. # --enable-gold=default --enable-ld=default
  2650. # Error.
  2651. default_ld=
  2652. # Check whether --enable-gold was given.
  2653. if test "${enable_gold+set}" = set; then :
  2654. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2655. else
  2656. ENABLE_GOLD=no
  2657. fi
  2658. case "${ENABLE_GOLD}" in
  2659. yes|default)
  2660. # Check for ELF target.
  2661. is_elf=no
  2662. case "${target}" in
  2663. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2664. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2665. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2666. | *-*-solaris2* | *-*-nto* | *-*-nacl*)
  2667. case "${target}" in
  2668. *-*-linux*aout* | *-*-linux*oldld*)
  2669. ;;
  2670. *)
  2671. is_elf=yes
  2672. ;;
  2673. esac
  2674. esac
  2675. if test "$is_elf" = "yes"; then
  2676. # Check for target supported by gold.
  2677. case "${target}" in
  2678. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2679. | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
  2680. configdirs="$configdirs gold"
  2681. if test x${ENABLE_GOLD} = xdefault; then
  2682. default_ld=gold
  2683. fi
  2684. ENABLE_GOLD=yes
  2685. ;;
  2686. esac
  2687. fi
  2688. ;;
  2689. no)
  2690. ;;
  2691. *)
  2692. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2693. ;;
  2694. esac
  2695. # Check whether --enable-ld was given.
  2696. if test "${enable_ld+set}" = set; then :
  2697. enableval=$enable_ld; ENABLE_LD=$enableval
  2698. else
  2699. ENABLE_LD=yes
  2700. fi
  2701. case "${ENABLE_LD}" in
  2702. default)
  2703. if test x${default_ld} != x; then
  2704. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2705. fi
  2706. ;;
  2707. yes)
  2708. ;;
  2709. no)
  2710. if test x${ENABLE_GOLD} != xyes; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2712. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2713. fi
  2714. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2715. ;;
  2716. *)
  2717. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2718. ;;
  2719. esac
  2720. # PR gas/19109
  2721. # Decide the default method for compressing debug sections.
  2722. # Provide a configure time option to override our default.
  2723. # Check whether --enable-compressed_debug_sections was given.
  2724. if test "${enable_compressed_debug_sections+set}" = set; then :
  2725. enableval=$enable_compressed_debug_sections;
  2726. if test x"$enable_compressed_debug_sections" = xyes; then
  2727. as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
  2728. fi
  2729. else
  2730. enable_compressed_debug_sections=
  2731. fi
  2732. # Configure extra directories which are host specific
  2733. case "${host}" in
  2734. *-cygwin*)
  2735. configdirs="$configdirs libtermcap" ;;
  2736. esac
  2737. # A target can indicate whether a language isn't supported for some reason.
  2738. # Only spaces may be used in this macro; not newlines or tabs.
  2739. unsupported_languages=
  2740. # Remove more programs from consideration, based on the host or
  2741. # target this usually means that a port of the program doesn't
  2742. # exist yet.
  2743. case "${host}" in
  2744. i[3456789]86-*-msdosdjgpp*)
  2745. noconfigdirs="$noconfigdirs tcl tk itcl"
  2746. ;;
  2747. esac
  2748. # Check whether --enable-libquadmath was given.
  2749. if test "${enable_libquadmath+set}" = set; then :
  2750. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2751. else
  2752. ENABLE_LIBQUADMATH=yes
  2753. fi
  2754. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2755. noconfigdirs="$noconfigdirs target-libquadmath"
  2756. fi
  2757. # Check whether --enable-libquadmath-support was given.
  2758. if test "${enable_libquadmath_support+set}" = set; then :
  2759. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2760. else
  2761. ENABLE_LIBQUADMATH_SUPPORT=yes
  2762. fi
  2763. enable_libquadmath_support=
  2764. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2765. enable_libquadmath_support=no
  2766. fi
  2767. # Check whether --enable-libada was given.
  2768. if test "${enable_libada+set}" = set; then :
  2769. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2770. else
  2771. ENABLE_LIBADA=yes
  2772. fi
  2773. if test "${ENABLE_LIBADA}" != "yes" ; then
  2774. noconfigdirs="$noconfigdirs gnattools"
  2775. fi
  2776. # Check whether --enable-libssp was given.
  2777. if test "${enable_libssp+set}" = set; then :
  2778. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2779. else
  2780. ENABLE_LIBSSP=yes
  2781. fi
  2782. # Check whether --enable-libstdcxx was given.
  2783. if test "${enable_libstdcxx+set}" = set; then :
  2784. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2785. else
  2786. ENABLE_LIBSTDCXX=default
  2787. fi
  2788. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2789. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2790. fi
  2791. # If this is accelerator compiler and its target is intelmic we enable
  2792. # target liboffloadmic by default. If this is compiler with offloading
  2793. # for intelmic we enable host liboffloadmic by default. Otherwise
  2794. # liboffloadmic is disabled by default.
  2795. # Check whether --enable-liboffloadmic was given.
  2796. if test "${enable_liboffloadmic+set}" = set; then :
  2797. enableval=$enable_liboffloadmic; case "$enableval" in
  2798. no | host | target)
  2799. enable_liboffloadmic=$enableval ;;
  2800. *)
  2801. as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2802. esac
  2803. else
  2804. if test x"$enable_as_accelerator_for" != x; then
  2805. case "${target}" in
  2806. *-intelmic-* | *-intelmicemul-*)
  2807. enable_liboffloadmic=target
  2808. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2809. ;;
  2810. *)
  2811. enable_liboffloadmic=no
  2812. ;;
  2813. esac
  2814. else
  2815. case "${enable_offload_targets}" in
  2816. *-intelmic-* | *-intelmicemul-*)
  2817. enable_liboffloadmic=host
  2818. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2819. ;;
  2820. *)
  2821. enable_liboffloadmic=no
  2822. ;;
  2823. esac
  2824. fi
  2825. fi
  2826. # Save it here so that, even in case of --enable-libgcj, if the Java
  2827. # front-end isn't enabled, we still get libgcj disabled.
  2828. libgcj_saved=$libgcj
  2829. case $enable_libgcj in
  2830. yes)
  2831. # If we reset it here, it won't get added to noconfigdirs in the
  2832. # target-specific build rules, so it will be forcibly enabled
  2833. # (unless the Java language itself isn't enabled).
  2834. libgcj=
  2835. ;;
  2836. no)
  2837. # Make sure we get it printed in the list of not supported target libs.
  2838. # Don't disable libffi, though, other languages use it.
  2839. noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
  2840. # Clear libgcj_saved so that even if java is enabled libffi won't be
  2841. # built.
  2842. libgcj_saved=
  2843. ;;
  2844. esac
  2845. # Check whether --enable-static-libjava was given.
  2846. if test "${enable_static_libjava+set}" = set; then :
  2847. enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
  2848. else
  2849. ENABLE_STATIC_LIBJAVA=no
  2850. fi
  2851. enable_static_libjava=
  2852. if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
  2853. enable_static_libjava=yes
  2854. fi
  2855. if test x$enable_static_libjava != xyes ; then
  2856. EXTRA_CONFIGARGS_LIBJAVA=--disable-static
  2857. fi
  2858. # Enable libgomp by default on hosted POSIX systems, and a few others.
  2859. if test x$enable_libgomp = x ; then
  2860. case "${target}" in
  2861. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2862. ;;
  2863. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2864. ;;
  2865. *-*-solaris2* | *-*-hpux11*)
  2866. ;;
  2867. *-*-darwin* | *-*-aix*)
  2868. ;;
  2869. nvptx*-*-*)
  2870. ;;
  2871. *)
  2872. noconfigdirs="$noconfigdirs target-libgomp"
  2873. ;;
  2874. esac
  2875. fi
  2876. # Disable libatomic on unsupported systems.
  2877. if test -d ${srcdir}/libatomic; then
  2878. if test x$enable_libatomic = x; then
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2880. $as_echo_n "checking for libatomic support... " >&6; }
  2881. if (srcdir=${srcdir}/libatomic; \
  2882. . ${srcdir}/configure.tgt; \
  2883. test -n "$UNSUPPORTED")
  2884. then
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. $as_echo "no" >&6; }
  2887. noconfigdirs="$noconfigdirs target-libatomic"
  2888. else
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2890. $as_echo "yes" >&6; }
  2891. fi
  2892. fi
  2893. fi
  2894. # Disable libcilkrts on unsupported systems.
  2895. if test -d ${srcdir}/libcilkrts; then
  2896. if test x$enable_libcilkrts = x; then
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
  2898. $as_echo_n "checking for libcilkrts support... " >&6; }
  2899. if (srcdir=${srcdir}/libcilkrts; \
  2900. . ${srcdir}/configure.tgt; \
  2901. test -n "$UNSUPPORTED")
  2902. then
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2904. $as_echo "no" >&6; }
  2905. noconfigdirs="$noconfigdirs target-libcilkrts"
  2906. else
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2908. $as_echo "yes" >&6; }
  2909. fi
  2910. fi
  2911. fi
  2912. # Disable liboffloadmic on unsupported systems.
  2913. if test -d ${srcdir}/liboffloadmic; then
  2914. if test x$enable_liboffloadmic != xno; then
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2916. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2917. if (srcdir=${srcdir}/liboffloadmic; \
  2918. . ${srcdir}/configure.tgt; \
  2919. test -n "$UNSUPPORTED")
  2920. then
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. $as_echo "no" >&6; }
  2923. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2926. $as_echo "yes" >&6; }
  2927. fi
  2928. fi
  2929. fi
  2930. # Disable libitm on unsupported systems.
  2931. if test -d ${srcdir}/libitm; then
  2932. if test x$enable_libitm = x; then
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2934. $as_echo_n "checking for libitm support... " >&6; }
  2935. if (srcdir=${srcdir}/libitm; \
  2936. . ${srcdir}/configure.tgt; \
  2937. test -n "$UNSUPPORTED")
  2938. then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. noconfigdirs="$noconfigdirs target-libitm"
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2944. $as_echo "yes" >&6; }
  2945. fi
  2946. fi
  2947. fi
  2948. # Disable libsanitizer on unsupported systems.
  2949. if test -d ${srcdir}/libsanitizer; then
  2950. if test x$enable_libsanitizer = x; then
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2952. $as_echo_n "checking for libsanitizer support... " >&6; }
  2953. if (srcdir=${srcdir}/libsanitizer; \
  2954. . ${srcdir}/configure.tgt; \
  2955. test -n "$UNSUPPORTED")
  2956. then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2958. $as_echo "no" >&6; }
  2959. noconfigdirs="$noconfigdirs target-libsanitizer"
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2962. $as_echo "yes" >&6; }
  2963. fi
  2964. fi
  2965. fi
  2966. # Disable libvtv on unsupported systems.
  2967. if test -d ${srcdir}/libvtv; then
  2968. if test x$enable_libvtv = x; then
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  2970. $as_echo_n "checking for libvtv support... " >&6; }
  2971. if (srcdir=${srcdir}/libvtv; \
  2972. . ${srcdir}/configure.tgt; \
  2973. test "$VTV_SUPPORTED" != "yes")
  2974. then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. noconfigdirs="$noconfigdirs target-libvtv"
  2978. else
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2980. $as_echo "yes" >&6; }
  2981. fi
  2982. fi
  2983. fi
  2984. # Enable libmpx on supported systems by request.
  2985. if test -d ${srcdir}/libmpx; then
  2986. if test x$enable_libmpx = x; then
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
  2988. $as_echo_n "checking for libmpx support... " >&6; }
  2989. if (srcdir=${srcdir}/libmpx; \
  2990. . ${srcdir}/configure.tgt; \
  2991. test "$LIBMPX_SUPPORTED" != "yes")
  2992. then
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2994. $as_echo "no" >&6; }
  2995. noconfigdirs="$noconfigdirs target-libmpx"
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2998. $as_echo "yes" >&6; }
  2999. fi
  3000. fi
  3001. fi
  3002. # Disable libquadmath for some systems.
  3003. case "${target}" in
  3004. avr-*-*)
  3005. noconfigdirs="$noconfigdirs target-libquadmath"
  3006. ;;
  3007. # libquadmath is unused on AIX and libquadmath build process use of
  3008. # LD_LIBRARY_PATH can break AIX bootstrap.
  3009. powerpc-*-aix* | rs6000-*-aix*)
  3010. noconfigdirs="$noconfigdirs target-libquadmath"
  3011. ;;
  3012. esac
  3013. # Disable libssp for some systems.
  3014. case "${target}" in
  3015. avr-*-*)
  3016. # No hosted I/O support.
  3017. noconfigdirs="$noconfigdirs target-libssp"
  3018. ;;
  3019. powerpc-*-aix* | rs6000-*-aix*)
  3020. noconfigdirs="$noconfigdirs target-libssp"
  3021. ;;
  3022. rl78-*-*)
  3023. # libssp uses a misaligned load to trigger a fault, but the RL78
  3024. # doesn't fault for those - instead, it gives a build-time error
  3025. # for explicit misaligned loads.
  3026. noconfigdirs="$noconfigdirs target-libssp"
  3027. ;;
  3028. visium-*-*)
  3029. # No hosted I/O support.
  3030. noconfigdirs="$noconfigdirs target-libssp"
  3031. ;;
  3032. esac
  3033. # Disable libstdc++-v3 for some systems.
  3034. # Allow user to override this if they pass --enable-libstdc++-v3
  3035. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3036. case "${target}" in
  3037. *-*-vxworks*)
  3038. # VxWorks uses the Dinkumware C++ library.
  3039. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3040. ;;
  3041. arm*-wince-pe*)
  3042. # the C++ libraries don't build on top of CE's C libraries
  3043. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3044. ;;
  3045. avr-*-*)
  3046. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3047. ;;
  3048. ft32-*-*)
  3049. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3050. ;;
  3051. esac
  3052. fi
  3053. # Disable Fortran for some systems.
  3054. case "${target}" in
  3055. mmix-*-*)
  3056. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3057. unsupported_languages="$unsupported_languages fortran"
  3058. ;;
  3059. esac
  3060. # Disable Java if libffi is not supported.
  3061. case "${target}" in
  3062. aarch64-*-*)
  3063. ;;
  3064. alpha*-*-*)
  3065. ;;
  3066. arm*-*-*)
  3067. ;;
  3068. cris-*-*)
  3069. ;;
  3070. frv-*-*)
  3071. ;;
  3072. hppa*-*-linux*)
  3073. ;;
  3074. hppa*-*-hpux*)
  3075. ;;
  3076. i?86-*-*)
  3077. ;;
  3078. ia64*-*-*)
  3079. ;;
  3080. m32r*-*-*)
  3081. ;;
  3082. m68k-*-*)
  3083. ;;
  3084. mips*-*-rtems*)
  3085. ;;
  3086. mips*-*-linux*)
  3087. ;;
  3088. powerpc*-*-linux*)
  3089. ;;
  3090. powerpc-*-darwin*)
  3091. ;;
  3092. powerpc-*-aix* | rs6000-*-aix*)
  3093. ;;
  3094. powerpc-*-freebsd*)
  3095. ;;
  3096. powerpc64-*-freebsd*)
  3097. ;;
  3098. powerpc*-*-rtems*)
  3099. ;;
  3100. s390-*-* | s390x-*-*)
  3101. ;;
  3102. sh-*-* | sh[34]*-*-*)
  3103. ;;
  3104. sparc*-*-*)
  3105. ;;
  3106. x86_64-*-*)
  3107. ;;
  3108. *-*-*)
  3109. unsupported_languages="$unsupported_languages java"
  3110. ;;
  3111. esac
  3112. # Disable Java, libgcj or related libraries for some systems.
  3113. case "${target}" in
  3114. powerpc-*-darwin*)
  3115. ;;
  3116. i[3456789]86-*-darwin*)
  3117. ;;
  3118. x86_64-*-darwin[912]*)
  3119. ;;
  3120. *-*-darwin*)
  3121. noconfigdirs="$noconfigdirs ${libgcj}"
  3122. ;;
  3123. *-*-netware*)
  3124. noconfigdirs="$noconfigdirs ${libgcj}"
  3125. ;;
  3126. *-*-phoenix*)
  3127. noconfigdirs="$noconfigdirs ${libgcj}"
  3128. ;;
  3129. *-*-rtems*)
  3130. noconfigdirs="$noconfigdirs ${libgcj}"
  3131. ;;
  3132. *-*-tpf*)
  3133. noconfigdirs="$noconfigdirs ${libgcj}"
  3134. ;;
  3135. *-*-uclinux*)
  3136. noconfigdirs="$noconfigdirs ${libgcj}"
  3137. ;;
  3138. *-*-vxworks*)
  3139. noconfigdirs="$noconfigdirs ${libgcj}"
  3140. ;;
  3141. alpha*-*-*vms*)
  3142. noconfigdirs="$noconfigdirs ${libgcj}"
  3143. ;;
  3144. arm*-*-freebsd*)
  3145. noconfigdirs="$noconfigdirs ${libgcj}"
  3146. ;;
  3147. arm-wince-pe)
  3148. noconfigdirs="$noconfigdirs ${libgcj}"
  3149. ;;
  3150. arm*-*-symbianelf*)
  3151. noconfigdirs="$noconfigdirs ${libgcj}"
  3152. ;;
  3153. bfin-*-*)
  3154. noconfigdirs="$noconfigdirs target-boehm-gc"
  3155. ;;
  3156. cris-*-* | crisv32-*-*)
  3157. unsupported_languages="$unsupported_languages java"
  3158. case "${target}" in
  3159. *-*-linux*)
  3160. ;;
  3161. *) # See PR46792 regarding target-libffi.
  3162. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  3163. esac
  3164. ;;
  3165. hppa*64*-*-linux*)
  3166. # In this case, it's because the hppa64-linux target is for
  3167. # the kernel only at this point and has no libc, and thus no
  3168. # headers, crt*.o, etc., all of which are needed by these.
  3169. unsupported_languages="$unsupported_languages java"
  3170. ;;
  3171. hppa*64*-*-hpux*)
  3172. noconfigdirs="$noconfigdirs ${libgcj}"
  3173. ;;
  3174. hppa*-hp-hpux11*)
  3175. ;;
  3176. hppa*-*-hpux*)
  3177. # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  3178. # build on HP-UX 10.20.
  3179. noconfigdirs="$noconfigdirs ${libgcj}"
  3180. ;;
  3181. ia64*-*-*vms*)
  3182. noconfigdirs="$noconfigdirs ${libgcj}"
  3183. ;;
  3184. i[3456789]86-w64-mingw*)
  3185. noconfigdirs="$noconfigdirs ${libgcj}"
  3186. ;;
  3187. i[3456789]86-*-mingw*)
  3188. noconfigdirs="$noconfigdirs ${libgcj}"
  3189. ;;
  3190. x86_64-*-mingw*)
  3191. noconfigdirs="$noconfigdirs ${libgcj}"
  3192. ;;
  3193. mmix-*-*)
  3194. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
  3195. ;;
  3196. powerpc-*-aix*)
  3197. # copied from rs6000-*-* entry
  3198. noconfigdirs="$noconfigdirs ${libgcj}"
  3199. ;;
  3200. rs6000-*-aix*)
  3201. noconfigdirs="$noconfigdirs ${libgcj}"
  3202. ;;
  3203. ft32-*-*)
  3204. noconfigdirs="$noconfigdirs ${libgcj}"
  3205. ;;
  3206. *-*-lynxos*)
  3207. noconfigdirs="$noconfigdirs ${libgcj}"
  3208. ;;
  3209. esac
  3210. # Disable the go frontend on systems where it is known to not work. Please keep
  3211. # this in sync with contrib/config-list.mk.
  3212. case "${target}" in
  3213. *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
  3214. unsupported_languages="$unsupported_languages go"
  3215. ;;
  3216. esac
  3217. # Disable libgo for some systems where it is known to not work.
  3218. # For testing, you can easily override this with --enable-libgo.
  3219. if test x$enable_libgo = x; then
  3220. case "${target}" in
  3221. *-*-darwin*)
  3222. # PR 46986
  3223. noconfigdirs="$noconfigdirs target-libgo"
  3224. ;;
  3225. *-*-cygwin* | *-*-mingw*)
  3226. noconfigdirs="$noconfigdirs target-libgo"
  3227. ;;
  3228. *-*-aix*)
  3229. noconfigdirs="$noconfigdirs target-libgo"
  3230. ;;
  3231. esac
  3232. fi
  3233. # Default libgloss CPU subdirectory.
  3234. libgloss_dir="$target_cpu"
  3235. case "${target}" in
  3236. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3237. libgloss_dir=wince
  3238. ;;
  3239. aarch64*-*-* )
  3240. libgloss_dir=aarch64
  3241. ;;
  3242. arm*-*-*)
  3243. libgloss_dir=arm
  3244. ;;
  3245. cris-*-* | crisv32-*-*)
  3246. libgloss_dir=cris
  3247. ;;
  3248. hppa*-*-*)
  3249. libgloss_dir=pa
  3250. ;;
  3251. i[3456789]86-*-*)
  3252. libgloss_dir=i386
  3253. ;;
  3254. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3255. libgloss_dir=m68hc11
  3256. ;;
  3257. m68*-*-* | fido-*-*)
  3258. libgloss_dir=m68k
  3259. ;;
  3260. mips*-*-*)
  3261. libgloss_dir=mips
  3262. ;;
  3263. powerpc*-*-*)
  3264. libgloss_dir=rs6000
  3265. ;;
  3266. sparc*-*-*)
  3267. libgloss_dir=sparc
  3268. ;;
  3269. esac
  3270. # Disable newlib and libgloss for various target OSes.
  3271. case "${target}" in
  3272. alpha*-dec-osf*)
  3273. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3274. ;;
  3275. i[3456789]86-*-linux*)
  3276. # This section makes it possible to build newlib natively on linux.
  3277. # If we are using a cross compiler then don't configure newlib.
  3278. if test x${is_cross_compiler} != xno ; then
  3279. noconfigdirs="$noconfigdirs target-newlib"
  3280. fi
  3281. noconfigdirs="$noconfigdirs target-libgloss"
  3282. # If we are not using a cross compiler, do configure newlib.
  3283. # Note however, that newlib will only be configured in this situation
  3284. # if the --with-newlib option has been given, because otherwise
  3285. # 'target-newlib' will appear in skipdirs.
  3286. ;;
  3287. i[3456789]86-*-rdos*)
  3288. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3289. ;;
  3290. sh*-*-pe|mips*-*-pe|arm-wince-pe)
  3291. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3292. ;;
  3293. sparc-*-sunos4*)
  3294. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3295. ;;
  3296. *-*-aix*)
  3297. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3298. ;;
  3299. *-*-beos*)
  3300. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3301. ;;
  3302. *-*-chorusos)
  3303. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3304. ;;
  3305. *-*-dragonfly*)
  3306. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3307. ;;
  3308. *-*-freebsd*)
  3309. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3310. ;;
  3311. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3312. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3313. ;;
  3314. *-*-lynxos*)
  3315. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3316. ;;
  3317. *-*-mingw*)
  3318. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3319. ;;
  3320. *-*-netbsd*)
  3321. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3322. ;;
  3323. *-*-netware*)
  3324. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3325. ;;
  3326. *-*-tpf*)
  3327. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3328. ;;
  3329. *-*-uclinux*)
  3330. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3331. ;;
  3332. *-*-vxworks*)
  3333. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3334. ;;
  3335. esac
  3336. case "${target}" in
  3337. *-*-chorusos)
  3338. ;;
  3339. aarch64-*-darwin*)
  3340. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3341. noconfigdirs="$noconfigdirs sim target-rda"
  3342. ;;
  3343. arm-*-darwin*)
  3344. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3345. noconfigdirs="$noconfigdirs sim target-rda"
  3346. ;;
  3347. powerpc-*-darwin*)
  3348. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3349. noconfigdirs="$noconfigdirs sim target-rda"
  3350. ;;
  3351. i[3456789]86-*-darwin*)
  3352. noconfigdirs="$noconfigdirs ld gprof"
  3353. noconfigdirs="$noconfigdirs sim target-rda"
  3354. ;;
  3355. x86_64-*-darwin[912]*)
  3356. noconfigdirs="$noconfigdirs ld gas gprof"
  3357. noconfigdirs="$noconfigdirs sim target-rda"
  3358. ;;
  3359. *-*-darwin*)
  3360. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3361. noconfigdirs="$noconfigdirs sim target-rda"
  3362. ;;
  3363. *-*-dragonfly*)
  3364. ;;
  3365. *-*-freebsd*)
  3366. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  3367. && test -f /usr/local/include/gmp.h; then
  3368. with_gmp=/usr/local
  3369. fi
  3370. ;;
  3371. *-*-kaos*)
  3372. # Remove unsupported stuff on all kaOS configurations.
  3373. noconfigdirs="$noconfigdirs target-libgloss"
  3374. ;;
  3375. *-*-netbsd*)
  3376. ;;
  3377. *-*-netware*)
  3378. ;;
  3379. *-*-phoenix*)
  3380. noconfigdirs="$noconfigdirs target-libglos