autoconf 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. #! /bin/sh
  2. # Generated from ../../autoconf-2.69/bin/autoconf.as by GNU Autoconf 2.69.
  3. # Generated from autoconf.in; do not edit by hand.
  4. # autoconf -- create `configure' using m4 macros
  5. # Copyright (C) 1992-1994, 1996, 1999-2012 Free Software Foundation,
  6. # Inc.
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. ## -------------------- ##
  18. ## M4sh Initialization. ##
  19. ## -------------------- ##
  20. # Be more Bourne compatible
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23. emulate sh
  24. NULLCMD=:
  25. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26. # is contrary to our usage. Disable this feature.
  27. alias -g '${1+"$@"}'='"$@"'
  28. setopt NO_GLOB_SUBST
  29. else
  30. case `(set -o) 2>/dev/null` in #(
  31. *posix*) :
  32. set -o posix ;; #(
  33. *) :
  34. ;;
  35. esac
  36. fi
  37. as_nl='
  38. '
  39. export as_nl
  40. as_echo='printf %s\n'
  41. as_echo_n='printf %s'
  42. # The user is always right.
  43. if test "${PATH_SEPARATOR+set}" != set; then
  44. PATH_SEPARATOR=:
  45. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  46. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  47. PATH_SEPARATOR=';'
  48. }
  49. fi
  50. # IFS
  51. # We need space, tab and new line, in precisely that order. Quoting is
  52. # there to prevent editors from complaining about space-tab.
  53. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  54. # splitting by setting IFS to empty value.)
  55. IFS=" "" $as_nl"
  56. # Find who we are. Look in the path if we contain no directory separator.
  57. as_myself=
  58. case $0 in #((
  59. *[\\/]* ) as_myself=$0 ;;
  60. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  61. for as_dir in $PATH
  62. do
  63. IFS=$as_save_IFS
  64. test -z "$as_dir" && as_dir=.
  65. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  66. done
  67. IFS=$as_save_IFS
  68. ;;
  69. esac
  70. # We did not find ourselves, most probably we were run as `sh COMMAND'
  71. # in which case we are not to be found in the path.
  72. if test "x$as_myself" = x; then
  73. as_myself=$0
  74. fi
  75. if test ! -f "$as_myself"; then
  76. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  77. exit 1
  78. fi
  79. # Unset variables that we do not need and which cause bugs (e.g. in
  80. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  81. # suppresses any "Segmentation fault" message there. '((' could
  82. # trigger a bug in pdksh 5.2.14.
  83. for as_var in BASH_ENV ENV MAIL MAILPATH
  84. do eval test x\${$as_var+set} = xset \
  85. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. LC_ALL=C
  92. export LC_ALL
  93. LANGUAGE=C
  94. export LANGUAGE
  95. # CDPATH.
  96. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  97. if test "x$CONFIG_SHELL" = x; then
  98. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  99. emulate sh
  100. NULLCMD=:
  101. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  102. # is contrary to our usage. Disable this feature.
  103. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  104. setopt NO_GLOB_SUBST
  105. else
  106. case \`(set -o) 2>/dev/null\` in #(
  107. *posix*) :
  108. set -o posix ;; #(
  109. *) :
  110. ;;
  111. esac
  112. fi
  113. "
  114. as_required="as_fn_return () { (exit \$1); }
  115. as_fn_success () { as_fn_return 0; }
  116. as_fn_failure () { as_fn_return 1; }
  117. as_fn_ret_success () { return 0; }
  118. as_fn_ret_failure () { return 1; }
  119. exitcode=0
  120. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  121. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  122. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  123. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  124. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  125. else
  126. exitcode=1; echo positional parameters were not saved.
  127. fi
  128. test x\$exitcode = x0 || exit 1
  129. test -x / || exit 1"
  130. as_suggested=""
  131. if (eval "$as_required") 2>/dev/null; then :
  132. as_have_required=yes
  133. else
  134. as_have_required=no
  135. fi
  136. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  137. else
  138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  139. as_found=false
  140. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  141. do
  142. IFS=$as_save_IFS
  143. test -z "$as_dir" && as_dir=.
  144. as_found=:
  145. case $as_dir in #(
  146. /*)
  147. for as_base in bash sh ksh sh5; do
  148. # Try only shells that exist, to save several forks.
  149. as_shell=$as_dir/$as_base
  150. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  151. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  152. CONFIG_SHELL=$as_shell as_have_required=yes
  153. break 2
  154. fi
  155. done;;
  156. esac
  157. as_found=false
  158. done
  159. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  160. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  161. CONFIG_SHELL=$SHELL as_have_required=yes
  162. fi; }
  163. IFS=$as_save_IFS
  164. if test "x$CONFIG_SHELL" != x; then :
  165. export CONFIG_SHELL
  166. # We cannot yet assume a decent shell, so we have to provide a
  167. # neutralization value for shells without unset; and this also
  168. # works around shells that cannot unset nonexistent variables.
  169. # Preserve -v and -x to the replacement shell.
  170. BASH_ENV=/dev/null
  171. ENV=/dev/null
  172. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  173. case $- in # ((((
  174. *v*x* | *x*v* ) as_opts=-vx ;;
  175. *v* ) as_opts=-v ;;
  176. *x* ) as_opts=-x ;;
  177. * ) as_opts= ;;
  178. esac
  179. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  180. # Admittedly, this is quite paranoid, since all the known shells bail
  181. # out after a failed `exec'.
  182. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  183. exit 255
  184. fi
  185. if test x$as_have_required = xno; then :
  186. $as_echo "$0: This script requires a shell more modern than all"
  187. $as_echo "$0: the shells that I found on your system."
  188. if test x${ZSH_VERSION+set} = xset ; then
  189. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  190. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  191. else
  192. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  193. $0: including any error possibly output before this
  194. $0: message. Then install a modern shell, or manually run
  195. $0: the script under such a shell if you do have one."
  196. fi
  197. exit 1
  198. fi
  199. fi
  200. fi
  201. SHELL=${CONFIG_SHELL-/bin/sh}
  202. export SHELL
  203. # Unset more variables known to interfere with behavior of common tools.
  204. CLICOLOR_FORCE= GREP_OPTIONS=
  205. unset CLICOLOR_FORCE GREP_OPTIONS
  206. ## --------------------- ##
  207. ## M4sh Shell Functions. ##
  208. ## --------------------- ##
  209. # as_fn_unset VAR
  210. # ---------------
  211. # Portably unset VAR.
  212. as_fn_unset ()
  213. {
  214. { eval $1=; unset $1;}
  215. }
  216. as_unset=as_fn_unset
  217. # as_fn_set_status STATUS
  218. # -----------------------
  219. # Set $? to STATUS, without forking.
  220. as_fn_set_status ()
  221. {
  222. return $1
  223. } # as_fn_set_status
  224. # as_fn_exit STATUS
  225. # -----------------
  226. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  227. as_fn_exit ()
  228. {
  229. set +e
  230. as_fn_set_status $1
  231. exit $1
  232. } # as_fn_exit
  233. # as_fn_error STATUS ERROR
  234. # ------------------------
  235. # Output "`basename $0`: error: ERROR" to stderr. Then exit the script with
  236. # STATUS, using 1 if that was 0.
  237. as_fn_error ()
  238. {
  239. as_status=$1; test $as_status -eq 0 && as_status=1
  240. $as_echo "$as_me: error: $2" >&2
  241. as_fn_exit $as_status
  242. } # as_fn_error
  243. if expr a : '\(a\)' >/dev/null 2>&1 &&
  244. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  245. as_expr=expr
  246. else
  247. as_expr=false
  248. fi
  249. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  250. as_basename=basename
  251. else
  252. as_basename=false
  253. fi
  254. as_me=`$as_basename -- "$0" ||
  255. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  256. X"$0" : 'X\(//\)$' \| \
  257. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  258. $as_echo X/"$0" |
  259. sed '/^.*\/\([^/][^/]*\)\/*$/{
  260. s//\1/
  261. q
  262. }
  263. /^X\/\(\/\/\)$/{
  264. s//\1/
  265. q
  266. }
  267. /^X\/\(\/\).*/{
  268. s//\1/
  269. q
  270. }
  271. s/.*/./; q'`
  272. ## -------------------- ##
  273. ## Main body of script. ##
  274. ## -------------------- ##
  275. usage="\
  276. Usage: $0 [OPTION]... [TEMPLATE-FILE]
  277. Generate a configuration script from a TEMPLATE-FILE if given, or
  278. \`configure.ac' if present, or else \`configure.in'. Output is sent
  279. to the standard output if TEMPLATE-FILE is given, else into
  280. \`configure'.
  281. Operation modes:
  282. -h, --help print this help, then exit
  283. -V, --version print version number, then exit
  284. -v, --verbose verbosely report processing
  285. -d, --debug don't remove temporary files
  286. -f, --force consider all files obsolete
  287. -o, --output=FILE save output in FILE (stdout is the default)
  288. -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax]
  289. Warning categories include:
  290. \`cross' cross compilation issues
  291. \`obsolete' obsolete constructs
  292. \`syntax' dubious syntactic constructs
  293. \`all' all the warnings
  294. \`no-CATEGORY' turn off the warnings on CATEGORY
  295. \`none' turn off all the warnings
  296. \`error' warnings are error
  297. The environment variables \`M4' and \`WARNINGS' are honored.
  298. Library directories:
  299. -B, --prepend-include=DIR prepend directory DIR to search path
  300. -I, --include=DIR append directory DIR to search path
  301. Tracing:
  302. -t, --trace=MACRO[:FORMAT] report the list of calls to MACRO
  303. -i, --initialization also trace Autoconf's initialization process
  304. In tracing mode, no configuration script is created. FORMAT defaults
  305. to \`\$f:\$l:\$n:\$%'; see \`autom4te --help' for information about FORMAT.
  306. Report bugs to <bug-autoconf@gnu.org>.
  307. GNU Autoconf home page: <http://www.gnu.org/software/autoconf/>.
  308. General help using GNU software: <http://www.gnu.org/gethelp/>."
  309. version="\
  310. autoconf (GNU Autoconf) 2.69
  311. Copyright (C) 2012 Free Software Foundation, Inc.
  312. License GPLv3+/Autoconf: GNU GPL version 3 or later
  313. <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
  314. This is free software: you are free to change and redistribute it.
  315. There is NO WARRANTY, to the extent permitted by law.
  316. Written by David J. MacKenzie and Akim Demaille."
  317. help="\
  318. Try \`$as_me --help' for more information."
  319. exit_missing_arg='
  320. as_fn_error $? "option \`$1'\'' requires an argument$as_nl$help"'
  321. # restore font-lock: '
  322. # Variables.
  323. : ${AUTOM4TE='/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/autom4te'}
  324. autom4te_options=
  325. outfile=
  326. verbose=false
  327. # Parse command line.
  328. while test $# -gt 0 ; do
  329. option=`expr "x$1" : 'x\(--[^=]*\)' \| \
  330. "x$1" : 'x\(-.\)'`
  331. optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
  332. "x$1" : 'x-.\(.*\)'`
  333. case $1 in
  334. --version | -V )
  335. echo "$version" ; exit ;;
  336. --help | -h )
  337. $as_echo "$usage"; exit ;;
  338. --verbose | -v )
  339. verbose=:
  340. autom4te_options="$autom4te_options $1"; shift ;;
  341. # Arguments passed as is to autom4te.
  342. --debug | -d | \
  343. --force | -f | \
  344. --include=* | -I?* | \
  345. --prepend-include=* | -B?* | \
  346. --warnings=* | -W?* )
  347. case $1 in
  348. *\'*) arg=`$as_echo "$1" | sed "s/'/'\\\\\\\\''/g"` ;; #'
  349. *) arg=$1 ;;
  350. esac
  351. autom4te_options="$autom4te_options '$arg'"; shift ;;
  352. # Options with separated arg passed as is to autom4te.
  353. --include | -I | \
  354. --prepend-include | -B | \
  355. --warnings | -W )
  356. test $# = 1 && eval "$exit_missing_arg"
  357. case $2 in
  358. *\'*) arg=`$as_echo "$2" | sed "s/'/'\\\\\\\\''/g"` ;; #'
  359. *) arg=$2 ;;
  360. esac
  361. autom4te_options="$autom4te_options $option '$arg'"
  362. shift; shift ;;
  363. --trace=* | -t?* )
  364. traces="$traces --trace='"`$as_echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'"
  365. shift ;;
  366. --trace | -t )
  367. test $# = 1 && eval "$exit_missing_arg"
  368. traces="$traces --trace='"`$as_echo "$2" | sed "s/'/'\\\\\\\\''/g"`"'"
  369. shift; shift ;;
  370. --initialization | -i )
  371. autom4te_options="$autom4te_options --melt"
  372. shift;;
  373. --output=* | -o?* )
  374. outfile=$optarg
  375. shift ;;
  376. --output | -o )
  377. test $# = 1 && eval "$exit_missing_arg"
  378. outfile=$2
  379. shift; shift ;;
  380. -- ) # Stop option processing
  381. shift; break ;;
  382. - ) # Use stdin as input.
  383. break ;;
  384. -* )
  385. exec >&2
  386. as_fn_error $? "invalid option \`$1'$as_nl$help" ;; #`
  387. * )
  388. break ;;
  389. esac
  390. done
  391. # Find the input file.
  392. case $# in
  393. 0)
  394. if test -f configure.ac; then
  395. if test -f configure.in; then
  396. $as_echo "$as_me: warning: both \`configure.ac' and \`configure.in' are present." >&2
  397. $as_echo "$as_me: warning: proceeding with \`configure.ac'." >&2
  398. fi
  399. infile=configure.ac
  400. elif test -f configure.in; then
  401. infile=configure.in
  402. else
  403. as_fn_error $? "no input file"
  404. fi
  405. test -z "$traces" && test -z "$outfile" && outfile=configure;;
  406. 1)
  407. infile=$1 ;;
  408. *) exec >&2
  409. as_fn_error $? "invalid number of arguments$as_nl$help" ;;
  410. esac
  411. # Unless specified, the output is stdout.
  412. test -z "$outfile" && outfile=-
  413. # Run autom4te with expansion.
  414. eval set x "$autom4te_options" \
  415. --language=autoconf --output=\"\$outfile\" "$traces" \"\$infile\"
  416. shift
  417. $verbose && $as_echo "$as_me: running $AUTOM4TE $*" >&2
  418. exec "$AUTOM4TE" "$@"