PageRenderTime 68ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 2ms

/configure

https://bitbucket.org/libusbandroid/libusb-compat-android
Shell | 13945 lines | 11838 code | 1147 blank | 960 comment | 862 complexity | f1799eae87e7a459942113c62b0ba798 MD5 | raw file
Possible License(s): LGPL-2.1

Large files files are truncated, but you can click here to view the full file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for libusb-compat 0.1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='libusb-compat'
  647. PACKAGE_TARNAME='libusb-compat'
  648. PACKAGE_VERSION='0.1.0'
  649. PACKAGE_STRING='libusb-compat 0.1.0'
  650. PACKAGE_BUGREPORT=''
  651. ac_unique_file="libusb/core.c"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='LTLIBOBJS
  688. LIBOBJS
  689. AM_CFLAGS
  690. BUILD_EXAMPLES_FALSE
  691. BUILD_EXAMPLES_TRUE
  692. LIBUSB_1_0_LIBS
  693. LIBUSB_1_0_CFLAGS
  694. PKG_CONFIG
  695. LIBUSB01_VERSION
  696. LT_AGE
  697. LT_REVISION
  698. LT_MAJOR
  699. CPP
  700. OTOOL64
  701. OTOOL
  702. LIPO
  703. NMEDIT
  704. DSYMUTIL
  705. lt_ECHO
  706. RANLIB
  707. AR
  708. OBJDUMP
  709. LN_S
  710. NM
  711. ac_ct_DUMPBIN
  712. DUMPBIN
  713. LD
  714. FGREP
  715. EGREP
  716. GREP
  717. SED
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. LIBTOOL
  727. am__fastdepCC_FALSE
  728. am__fastdepCC_TRUE
  729. CCDEPMODE
  730. AMDEPBACKSLASH
  731. AMDEP_FALSE
  732. AMDEP_TRUE
  733. am__quote
  734. am__include
  735. DEPDIR
  736. OBJEXT
  737. EXEEXT
  738. ac_ct_CC
  739. CPPFLAGS
  740. LDFLAGS
  741. CFLAGS
  742. CC
  743. am__untar
  744. am__tar
  745. AMTAR
  746. am__leading_dot
  747. SET_MAKE
  748. AWK
  749. mkdir_p
  750. MKDIR_P
  751. INSTALL_STRIP_PROGRAM
  752. STRIP
  753. install_sh
  754. MAKEINFO
  755. AUTOHEADER
  756. AUTOMAKE
  757. AUTOCONF
  758. ACLOCAL
  759. VERSION
  760. PACKAGE
  761. CYGPATH_W
  762. am__isrc
  763. INSTALL_DATA
  764. INSTALL_SCRIPT
  765. INSTALL_PROGRAM
  766. target_alias
  767. host_alias
  768. build_alias
  769. LIBS
  770. ECHO_T
  771. ECHO_N
  772. ECHO_C
  773. DEFS
  774. mandir
  775. localedir
  776. libdir
  777. psdir
  778. pdfdir
  779. dvidir
  780. htmldir
  781. infodir
  782. docdir
  783. oldincludedir
  784. includedir
  785. localstatedir
  786. sharedstatedir
  787. sysconfdir
  788. datadir
  789. datarootdir
  790. libexecdir
  791. sbindir
  792. bindir
  793. program_transform_name
  794. prefix
  795. exec_prefix
  796. PACKAGE_BUGREPORT
  797. PACKAGE_STRING
  798. PACKAGE_VERSION
  799. PACKAGE_TARNAME
  800. PACKAGE_NAME
  801. PATH_SEPARATOR
  802. SHELL'
  803. ac_subst_files=''
  804. ac_user_opts='
  805. enable_option_checking
  806. enable_dependency_tracking
  807. enable_shared
  808. enable_static
  809. with_pic
  810. enable_fast_install
  811. with_gnu_ld
  812. enable_libtool_lock
  813. enable_log
  814. enable_debug_log
  815. enable_examples_build
  816. '
  817. ac_precious_vars='build_alias
  818. host_alias
  819. target_alias
  820. CC
  821. CFLAGS
  822. LDFLAGS
  823. LIBS
  824. CPPFLAGS
  825. CPP
  826. PKG_CONFIG
  827. LIBUSB_1_0_CFLAGS
  828. LIBUSB_1_0_LIBS'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. ac_unrecognized_opts=
  833. ac_unrecognized_sep=
  834. # The variables have the same names as the options, with
  835. # dashes changed to underlines.
  836. cache_file=/dev/null
  837. exec_prefix=NONE
  838. no_create=
  839. no_recursion=
  840. prefix=NONE
  841. program_prefix=NONE
  842. program_suffix=NONE
  843. program_transform_name=s,x,x,
  844. silent=
  845. site=
  846. srcdir=
  847. verbose=
  848. x_includes=NONE
  849. x_libraries=NONE
  850. # Installation directory options.
  851. # These are left unexpanded so users can "make install exec_prefix=/foo"
  852. # and all the variables that are supposed to be based on exec_prefix
  853. # by default will actually change.
  854. # Use braces instead of parens because sh, perl, etc. also accept them.
  855. # (The list follows the same order as the GNU Coding Standards.)
  856. bindir='${exec_prefix}/bin'
  857. sbindir='${exec_prefix}/sbin'
  858. libexecdir='${exec_prefix}/libexec'
  859. datarootdir='${prefix}/share'
  860. datadir='${datarootdir}'
  861. sysconfdir='${prefix}/etc'
  862. sharedstatedir='${prefix}/com'
  863. localstatedir='${prefix}/var'
  864. includedir='${prefix}/include'
  865. oldincludedir='/usr/include'
  866. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  867. infodir='${datarootdir}/info'
  868. htmldir='${docdir}'
  869. dvidir='${docdir}'
  870. pdfdir='${docdir}'
  871. psdir='${docdir}'
  872. libdir='${exec_prefix}/lib'
  873. localedir='${datarootdir}/locale'
  874. mandir='${datarootdir}/man'
  875. ac_prev=
  876. ac_dashdash=
  877. for ac_option
  878. do
  879. # If the previous option needs an argument, assign it.
  880. if test -n "$ac_prev"; then
  881. eval $ac_prev=\$ac_option
  882. ac_prev=
  883. continue
  884. fi
  885. case $ac_option in
  886. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  887. *) ac_optarg=yes ;;
  888. esac
  889. # Accept the important Cygnus configure options, so we can diagnose typos.
  890. case $ac_dashdash$ac_option in
  891. --)
  892. ac_dashdash=yes ;;
  893. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  894. ac_prev=bindir ;;
  895. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  896. bindir=$ac_optarg ;;
  897. -build | --build | --buil | --bui | --bu)
  898. ac_prev=build_alias ;;
  899. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  900. build_alias=$ac_optarg ;;
  901. -cache-file | --cache-file | --cache-fil | --cache-fi \
  902. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  903. ac_prev=cache_file ;;
  904. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  905. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  906. cache_file=$ac_optarg ;;
  907. --config-cache | -C)
  908. cache_file=config.cache ;;
  909. -datadir | --datadir | --datadi | --datad)
  910. ac_prev=datadir ;;
  911. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  912. datadir=$ac_optarg ;;
  913. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  914. | --dataroo | --dataro | --datar)
  915. ac_prev=datarootdir ;;
  916. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  917. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  918. datarootdir=$ac_optarg ;;
  919. -disable-* | --disable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  924. { (exit 1); exit 1; }; }
  925. ac_useropt_orig=$ac_useropt
  926. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927. case $ac_user_opts in
  928. *"
  929. "enable_$ac_useropt"
  930. "*) ;;
  931. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  932. ac_unrecognized_sep=', ';;
  933. esac
  934. eval enable_$ac_useropt=no ;;
  935. -docdir | --docdir | --docdi | --doc | --do)
  936. ac_prev=docdir ;;
  937. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  938. docdir=$ac_optarg ;;
  939. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  940. ac_prev=dvidir ;;
  941. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  942. dvidir=$ac_optarg ;;
  943. -enable-* | --enable-*)
  944. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  945. # Reject names that are not valid shell variable names.
  946. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  947. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  948. { (exit 1); exit 1; }; }
  949. ac_useropt_orig=$ac_useropt
  950. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  951. case $ac_user_opts in
  952. *"
  953. "enable_$ac_useropt"
  954. "*) ;;
  955. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  956. ac_unrecognized_sep=', ';;
  957. esac
  958. eval enable_$ac_useropt=\$ac_optarg ;;
  959. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  960. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  961. | --exec | --exe | --ex)
  962. ac_prev=exec_prefix ;;
  963. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  964. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  965. | --exec=* | --exe=* | --ex=*)
  966. exec_prefix=$ac_optarg ;;
  967. -gas | --gas | --ga | --g)
  968. # Obsolete; use --with-gas.
  969. with_gas=yes ;;
  970. -help | --help | --hel | --he | -h)
  971. ac_init_help=long ;;
  972. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  973. ac_init_help=recursive ;;
  974. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  975. ac_init_help=short ;;
  976. -host | --host | --hos | --ho)
  977. ac_prev=host_alias ;;
  978. -host=* | --host=* | --hos=* | --ho=*)
  979. host_alias=$ac_optarg ;;
  980. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  981. ac_prev=htmldir ;;
  982. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  983. | --ht=*)
  984. htmldir=$ac_optarg ;;
  985. -includedir | --includedir | --includedi | --included | --include \
  986. | --includ | --inclu | --incl | --inc)
  987. ac_prev=includedir ;;
  988. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  989. | --includ=* | --inclu=* | --incl=* | --inc=*)
  990. includedir=$ac_optarg ;;
  991. -infodir | --infodir | --infodi | --infod | --info | --inf)
  992. ac_prev=infodir ;;
  993. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  994. infodir=$ac_optarg ;;
  995. -libdir | --libdir | --libdi | --libd)
  996. ac_prev=libdir ;;
  997. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  998. libdir=$ac_optarg ;;
  999. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1000. | --libexe | --libex | --libe)
  1001. ac_prev=libexecdir ;;
  1002. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1003. | --libexe=* | --libex=* | --libe=*)
  1004. libexecdir=$ac_optarg ;;
  1005. -localedir | --localedir | --localedi | --localed | --locale)
  1006. ac_prev=localedir ;;
  1007. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1008. localedir=$ac_optarg ;;
  1009. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1010. | --localstate | --localstat | --localsta | --localst | --locals)
  1011. ac_prev=localstatedir ;;
  1012. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1013. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1014. localstatedir=$ac_optarg ;;
  1015. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1016. ac_prev=mandir ;;
  1017. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1018. mandir=$ac_optarg ;;
  1019. -nfp | --nfp | --nf)
  1020. # Obsolete; use --without-fp.
  1021. with_fp=no ;;
  1022. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1023. | --no-cr | --no-c | -n)
  1024. no_create=yes ;;
  1025. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1026. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1027. no_recursion=yes ;;
  1028. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1029. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1030. | --oldin | --oldi | --old | --ol | --o)
  1031. ac_prev=oldincludedir ;;
  1032. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1033. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1034. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1035. oldincludedir=$ac_optarg ;;
  1036. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1037. ac_prev=prefix ;;
  1038. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1039. prefix=$ac_optarg ;;
  1040. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1041. | --program-pre | --program-pr | --program-p)
  1042. ac_prev=program_prefix ;;
  1043. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1044. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1045. program_prefix=$ac_optarg ;;
  1046. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1047. | --program-suf | --program-su | --program-s)
  1048. ac_prev=program_suffix ;;
  1049. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1050. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1051. program_suffix=$ac_optarg ;;
  1052. -program-transform-name | --program-transform-name \
  1053. | --program-transform-nam | --program-transform-na \
  1054. | --program-transform-n | --program-transform- \
  1055. | --program-transform | --program-transfor \
  1056. | --program-transfo | --program-transf \
  1057. | --program-trans | --program-tran \
  1058. | --progr-tra | --program-tr | --program-t)
  1059. ac_prev=program_transform_name ;;
  1060. -program-transform-name=* | --program-transform-name=* \
  1061. | --program-transform-nam=* | --program-transform-na=* \
  1062. | --program-transform-n=* | --program-transform-=* \
  1063. | --program-transform=* | --program-transfor=* \
  1064. | --program-transfo=* | --program-transf=* \
  1065. | --program-trans=* | --program-tran=* \
  1066. | --progr-tra=* | --program-tr=* | --program-t=*)
  1067. program_transform_name=$ac_optarg ;;
  1068. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1069. ac_prev=pdfdir ;;
  1070. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1071. pdfdir=$ac_optarg ;;
  1072. -psdir | --psdir | --psdi | --psd | --ps)
  1073. ac_prev=psdir ;;
  1074. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1075. psdir=$ac_optarg ;;
  1076. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1077. | -silent | --silent | --silen | --sile | --sil)
  1078. silent=yes ;;
  1079. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1080. ac_prev=sbindir ;;
  1081. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1082. | --sbi=* | --sb=*)
  1083. sbindir=$ac_optarg ;;
  1084. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1085. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1086. | --sharedst | --shareds | --shared | --share | --shar \
  1087. | --sha | --sh)
  1088. ac_prev=sharedstatedir ;;
  1089. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1090. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1091. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1092. | --sha=* | --sh=*)
  1093. sharedstatedir=$ac_optarg ;;
  1094. -site | --site | --sit)
  1095. ac_prev=site ;;
  1096. -site=* | --site=* | --sit=*)
  1097. site=$ac_optarg ;;
  1098. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1099. ac_prev=srcdir ;;
  1100. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1101. srcdir=$ac_optarg ;;
  1102. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1103. | --syscon | --sysco | --sysc | --sys | --sy)
  1104. ac_prev=sysconfdir ;;
  1105. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1106. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1107. sysconfdir=$ac_optarg ;;
  1108. -target | --target | --targe | --targ | --tar | --ta | --t)
  1109. ac_prev=target_alias ;;
  1110. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1111. target_alias=$ac_optarg ;;
  1112. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1113. verbose=yes ;;
  1114. -version | --version | --versio | --versi | --vers | -V)
  1115. ac_init_version=: ;;
  1116. -with-* | --with-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1121. { (exit 1); exit 1; }; }
  1122. ac_useropt_orig=$ac_useropt
  1123. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1124. case $ac_user_opts in
  1125. *"
  1126. "with_$ac_useropt"
  1127. "*) ;;
  1128. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1129. ac_unrecognized_sep=', ';;
  1130. esac
  1131. eval with_$ac_useropt=\$ac_optarg ;;
  1132. -without-* | --without-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1137. { (exit 1); exit 1; }; }
  1138. ac_useropt_orig=$ac_useropt
  1139. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1140. case $ac_user_opts in
  1141. *"
  1142. "with_$ac_useropt"
  1143. "*) ;;
  1144. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1145. ac_unrecognized_sep=', ';;
  1146. esac
  1147. eval with_$ac_useropt=no ;;
  1148. --x)
  1149. # Obsolete; use --with-x.
  1150. with_x=yes ;;
  1151. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1152. | --x-incl | --x-inc | --x-in | --x-i)
  1153. ac_prev=x_includes ;;
  1154. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1155. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1156. x_includes=$ac_optarg ;;
  1157. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1158. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1159. ac_prev=x_libraries ;;
  1160. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1161. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1162. x_libraries=$ac_optarg ;;
  1163. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1164. Try \`$0 --help' for more information." >&2
  1165. { (exit 1); exit 1; }; }
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1171. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1172. { (exit 1); exit 1; }; }
  1173. eval $ac_envvar=\$ac_optarg
  1174. export $ac_envvar ;;
  1175. *)
  1176. # FIXME: should be removed in autoconf 3.0.
  1177. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1178. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1179. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1180. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1181. ;;
  1182. esac
  1183. done
  1184. if test -n "$ac_prev"; then
  1185. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1186. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1187. { (exit 1); exit 1; }; }
  1188. fi
  1189. if test -n "$ac_unrecognized_opts"; then
  1190. case $enable_option_checking in
  1191. no) ;;
  1192. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1193. { (exit 1); exit 1; }; } ;;
  1194. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1195. esac
  1196. fi
  1197. # Check all directory arguments for consistency.
  1198. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1199. datadir sysconfdir sharedstatedir localstatedir includedir \
  1200. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1201. libdir localedir mandir
  1202. do
  1203. eval ac_val=\$$ac_var
  1204. # Remove trailing slashes.
  1205. case $ac_val in
  1206. */ )
  1207. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1208. eval $ac_var=\$ac_val;;
  1209. esac
  1210. # Be sure to have absolute directory names.
  1211. case $ac_val in
  1212. [\\/$]* | ?:[\\/]* ) continue;;
  1213. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1214. esac
  1215. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1216. { (exit 1); exit 1; }; }
  1217. done
  1218. # There might be people who depend on the old broken behavior: `$host'
  1219. # used to hold the argument of --host etc.
  1220. # FIXME: To remove some day.
  1221. build=$build_alias
  1222. host=$host_alias
  1223. target=$target_alias
  1224. # FIXME: To remove some day.
  1225. if test "x$host_alias" != x; then
  1226. if test "x$build_alias" = x; then
  1227. cross_compiling=maybe
  1228. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1229. If a cross compiler is detected then cross compile mode will be used." >&2
  1230. elif test "x$build_alias" != "x$host_alias"; then
  1231. cross_compiling=yes
  1232. fi
  1233. fi
  1234. ac_tool_prefix=
  1235. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1236. test "$silent" = yes && exec 6>/dev/null
  1237. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1238. ac_ls_di=`ls -di .` &&
  1239. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1240. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1241. { (exit 1); exit 1; }; }
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1244. { (exit 1); exit 1; }; }
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. $as_echo X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1282. { (exit 1); exit 1; }; }
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1287. { (exit 1); exit 1; }; }
  1288. pwd)`
  1289. # When building in place, set srcdir=.
  1290. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1291. srcdir=.
  1292. fi
  1293. # Remove unnecessary trailing slashes from srcdir.
  1294. # Double slashes in file names in object file debugging info
  1295. # mess up M-x gdb in Emacs.
  1296. case $srcdir in
  1297. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1298. esac
  1299. for ac_var in $ac_precious_vars; do
  1300. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_env_${ac_var}_value=\$${ac_var}
  1302. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1304. done
  1305. #
  1306. # Report the --help message.
  1307. #
  1308. if test "$ac_init_help" = "long"; then
  1309. # Omit some internal or obsolete options to make the list less imposing.
  1310. # This message is too long to be a string in the A/UX 3.1 sh.
  1311. cat <<_ACEOF
  1312. \`configure' configures libusb-compat 0.1.0 to adapt to many kinds of systems.
  1313. Usage: $0 [OPTION]... [VAR=VALUE]...
  1314. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1315. VAR=VALUE. See below for descriptions of some of the useful variables.
  1316. Defaults for the options are specified in brackets.
  1317. Configuration:
  1318. -h, --help display this help and exit
  1319. --help=short display options specific to this package
  1320. --help=recursive display the short help of all the included packages
  1321. -V, --version display version information and exit
  1322. -q, --quiet, --silent do not print \`checking...' messages
  1323. --cache-file=FILE cache test results in FILE [disabled]
  1324. -C, --config-cache alias for \`--cache-file=config.cache'
  1325. -n, --no-create do not create output files
  1326. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1327. Installation directories:
  1328. --prefix=PREFIX install architecture-independent files in PREFIX
  1329. [$ac_default_prefix]
  1330. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1331. [PREFIX]
  1332. By default, \`make install' will install all the files in
  1333. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1334. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1335. for instance \`--prefix=\$HOME'.
  1336. For better control, use the options below.
  1337. Fine tuning of the installation directories:
  1338. --bindir=DIR user executables [EPREFIX/bin]
  1339. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1340. --libexecdir=DIR program executables [EPREFIX/libexec]
  1341. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1342. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1343. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1344. --libdir=DIR object code libraries [EPREFIX/lib]
  1345. --includedir=DIR C header files [PREFIX/include]
  1346. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1347. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1348. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1349. --infodir=DIR info documentation [DATAROOTDIR/info]
  1350. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1351. --mandir=DIR man documentation [DATAROOTDIR/man]
  1352. --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat]
  1353. --htmldir=DIR html documentation [DOCDIR]
  1354. --dvidir=DIR dvi documentation [DOCDIR]
  1355. --pdfdir=DIR pdf documentation [DOCDIR]
  1356. --psdir=DIR ps documentation [DOCDIR]
  1357. _ACEOF
  1358. cat <<\_ACEOF
  1359. Program names:
  1360. --program-prefix=PREFIX prepend PREFIX to installed program names
  1361. --program-suffix=SUFFIX append SUFFIX to installed program names
  1362. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1363. System types:
  1364. --build=BUILD configure for building on BUILD [guessed]
  1365. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1366. _ACEOF
  1367. fi
  1368. if test -n "$ac_init_help"; then
  1369. case $ac_init_help in
  1370. short | recursive ) echo "Configuration of libusb-compat 0.1.0:";;
  1371. esac
  1372. cat <<\_ACEOF
  1373. Optional Features:
  1374. --disable-option-checking ignore unrecognized --enable/--with options
  1375. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1376. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1377. --disable-dependency-tracking speeds up one-time build
  1378. --enable-dependency-tracking do not reject slow dependency extractors
  1379. --enable-shared[=PKGS] build shared libraries [default=yes]
  1380. --enable-static[=PKGS] build static libraries [default=yes]
  1381. --enable-fast-install[=PKGS]
  1382. optimize for fast installation [default=yes]
  1383. --disable-libtool-lock avoid locking (might break parallel builds)
  1384. --disable-log disable all logging
  1385. --enable-debug-log enable debug logging (default n)
  1386. --enable-examples-build build example applications (default n)
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-pic try to use only PIC/non-PIC objects [default=use
  1391. both]
  1392. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1393. Some influential environment variables:
  1394. CC C compiler command
  1395. CFLAGS C compiler flags
  1396. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1397. nonstandard directory <lib dir>
  1398. LIBS libraries to pass to the linker, e.g. -l<library>
  1399. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1400. you have headers in a nonstandard directory <include dir>
  1401. CPP C preprocessor
  1402. PKG_CONFIG path to pkg-config utility
  1403. LIBUSB_1_0_CFLAGS
  1404. C compiler flags for LIBUSB_1_0, overriding pkg-config
  1405. LIBUSB_1_0_LIBS
  1406. linker flags for LIBUSB_1_0, overriding pkg-config
  1407. Use these variables to override the choices made by `configure' or to help
  1408. it to find libraries and programs with nonstandard names/locations.
  1409. _ACEOF
  1410. ac_status=$?
  1411. fi
  1412. if test "$ac_init_help" = "recursive"; then
  1413. # If there are subdirs, report their specific --help.
  1414. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1415. test -d "$ac_dir" ||
  1416. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1417. continue
  1418. ac_builddir=.
  1419. case "$ac_dir" in
  1420. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1421. *)
  1422. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1423. # A ".." for each directory in $ac_dir_suffix.
  1424. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1425. case $ac_top_builddir_sub in
  1426. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1427. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1428. esac ;;
  1429. esac
  1430. ac_abs_top_builddir=$ac_pwd
  1431. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1432. # for backward compatibility:
  1433. ac_top_builddir=$ac_top_build_prefix
  1434. case $srcdir in
  1435. .) # We are building in place.
  1436. ac_srcdir=.
  1437. ac_top_srcdir=$ac_top_builddir_sub
  1438. ac_abs_top_srcdir=$ac_pwd ;;
  1439. [\\/]* | ?:[\\/]* ) # Absolute name.
  1440. ac_srcdir=$srcdir$ac_dir_suffix;
  1441. ac_top_srcdir=$srcdir
  1442. ac_abs_top_srcdir=$srcdir ;;
  1443. *) # Relative name.
  1444. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1445. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1446. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1447. esac
  1448. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1449. cd "$ac_dir" || { ac_status=$?; continue; }
  1450. # Check for guested configure.
  1451. if test -f "$ac_srcdir/configure.gnu"; then
  1452. echo &&
  1453. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1454. elif test -f "$ac_srcdir/configure"; then
  1455. echo &&
  1456. $SHELL "$ac_srcdir/configure" --help=recursive
  1457. else
  1458. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1459. fi || ac_status=$?
  1460. cd "$ac_pwd" || { ac_status=$?; break; }
  1461. done
  1462. fi
  1463. test -n "$ac_init_help" && exit $ac_status
  1464. if $ac_init_version; then
  1465. cat <<\_ACEOF
  1466. libusb-compat configure 0.1.0
  1467. generated by GNU Autoconf 2.63
  1468. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1469. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1470. This configure script is free software; the Free Software Foundation
  1471. gives unlimited permission to copy, distribute and modify it.
  1472. _ACEOF
  1473. exit
  1474. fi
  1475. cat >config.log <<_ACEOF
  1476. This file contains any messages produced by compilers while
  1477. running configure, to aid debugging if configure makes a mistake.
  1478. It was created by libusb-compat $as_me 0.1.0, which was
  1479. generated by GNU Autoconf 2.63. Invocation command line was
  1480. $ $0 $@
  1481. _ACEOF
  1482. exec 5>>config.log
  1483. {
  1484. cat <<_ASUNAME
  1485. ## --------- ##
  1486. ## Platform. ##
  1487. ## --------- ##
  1488. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1489. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1490. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1491. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1492. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1493. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1494. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1495. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1496. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1497. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1498. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1499. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1500. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1501. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1502. _ASUNAME
  1503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1504. for as_dir in $PATH
  1505. do
  1506. IFS=$as_save_IFS
  1507. test -z "$as_dir" && as_dir=.
  1508. $as_echo "PATH: $as_dir"
  1509. done
  1510. IFS=$as_save_IFS
  1511. } >&5
  1512. cat >&5 <<_ACEOF
  1513. ## ----------- ##
  1514. ## Core tests. ##
  1515. ## ----------- ##
  1516. _ACEOF
  1517. # Keep a trace of the command line.
  1518. # Strip out --no-create and --no-recursion so they do not pile up.
  1519. # Strip out --silent because we don't want to record it for future runs.
  1520. # Also quote any args containing shell meta-characters.
  1521. # Make two passes to allow for proper duplicate-argument suppression.
  1522. ac_configure_args=
  1523. ac_configure_args0=
  1524. ac_configure_args1=
  1525. ac_must_keep_next=false
  1526. for ac_pass in 1 2
  1527. do
  1528. for ac_arg
  1529. do
  1530. case $ac_arg in
  1531. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1532. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1533. | -silent | --silent | --silen | --sile | --sil)
  1534. continue ;;
  1535. *\'*)
  1536. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1537. esac
  1538. case $ac_pass in
  1539. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1540. 2)
  1541. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1542. if test $ac_must_keep_next = true; then
  1543. ac_must_keep_next=false # Got value, back to normal.
  1544. else
  1545. case $ac_arg in
  1546. *=* | --config-cache | -C | -disable-* | --disable-* \
  1547. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1548. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1549. | -with-* | --with-* | -without-* | --without-* | --x)
  1550. case "$ac_configure_args0 " in
  1551. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1552. esac
  1553. ;;
  1554. -* ) ac_must_keep_next=true ;;
  1555. esac
  1556. fi
  1557. ac_configure_args="$ac_configure_args '$ac_arg'"
  1558. ;;
  1559. esac
  1560. done
  1561. done
  1562. $as_unset ac_configure_args0 || test "${ac_co…

Large files files are truncated, but you can click here to view the full file