Audio plugin host https://kx.studio/carla
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.

5776 lines
158KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for RtMidi 2.0.
  4. #
  5. # Report bugs to <gary@music.mcgill.ca>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  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. # Zsh 3.x and 4.x performs 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*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='RtMidi'
  494. PACKAGE_TARNAME='rtmidi'
  495. PACKAGE_VERSION='2.0'
  496. PACKAGE_STRING='RtMidi 2.0'
  497. PACKAGE_BUGREPORT='gary@music.mcgill.ca'
  498. ac_unique_file="RtMidi.cpp"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. GXX
  572. CXX
  573. CXXFLAGS
  574. LDFLAGS
  575. CPPFLAGS
  576. ac_ct_CXX
  577. EXEEXT
  578. OBJEXT
  579. RANLIB
  580. AR
  581. CC
  582. CFLAGS
  583. ac_ct_CC
  584. CPP
  585. GREP
  586. EGREP
  587. cppflag
  588. cxxflag
  589. object_path
  590. build
  591. build_cpu
  592. build_vendor
  593. build_os
  594. host
  595. host_cpu
  596. host_vendor
  597. host_os
  598. sharedlib
  599. sharedname
  600. libflags
  601. api
  602. LIBOBJS
  603. LTLIBOBJS'
  604. ac_subst_files=''
  605. ac_precious_vars='build_alias
  606. host_alias
  607. target_alias
  608. CXX
  609. CXXFLAGS
  610. LDFLAGS
  611. LIBS
  612. CPPFLAGS
  613. CCC
  614. CC
  615. CFLAGS
  616. CPP'
  617. # Initialize some variables set by options.
  618. ac_init_help=
  619. ac_init_version=false
  620. # The variables have the same names as the options, with
  621. # dashes changed to underlines.
  622. cache_file=/dev/null
  623. exec_prefix=NONE
  624. no_create=
  625. no_recursion=
  626. prefix=NONE
  627. program_prefix=NONE
  628. program_suffix=NONE
  629. program_transform_name=s,x,x,
  630. silent=
  631. site=
  632. srcdir=
  633. verbose=
  634. x_includes=NONE
  635. x_libraries=NONE
  636. # Installation directory options.
  637. # These are left unexpanded so users can "make install exec_prefix=/foo"
  638. # and all the variables that are supposed to be based on exec_prefix
  639. # by default will actually change.
  640. # Use braces instead of parens because sh, perl, etc. also accept them.
  641. # (The list follows the same order as the GNU Coding Standards.)
  642. bindir='${exec_prefix}/bin'
  643. sbindir='${exec_prefix}/sbin'
  644. libexecdir='${exec_prefix}/libexec'
  645. datarootdir='${prefix}/share'
  646. datadir='${datarootdir}'
  647. sysconfdir='${prefix}/etc'
  648. sharedstatedir='${prefix}/com'
  649. localstatedir='${prefix}/var'
  650. includedir='${prefix}/include'
  651. oldincludedir='/usr/include'
  652. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  653. infodir='${datarootdir}/info'
  654. htmldir='${docdir}'
  655. dvidir='${docdir}'
  656. pdfdir='${docdir}'
  657. psdir='${docdir}'
  658. libdir='${exec_prefix}/lib'
  659. localedir='${datarootdir}/locale'
  660. mandir='${datarootdir}/man'
  661. ac_prev=
  662. ac_dashdash=
  663. for ac_option
  664. do
  665. # If the previous option needs an argument, assign it.
  666. if test -n "$ac_prev"; then
  667. eval $ac_prev=\$ac_option
  668. ac_prev=
  669. continue
  670. fi
  671. case $ac_option in
  672. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  673. *) ac_optarg=yes ;;
  674. esac
  675. # Accept the important Cygnus configure options, so we can diagnose typos.
  676. case $ac_dashdash$ac_option in
  677. --)
  678. ac_dashdash=yes ;;
  679. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  680. ac_prev=bindir ;;
  681. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  682. bindir=$ac_optarg ;;
  683. -build | --build | --buil | --bui | --bu)
  684. ac_prev=build_alias ;;
  685. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  686. build_alias=$ac_optarg ;;
  687. -cache-file | --cache-file | --cache-fil | --cache-fi \
  688. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  689. ac_prev=cache_file ;;
  690. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  691. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  692. cache_file=$ac_optarg ;;
  693. --config-cache | -C)
  694. cache_file=config.cache ;;
  695. -datadir | --datadir | --datadi | --datad)
  696. ac_prev=datadir ;;
  697. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  698. datadir=$ac_optarg ;;
  699. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  700. | --dataroo | --dataro | --datar)
  701. ac_prev=datarootdir ;;
  702. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  703. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  704. datarootdir=$ac_optarg ;;
  705. -disable-* | --disable-*)
  706. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  707. # Reject names that are not valid shell variable names.
  708. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  709. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  710. { (exit 1); exit 1; }; }
  711. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  712. eval enable_$ac_feature=no ;;
  713. -docdir | --docdir | --docdi | --doc | --do)
  714. ac_prev=docdir ;;
  715. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  716. docdir=$ac_optarg ;;
  717. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  718. ac_prev=dvidir ;;
  719. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  720. dvidir=$ac_optarg ;;
  721. -enable-* | --enable-*)
  722. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  723. # Reject names that are not valid shell variable names.
  724. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  725. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  726. { (exit 1); exit 1; }; }
  727. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  728. eval enable_$ac_feature=\$ac_optarg ;;
  729. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  730. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  731. | --exec | --exe | --ex)
  732. ac_prev=exec_prefix ;;
  733. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  734. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  735. | --exec=* | --exe=* | --ex=*)
  736. exec_prefix=$ac_optarg ;;
  737. -gas | --gas | --ga | --g)
  738. # Obsolete; use --with-gas.
  739. with_gas=yes ;;
  740. -help | --help | --hel | --he | -h)
  741. ac_init_help=long ;;
  742. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  743. ac_init_help=recursive ;;
  744. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  745. ac_init_help=short ;;
  746. -host | --host | --hos | --ho)
  747. ac_prev=host_alias ;;
  748. -host=* | --host=* | --hos=* | --ho=*)
  749. host_alias=$ac_optarg ;;
  750. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  751. ac_prev=htmldir ;;
  752. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  753. | --ht=*)
  754. htmldir=$ac_optarg ;;
  755. -includedir | --includedir | --includedi | --included | --include \
  756. | --includ | --inclu | --incl | --inc)
  757. ac_prev=includedir ;;
  758. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  759. | --includ=* | --inclu=* | --incl=* | --inc=*)
  760. includedir=$ac_optarg ;;
  761. -infodir | --infodir | --infodi | --infod | --info | --inf)
  762. ac_prev=infodir ;;
  763. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  764. infodir=$ac_optarg ;;
  765. -libdir | --libdir | --libdi | --libd)
  766. ac_prev=libdir ;;
  767. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  768. libdir=$ac_optarg ;;
  769. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  770. | --libexe | --libex | --libe)
  771. ac_prev=libexecdir ;;
  772. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  773. | --libexe=* | --libex=* | --libe=*)
  774. libexecdir=$ac_optarg ;;
  775. -localedir | --localedir | --localedi | --localed | --locale)
  776. ac_prev=localedir ;;
  777. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  778. localedir=$ac_optarg ;;
  779. -localstatedir | --localstatedir | --localstatedi | --localstated \
  780. | --localstate | --localstat | --localsta | --localst | --locals)
  781. ac_prev=localstatedir ;;
  782. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  783. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  784. localstatedir=$ac_optarg ;;
  785. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  786. ac_prev=mandir ;;
  787. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  788. mandir=$ac_optarg ;;
  789. -nfp | --nfp | --nf)
  790. # Obsolete; use --without-fp.
  791. with_fp=no ;;
  792. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  793. | --no-cr | --no-c | -n)
  794. no_create=yes ;;
  795. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  796. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  797. no_recursion=yes ;;
  798. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  799. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  800. | --oldin | --oldi | --old | --ol | --o)
  801. ac_prev=oldincludedir ;;
  802. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  803. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  804. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  805. oldincludedir=$ac_optarg ;;
  806. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  807. ac_prev=prefix ;;
  808. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  809. prefix=$ac_optarg ;;
  810. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  811. | --program-pre | --program-pr | --program-p)
  812. ac_prev=program_prefix ;;
  813. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  814. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  815. program_prefix=$ac_optarg ;;
  816. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  817. | --program-suf | --program-su | --program-s)
  818. ac_prev=program_suffix ;;
  819. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  820. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  821. program_suffix=$ac_optarg ;;
  822. -program-transform-name | --program-transform-name \
  823. | --program-transform-nam | --program-transform-na \
  824. | --program-transform-n | --program-transform- \
  825. | --program-transform | --program-transfor \
  826. | --program-transfo | --program-transf \
  827. | --program-trans | --program-tran \
  828. | --progr-tra | --program-tr | --program-t)
  829. ac_prev=program_transform_name ;;
  830. -program-transform-name=* | --program-transform-name=* \
  831. | --program-transform-nam=* | --program-transform-na=* \
  832. | --program-transform-n=* | --program-transform-=* \
  833. | --program-transform=* | --program-transfor=* \
  834. | --program-transfo=* | --program-transf=* \
  835. | --program-trans=* | --program-tran=* \
  836. | --progr-tra=* | --program-tr=* | --program-t=*)
  837. program_transform_name=$ac_optarg ;;
  838. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  839. ac_prev=pdfdir ;;
  840. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  841. pdfdir=$ac_optarg ;;
  842. -psdir | --psdir | --psdi | --psd | --ps)
  843. ac_prev=psdir ;;
  844. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  845. psdir=$ac_optarg ;;
  846. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  847. | -silent | --silent | --silen | --sile | --sil)
  848. silent=yes ;;
  849. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  850. ac_prev=sbindir ;;
  851. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  852. | --sbi=* | --sb=*)
  853. sbindir=$ac_optarg ;;
  854. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  855. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  856. | --sharedst | --shareds | --shared | --share | --shar \
  857. | --sha | --sh)
  858. ac_prev=sharedstatedir ;;
  859. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  860. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  861. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  862. | --sha=* | --sh=*)
  863. sharedstatedir=$ac_optarg ;;
  864. -site | --site | --sit)
  865. ac_prev=site ;;
  866. -site=* | --site=* | --sit=*)
  867. site=$ac_optarg ;;
  868. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  869. ac_prev=srcdir ;;
  870. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  871. srcdir=$ac_optarg ;;
  872. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  873. | --syscon | --sysco | --sysc | --sys | --sy)
  874. ac_prev=sysconfdir ;;
  875. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  876. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  877. sysconfdir=$ac_optarg ;;
  878. -target | --target | --targe | --targ | --tar | --ta | --t)
  879. ac_prev=target_alias ;;
  880. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  881. target_alias=$ac_optarg ;;
  882. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  883. verbose=yes ;;
  884. -version | --version | --versio | --versi | --vers | -V)
  885. ac_init_version=: ;;
  886. -with-* | --with-*)
  887. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  888. # Reject names that are not valid shell variable names.
  889. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  890. { echo "$as_me: error: invalid package name: $ac_package" >&2
  891. { (exit 1); exit 1; }; }
  892. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  893. eval with_$ac_package=\$ac_optarg ;;
  894. -without-* | --without-*)
  895. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  896. # Reject names that are not valid shell variable names.
  897. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  898. { echo "$as_me: error: invalid package name: $ac_package" >&2
  899. { (exit 1); exit 1; }; }
  900. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  901. eval with_$ac_package=no ;;
  902. --x)
  903. # Obsolete; use --with-x.
  904. with_x=yes ;;
  905. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  906. | --x-incl | --x-inc | --x-in | --x-i)
  907. ac_prev=x_includes ;;
  908. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  909. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  910. x_includes=$ac_optarg ;;
  911. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  912. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  913. ac_prev=x_libraries ;;
  914. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  915. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  916. x_libraries=$ac_optarg ;;
  917. -*) { echo "$as_me: error: unrecognized option: $ac_option
  918. Try \`$0 --help' for more information." >&2
  919. { (exit 1); exit 1; }; }
  920. ;;
  921. *=*)
  922. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  925. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  926. { (exit 1); exit 1; }; }
  927. eval $ac_envvar=\$ac_optarg
  928. export $ac_envvar ;;
  929. *)
  930. # FIXME: should be removed in autoconf 3.0.
  931. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  932. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  933. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  934. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  935. ;;
  936. esac
  937. done
  938. if test -n "$ac_prev"; then
  939. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  940. { echo "$as_me: error: missing argument to $ac_option" >&2
  941. { (exit 1); exit 1; }; }
  942. fi
  943. # Be sure to have absolute directory names.
  944. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  945. datadir sysconfdir sharedstatedir localstatedir includedir \
  946. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  947. libdir localedir mandir
  948. do
  949. eval ac_val=\$$ac_var
  950. case $ac_val in
  951. [\\/$]* | ?:[\\/]* ) continue;;
  952. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  953. esac
  954. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  955. { (exit 1); exit 1; }; }
  956. done
  957. # There might be people who depend on the old broken behavior: `$host'
  958. # used to hold the argument of --host etc.
  959. # FIXME: To remove some day.
  960. build=$build_alias
  961. host=$host_alias
  962. target=$target_alias
  963. # FIXME: To remove some day.
  964. if test "x$host_alias" != x; then
  965. if test "x$build_alias" = x; then
  966. cross_compiling=maybe
  967. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  968. If a cross compiler is detected then cross compile mode will be used." >&2
  969. elif test "x$build_alias" != "x$host_alias"; then
  970. cross_compiling=yes
  971. fi
  972. fi
  973. ac_tool_prefix=
  974. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  975. test "$silent" = yes && exec 6>/dev/null
  976. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  977. ac_ls_di=`ls -di .` &&
  978. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  979. { echo "$as_me: error: Working directory cannot be determined" >&2
  980. { (exit 1); exit 1; }; }
  981. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  982. { echo "$as_me: error: pwd does not report name of working directory" >&2
  983. { (exit 1); exit 1; }; }
  984. # Find the source files, if location was not specified.
  985. if test -z "$srcdir"; then
  986. ac_srcdir_defaulted=yes
  987. # Try the directory containing this script, then the parent directory.
  988. ac_confdir=`$as_dirname -- "$0" ||
  989. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  990. X"$0" : 'X\(//\)[^/]' \| \
  991. X"$0" : 'X\(//\)$' \| \
  992. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  993. echo X"$0" |
  994. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  995. s//\1/
  996. q
  997. }
  998. /^X\(\/\/\)[^/].*/{
  999. s//\1/
  1000. q
  1001. }
  1002. /^X\(\/\/\)$/{
  1003. s//\1/
  1004. q
  1005. }
  1006. /^X\(\/\).*/{
  1007. s//\1/
  1008. q
  1009. }
  1010. s/.*/./; q'`
  1011. srcdir=$ac_confdir
  1012. if test ! -r "$srcdir/$ac_unique_file"; then
  1013. srcdir=..
  1014. fi
  1015. else
  1016. ac_srcdir_defaulted=no
  1017. fi
  1018. if test ! -r "$srcdir/$ac_unique_file"; then
  1019. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1020. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1021. { (exit 1); exit 1; }; }
  1022. fi
  1023. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1024. ac_abs_confdir=`(
  1025. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1026. { (exit 1); exit 1; }; }
  1027. pwd)`
  1028. # When building in place, set srcdir=.
  1029. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1030. srcdir=.
  1031. fi
  1032. # Remove unnecessary trailing slashes from srcdir.
  1033. # Double slashes in file names in object file debugging info
  1034. # mess up M-x gdb in Emacs.
  1035. case $srcdir in
  1036. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1037. esac
  1038. for ac_var in $ac_precious_vars; do
  1039. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1040. eval ac_env_${ac_var}_value=\$${ac_var}
  1041. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1042. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1043. done
  1044. #
  1045. # Report the --help message.
  1046. #
  1047. if test "$ac_init_help" = "long"; then
  1048. # Omit some internal or obsolete options to make the list less imposing.
  1049. # This message is too long to be a string in the A/UX 3.1 sh.
  1050. cat <<_ACEOF
  1051. \`configure' configures RtMidi 2.0 to adapt to many kinds of systems.
  1052. Usage: $0 [OPTION]... [VAR=VALUE]...
  1053. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1054. VAR=VALUE. See below for descriptions of some of the useful variables.
  1055. Defaults for the options are specified in brackets.
  1056. Configuration:
  1057. -h, --help display this help and exit
  1058. --help=short display options specific to this package
  1059. --help=recursive display the short help of all the included packages
  1060. -V, --version display version information and exit
  1061. -q, --quiet, --silent do not print \`checking...' messages
  1062. --cache-file=FILE cache test results in FILE [disabled]
  1063. -C, --config-cache alias for \`--cache-file=config.cache'
  1064. -n, --no-create do not create output files
  1065. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1066. Installation directories:
  1067. --prefix=PREFIX install architecture-independent files in PREFIX
  1068. [$ac_default_prefix]
  1069. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1070. [PREFIX]
  1071. By default, \`make install' will install all the files in
  1072. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1073. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1074. for instance \`--prefix=\$HOME'.
  1075. For better control, use the options below.
  1076. Fine tuning of the installation directories:
  1077. --bindir=DIR user executables [EPREFIX/bin]
  1078. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1079. --libexecdir=DIR program executables [EPREFIX/libexec]
  1080. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1081. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1082. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1083. --libdir=DIR object code libraries [EPREFIX/lib]
  1084. --includedir=DIR C header files [PREFIX/include]
  1085. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1086. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1087. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1088. --infodir=DIR info documentation [DATAROOTDIR/info]
  1089. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1090. --mandir=DIR man documentation [DATAROOTDIR/man]
  1091. --docdir=DIR documentation root [DATAROOTDIR/doc/rtmidi]
  1092. --htmldir=DIR html documentation [DOCDIR]
  1093. --dvidir=DIR dvi documentation [DOCDIR]
  1094. --pdfdir=DIR pdf documentation [DOCDIR]
  1095. --psdir=DIR ps documentation [DOCDIR]
  1096. _ACEOF
  1097. cat <<\_ACEOF
  1098. System types:
  1099. --build=BUILD configure for building on BUILD [guessed]
  1100. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1101. _ACEOF
  1102. fi
  1103. if test -n "$ac_init_help"; then
  1104. case $ac_init_help in
  1105. short | recursive ) echo "Configuration of RtMidi 2.0:";;
  1106. esac
  1107. cat <<\_ACEOF
  1108. Optional Features:
  1109. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1110. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1111. --enable-debug = enable various debug output
  1112. Optional Packages:
  1113. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1114. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1115. --with-jack = choose JACK server support (mac and linux only)
  1116. --with-alsa = choose native ALSA sequencer API support (linux only)
  1117. --with-core = choose CoreMidi API support (mac only)
  1118. --with-winmm = choose Windows MultiMedia (MM) API support (windoze only)
  1119. --with-winks = choose kernel streaming support (windoze only)
  1120. Some influential environment variables:
  1121. CXX C++ compiler command
  1122. CXXFLAGS C++ compiler flags
  1123. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1124. nonstandard directory <lib dir>
  1125. LIBS libraries to pass to the linker, e.g. -l<library>
  1126. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1127. you have headers in a nonstandard directory <include dir>
  1128. CC C compiler command
  1129. CFLAGS C compiler flags
  1130. CPP C preprocessor
  1131. Use these variables to override the choices made by `configure' or to help
  1132. it to find libraries and programs with nonstandard names/locations.
  1133. Report bugs to <gary@music.mcgill.ca>.
  1134. _ACEOF
  1135. ac_status=$?
  1136. fi
  1137. if test "$ac_init_help" = "recursive"; then
  1138. # If there are subdirs, report their specific --help.
  1139. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1140. test -d "$ac_dir" || continue
  1141. ac_builddir=.
  1142. case "$ac_dir" in
  1143. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1144. *)
  1145. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1146. # A ".." for each directory in $ac_dir_suffix.
  1147. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1148. case $ac_top_builddir_sub in
  1149. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1150. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1151. esac ;;
  1152. esac
  1153. ac_abs_top_builddir=$ac_pwd
  1154. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1155. # for backward compatibility:
  1156. ac_top_builddir=$ac_top_build_prefix
  1157. case $srcdir in
  1158. .) # We are building in place.
  1159. ac_srcdir=.
  1160. ac_top_srcdir=$ac_top_builddir_sub
  1161. ac_abs_top_srcdir=$ac_pwd ;;
  1162. [\\/]* | ?:[\\/]* ) # Absolute name.
  1163. ac_srcdir=$srcdir$ac_dir_suffix;
  1164. ac_top_srcdir=$srcdir
  1165. ac_abs_top_srcdir=$srcdir ;;
  1166. *) # Relative name.
  1167. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1168. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1169. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1170. esac
  1171. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1172. cd "$ac_dir" || { ac_status=$?; continue; }
  1173. # Check for guested configure.
  1174. if test -f "$ac_srcdir/configure.gnu"; then
  1175. echo &&
  1176. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1177. elif test -f "$ac_srcdir/configure"; then
  1178. echo &&
  1179. $SHELL "$ac_srcdir/configure" --help=recursive
  1180. else
  1181. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1182. fi || ac_status=$?
  1183. cd "$ac_pwd" || { ac_status=$?; break; }
  1184. done
  1185. fi
  1186. test -n "$ac_init_help" && exit $ac_status
  1187. if $ac_init_version; then
  1188. cat <<\_ACEOF
  1189. RtMidi configure 2.0
  1190. generated by GNU Autoconf 2.61
  1191. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1192. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1193. This configure script is free software; the Free Software Foundation
  1194. gives unlimited permission to copy, distribute and modify it.
  1195. _ACEOF
  1196. exit
  1197. fi
  1198. cat >config.log <<_ACEOF
  1199. This file contains any messages produced by compilers while
  1200. running configure, to aid debugging if configure makes a mistake.
  1201. It was created by RtMidi $as_me 2.0, which was
  1202. generated by GNU Autoconf 2.61. Invocation command line was
  1203. $ $0 $@
  1204. _ACEOF
  1205. exec 5>>config.log
  1206. {
  1207. cat <<_ASUNAME
  1208. ## --------- ##
  1209. ## Platform. ##
  1210. ## --------- ##
  1211. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1212. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1213. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1214. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1215. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1216. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1217. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1218. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1219. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1220. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1221. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1222. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1223. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1224. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1225. _ASUNAME
  1226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1227. for as_dir in $PATH
  1228. do
  1229. IFS=$as_save_IFS
  1230. test -z "$as_dir" && as_dir=.
  1231. echo "PATH: $as_dir"
  1232. done
  1233. IFS=$as_save_IFS
  1234. } >&5
  1235. cat >&5 <<_ACEOF
  1236. ## ----------- ##
  1237. ## Core tests. ##
  1238. ## ----------- ##
  1239. _ACEOF
  1240. # Keep a trace of the command line.
  1241. # Strip out --no-create and --no-recursion so they do not pile up.
  1242. # Strip out --silent because we don't want to record it for future runs.
  1243. # Also quote any args containing shell meta-characters.
  1244. # Make two passes to allow for proper duplicate-argument suppression.
  1245. ac_configure_args=
  1246. ac_configure_args0=
  1247. ac_configure_args1=
  1248. ac_must_keep_next=false
  1249. for ac_pass in 1 2
  1250. do
  1251. for ac_arg
  1252. do
  1253. case $ac_arg in
  1254. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1255. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1256. | -silent | --silent | --silen | --sile | --sil)
  1257. continue ;;
  1258. *\'*)
  1259. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1260. esac
  1261. case $ac_pass in
  1262. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1263. 2)
  1264. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1265. if test $ac_must_keep_next = true; then
  1266. ac_must_keep_next=false # Got value, back to normal.
  1267. else
  1268. case $ac_arg in
  1269. *=* | --config-cache | -C | -disable-* | --disable-* \
  1270. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1271. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1272. | -with-* | --with-* | -without-* | --without-* | --x)
  1273. case "$ac_configure_args0 " in
  1274. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1275. esac
  1276. ;;
  1277. -* ) ac_must_keep_next=true ;;
  1278. esac
  1279. fi
  1280. ac_configure_args="$ac_configure_args '$ac_arg'"
  1281. ;;
  1282. esac
  1283. done
  1284. done
  1285. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1286. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1287. # When interrupted or exit'd, cleanup temporary files, and complete
  1288. # config.log. We remove comments because anyway the quotes in there
  1289. # would cause problems or look ugly.
  1290. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1291. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1292. trap 'exit_status=$?
  1293. # Save into config.log some information that might help in debugging.
  1294. {
  1295. echo
  1296. cat <<\_ASBOX
  1297. ## ---------------- ##
  1298. ## Cache variables. ##
  1299. ## ---------------- ##
  1300. _ASBOX
  1301. echo
  1302. # The following way of writing the cache mishandles newlines in values,
  1303. (
  1304. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1305. eval ac_val=\$$ac_var
  1306. case $ac_val in #(
  1307. *${as_nl}*)
  1308. case $ac_var in #(
  1309. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1310. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1311. esac
  1312. case $ac_var in #(
  1313. _ | IFS | as_nl) ;; #(
  1314. *) $as_unset $ac_var ;;
  1315. esac ;;
  1316. esac
  1317. done
  1318. (set) 2>&1 |
  1319. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1320. *${as_nl}ac_space=\ *)
  1321. sed -n \
  1322. "s/'\''/'\''\\\\'\'''\''/g;
  1323. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1324. ;; #(
  1325. *)
  1326. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1327. ;;
  1328. esac |
  1329. sort
  1330. )
  1331. echo
  1332. cat <<\_ASBOX
  1333. ## ----------------- ##
  1334. ## Output variables. ##
  1335. ## ----------------- ##
  1336. _ASBOX
  1337. echo
  1338. for ac_var in $ac_subst_vars
  1339. do
  1340. eval ac_val=\$$ac_var
  1341. case $ac_val in
  1342. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1343. esac
  1344. echo "$ac_var='\''$ac_val'\''"
  1345. done | sort
  1346. echo
  1347. if test -n "$ac_subst_files"; then
  1348. cat <<\_ASBOX
  1349. ## ------------------- ##
  1350. ## File substitutions. ##
  1351. ## ------------------- ##
  1352. _ASBOX
  1353. echo
  1354. for ac_var in $ac_subst_files
  1355. do
  1356. eval ac_val=\$$ac_var
  1357. case $ac_val in
  1358. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1359. esac
  1360. echo "$ac_var='\''$ac_val'\''"
  1361. done | sort
  1362. echo
  1363. fi
  1364. if test -s confdefs.h; then
  1365. cat <<\_ASBOX
  1366. ## ----------- ##
  1367. ## confdefs.h. ##
  1368. ## ----------- ##
  1369. _ASBOX
  1370. echo
  1371. cat confdefs.h
  1372. echo
  1373. fi
  1374. test "$ac_signal" != 0 &&
  1375. echo "$as_me: caught signal $ac_signal"
  1376. echo "$as_me: exit $exit_status"
  1377. } >&5
  1378. rm -f core *.core core.conftest.* &&
  1379. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1380. exit $exit_status
  1381. ' 0
  1382. for ac_signal in 1 2 13 15; do
  1383. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1384. done
  1385. ac_signal=0
  1386. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1387. rm -f -r conftest* confdefs.h
  1388. # Predefined preprocessor variables.
  1389. cat >>confdefs.h <<_ACEOF
  1390. #define PACKAGE_NAME "$PACKAGE_NAME"
  1391. _ACEOF
  1392. cat >>confdefs.h <<_ACEOF
  1393. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1394. _ACEOF
  1395. cat >>confdefs.h <<_ACEOF
  1396. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1397. _ACEOF
  1398. cat >>confdefs.h <<_ACEOF
  1399. #define PACKAGE_STRING "$PACKAGE_STRING"
  1400. _ACEOF
  1401. cat >>confdefs.h <<_ACEOF
  1402. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1403. _ACEOF
  1404. # Let the site file select an alternate cache file if it wants to.
  1405. # Prefer explicitly selected file to automatically selected ones.
  1406. if test -n "$CONFIG_SITE"; then
  1407. set x "$CONFIG_SITE"
  1408. elif test "x$prefix" != xNONE; then
  1409. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1410. else
  1411. set x "$ac_default_prefix/share/config.site" \
  1412. "$ac_default_prefix/etc/config.site"
  1413. fi
  1414. shift
  1415. for ac_site_file
  1416. do
  1417. if test -r "$ac_site_file"; then
  1418. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1419. echo "$as_me: loading site script $ac_site_file" >&6;}
  1420. sed 's/^/| /' "$ac_site_file" >&5
  1421. . "$ac_site_file"
  1422. fi
  1423. done
  1424. if test -r "$cache_file"; then
  1425. # Some versions of bash will fail to source /dev/null (special
  1426. # files actually), so we avoid doing that.
  1427. if test -f "$cache_file"; then
  1428. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1429. echo "$as_me: loading cache $cache_file" >&6;}
  1430. case $cache_file in
  1431. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1432. *) . "./$cache_file";;
  1433. esac
  1434. fi
  1435. else
  1436. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1437. echo "$as_me: creating cache $cache_file" >&6;}
  1438. >$cache_file
  1439. fi
  1440. # Check that the precious variables saved in the cache have kept the same
  1441. # value.
  1442. ac_cache_corrupted=false
  1443. for ac_var in $ac_precious_vars; do
  1444. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1445. eval ac_new_set=\$ac_env_${ac_var}_set
  1446. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1447. eval ac_new_val=\$ac_env_${ac_var}_value
  1448. case $ac_old_set,$ac_new_set in
  1449. set,)
  1450. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1451. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1452. ac_cache_corrupted=: ;;
  1453. ,set)
  1454. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1455. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1456. ac_cache_corrupted=: ;;
  1457. ,);;
  1458. *)
  1459. if test "x$ac_old_val" != "x$ac_new_val"; then
  1460. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1461. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1462. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1463. echo "$as_me: former value: $ac_old_val" >&2;}
  1464. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1465. echo "$as_me: current value: $ac_new_val" >&2;}
  1466. ac_cache_corrupted=:
  1467. fi;;
  1468. esac
  1469. # Pass precious variables to config.status.
  1470. if test "$ac_new_set" = set; then
  1471. case $ac_new_val in
  1472. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1473. *) ac_arg=$ac_var=$ac_new_val ;;
  1474. esac
  1475. case " $ac_configure_args " in
  1476. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1477. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1478. esac
  1479. fi
  1480. done
  1481. if $ac_cache_corrupted; then
  1482. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1483. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1484. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1485. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1486. { (exit 1); exit 1; }; }
  1487. fi
  1488. ac_ext=c
  1489. ac_cpp='$CPP $CPPFLAGS'
  1490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1493. ac_aux_dir=
  1494. for ac_dir in config "$srcdir"/config; do
  1495. if test -f "$ac_dir/install-sh"; then
  1496. ac_aux_dir=$ac_dir
  1497. ac_install_sh="$ac_aux_dir/install-sh -c"
  1498. break
  1499. elif test -f "$ac_dir/install.sh"; then
  1500. ac_aux_dir=$ac_dir
  1501. ac_install_sh="$ac_aux_dir/install.sh -c"
  1502. break
  1503. elif test -f "$ac_dir/shtool"; then
  1504. ac_aux_dir=$ac_dir
  1505. ac_install_sh="$ac_aux_dir/shtool install -c"
  1506. break
  1507. fi
  1508. done
  1509. if test -z "$ac_aux_dir"; then
  1510. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1511. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1512. { (exit 1); exit 1; }; }
  1513. fi
  1514. # These three variables are undocumented and unsupported,
  1515. # and are intended to be withdrawn in a future Autoconf release.
  1516. # They can cause serious problems if a builder's source tree is in a directory
  1517. # whose full name contains unusual characters.
  1518. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1519. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1520. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1521. ac_config_files="$ac_config_files rtmidi-config Makefile tests/Makefile"
  1522. # Fill GXX with something before test.
  1523. GXX="no"
  1524. # Checks for programs.
  1525. ac_ext=cpp
  1526. ac_cpp='$CXXCPP $CPPFLAGS'
  1527. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1528. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1529. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1530. if test -z "$CXX"; then
  1531. if test -n "$CCC"; then
  1532. CXX=$CCC
  1533. else
  1534. if test -n "$ac_tool_prefix"; then
  1535. for ac_prog in g++ CC c++ cxx
  1536. do
  1537. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1538. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1539. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1541. if test "${ac_cv_prog_CXX+set}" = set; then
  1542. echo $ECHO_N "(cached) $ECHO_C" >&6
  1543. else
  1544. if test -n "$CXX"; then
  1545. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1546. else
  1547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1548. for as_dir in $PATH
  1549. do
  1550. IFS=$as_save_IFS
  1551. test -z "$as_dir" && as_dir=.
  1552. for ac_exec_ext in '' $ac_executable_extensions; do
  1553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1554. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1556. break 2
  1557. fi
  1558. done
  1559. done
  1560. IFS=$as_save_IFS
  1561. fi
  1562. fi
  1563. CXX=$ac_cv_prog_CXX
  1564. if test -n "$CXX"; then
  1565. { echo "$as_me:$LINENO: result: $CXX" >&5
  1566. echo "${ECHO_T}$CXX" >&6; }
  1567. else
  1568. { echo "$as_me:$LINENO: result: no" >&5
  1569. echo "${ECHO_T}no" >&6; }
  1570. fi
  1571. test -n "$CXX" && break
  1572. done
  1573. fi
  1574. if test -z "$CXX"; then
  1575. ac_ct_CXX=$CXX
  1576. for ac_prog in g++ CC c++ cxx
  1577. do
  1578. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1579. set dummy $ac_prog; ac_word=$2
  1580. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1581. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1582. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1583. echo $ECHO_N "(cached) $ECHO_C" >&6
  1584. else
  1585. if test -n "$ac_ct_CXX"; then
  1586. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1587. else
  1588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1589. for as_dir in $PATH
  1590. do
  1591. IFS=$as_save_IFS
  1592. test -z "$as_dir" && as_dir=.
  1593. for ac_exec_ext in '' $ac_executable_extensions; do
  1594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1595. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1596. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1597. break 2
  1598. fi
  1599. done
  1600. done
  1601. IFS=$as_save_IFS
  1602. fi
  1603. fi
  1604. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1605. if test -n "$ac_ct_CXX"; then
  1606. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1607. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1608. else
  1609. { echo "$as_me:$LINENO: result: no" >&5
  1610. echo "${ECHO_T}no" >&6; }
  1611. fi
  1612. test -n "$ac_ct_CXX" && break
  1613. done
  1614. if test "x$ac_ct_CXX" = x; then
  1615. CXX="g++"
  1616. else
  1617. case $cross_compiling:$ac_tool_warned in
  1618. yes:)
  1619. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1620. whose name does not start with the host triplet. If you think this
  1621. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1622. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1623. whose name does not start with the host triplet. If you think this
  1624. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1625. ac_tool_warned=yes ;;
  1626. esac
  1627. CXX=$ac_ct_CXX
  1628. fi
  1629. fi
  1630. fi
  1631. fi
  1632. # Provide some information about the compiler.
  1633. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1634. ac_compiler=`set X $ac_compile; echo $2`
  1635. { (ac_try="$ac_compiler --version >&5"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1641. (eval "$ac_compiler --version >&5") 2>&5
  1642. ac_status=$?
  1643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1644. (exit $ac_status); }
  1645. { (ac_try="$ac_compiler -v >&5"
  1646. case "(($ac_try" in
  1647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1648. *) ac_try_echo=$ac_try;;
  1649. esac
  1650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1651. (eval "$ac_compiler -v >&5") 2>&5
  1652. ac_status=$?
  1653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1654. (exit $ac_status); }
  1655. { (ac_try="$ac_compiler -V >&5"
  1656. case "(($ac_try" in
  1657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1658. *) ac_try_echo=$ac_try;;
  1659. esac
  1660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1661. (eval "$ac_compiler -V >&5") 2>&5
  1662. ac_status=$?
  1663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1664. (exit $ac_status); }
  1665. cat >conftest.$ac_ext <<_ACEOF
  1666. /* confdefs.h. */
  1667. _ACEOF
  1668. cat confdefs.h >>conftest.$ac_ext
  1669. cat >>conftest.$ac_ext <<_ACEOF
  1670. /* end confdefs.h. */
  1671. int
  1672. main ()
  1673. {
  1674. ;
  1675. return 0;
  1676. }
  1677. _ACEOF
  1678. ac_clean_files_save=$ac_clean_files
  1679. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1680. # Try to create an executable without -o first, disregard a.out.
  1681. # It will help us diagnose broken compilers, and finding out an intuition
  1682. # of exeext.
  1683. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1684. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1685. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1686. #
  1687. # List of possible output files, starting from the most likely.
  1688. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1689. # only as a last resort. b.out is created by i960 compilers.
  1690. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1691. #
  1692. # The IRIX 6 linker writes into existing files which may not be
  1693. # executable, retaining their permissions. Remove them first so a
  1694. # subsequent execution test works.
  1695. ac_rmfiles=
  1696. for ac_file in $ac_files
  1697. do
  1698. case $ac_file in
  1699. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1700. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1701. esac
  1702. done
  1703. rm -f $ac_rmfiles
  1704. if { (ac_try="$ac_link_default"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1710. (eval "$ac_link_default") 2>&5
  1711. ac_status=$?
  1712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1713. (exit $ac_status); }; then
  1714. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1715. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1716. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1717. # so that the user can short-circuit this test for compilers unknown to
  1718. # Autoconf.
  1719. for ac_file in $ac_files ''
  1720. do
  1721. test -f "$ac_file" || continue
  1722. case $ac_file in
  1723. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1724. ;;
  1725. [ab].out )
  1726. # We found the default executable, but exeext='' is most
  1727. # certainly right.
  1728. break;;
  1729. *.* )
  1730. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1731. then :; else
  1732. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1733. fi
  1734. # We set ac_cv_exeext here because the later test for it is not
  1735. # safe: cross compilers may not add the suffix if given an `-o'
  1736. # argument, so we may need to know it at that point already.
  1737. # Even if this section looks crufty: it has the advantage of
  1738. # actually working.
  1739. break;;
  1740. * )
  1741. break;;
  1742. esac
  1743. done
  1744. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1745. else
  1746. ac_file=''
  1747. fi
  1748. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1749. echo "${ECHO_T}$ac_file" >&6; }
  1750. if test -z "$ac_file"; then
  1751. echo "$as_me: failed program was:" >&5
  1752. sed 's/^/| /' conftest.$ac_ext >&5
  1753. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1754. See \`config.log' for more details." >&5
  1755. echo "$as_me: error: C++ compiler cannot create executables
  1756. See \`config.log' for more details." >&2;}
  1757. { (exit 77); exit 77; }; }
  1758. fi
  1759. ac_exeext=$ac_cv_exeext
  1760. # Check that the compiler produces executables we can run. If not, either
  1761. # the compiler is broken, or we cross compile.
  1762. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1763. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1764. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1765. # If not cross compiling, check that we can run a simple program.
  1766. if test "$cross_compiling" != yes; then
  1767. if { ac_try='./$ac_file'
  1768. { (case "(($ac_try" in
  1769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1770. *) ac_try_echo=$ac_try;;
  1771. esac
  1772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1773. (eval "$ac_try") 2>&5
  1774. ac_status=$?
  1775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1776. (exit $ac_status); }; }; then
  1777. cross_compiling=no
  1778. else
  1779. if test "$cross_compiling" = maybe; then
  1780. cross_compiling=yes
  1781. else
  1782. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1783. If you meant to cross compile, use \`--host'.
  1784. See \`config.log' for more details." >&5
  1785. echo "$as_me: error: cannot run C++ compiled programs.
  1786. If you meant to cross compile, use \`--host'.
  1787. See \`config.log' for more details." >&2;}
  1788. { (exit 1); exit 1; }; }
  1789. fi
  1790. fi
  1791. fi
  1792. { echo "$as_me:$LINENO: result: yes" >&5
  1793. echo "${ECHO_T}yes" >&6; }
  1794. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1795. ac_clean_files=$ac_clean_files_save
  1796. # Check that the compiler produces executables we can run. If not, either
  1797. # the compiler is broken, or we cross compile.
  1798. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1799. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1800. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1801. echo "${ECHO_T}$cross_compiling" >&6; }
  1802. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1803. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1804. if { (ac_try="$ac_link"
  1805. case "(($ac_try" in
  1806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1807. *) ac_try_echo=$ac_try;;
  1808. esac
  1809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1810. (eval "$ac_link") 2>&5
  1811. ac_status=$?
  1812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1813. (exit $ac_status); }; then
  1814. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1815. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1816. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1817. # `rm'.
  1818. for ac_file in conftest.exe conftest conftest.*; do
  1819. test -f "$ac_file" || continue
  1820. case $ac_file in
  1821. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1822. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1823. break;;
  1824. * ) break;;
  1825. esac
  1826. done
  1827. else
  1828. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1829. See \`config.log' for more details." >&5
  1830. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1831. See \`config.log' for more details." >&2;}
  1832. { (exit 1); exit 1; }; }
  1833. fi
  1834. rm -f conftest$ac_cv_exeext
  1835. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1836. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1837. rm -f conftest.$ac_ext
  1838. EXEEXT=$ac_cv_exeext
  1839. ac_exeext=$EXEEXT
  1840. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1841. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1842. if test "${ac_cv_objext+set}" = set; then
  1843. echo $ECHO_N "(cached) $ECHO_C" >&6
  1844. else
  1845. cat >conftest.$ac_ext <<_ACEOF
  1846. /* confdefs.h. */
  1847. _ACEOF
  1848. cat confdefs.h >>conftest.$ac_ext
  1849. cat >>conftest.$ac_ext <<_ACEOF
  1850. /* end confdefs.h. */
  1851. int
  1852. main ()
  1853. {
  1854. ;
  1855. return 0;
  1856. }
  1857. _ACEOF
  1858. rm -f conftest.o conftest.obj
  1859. if { (ac_try="$ac_compile"
  1860. case "(($ac_try" in
  1861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862. *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1865. (eval "$ac_compile") 2>&5
  1866. ac_status=$?
  1867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1868. (exit $ac_status); }; then
  1869. for ac_file in conftest.o conftest.obj conftest.*; do
  1870. test -f "$ac_file" || continue;
  1871. case $ac_file in
  1872. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1873. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1874. break;;
  1875. esac
  1876. done
  1877. else
  1878. echo "$as_me: failed program was:" >&5
  1879. sed 's/^/| /' conftest.$ac_ext >&5
  1880. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1881. See \`config.log' for more details." >&5
  1882. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1883. See \`config.log' for more details." >&2;}
  1884. { (exit 1); exit 1; }; }
  1885. fi
  1886. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1887. fi
  1888. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1889. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1890. OBJEXT=$ac_cv_objext
  1891. ac_objext=$OBJEXT
  1892. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1893. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1894. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1895. echo $ECHO_N "(cached) $ECHO_C" >&6
  1896. else
  1897. cat >conftest.$ac_ext <<_ACEOF
  1898. /* confdefs.h. */
  1899. _ACEOF
  1900. cat confdefs.h >>conftest.$ac_ext
  1901. cat >>conftest.$ac_ext <<_ACEOF
  1902. /* end confdefs.h. */
  1903. int
  1904. main ()
  1905. {
  1906. #ifndef __GNUC__
  1907. choke me
  1908. #endif
  1909. ;
  1910. return 0;
  1911. }
  1912. _ACEOF
  1913. rm -f conftest.$ac_objext
  1914. if { (ac_try="$ac_compile"
  1915. case "(($ac_try" in
  1916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1917. *) ac_try_echo=$ac_try;;
  1918. esac
  1919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1920. (eval "$ac_compile") 2>conftest.er1
  1921. ac_status=$?
  1922. grep -v '^ *+' conftest.er1 >conftest.err
  1923. rm -f conftest.er1
  1924. cat conftest.err >&5
  1925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1926. (exit $ac_status); } && {
  1927. test -z "$ac_cxx_werror_flag" ||
  1928. test ! -s conftest.err
  1929. } && test -s conftest.$ac_objext; then
  1930. ac_compiler_gnu=yes
  1931. else
  1932. echo "$as_me: failed program was:" >&5
  1933. sed 's/^/| /' conftest.$ac_ext >&5
  1934. ac_compiler_gnu=no
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1938. fi
  1939. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1940. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1941. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1942. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1943. ac_save_CXXFLAGS=$CXXFLAGS
  1944. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1945. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1946. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1950. ac_cxx_werror_flag=yes
  1951. ac_cv_prog_cxx_g=no
  1952. CXXFLAGS="-g"
  1953. cat >conftest.$ac_ext <<_ACEOF
  1954. /* confdefs.h. */
  1955. _ACEOF
  1956. cat confdefs.h >>conftest.$ac_ext
  1957. cat >>conftest.$ac_ext <<_ACEOF
  1958. /* end confdefs.h. */
  1959. int
  1960. main ()
  1961. {
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. rm -f conftest.$ac_objext
  1967. if { (ac_try="$ac_compile"
  1968. case "(($ac_try" in
  1969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1970. *) ac_try_echo=$ac_try;;
  1971. esac
  1972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1973. (eval "$ac_compile") 2>conftest.er1
  1974. ac_status=$?
  1975. grep -v '^ *+' conftest.er1 >conftest.err
  1976. rm -f conftest.er1
  1977. cat conftest.err >&5
  1978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1979. (exit $ac_status); } && {
  1980. test -z "$ac_cxx_werror_flag" ||
  1981. test ! -s conftest.err
  1982. } && test -s conftest.$ac_objext; then
  1983. ac_cv_prog_cxx_g=yes
  1984. else
  1985. echo "$as_me: failed program was:" >&5
  1986. sed 's/^/| /' conftest.$ac_ext >&5
  1987. CXXFLAGS=""
  1988. cat >conftest.$ac_ext <<_ACEOF
  1989. /* confdefs.h. */
  1990. _ACEOF
  1991. cat confdefs.h >>conftest.$ac_ext
  1992. cat >>conftest.$ac_ext <<_ACEOF
  1993. /* end confdefs.h. */
  1994. int
  1995. main ()
  1996. {
  1997. ;
  1998. return 0;
  1999. }
  2000. _ACEOF
  2001. rm -f conftest.$ac_objext
  2002. if { (ac_try="$ac_compile"
  2003. case "(($ac_try" in
  2004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2005. *) ac_try_echo=$ac_try;;
  2006. esac
  2007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2008. (eval "$ac_compile") 2>conftest.er1
  2009. ac_status=$?
  2010. grep -v '^ *+' conftest.er1 >conftest.err
  2011. rm -f conftest.er1
  2012. cat conftest.err >&5
  2013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2014. (exit $ac_status); } && {
  2015. test -z "$ac_cxx_werror_flag" ||
  2016. test ! -s conftest.err
  2017. } && test -s conftest.$ac_objext; then
  2018. :
  2019. else
  2020. echo "$as_me: failed program was:" >&5
  2021. sed 's/^/| /' conftest.$ac_ext >&5
  2022. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2023. CXXFLAGS="-g"
  2024. cat >conftest.$ac_ext <<_ACEOF
  2025. /* confdefs.h. */
  2026. _ACEOF
  2027. cat confdefs.h >>conftest.$ac_ext
  2028. cat >>conftest.$ac_ext <<_ACEOF
  2029. /* end confdefs.h. */
  2030. int
  2031. main ()
  2032. {
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. rm -f conftest.$ac_objext
  2038. if { (ac_try="$ac_compile"
  2039. case "(($ac_try" in
  2040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2041. *) ac_try_echo=$ac_try;;
  2042. esac
  2043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2044. (eval "$ac_compile") 2>conftest.er1
  2045. ac_status=$?
  2046. grep -v '^ *+' conftest.er1 >conftest.err
  2047. rm -f conftest.er1
  2048. cat conftest.err >&5
  2049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2050. (exit $ac_status); } && {
  2051. test -z "$ac_cxx_werror_flag" ||
  2052. test ! -s conftest.err
  2053. } && test -s conftest.$ac_objext; then
  2054. ac_cv_prog_cxx_g=yes
  2055. else
  2056. echo "$as_me: failed program was:" >&5
  2057. sed 's/^/| /' conftest.$ac_ext >&5
  2058. fi
  2059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2060. fi
  2061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2064. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2065. fi
  2066. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2067. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2068. if test "$ac_test_CXXFLAGS" = set; then
  2069. CXXFLAGS=$ac_save_CXXFLAGS
  2070. elif test $ac_cv_prog_cxx_g = yes; then
  2071. if test "$GXX" = yes; then
  2072. CXXFLAGS="-g -O2"
  2073. else
  2074. CXXFLAGS="-g"
  2075. fi
  2076. else
  2077. if test "$GXX" = yes; then
  2078. CXXFLAGS="-O2"
  2079. else
  2080. CXXFLAGS=
  2081. fi
  2082. fi
  2083. ac_ext=c
  2084. ac_cpp='$CPP $CPPFLAGS'
  2085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2088. if test -n "$ac_tool_prefix"; then
  2089. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2090. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2091. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2093. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2094. echo $ECHO_N "(cached) $ECHO_C" >&6
  2095. else
  2096. if test -n "$RANLIB"; then
  2097. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2106. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2107. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2108. break 2
  2109. fi
  2110. done
  2111. done
  2112. IFS=$as_save_IFS
  2113. fi
  2114. fi
  2115. RANLIB=$ac_cv_prog_RANLIB
  2116. if test -n "$RANLIB"; then
  2117. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  2118. echo "${ECHO_T}$RANLIB" >&6; }
  2119. else
  2120. { echo "$as_me:$LINENO: result: no" >&5
  2121. echo "${ECHO_T}no" >&6; }
  2122. fi
  2123. fi
  2124. if test -z "$ac_cv_prog_RANLIB"; then
  2125. ac_ct_RANLIB=$RANLIB
  2126. # Extract the first word of "ranlib", so it can be a program name with args.
  2127. set dummy ranlib; ac_word=$2
  2128. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2129. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2130. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2131. echo $ECHO_N "(cached) $ECHO_C" >&6
  2132. else
  2133. if test -n "$ac_ct_RANLIB"; then
  2134. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2135. else
  2136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2137. for as_dir in $PATH
  2138. do
  2139. IFS=$as_save_IFS
  2140. test -z "$as_dir" && as_dir=.
  2141. for ac_exec_ext in '' $ac_executable_extensions; do
  2142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2143. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2144. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2145. break 2
  2146. fi
  2147. done
  2148. done
  2149. IFS=$as_save_IFS
  2150. fi
  2151. fi
  2152. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2153. if test -n "$ac_ct_RANLIB"; then
  2154. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2155. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  2156. else
  2157. { echo "$as_me:$LINENO: result: no" >&5
  2158. echo "${ECHO_T}no" >&6; }
  2159. fi
  2160. if test "x$ac_ct_RANLIB" = x; then
  2161. RANLIB=":"
  2162. else
  2163. case $cross_compiling:$ac_tool_warned in
  2164. yes:)
  2165. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2166. whose name does not start with the host triplet. If you think this
  2167. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2168. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2169. whose name does not start with the host triplet. If you think this
  2170. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2171. ac_tool_warned=yes ;;
  2172. esac
  2173. RANLIB=$ac_ct_RANLIB
  2174. fi
  2175. else
  2176. RANLIB="$ac_cv_prog_RANLIB"
  2177. fi
  2178. # Extract the first word of "ar", so it can be a program name with args.
  2179. set dummy ar; ac_word=$2
  2180. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2181. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2182. if test "${ac_cv_path_AR+set}" = set; then
  2183. echo $ECHO_N "(cached) $ECHO_C" >&6
  2184. else
  2185. case $AR in
  2186. [\\/]* | ?:[\\/]*)
  2187. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  2188. ;;
  2189. *)
  2190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2191. for as_dir in $PATH
  2192. do
  2193. IFS=$as_save_IFS
  2194. test -z "$as_dir" && as_dir=.
  2195. for ac_exec_ext in '' $ac_executable_extensions; do
  2196. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2197. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  2198. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2199. break 2
  2200. fi
  2201. done
  2202. done
  2203. IFS=$as_save_IFS
  2204. test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
  2205. ;;
  2206. esac
  2207. fi
  2208. AR=$ac_cv_path_AR
  2209. if test -n "$AR"; then
  2210. { echo "$as_me:$LINENO: result: $AR" >&5
  2211. echo "${ECHO_T}$AR" >&6; }
  2212. else
  2213. { echo "$as_me:$LINENO: result: no" >&5
  2214. echo "${ECHO_T}no" >&6; }
  2215. fi
  2216. if [ $AR = "no" ] ; then
  2217. { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
  2218. echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
  2219. { (exit 1); exit 1; }; };
  2220. fi
  2221. # Checks for header files.
  2222. ac_ext=c
  2223. ac_cpp='$CPP $CPPFLAGS'
  2224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2227. if test -n "$ac_tool_prefix"; then
  2228. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2229. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2230. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2231. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2232. if test "${ac_cv_prog_CC+set}" = set; then
  2233. echo $ECHO_N "(cached) $ECHO_C" >&6
  2234. else
  2235. if test -n "$CC"; then
  2236. ac_cv_prog_CC="$CC" # Let the user override the test.
  2237. else
  2238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2239. for as_dir in $PATH
  2240. do
  2241. IFS=$as_save_IFS
  2242. test -z "$as_dir" && as_dir=.
  2243. for ac_exec_ext in '' $ac_executable_extensions; do
  2244. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2245. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2246. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2247. break 2
  2248. fi
  2249. done
  2250. done
  2251. IFS=$as_save_IFS
  2252. fi
  2253. fi
  2254. CC=$ac_cv_prog_CC
  2255. if test -n "$CC"; then
  2256. { echo "$as_me:$LINENO: result: $CC" >&5
  2257. echo "${ECHO_T}$CC" >&6; }
  2258. else
  2259. { echo "$as_me:$LINENO: result: no" >&5
  2260. echo "${ECHO_T}no" >&6; }
  2261. fi
  2262. fi
  2263. if test -z "$ac_cv_prog_CC"; then
  2264. ac_ct_CC=$CC
  2265. # Extract the first word of "gcc", so it can be a program name with args.
  2266. set dummy gcc; ac_word=$2
  2267. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2268. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2269. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2270. echo $ECHO_N "(cached) $ECHO_C" >&6
  2271. else
  2272. if test -n "$ac_ct_CC"; then
  2273. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2274. else
  2275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2276. for as_dir in $PATH
  2277. do
  2278. IFS=$as_save_IFS
  2279. test -z "$as_dir" && as_dir=.
  2280. for ac_exec_ext in '' $ac_executable_extensions; do
  2281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2282. ac_cv_prog_ac_ct_CC="gcc"
  2283. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2284. break 2
  2285. fi
  2286. done
  2287. done
  2288. IFS=$as_save_IFS
  2289. fi
  2290. fi
  2291. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2292. if test -n "$ac_ct_CC"; then
  2293. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2294. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2295. else
  2296. { echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6; }
  2298. fi
  2299. if test "x$ac_ct_CC" = x; then
  2300. CC=""
  2301. else
  2302. case $cross_compiling:$ac_tool_warned in
  2303. yes:)
  2304. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2305. whose name does not start with the host triplet. If you think this
  2306. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2307. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2308. whose name does not start with the host triplet. If you think this
  2309. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2310. ac_tool_warned=yes ;;
  2311. esac
  2312. CC=$ac_ct_CC
  2313. fi
  2314. else
  2315. CC="$ac_cv_prog_CC"
  2316. fi
  2317. if test -z "$CC"; then
  2318. if test -n "$ac_tool_prefix"; then
  2319. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2320. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2321. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2322. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2323. if test "${ac_cv_prog_CC+set}" = set; then
  2324. echo $ECHO_N "(cached) $ECHO_C" >&6
  2325. else
  2326. if test -n "$CC"; then
  2327. ac_cv_prog_CC="$CC" # Let the user override the test.
  2328. else
  2329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. for as_dir in $PATH
  2331. do
  2332. IFS=$as_save_IFS
  2333. test -z "$as_dir" && as_dir=.
  2334. for ac_exec_ext in '' $ac_executable_extensions; do
  2335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2336. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2337. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2338. break 2
  2339. fi
  2340. done
  2341. done
  2342. IFS=$as_save_IFS
  2343. fi
  2344. fi
  2345. CC=$ac_cv_prog_CC
  2346. if test -n "$CC"; then
  2347. { echo "$as_me:$LINENO: result: $CC" >&5
  2348. echo "${ECHO_T}$CC" >&6; }
  2349. else
  2350. { echo "$as_me:$LINENO: result: no" >&5
  2351. echo "${ECHO_T}no" >&6; }
  2352. fi
  2353. fi
  2354. fi
  2355. if test -z "$CC"; then
  2356. # Extract the first word of "cc", so it can be a program name with args.
  2357. set dummy cc; ac_word=$2
  2358. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2359. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2360. if test "${ac_cv_prog_CC+set}" = set; then
  2361. echo $ECHO_N "(cached) $ECHO_C" >&6
  2362. else
  2363. if test -n "$CC"; then
  2364. ac_cv_prog_CC="$CC" # Let the user override the test.
  2365. else
  2366. ac_prog_rejected=no
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. test -z "$as_dir" && as_dir=.
  2372. for ac_exec_ext in '' $ac_executable_extensions; do
  2373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2374. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2375. ac_prog_rejected=yes
  2376. continue
  2377. fi
  2378. ac_cv_prog_CC="cc"
  2379. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2380. break 2
  2381. fi
  2382. done
  2383. done
  2384. IFS=$as_save_IFS
  2385. if test $ac_prog_rejected = yes; then
  2386. # We found a bogon in the path, so make sure we never use it.
  2387. set dummy $ac_cv_prog_CC
  2388. shift
  2389. if test $# != 0; then
  2390. # We chose a different compiler from the bogus one.
  2391. # However, it has the same basename, so the bogon will be chosen
  2392. # first if we set CC to just the basename; use the full file name.
  2393. shift
  2394. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2395. fi
  2396. fi
  2397. fi
  2398. fi
  2399. CC=$ac_cv_prog_CC
  2400. if test -n "$CC"; then
  2401. { echo "$as_me:$LINENO: result: $CC" >&5
  2402. echo "${ECHO_T}$CC" >&6; }
  2403. else
  2404. { echo "$as_me:$LINENO: result: no" >&5
  2405. echo "${ECHO_T}no" >&6; }
  2406. fi
  2407. fi
  2408. if test -z "$CC"; then
  2409. if test -n "$ac_tool_prefix"; then
  2410. for ac_prog in cl.exe
  2411. do
  2412. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2413. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2414. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2416. if test "${ac_cv_prog_CC+set}" = set; then
  2417. echo $ECHO_N "(cached) $ECHO_C" >&6
  2418. else
  2419. if test -n "$CC"; then
  2420. ac_cv_prog_CC="$CC" # Let the user override the test.
  2421. else
  2422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2423. for as_dir in $PATH
  2424. do
  2425. IFS=$as_save_IFS
  2426. test -z "$as_dir" && as_dir=.
  2427. for ac_exec_ext in '' $ac_executable_extensions; do
  2428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2429. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2431. break 2
  2432. fi
  2433. done
  2434. done
  2435. IFS=$as_save_IFS
  2436. fi
  2437. fi
  2438. CC=$ac_cv_prog_CC
  2439. if test -n "$CC"; then
  2440. { echo "$as_me:$LINENO: result: $CC" >&5
  2441. echo "${ECHO_T}$CC" >&6; }
  2442. else
  2443. { echo "$as_me:$LINENO: result: no" >&5
  2444. echo "${ECHO_T}no" >&6; }
  2445. fi
  2446. test -n "$CC" && break
  2447. done
  2448. fi
  2449. if test -z "$CC"; then
  2450. ac_ct_CC=$CC
  2451. for ac_prog in cl.exe
  2452. do
  2453. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2454. set dummy $ac_prog; ac_word=$2
  2455. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2456. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2457. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2458. echo $ECHO_N "(cached) $ECHO_C" >&6
  2459. else
  2460. if test -n "$ac_ct_CC"; then
  2461. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2462. else
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. for ac_exec_ext in '' $ac_executable_extensions; do
  2469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2470. ac_cv_prog_ac_ct_CC="$ac_prog"
  2471. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. break 2
  2473. fi
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. fi
  2479. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2480. if test -n "$ac_ct_CC"; then
  2481. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2482. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2483. else
  2484. { echo "$as_me:$LINENO: result: no" >&5
  2485. echo "${ECHO_T}no" >&6; }
  2486. fi
  2487. test -n "$ac_ct_CC" && break
  2488. done
  2489. if test "x$ac_ct_CC" = x; then
  2490. CC=""
  2491. else
  2492. case $cross_compiling:$ac_tool_warned in
  2493. yes:)
  2494. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2495. whose name does not start with the host triplet. If you think this
  2496. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2497. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2498. whose name does not start with the host triplet. If you think this
  2499. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2500. ac_tool_warned=yes ;;
  2501. esac
  2502. CC=$ac_ct_CC
  2503. fi
  2504. fi
  2505. fi
  2506. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2507. See \`config.log' for more details." >&5
  2508. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2509. See \`config.log' for more details." >&2;}
  2510. { (exit 1); exit 1; }; }
  2511. # Provide some information about the compiler.
  2512. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2513. ac_compiler=`set X $ac_compile; echo $2`
  2514. { (ac_try="$ac_compiler --version >&5"
  2515. case "(($ac_try" in
  2516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2517. *) ac_try_echo=$ac_try;;
  2518. esac
  2519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2520. (eval "$ac_compiler --version >&5") 2>&5
  2521. ac_status=$?
  2522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2523. (exit $ac_status); }
  2524. { (ac_try="$ac_compiler -v >&5"
  2525. case "(($ac_try" in
  2526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2527. *) ac_try_echo=$ac_try;;
  2528. esac
  2529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2530. (eval "$ac_compiler -v >&5") 2>&5
  2531. ac_status=$?
  2532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2533. (exit $ac_status); }
  2534. { (ac_try="$ac_compiler -V >&5"
  2535. case "(($ac_try" in
  2536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2537. *) ac_try_echo=$ac_try;;
  2538. esac
  2539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2540. (eval "$ac_compiler -V >&5") 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }
  2544. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2545. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2546. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2547. echo $ECHO_N "(cached) $ECHO_C" >&6
  2548. else
  2549. cat >conftest.$ac_ext <<_ACEOF
  2550. /* confdefs.h. */
  2551. _ACEOF
  2552. cat confdefs.h >>conftest.$ac_ext
  2553. cat >>conftest.$ac_ext <<_ACEOF
  2554. /* end confdefs.h. */
  2555. int
  2556. main ()
  2557. {
  2558. #ifndef __GNUC__
  2559. choke me
  2560. #endif
  2561. ;
  2562. return 0;
  2563. }
  2564. _ACEOF
  2565. rm -f conftest.$ac_objext
  2566. if { (ac_try="$ac_compile"
  2567. case "(($ac_try" in
  2568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2569. *) ac_try_echo=$ac_try;;
  2570. esac
  2571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2572. (eval "$ac_compile") 2>conftest.er1
  2573. ac_status=$?
  2574. grep -v '^ *+' conftest.er1 >conftest.err
  2575. rm -f conftest.er1
  2576. cat conftest.err >&5
  2577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2578. (exit $ac_status); } && {
  2579. test -z "$ac_c_werror_flag" ||
  2580. test ! -s conftest.err
  2581. } && test -s conftest.$ac_objext; then
  2582. ac_compiler_gnu=yes
  2583. else
  2584. echo "$as_me: failed program was:" >&5
  2585. sed 's/^/| /' conftest.$ac_ext >&5
  2586. ac_compiler_gnu=no
  2587. fi
  2588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2589. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2590. fi
  2591. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2592. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2593. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2594. ac_test_CFLAGS=${CFLAGS+set}
  2595. ac_save_CFLAGS=$CFLAGS
  2596. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2597. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2598. if test "${ac_cv_prog_cc_g+set}" = set; then
  2599. echo $ECHO_N "(cached) $ECHO_C" >&6
  2600. else
  2601. ac_save_c_werror_flag=$ac_c_werror_flag
  2602. ac_c_werror_flag=yes
  2603. ac_cv_prog_cc_g=no
  2604. CFLAGS="-g"
  2605. cat >conftest.$ac_ext <<_ACEOF
  2606. /* confdefs.h. */
  2607. _ACEOF
  2608. cat confdefs.h >>conftest.$ac_ext
  2609. cat >>conftest.$ac_ext <<_ACEOF
  2610. /* end confdefs.h. */
  2611. int
  2612. main ()
  2613. {
  2614. ;
  2615. return 0;
  2616. }
  2617. _ACEOF
  2618. rm -f conftest.$ac_objext
  2619. if { (ac_try="$ac_compile"
  2620. case "(($ac_try" in
  2621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2622. *) ac_try_echo=$ac_try;;
  2623. esac
  2624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2625. (eval "$ac_compile") 2>conftest.er1
  2626. ac_status=$?
  2627. grep -v '^ *+' conftest.er1 >conftest.err
  2628. rm -f conftest.er1
  2629. cat conftest.err >&5
  2630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2631. (exit $ac_status); } && {
  2632. test -z "$ac_c_werror_flag" ||
  2633. test ! -s conftest.err
  2634. } && test -s conftest.$ac_objext; then
  2635. ac_cv_prog_cc_g=yes
  2636. else
  2637. echo "$as_me: failed program was:" >&5
  2638. sed 's/^/| /' conftest.$ac_ext >&5
  2639. CFLAGS=""
  2640. cat >conftest.$ac_ext <<_ACEOF
  2641. /* confdefs.h. */
  2642. _ACEOF
  2643. cat confdefs.h >>conftest.$ac_ext
  2644. cat >>conftest.$ac_ext <<_ACEOF
  2645. /* end confdefs.h. */
  2646. int
  2647. main ()
  2648. {
  2649. ;
  2650. return 0;
  2651. }
  2652. _ACEOF
  2653. rm -f conftest.$ac_objext
  2654. if { (ac_try="$ac_compile"
  2655. case "(($ac_try" in
  2656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2657. *) ac_try_echo=$ac_try;;
  2658. esac
  2659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2660. (eval "$ac_compile") 2>conftest.er1
  2661. ac_status=$?
  2662. grep -v '^ *+' conftest.er1 >conftest.err
  2663. rm -f conftest.er1
  2664. cat conftest.err >&5
  2665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2666. (exit $ac_status); } && {
  2667. test -z "$ac_c_werror_flag" ||
  2668. test ! -s conftest.err
  2669. } && test -s conftest.$ac_objext; then
  2670. :
  2671. else
  2672. echo "$as_me: failed program was:" >&5
  2673. sed 's/^/| /' conftest.$ac_ext >&5
  2674. ac_c_werror_flag=$ac_save_c_werror_flag
  2675. CFLAGS="-g"
  2676. cat >conftest.$ac_ext <<_ACEOF
  2677. /* confdefs.h. */
  2678. _ACEOF
  2679. cat confdefs.h >>conftest.$ac_ext
  2680. cat >>conftest.$ac_ext <<_ACEOF
  2681. /* end confdefs.h. */
  2682. int
  2683. main ()
  2684. {
  2685. ;
  2686. return 0;
  2687. }
  2688. _ACEOF
  2689. rm -f conftest.$ac_objext
  2690. if { (ac_try="$ac_compile"
  2691. case "(($ac_try" in
  2692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2693. *) ac_try_echo=$ac_try;;
  2694. esac
  2695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2696. (eval "$ac_compile") 2>conftest.er1
  2697. ac_status=$?
  2698. grep -v '^ *+' conftest.er1 >conftest.err
  2699. rm -f conftest.er1
  2700. cat conftest.err >&5
  2701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2702. (exit $ac_status); } && {
  2703. test -z "$ac_c_werror_flag" ||
  2704. test ! -s conftest.err
  2705. } && test -s conftest.$ac_objext; then
  2706. ac_cv_prog_cc_g=yes
  2707. else
  2708. echo "$as_me: failed program was:" >&5
  2709. sed 's/^/| /' conftest.$ac_ext >&5
  2710. fi
  2711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2712. fi
  2713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. ac_c_werror_flag=$ac_save_c_werror_flag
  2717. fi
  2718. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2719. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2720. if test "$ac_test_CFLAGS" = set; then
  2721. CFLAGS=$ac_save_CFLAGS
  2722. elif test $ac_cv_prog_cc_g = yes; then
  2723. if test "$GCC" = yes; then
  2724. CFLAGS="-g -O2"
  2725. else
  2726. CFLAGS="-g"
  2727. fi
  2728. else
  2729. if test "$GCC" = yes; then
  2730. CFLAGS="-O2"
  2731. else
  2732. CFLAGS=
  2733. fi
  2734. fi
  2735. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2736. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2737. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2738. echo $ECHO_N "(cached) $ECHO_C" >&6
  2739. else
  2740. ac_cv_prog_cc_c89=no
  2741. ac_save_CC=$CC
  2742. cat >conftest.$ac_ext <<_ACEOF
  2743. /* confdefs.h. */
  2744. _ACEOF
  2745. cat confdefs.h >>conftest.$ac_ext
  2746. cat >>conftest.$ac_ext <<_ACEOF
  2747. /* end confdefs.h. */
  2748. #include <stdarg.h>
  2749. #include <stdio.h>
  2750. #include <sys/types.h>
  2751. #include <sys/stat.h>
  2752. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2753. struct buf { int x; };
  2754. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2755. static char *e (p, i)
  2756. char **p;
  2757. int i;
  2758. {
  2759. return p[i];
  2760. }
  2761. static char *f (char * (*g) (char **, int), char **p, ...)
  2762. {
  2763. char *s;
  2764. va_list v;
  2765. va_start (v,p);
  2766. s = g (p, va_arg (v,int));
  2767. va_end (v);
  2768. return s;
  2769. }
  2770. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2771. function prototypes and stuff, but not '\xHH' hex character constants.
  2772. These don't provoke an error unfortunately, instead are silently treated
  2773. as 'x'. The following induces an error, until -std is added to get
  2774. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2775. array size at least. It's necessary to write '\x00'==0 to get something
  2776. that's true only with -std. */
  2777. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2778. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2779. inside strings and character constants. */
  2780. #define FOO(x) 'x'
  2781. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2782. int test (int i, double x);
  2783. struct s1 {int (*f) (int a);};
  2784. struct s2 {int (*f) (double a);};
  2785. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2786. int argc;
  2787. char **argv;
  2788. int
  2789. main ()
  2790. {
  2791. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2792. ;
  2793. return 0;
  2794. }
  2795. _ACEOF
  2796. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2797. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2798. do
  2799. CC="$ac_save_CC $ac_arg"
  2800. rm -f conftest.$ac_objext
  2801. if { (ac_try="$ac_compile"
  2802. case "(($ac_try" in
  2803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2804. *) ac_try_echo=$ac_try;;
  2805. esac
  2806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2807. (eval "$ac_compile") 2>conftest.er1
  2808. ac_status=$?
  2809. grep -v '^ *+' conftest.er1 >conftest.err
  2810. rm -f conftest.er1
  2811. cat conftest.err >&5
  2812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2813. (exit $ac_status); } && {
  2814. test -z "$ac_c_werror_flag" ||
  2815. test ! -s conftest.err
  2816. } && test -s conftest.$ac_objext; then
  2817. ac_cv_prog_cc_c89=$ac_arg
  2818. else
  2819. echo "$as_me: failed program was:" >&5
  2820. sed 's/^/| /' conftest.$ac_ext >&5
  2821. fi
  2822. rm -f core conftest.err conftest.$ac_objext
  2823. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2824. done
  2825. rm -f conftest.$ac_ext
  2826. CC=$ac_save_CC
  2827. fi
  2828. # AC_CACHE_VAL
  2829. case "x$ac_cv_prog_cc_c89" in
  2830. x)
  2831. { echo "$as_me:$LINENO: result: none needed" >&5
  2832. echo "${ECHO_T}none needed" >&6; } ;;
  2833. xno)
  2834. { echo "$as_me:$LINENO: result: unsupported" >&5
  2835. echo "${ECHO_T}unsupported" >&6; } ;;
  2836. *)
  2837. CC="$CC $ac_cv_prog_cc_c89"
  2838. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2839. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2840. esac
  2841. ac_ext=c
  2842. ac_cpp='$CPP $CPPFLAGS'
  2843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2846. ac_ext=c
  2847. ac_cpp='$CPP $CPPFLAGS'
  2848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2851. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2852. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2853. # On Suns, sometimes $CPP names a directory.
  2854. if test -n "$CPP" && test -d "$CPP"; then
  2855. CPP=
  2856. fi
  2857. if test -z "$CPP"; then
  2858. if test "${ac_cv_prog_CPP+set}" = set; then
  2859. echo $ECHO_N "(cached) $ECHO_C" >&6
  2860. else
  2861. # Double quotes because CPP needs to be expanded
  2862. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2863. do
  2864. ac_preproc_ok=false
  2865. for ac_c_preproc_warn_flag in '' yes
  2866. do
  2867. # Use a header file that comes with gcc, so configuring glibc
  2868. # with a fresh cross-compiler works.
  2869. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2870. # <limits.h> exists even on freestanding compilers.
  2871. # On the NeXT, cc -E runs the code through the compiler's parser,
  2872. # not just through cpp. "Syntax error" is here to catch this case.
  2873. cat >conftest.$ac_ext <<_ACEOF
  2874. /* confdefs.h. */
  2875. _ACEOF
  2876. cat confdefs.h >>conftest.$ac_ext
  2877. cat >>conftest.$ac_ext <<_ACEOF
  2878. /* end confdefs.h. */
  2879. #ifdef __STDC__
  2880. # include <limits.h>
  2881. #else
  2882. # include <assert.h>
  2883. #endif
  2884. Syntax error
  2885. _ACEOF
  2886. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2887. case "(($ac_try" in
  2888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2889. *) ac_try_echo=$ac_try;;
  2890. esac
  2891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2892. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2893. ac_status=$?
  2894. grep -v '^ *+' conftest.er1 >conftest.err
  2895. rm -f conftest.er1
  2896. cat conftest.err >&5
  2897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2898. (exit $ac_status); } >/dev/null && {
  2899. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2900. test ! -s conftest.err
  2901. }; then
  2902. :
  2903. else
  2904. echo "$as_me: failed program was:" >&5
  2905. sed 's/^/| /' conftest.$ac_ext >&5
  2906. # Broken: fails on valid input.
  2907. continue
  2908. fi
  2909. rm -f conftest.err conftest.$ac_ext
  2910. # OK, works on sane cases. Now check whether nonexistent headers
  2911. # can be detected and how.
  2912. cat >conftest.$ac_ext <<_ACEOF
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. #include <ac_nonexistent.h>
  2919. _ACEOF
  2920. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2921. case "(($ac_try" in
  2922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2923. *) ac_try_echo=$ac_try;;
  2924. esac
  2925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2926. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2927. ac_status=$?
  2928. grep -v '^ *+' conftest.er1 >conftest.err
  2929. rm -f conftest.er1
  2930. cat conftest.err >&5
  2931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2932. (exit $ac_status); } >/dev/null && {
  2933. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2934. test ! -s conftest.err
  2935. }; then
  2936. # Broken: success on invalid input.
  2937. continue
  2938. else
  2939. echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. # Passes both tests.
  2942. ac_preproc_ok=:
  2943. break
  2944. fi
  2945. rm -f conftest.err conftest.$ac_ext
  2946. done
  2947. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2948. rm -f conftest.err conftest.$ac_ext
  2949. if $ac_preproc_ok; then
  2950. break
  2951. fi
  2952. done
  2953. ac_cv_prog_CPP=$CPP
  2954. fi
  2955. CPP=$ac_cv_prog_CPP
  2956. else
  2957. ac_cv_prog_CPP=$CPP
  2958. fi
  2959. { echo "$as_me:$LINENO: result: $CPP" >&5
  2960. echo "${ECHO_T}$CPP" >&6; }
  2961. ac_preproc_ok=false
  2962. for ac_c_preproc_warn_flag in '' yes
  2963. do
  2964. # Use a header file that comes with gcc, so configuring glibc
  2965. # with a fresh cross-compiler works.
  2966. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2967. # <limits.h> exists even on freestanding compilers.
  2968. # On the NeXT, cc -E runs the code through the compiler's parser,
  2969. # not just through cpp. "Syntax error" is here to catch this case.
  2970. cat >conftest.$ac_ext <<_ACEOF
  2971. /* confdefs.h. */
  2972. _ACEOF
  2973. cat confdefs.h >>conftest.$ac_ext
  2974. cat >>conftest.$ac_ext <<_ACEOF
  2975. /* end confdefs.h. */
  2976. #ifdef __STDC__
  2977. # include <limits.h>
  2978. #else
  2979. # include <assert.h>
  2980. #endif
  2981. Syntax error
  2982. _ACEOF
  2983. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2984. case "(($ac_try" in
  2985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2986. *) ac_try_echo=$ac_try;;
  2987. esac
  2988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2989. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2990. ac_status=$?
  2991. grep -v '^ *+' conftest.er1 >conftest.err
  2992. rm -f conftest.er1
  2993. cat conftest.err >&5
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); } >/dev/null && {
  2996. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2997. test ! -s conftest.err
  2998. }; then
  2999. :
  3000. else
  3001. echo "$as_me: failed program was:" >&5
  3002. sed 's/^/| /' conftest.$ac_ext >&5
  3003. # Broken: fails on valid input.
  3004. continue
  3005. fi
  3006. rm -f conftest.err conftest.$ac_ext
  3007. # OK, works on sane cases. Now check whether nonexistent headers
  3008. # can be detected and how.
  3009. cat >conftest.$ac_ext <<_ACEOF
  3010. /* confdefs.h. */
  3011. _ACEOF
  3012. cat confdefs.h >>conftest.$ac_ext
  3013. cat >>conftest.$ac_ext <<_ACEOF
  3014. /* end confdefs.h. */
  3015. #include <ac_nonexistent.h>
  3016. _ACEOF
  3017. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3018. case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3023. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3024. ac_status=$?
  3025. grep -v '^ *+' conftest.er1 >conftest.err
  3026. rm -f conftest.er1
  3027. cat conftest.err >&5
  3028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3029. (exit $ac_status); } >/dev/null && {
  3030. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3031. test ! -s conftest.err
  3032. }; then
  3033. # Broken: success on invalid input.
  3034. continue
  3035. else
  3036. echo "$as_me: failed program was:" >&5
  3037. sed 's/^/| /' conftest.$ac_ext >&5
  3038. # Passes both tests.
  3039. ac_preproc_ok=:
  3040. break
  3041. fi
  3042. rm -f conftest.err conftest.$ac_ext
  3043. done
  3044. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3045. rm -f conftest.err conftest.$ac_ext
  3046. if $ac_preproc_ok; then
  3047. :
  3048. else
  3049. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3050. See \`config.log' for more details." >&5
  3051. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3052. See \`config.log' for more details." >&2;}
  3053. { (exit 1); exit 1; }; }
  3054. fi
  3055. ac_ext=c
  3056. ac_cpp='$CPP $CPPFLAGS'
  3057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3060. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3061. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3062. if test "${ac_cv_path_GREP+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. # Extract the first word of "grep ggrep" to use in msg output
  3066. if test -z "$GREP"; then
  3067. set dummy grep ggrep; ac_prog_name=$2
  3068. if test "${ac_cv_path_GREP+set}" = set; then
  3069. echo $ECHO_N "(cached) $ECHO_C" >&6
  3070. else
  3071. ac_path_GREP_found=false
  3072. # Loop through the user's path and test for each of PROGNAME-LIST
  3073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3075. do
  3076. IFS=$as_save_IFS
  3077. test -z "$as_dir" && as_dir=.
  3078. for ac_prog in grep ggrep; do
  3079. for ac_exec_ext in '' $ac_executable_extensions; do
  3080. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3081. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3082. # Check for GNU ac_path_GREP and select it if it is found.
  3083. # Check for GNU $ac_path_GREP
  3084. case `"$ac_path_GREP" --version 2>&1` in
  3085. *GNU*)
  3086. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3087. *)
  3088. ac_count=0
  3089. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3090. while :
  3091. do
  3092. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3093. mv "conftest.tmp" "conftest.in"
  3094. cp "conftest.in" "conftest.nl"
  3095. echo 'GREP' >> "conftest.nl"
  3096. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3097. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3098. ac_count=`expr $ac_count + 1`
  3099. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3100. # Best one so far, save it but keep looking for a better one
  3101. ac_cv_path_GREP="$ac_path_GREP"
  3102. ac_path_GREP_max=$ac_count
  3103. fi
  3104. # 10*(2^10) chars as input seems more than enough
  3105. test $ac_count -gt 10 && break
  3106. done
  3107. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3108. esac
  3109. $ac_path_GREP_found && break 3
  3110. done
  3111. done
  3112. done
  3113. IFS=$as_save_IFS
  3114. fi
  3115. GREP="$ac_cv_path_GREP"
  3116. if test -z "$GREP"; then
  3117. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3118. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3119. { (exit 1); exit 1; }; }
  3120. fi
  3121. else
  3122. ac_cv_path_GREP=$GREP
  3123. fi
  3124. fi
  3125. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3126. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3127. GREP="$ac_cv_path_GREP"
  3128. { echo "$as_me:$LINENO: checking for egrep" >&5
  3129. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3130. if test "${ac_cv_path_EGREP+set}" = set; then
  3131. echo $ECHO_N "(cached) $ECHO_C" >&6
  3132. else
  3133. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3134. then ac_cv_path_EGREP="$GREP -E"
  3135. else
  3136. # Extract the first word of "egrep" to use in msg output
  3137. if test -z "$EGREP"; then
  3138. set dummy egrep; ac_prog_name=$2
  3139. if test "${ac_cv_path_EGREP+set}" = set; then
  3140. echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142. ac_path_EGREP_found=false
  3143. # Loop through the user's path and test for each of PROGNAME-LIST
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3146. do
  3147. IFS=$as_save_IFS
  3148. test -z "$as_dir" && as_dir=.
  3149. for ac_prog in egrep; do
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3152. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3153. # Check for GNU ac_path_EGREP and select it if it is found.
  3154. # Check for GNU $ac_path_EGREP
  3155. case `"$ac_path_EGREP" --version 2>&1` in
  3156. *GNU*)
  3157. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3158. *)
  3159. ac_count=0
  3160. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3161. while :
  3162. do
  3163. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3164. mv "conftest.tmp" "conftest.in"
  3165. cp "conftest.in" "conftest.nl"
  3166. echo 'EGREP' >> "conftest.nl"
  3167. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3168. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3169. ac_count=`expr $ac_count + 1`
  3170. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3171. # Best one so far, save it but keep looking for a better one
  3172. ac_cv_path_EGREP="$ac_path_EGREP"
  3173. ac_path_EGREP_max=$ac_count
  3174. fi
  3175. # 10*(2^10) chars as input seems more than enough
  3176. test $ac_count -gt 10 && break
  3177. done
  3178. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3179. esac
  3180. $ac_path_EGREP_found && break 3
  3181. done
  3182. done
  3183. done
  3184. IFS=$as_save_IFS
  3185. fi
  3186. EGREP="$ac_cv_path_EGREP"
  3187. if test -z "$EGREP"; then
  3188. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3189. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3190. { (exit 1); exit 1; }; }
  3191. fi
  3192. else
  3193. ac_cv_path_EGREP=$EGREP
  3194. fi
  3195. fi
  3196. fi
  3197. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3198. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3199. EGREP="$ac_cv_path_EGREP"
  3200. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3201. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3202. if test "${ac_cv_header_stdc+set}" = set; then
  3203. echo $ECHO_N "(cached) $ECHO_C" >&6
  3204. else
  3205. cat >conftest.$ac_ext <<_ACEOF
  3206. /* confdefs.h. */
  3207. _ACEOF
  3208. cat confdefs.h >>conftest.$ac_ext
  3209. cat >>conftest.$ac_ext <<_ACEOF
  3210. /* end confdefs.h. */
  3211. #include <stdlib.h>
  3212. #include <stdarg.h>
  3213. #include <string.h>
  3214. #include <float.h>
  3215. int
  3216. main ()
  3217. {
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. rm -f conftest.$ac_objext
  3223. if { (ac_try="$ac_compile"
  3224. case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3229. (eval "$ac_compile") 2>conftest.er1
  3230. ac_status=$?
  3231. grep -v '^ *+' conftest.er1 >conftest.err
  3232. rm -f conftest.er1
  3233. cat conftest.err >&5
  3234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3235. (exit $ac_status); } && {
  3236. test -z "$ac_c_werror_flag" ||
  3237. test ! -s conftest.err
  3238. } && test -s conftest.$ac_objext; then
  3239. ac_cv_header_stdc=yes
  3240. else
  3241. echo "$as_me: failed program was:" >&5
  3242. sed 's/^/| /' conftest.$ac_ext >&5
  3243. ac_cv_header_stdc=no
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. if test $ac_cv_header_stdc = yes; then
  3247. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3248. cat >conftest.$ac_ext <<_ACEOF
  3249. /* confdefs.h. */
  3250. _ACEOF
  3251. cat confdefs.h >>conftest.$ac_ext
  3252. cat >>conftest.$ac_ext <<_ACEOF
  3253. /* end confdefs.h. */
  3254. #include <string.h>
  3255. _ACEOF
  3256. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3257. $EGREP "memchr" >/dev/null 2>&1; then
  3258. :
  3259. else
  3260. ac_cv_header_stdc=no
  3261. fi
  3262. rm -f -r conftest*
  3263. fi
  3264. if test $ac_cv_header_stdc = yes; then
  3265. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3266. cat >conftest.$ac_ext <<_ACEOF
  3267. /* confdefs.h. */
  3268. _ACEOF
  3269. cat confdefs.h >>conftest.$ac_ext
  3270. cat >>conftest.$ac_ext <<_ACEOF
  3271. /* end confdefs.h. */
  3272. #include <stdlib.h>
  3273. _ACEOF
  3274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3275. $EGREP "free" >/dev/null 2>&1; then
  3276. :
  3277. else
  3278. ac_cv_header_stdc=no
  3279. fi
  3280. rm -f -r conftest*
  3281. fi
  3282. if test $ac_cv_header_stdc = yes; then
  3283. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3284. if test "$cross_compiling" = yes; then
  3285. :
  3286. else
  3287. cat >conftest.$ac_ext <<_ACEOF
  3288. /* confdefs.h. */
  3289. _ACEOF
  3290. cat confdefs.h >>conftest.$ac_ext
  3291. cat >>conftest.$ac_ext <<_ACEOF
  3292. /* end confdefs.h. */
  3293. #include <ctype.h>
  3294. #include <stdlib.h>
  3295. #if ((' ' & 0x0FF) == 0x020)
  3296. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3297. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3298. #else
  3299. # define ISLOWER(c) \
  3300. (('a' <= (c) && (c) <= 'i') \
  3301. || ('j' <= (c) && (c) <= 'r') \
  3302. || ('s' <= (c) && (c) <= 'z'))
  3303. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3304. #endif
  3305. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3306. int
  3307. main ()
  3308. {
  3309. int i;
  3310. for (i = 0; i < 256; i++)
  3311. if (XOR (islower (i), ISLOWER (i))
  3312. || toupper (i) != TOUPPER (i))
  3313. return 2;
  3314. return 0;
  3315. }
  3316. _ACEOF
  3317. rm -f conftest$ac_exeext
  3318. if { (ac_try="$ac_link"
  3319. case "(($ac_try" in
  3320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3321. *) ac_try_echo=$ac_try;;
  3322. esac
  3323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3324. (eval "$ac_link") 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3328. { (case "(($ac_try" in
  3329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3330. *) ac_try_echo=$ac_try;;
  3331. esac
  3332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3333. (eval "$ac_try") 2>&5
  3334. ac_status=$?
  3335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); }; }; then
  3337. :
  3338. else
  3339. echo "$as_me: program exited with status $ac_status" >&5
  3340. echo "$as_me: failed program was:" >&5
  3341. sed 's/^/| /' conftest.$ac_ext >&5
  3342. ( exit $ac_status )
  3343. ac_cv_header_stdc=no
  3344. fi
  3345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3346. fi
  3347. fi
  3348. fi
  3349. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3350. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3351. if test $ac_cv_header_stdc = yes; then
  3352. cat >>confdefs.h <<\_ACEOF
  3353. #define STDC_HEADERS 1
  3354. _ACEOF
  3355. fi
  3356. #AC_CHECK_HEADERS(sys/ioctl.h unistd.h)
  3357. # Check for debug
  3358. { echo "$as_me:$LINENO: checking whether to compile debug version" >&5
  3359. echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6; }
  3360. # Check whether --enable-debug was given.
  3361. if test "${enable_debug+set}" = set; then
  3362. enableval=$enable_debug; cppflag=-D__RTMIDI_DEBUG__
  3363. cxxflag=-g
  3364. object_path=Debug
  3365. { echo "$as_me:$LINENO: result: yes" >&5
  3366. echo "${ECHO_T}yes" >&6; }
  3367. else
  3368. cppflag=
  3369. cxxflag=-O3
  3370. object_path=Release
  3371. { echo "$as_me:$LINENO: result: no" >&5
  3372. echo "${ECHO_T}no" >&6; }
  3373. fi
  3374. # For -I and -D flags
  3375. CPPFLAGS="$CPPFLAGS $cppflag"
  3376. # For debugging and optimization ... overwrite default because it has both -g and -O2
  3377. #CXXFLAGS="$CXXFLAGS $cxxflag"
  3378. CXXFLAGS="$cxxflag"
  3379. # Check compiler and use -Wall if gnu.
  3380. if test $GXX = "yes" ; then
  3381. cxxflag=-Wall
  3382. fi
  3383. CXXFLAGS="$CXXFLAGS $cxxflag"
  3384. # Checks for package options and external software
  3385. # Make sure we can run config.sub.
  3386. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3387. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3388. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3389. { (exit 1); exit 1; }; }
  3390. { echo "$as_me:$LINENO: checking build system type" >&5
  3391. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3392. if test "${ac_cv_build+set}" = set; then
  3393. echo $ECHO_N "(cached) $ECHO_C" >&6
  3394. else
  3395. ac_build_alias=$build_alias
  3396. test "x$ac_build_alias" = x &&
  3397. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3398. test "x$ac_build_alias" = x &&
  3399. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3400. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3401. { (exit 1); exit 1; }; }
  3402. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3403. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3404. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3405. { (exit 1); exit 1; }; }
  3406. fi
  3407. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3408. echo "${ECHO_T}$ac_cv_build" >&6; }
  3409. case $ac_cv_build in
  3410. *-*-*) ;;
  3411. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3412. echo "$as_me: error: invalid value of canonical build" >&2;}
  3413. { (exit 1); exit 1; }; };;
  3414. esac
  3415. build=$ac_cv_build
  3416. ac_save_IFS=$IFS; IFS='-'
  3417. set x $ac_cv_build
  3418. shift
  3419. build_cpu=$1
  3420. build_vendor=$2
  3421. shift; shift
  3422. # Remember, the first character of IFS is used to create $*,
  3423. # except with old shells:
  3424. build_os=$*
  3425. IFS=$ac_save_IFS
  3426. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3427. { echo "$as_me:$LINENO: checking host system type" >&5
  3428. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3429. if test "${ac_cv_host+set}" = set; then
  3430. echo $ECHO_N "(cached) $ECHO_C" >&6
  3431. else
  3432. if test "x$host_alias" = x; then
  3433. ac_cv_host=$ac_cv_build
  3434. else
  3435. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3436. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3437. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3438. { (exit 1); exit 1; }; }
  3439. fi
  3440. fi
  3441. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3442. echo "${ECHO_T}$ac_cv_host" >&6; }
  3443. case $ac_cv_host in
  3444. *-*-*) ;;
  3445. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3446. echo "$as_me: error: invalid value of canonical host" >&2;}
  3447. { (exit 1); exit 1; }; };;
  3448. esac
  3449. host=$ac_cv_host
  3450. ac_save_IFS=$IFS; IFS='-'
  3451. set x $ac_cv_host
  3452. shift
  3453. host_cpu=$1
  3454. host_vendor=$2
  3455. shift; shift
  3456. # Remember, the first character of IFS is used to create $*,
  3457. # except with old shells:
  3458. host_os=$*
  3459. IFS=$ac_save_IFS
  3460. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3461. sharedlib="librtmidi.so"
  3462. sharedname="librtmidi.so.\$(RELEASE)"
  3463. libflags="-shared -Wl,-soname,\$(SHARED).\$(MAJOR) -o \$(SHARED).\$(RELEASE)"
  3464. case $host in
  3465. *-apple*)
  3466. sharedlib="librtmidi.dylib"
  3467. sharedname="librtmidi.\$(RELEASE).dylib"
  3468. libflags="-dynamiclib -o librtmidi.\$(RELEASE).dylib"
  3469. esac
  3470. api=""
  3471. { echo "$as_me:$LINENO: checking for MIDI API" >&5
  3472. echo $ECHO_N "checking for MIDI API... $ECHO_C" >&6; }
  3473. case $host in
  3474. *-*-linux*)
  3475. # Check whether --with-jack was given.
  3476. if test "${with_jack+set}" = set; then
  3477. withval=$with_jack;
  3478. api="$api -D__UNIX_JACK__"
  3479. { echo "$as_me:$LINENO: result: using JACK" >&5
  3480. echo "${ECHO_T}using JACK" >&6; }
  3481. { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
  3482. echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
  3483. if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
  3484. echo $ECHO_N "(cached) $ECHO_C" >&6
  3485. else
  3486. ac_check_lib_save_LIBS=$LIBS
  3487. LIBS="-ljack $LIBS"
  3488. cat >conftest.$ac_ext <<_ACEOF
  3489. /* confdefs.h. */
  3490. _ACEOF
  3491. cat confdefs.h >>conftest.$ac_ext
  3492. cat >>conftest.$ac_ext <<_ACEOF
  3493. /* end confdefs.h. */
  3494. /* Override any GCC internal prototype to avoid an error.
  3495. Use char because int might match the return type of a GCC
  3496. builtin and then its argument prototype would still apply. */
  3497. #ifdef __cplusplus
  3498. extern "C"
  3499. #endif
  3500. char jack_client_open ();
  3501. int
  3502. main ()
  3503. {
  3504. return jack_client_open ();
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.$ac_objext conftest$ac_exeext
  3510. if { (ac_try="$ac_link"
  3511. case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3516. (eval "$ac_link") 2>conftest.er1
  3517. ac_status=$?
  3518. grep -v '^ *+' conftest.er1 >conftest.err
  3519. rm -f conftest.er1
  3520. cat conftest.err >&5
  3521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3522. (exit $ac_status); } && {
  3523. test -z "$ac_c_werror_flag" ||
  3524. test ! -s conftest.err
  3525. } && test -s conftest$ac_exeext &&
  3526. $as_test_x conftest$ac_exeext; then
  3527. ac_cv_lib_jack_jack_client_open=yes
  3528. else
  3529. echo "$as_me: failed program was:" >&5
  3530. sed 's/^/| /' conftest.$ac_ext >&5
  3531. ac_cv_lib_jack_jack_client_open=no
  3532. fi
  3533. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3534. conftest$ac_exeext conftest.$ac_ext
  3535. LIBS=$ac_check_lib_save_LIBS
  3536. fi
  3537. { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
  3538. echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
  3539. if test $ac_cv_lib_jack_jack_client_open = yes; then
  3540. cat >>confdefs.h <<_ACEOF
  3541. #define HAVE_LIBJACK 1
  3542. _ACEOF
  3543. LIBS="-ljack $LIBS"
  3544. else
  3545. { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
  3546. echo "$as_me: error: JACK support requires the jack library!" >&2;}
  3547. { (exit 1); exit 1; }; }
  3548. fi
  3549. fi
  3550. # Look for ALSA flag
  3551. # Check whether --with-alsa was given.
  3552. if test "${with_alsa+set}" = set; then
  3553. withval=$with_alsa;
  3554. api="$api -D__LINUX_ALSA__"
  3555. { echo "$as_me:$LINENO: result: using ALSA" >&5
  3556. echo "${ECHO_T}using ALSA" >&6; }
  3557. { echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
  3558. echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6; }
  3559. if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. ac_check_lib_save_LIBS=$LIBS
  3563. LIBS="-lasound $LIBS"
  3564. cat >conftest.$ac_ext <<_ACEOF
  3565. /* confdefs.h. */
  3566. _ACEOF
  3567. cat confdefs.h >>conftest.$ac_ext
  3568. cat >>conftest.$ac_ext <<_ACEOF
  3569. /* end confdefs.h. */
  3570. /* Override any GCC internal prototype to avoid an error.
  3571. Use char because int might match the return type of a GCC
  3572. builtin and then its argument prototype would still apply. */
  3573. #ifdef __cplusplus
  3574. extern "C"
  3575. #endif
  3576. char snd_seq_open ();
  3577. int
  3578. main ()
  3579. {
  3580. return snd_seq_open ();
  3581. ;
  3582. return 0;
  3583. }
  3584. _ACEOF
  3585. rm -f conftest.$ac_objext conftest$ac_exeext
  3586. if { (ac_try="$ac_link"
  3587. case "(($ac_try" in
  3588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3589. *) ac_try_echo=$ac_try;;
  3590. esac
  3591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3592. (eval "$ac_link") 2>conftest.er1
  3593. ac_status=$?
  3594. grep -v '^ *+' conftest.er1 >conftest.err
  3595. rm -f conftest.er1
  3596. cat conftest.err >&5
  3597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); } && {
  3599. test -z "$ac_c_werror_flag" ||
  3600. test ! -s conftest.err
  3601. } && test -s conftest$ac_exeext &&
  3602. $as_test_x conftest$ac_exeext; then
  3603. ac_cv_lib_asound_snd_seq_open=yes
  3604. else
  3605. echo "$as_me: failed program was:" >&5
  3606. sed 's/^/| /' conftest.$ac_ext >&5
  3607. ac_cv_lib_asound_snd_seq_open=no
  3608. fi
  3609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3610. conftest$ac_exeext conftest.$ac_ext
  3611. LIBS=$ac_check_lib_save_LIBS
  3612. fi
  3613. { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
  3614. echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6; }
  3615. if test $ac_cv_lib_asound_snd_seq_open = yes; then
  3616. cat >>confdefs.h <<_ACEOF
  3617. #define HAVE_LIBASOUND 1
  3618. _ACEOF
  3619. LIBS="-lasound $LIBS"
  3620. else
  3621. { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
  3622. echo "$as_me: error: ALSA support requires the asound library!" >&2;}
  3623. { (exit 1); exit 1; }; }
  3624. fi
  3625. fi
  3626. if test "$api" == ""; then
  3627. { echo "$as_me:$LINENO: result: using ALSA" >&5
  3628. echo "${ECHO_T}using ALSA" >&6; }
  3629. api=-D__LINUX_ALSA__
  3630. { echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
  3631. echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6; }
  3632. if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
  3633. echo $ECHO_N "(cached) $ECHO_C" >&6
  3634. else
  3635. ac_check_lib_save_LIBS=$LIBS
  3636. LIBS="-lasound $LIBS"
  3637. cat >conftest.$ac_ext <<_ACEOF
  3638. /* confdefs.h. */
  3639. _ACEOF
  3640. cat confdefs.h >>conftest.$ac_ext
  3641. cat >>conftest.$ac_ext <<_ACEOF
  3642. /* end confdefs.h. */
  3643. /* Override any GCC internal prototype to avoid an error.
  3644. Use char because int might match the return type of a GCC
  3645. builtin and then its argument prototype would still apply. */
  3646. #ifdef __cplusplus
  3647. extern "C"
  3648. #endif
  3649. char snd_seq_open ();
  3650. int
  3651. main ()
  3652. {
  3653. return snd_seq_open ();
  3654. ;
  3655. return 0;
  3656. }
  3657. _ACEOF
  3658. rm -f conftest.$ac_objext conftest$ac_exeext
  3659. if { (ac_try="$ac_link"
  3660. case "(($ac_try" in
  3661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3662. *) ac_try_echo=$ac_try;;
  3663. esac
  3664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3665. (eval "$ac_link") 2>conftest.er1
  3666. ac_status=$?
  3667. grep -v '^ *+' conftest.er1 >conftest.err
  3668. rm -f conftest.er1
  3669. cat conftest.err >&5
  3670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); } && {
  3672. test -z "$ac_c_werror_flag" ||
  3673. test ! -s conftest.err
  3674. } && test -s conftest$ac_exeext &&
  3675. $as_test_x conftest$ac_exeext; then
  3676. ac_cv_lib_asound_snd_seq_open=yes
  3677. else
  3678. echo "$as_me: failed program was:" >&5
  3679. sed 's/^/| /' conftest.$ac_ext >&5
  3680. ac_cv_lib_asound_snd_seq_open=no
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3683. conftest$ac_exeext conftest.$ac_ext
  3684. LIBS=$ac_check_lib_save_LIBS
  3685. fi
  3686. { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
  3687. echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6; }
  3688. if test $ac_cv_lib_asound_snd_seq_open = yes; then
  3689. cat >>confdefs.h <<_ACEOF
  3690. #define HAVE_LIBASOUND 1
  3691. _ACEOF
  3692. LIBS="-lasound $LIBS"
  3693. else
  3694. { { echo "$as_me:$LINENO: error: ALSA sequencer support requires the asound library!" >&5
  3695. echo "$as_me: error: ALSA sequencer support requires the asound library!" >&2;}
  3696. { (exit 1); exit 1; }; }
  3697. fi
  3698. fi
  3699. # Checks for pthread library.
  3700. { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  3701. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
  3702. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  3703. echo $ECHO_N "(cached) $ECHO_C" >&6
  3704. else
  3705. ac_check_lib_save_LIBS=$LIBS
  3706. LIBS="-lpthread $LIBS"
  3707. cat >conftest.$ac_ext <<_ACEOF
  3708. /* confdefs.h. */
  3709. _ACEOF
  3710. cat confdefs.h >>conftest.$ac_ext
  3711. cat >>conftest.$ac_ext <<_ACEOF
  3712. /* end confdefs.h. */
  3713. /* Override any GCC internal prototype to avoid an error.
  3714. Use char because int might match the return type of a GCC
  3715. builtin and then its argument prototype would still apply. */
  3716. #ifdef __cplusplus
  3717. extern "C"
  3718. #endif
  3719. char pthread_create ();
  3720. int
  3721. main ()
  3722. {
  3723. return pthread_create ();
  3724. ;
  3725. return 0;
  3726. }
  3727. _ACEOF
  3728. rm -f conftest.$ac_objext conftest$ac_exeext
  3729. if { (ac_try="$ac_link"
  3730. case "(($ac_try" in
  3731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3732. *) ac_try_echo=$ac_try;;
  3733. esac
  3734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3735. (eval "$ac_link") 2>conftest.er1
  3736. ac_status=$?
  3737. grep -v '^ *+' conftest.er1 >conftest.err
  3738. rm -f conftest.er1
  3739. cat conftest.err >&5
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); } && {
  3742. test -z "$ac_c_werror_flag" ||
  3743. test ! -s conftest.err
  3744. } && test -s conftest$ac_exeext &&
  3745. $as_test_x conftest$ac_exeext; then
  3746. ac_cv_lib_pthread_pthread_create=yes
  3747. else
  3748. echo "$as_me: failed program was:" >&5
  3749. sed 's/^/| /' conftest.$ac_ext >&5
  3750. ac_cv_lib_pthread_pthread_create=no
  3751. fi
  3752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3753. conftest$ac_exeext conftest.$ac_ext
  3754. LIBS=$ac_check_lib_save_LIBS
  3755. fi
  3756. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  3757. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
  3758. if test $ac_cv_lib_pthread_pthread_create = yes; then
  3759. cat >>confdefs.h <<_ACEOF
  3760. #define HAVE_LIBPTHREAD 1
  3761. _ACEOF
  3762. LIBS="-lpthread $LIBS"
  3763. else
  3764. { { echo "$as_me:$LINENO: error: RtMidi requires the pthread library!" >&5
  3765. echo "$as_me: error: RtMidi requires the pthread library!" >&2;}
  3766. { (exit 1); exit 1; }; }
  3767. fi
  3768. ;;
  3769. *-apple*)
  3770. # Check whether --with-jack was given.
  3771. if test "${with_jack+set}" = set; then
  3772. withval=$with_jack;
  3773. api="$api -D__UNIX_JACK__"
  3774. { echo "$as_me:$LINENO: result: using JACK" >&5
  3775. echo "${ECHO_T}using JACK" >&6; }
  3776. { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
  3777. echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
  3778. if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
  3779. echo $ECHO_N "(cached) $ECHO_C" >&6
  3780. else
  3781. ac_check_lib_save_LIBS=$LIBS
  3782. LIBS="-ljack $LIBS"
  3783. cat >conftest.$ac_ext <<_ACEOF
  3784. /* confdefs.h. */
  3785. _ACEOF
  3786. cat confdefs.h >>conftest.$ac_ext
  3787. cat >>conftest.$ac_ext <<_ACEOF
  3788. /* end confdefs.h. */
  3789. /* Override any GCC internal prototype to avoid an error.
  3790. Use char because int might match the return type of a GCC
  3791. builtin and then its argument prototype would still apply. */
  3792. #ifdef __cplusplus
  3793. extern "C"
  3794. #endif
  3795. char jack_client_open ();
  3796. int
  3797. main ()
  3798. {
  3799. return jack_client_open ();
  3800. ;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. rm -f conftest.$ac_objext conftest$ac_exeext
  3805. if { (ac_try="$ac_link"
  3806. case "(($ac_try" in
  3807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3808. *) ac_try_echo=$ac_try;;
  3809. esac
  3810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3811. (eval "$ac_link") 2>conftest.er1
  3812. ac_status=$?
  3813. grep -v '^ *+' conftest.er1 >conftest.err
  3814. rm -f conftest.er1
  3815. cat conftest.err >&5
  3816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3817. (exit $ac_status); } && {
  3818. test -z "$ac_c_werror_flag" ||
  3819. test ! -s conftest.err
  3820. } && test -s conftest$ac_exeext &&
  3821. $as_test_x conftest$ac_exeext; then
  3822. ac_cv_lib_jack_jack_client_open=yes
  3823. else
  3824. echo "$as_me: failed program was:" >&5
  3825. sed 's/^/| /' conftest.$ac_ext >&5
  3826. ac_cv_lib_jack_jack_client_open=no
  3827. fi
  3828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3829. conftest$ac_exeext conftest.$ac_ext
  3830. LIBS=$ac_check_lib_save_LIBS
  3831. fi
  3832. { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
  3833. echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
  3834. if test $ac_cv_lib_jack_jack_client_open = yes; then
  3835. cat >>confdefs.h <<_ACEOF
  3836. #define HAVE_LIBJACK 1
  3837. _ACEOF
  3838. LIBS="-ljack $LIBS"
  3839. else
  3840. { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
  3841. echo "$as_me: error: JACK support requires the jack library!" >&2;}
  3842. { (exit 1); exit 1; }; }
  3843. fi
  3844. fi
  3845. # Look for Core flag
  3846. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3847. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3848. inttypes.h stdint.h unistd.h
  3849. do
  3850. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3851. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3852. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3853. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3854. echo $ECHO_N "(cached) $ECHO_C" >&6
  3855. else
  3856. cat >conftest.$ac_ext <<_ACEOF
  3857. /* confdefs.h. */
  3858. _ACEOF
  3859. cat confdefs.h >>conftest.$ac_ext
  3860. cat >>conftest.$ac_ext <<_ACEOF
  3861. /* end confdefs.h. */
  3862. $ac_includes_default
  3863. #include <$ac_header>
  3864. _ACEOF
  3865. rm -f conftest.$ac_objext
  3866. if { (ac_try="$ac_compile"
  3867. case "(($ac_try" in
  3868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3869. *) ac_try_echo=$ac_try;;
  3870. esac
  3871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3872. (eval "$ac_compile") 2>conftest.er1
  3873. ac_status=$?
  3874. grep -v '^ *+' conftest.er1 >conftest.err
  3875. rm -f conftest.er1
  3876. cat conftest.err >&5
  3877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3878. (exit $ac_status); } && {
  3879. test -z "$ac_c_werror_flag" ||
  3880. test ! -s conftest.err
  3881. } && test -s conftest.$ac_objext; then
  3882. eval "$as_ac_Header=yes"
  3883. else
  3884. echo "$as_me: failed program was:" >&5
  3885. sed 's/^/| /' conftest.$ac_ext >&5
  3886. eval "$as_ac_Header=no"
  3887. fi
  3888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3889. fi
  3890. ac_res=`eval echo '${'$as_ac_Header'}'`
  3891. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3892. echo "${ECHO_T}$ac_res" >&6; }
  3893. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3894. cat >>confdefs.h <<_ACEOF
  3895. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3896. _ACEOF
  3897. fi
  3898. done
  3899. # Check whether --with-core was given.
  3900. if test "${with_core+set}" = set; then
  3901. withval=$with_core;
  3902. api="$api -D__MACOSX_CORE__"
  3903. { echo "$as_me:$LINENO: result: using CoreMidi" >&5
  3904. echo "${ECHO_T}using CoreMidi" >&6; }
  3905. if test "${ac_cv_header_CoreMIDI_CoreMIDI_h+set}" = set; then
  3906. { echo "$as_me:$LINENO: checking for CoreMIDI/CoreMIDI.h" >&5
  3907. echo $ECHO_N "checking for CoreMIDI/CoreMIDI.h... $ECHO_C" >&6; }
  3908. if test "${ac_cv_header_CoreMIDI_CoreMIDI_h+set}" = set; then
  3909. echo $ECHO_N "(cached) $ECHO_C" >&6
  3910. fi
  3911. { echo "$as_me:$LINENO: result: $ac_cv_header_CoreMIDI_CoreMIDI_h" >&5
  3912. echo "${ECHO_T}$ac_cv_header_CoreMIDI_CoreMIDI_h" >&6; }
  3913. else
  3914. # Is the header compilable?
  3915. { echo "$as_me:$LINENO: checking CoreMIDI/CoreMIDI.h usability" >&5
  3916. echo $ECHO_N "checking CoreMIDI/CoreMIDI.h usability... $ECHO_C" >&6; }
  3917. cat >conftest.$ac_ext <<_ACEOF
  3918. /* confdefs.h. */
  3919. _ACEOF
  3920. cat confdefs.h >>conftest.$ac_ext
  3921. cat >>conftest.$ac_ext <<_ACEOF
  3922. /* end confdefs.h. */
  3923. $ac_includes_default
  3924. #include <CoreMIDI/CoreMIDI.h>
  3925. _ACEOF
  3926. rm -f conftest.$ac_objext
  3927. if { (ac_try="$ac_compile"
  3928. case "(($ac_try" in
  3929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3930. *) ac_try_echo=$ac_try;;
  3931. esac
  3932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3933. (eval "$ac_compile") 2>conftest.er1
  3934. ac_status=$?
  3935. grep -v '^ *+' conftest.er1 >conftest.err
  3936. rm -f conftest.er1
  3937. cat conftest.err >&5
  3938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3939. (exit $ac_status); } && {
  3940. test -z "$ac_c_werror_flag" ||
  3941. test ! -s conftest.err
  3942. } && test -s conftest.$ac_objext; then
  3943. ac_header_compiler=yes
  3944. else
  3945. echo "$as_me: failed program was:" >&5
  3946. sed 's/^/| /' conftest.$ac_ext >&5
  3947. ac_header_compiler=no
  3948. fi
  3949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3950. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3951. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3952. # Is the header present?
  3953. { echo "$as_me:$LINENO: checking CoreMIDI/CoreMIDI.h presence" >&5
  3954. echo $ECHO_N "checking CoreMIDI/CoreMIDI.h presence... $ECHO_C" >&6; }
  3955. cat >conftest.$ac_ext <<_ACEOF
  3956. /* confdefs.h. */
  3957. _ACEOF
  3958. cat confdefs.h >>conftest.$ac_ext
  3959. cat >>conftest.$ac_ext <<_ACEOF
  3960. /* end confdefs.h. */
  3961. #include <CoreMIDI/CoreMIDI.h>
  3962. _ACEOF
  3963. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3964. case "(($ac_try" in
  3965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3966. *) ac_try_echo=$ac_try;;
  3967. esac
  3968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3969. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3970. ac_status=$?
  3971. grep -v '^ *+' conftest.er1 >conftest.err
  3972. rm -f conftest.er1
  3973. cat conftest.err >&5
  3974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3975. (exit $ac_status); } >/dev/null && {
  3976. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3977. test ! -s conftest.err
  3978. }; then
  3979. ac_header_preproc=yes
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. ac_header_preproc=no
  3984. fi
  3985. rm -f conftest.err conftest.$ac_ext
  3986. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3987. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3988. # So? What about this header?
  3989. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3990. yes:no: )
  3991. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3992. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3993. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the compiler's result" >&5
  3994. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the compiler's result" >&2;}
  3995. ac_header_preproc=yes
  3996. ;;
  3997. no:yes:* )
  3998. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: present but cannot be compiled" >&5
  3999. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: present but cannot be compiled" >&2;}
  4000. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: check for missing prerequisite headers?" >&5
  4001. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: check for missing prerequisite headers?" >&2;}
  4002. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: see the Autoconf documentation" >&5
  4003. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: see the Autoconf documentation" >&2;}
  4004. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: section \"Present But Cannot Be Compiled\"" >&5
  4005. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4006. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the preprocessor's result" >&5
  4007. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the preprocessor's result" >&2;}
  4008. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: in the future, the compiler will take precedence" >&5
  4009. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: in the future, the compiler will take precedence" >&2;}
  4010. ( cat <<\_ASBOX
  4011. ## ----------------------------------- ##
  4012. ## Report this to gary@music.mcgill.ca ##
  4013. ## ----------------------------------- ##
  4014. _ASBOX
  4015. ) | sed "s/^/$as_me: WARNING: /" >&2
  4016. ;;
  4017. esac
  4018. { echo "$as_me:$LINENO: checking for CoreMIDI/CoreMIDI.h" >&5
  4019. echo $ECHO_N "checking for CoreMIDI/CoreMIDI.h... $ECHO_C" >&6; }
  4020. if test "${ac_cv_header_CoreMIDI_CoreMIDI_h+set}" = set; then
  4021. echo $ECHO_N "(cached) $ECHO_C" >&6
  4022. else
  4023. ac_cv_header_CoreMIDI_CoreMIDI_h=$ac_header_preproc
  4024. fi
  4025. { echo "$as_me:$LINENO: result: $ac_cv_header_CoreMIDI_CoreMIDI_h" >&5
  4026. echo "${ECHO_T}$ac_cv_header_CoreMIDI_CoreMIDI_h" >&6; }
  4027. fi
  4028. if test $ac_cv_header_CoreMIDI_CoreMIDI_h = yes; then
  4029. :
  4030. else
  4031. { { echo "$as_me:$LINENO: error: CoreMIDI header files not found!" >&5
  4032. echo "$as_me: error: CoreMIDI header files not found!" >&2;}
  4033. { (exit 1); exit 1; }; }
  4034. fi
  4035. LIBS="$LIBS -framework CoreMIDI -framework CoreFoundation -framework CoreAudio"
  4036. fi
  4037. # If no api flags specified, use CoreMidi
  4038. if test "$api" == ""; then
  4039. api=-D__MACOSX_CORE__
  4040. { echo "$as_me:$LINENO: result: using CoreMidi" >&5
  4041. echo "${ECHO_T}using CoreMidi" >&6; }
  4042. if test "${ac_cv_header_CoreMIDI_CoreMIDI_h+set}" = set; then
  4043. { echo "$as_me:$LINENO: checking for CoreMIDI/CoreMIDI.h" >&5
  4044. echo $ECHO_N "checking for CoreMIDI/CoreMIDI.h... $ECHO_C" >&6; }
  4045. if test "${ac_cv_header_CoreMIDI_CoreMIDI_h+set}" = set; then
  4046. echo $ECHO_N "(cached) $ECHO_C" >&6
  4047. fi
  4048. { echo "$as_me:$LINENO: result: $ac_cv_header_CoreMIDI_CoreMIDI_h" >&5
  4049. echo "${ECHO_T}$ac_cv_header_CoreMIDI_CoreMIDI_h" >&6; }
  4050. else
  4051. # Is the header compilable?
  4052. { echo "$as_me:$LINENO: checking CoreMIDI/CoreMIDI.h usability" >&5
  4053. echo $ECHO_N "checking CoreMIDI/CoreMIDI.h usability... $ECHO_C" >&6; }
  4054. cat >conftest.$ac_ext <<_ACEOF
  4055. /* confdefs.h. */
  4056. _ACEOF
  4057. cat confdefs.h >>conftest.$ac_ext
  4058. cat >>conftest.$ac_ext <<_ACEOF
  4059. /* end confdefs.h. */
  4060. $ac_includes_default
  4061. #include <CoreMIDI/CoreMIDI.h>
  4062. _ACEOF
  4063. rm -f conftest.$ac_objext
  4064. if { (ac_try="$ac_compile"
  4065. case "(($ac_try" in
  4066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4067. *) ac_try_echo=$ac_try;;
  4068. esac
  4069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4070. (eval "$ac_compile") 2>conftest.er1
  4071. ac_status=$?
  4072. grep -v '^ *+' conftest.er1 >conftest.err
  4073. rm -f conftest.er1
  4074. cat conftest.err >&5
  4075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4076. (exit $ac_status); } && {
  4077. test -z "$ac_c_werror_flag" ||
  4078. test ! -s conftest.err
  4079. } && test -s conftest.$ac_objext; then
  4080. ac_header_compiler=yes
  4081. else
  4082. echo "$as_me: failed program was:" >&5
  4083. sed 's/^/| /' conftest.$ac_ext >&5
  4084. ac_header_compiler=no
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4087. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4088. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4089. # Is the header present?
  4090. { echo "$as_me:$LINENO: checking CoreMIDI/CoreMIDI.h presence" >&5
  4091. echo $ECHO_N "checking CoreMIDI/CoreMIDI.h presence... $ECHO_C" >&6; }
  4092. cat >conftest.$ac_ext <<_ACEOF
  4093. /* confdefs.h. */
  4094. _ACEOF
  4095. cat confdefs.h >>conftest.$ac_ext
  4096. cat >>conftest.$ac_ext <<_ACEOF
  4097. /* end confdefs.h. */
  4098. #include <CoreMIDI/CoreMIDI.h>
  4099. _ACEOF
  4100. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4101. case "(($ac_try" in
  4102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4103. *) ac_try_echo=$ac_try;;
  4104. esac
  4105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4106. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4107. ac_status=$?
  4108. grep -v '^ *+' conftest.er1 >conftest.err
  4109. rm -f conftest.er1
  4110. cat conftest.err >&5
  4111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4112. (exit $ac_status); } >/dev/null && {
  4113. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4114. test ! -s conftest.err
  4115. }; then
  4116. ac_header_preproc=yes
  4117. else
  4118. echo "$as_me: failed program was:" >&5
  4119. sed 's/^/| /' conftest.$ac_ext >&5
  4120. ac_header_preproc=no
  4121. fi
  4122. rm -f conftest.err conftest.$ac_ext
  4123. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4124. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4125. # So? What about this header?
  4126. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4127. yes:no: )
  4128. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4129. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4130. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the compiler's result" >&5
  4131. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the compiler's result" >&2;}
  4132. ac_header_preproc=yes
  4133. ;;
  4134. no:yes:* )
  4135. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: present but cannot be compiled" >&5
  4136. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: present but cannot be compiled" >&2;}
  4137. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: check for missing prerequisite headers?" >&5
  4138. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: check for missing prerequisite headers?" >&2;}
  4139. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: see the Autoconf documentation" >&5
  4140. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: see the Autoconf documentation" >&2;}
  4141. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: section \"Present But Cannot Be Compiled\"" >&5
  4142. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4143. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the preprocessor's result" >&5
  4144. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: proceeding with the preprocessor's result" >&2;}
  4145. { echo "$as_me:$LINENO: WARNING: CoreMIDI/CoreMIDI.h: in the future, the compiler will take precedence" >&5
  4146. echo "$as_me: WARNING: CoreMIDI/CoreMIDI.h: in the future, the compiler will take precedence" >&2;}
  4147. ( cat <<\_ASBOX
  4148. ## ----------------------------------- ##
  4149. ## Report this to gary@music.mcgill.ca ##
  4150. ## ----------------------------------- ##
  4151. _ASBOX
  4152. ) | sed "s/^/$as_me: WARNING: /" >&2
  4153. ;;
  4154. esac
  4155. { echo "$as_me:$LINENO: checking for CoreMIDI/CoreMIDI.h" >&5
  4156. echo $ECHO_N "checking for CoreMIDI/CoreMIDI.h... $ECHO_C" >&6; }
  4157. if test "${ac_cv_header_CoreMIDI_CoreMIDI_h+set}" = set; then
  4158. echo $ECHO_N "(cached) $ECHO_C" >&6
  4159. else
  4160. ac_cv_header_CoreMIDI_CoreMIDI_h=$ac_header_preproc
  4161. fi
  4162. { echo "$as_me:$LINENO: result: $ac_cv_header_CoreMIDI_CoreMIDI_h" >&5
  4163. echo "${ECHO_T}$ac_cv_header_CoreMIDI_CoreMIDI_h" >&6; }
  4164. fi
  4165. if test $ac_cv_header_CoreMIDI_CoreMIDI_h = yes; then
  4166. :
  4167. else
  4168. { { echo "$as_me:$LINENO: error: CoreMIDI header files not found!" >&5
  4169. echo "$as_me: error: CoreMIDI header files not found!" >&2;}
  4170. { (exit 1); exit 1; }; }
  4171. fi
  4172. LIBS="-framework CoreMIDI -framework CoreFoundation -framework CoreAudio"
  4173. fi
  4174. ;;
  4175. *-mingw32*)
  4176. # Look for WinMM flag
  4177. # Check whether --with-winmm was given.
  4178. if test "${with_winmm+set}" = set; then
  4179. withval=$with_winmm;
  4180. api="$api -D__WINDOWS_MM__"
  4181. { echo "$as_me:$LINENO: result: using WinMM" >&5
  4182. echo "${ECHO_T}using WinMM" >&6; }
  4183. LIBS=-lwinmm
  4184. fi
  4185. # Check whether --with-winks was given.
  4186. if test "${with_winks+set}" = set; then
  4187. withval=$with_winks;
  4188. api="$api -D__WINDOWS_KS__"
  4189. LIBS="-lsetupapi -lksuser"
  4190. { echo "$as_me:$LINENO: result: using kernel streaming" >&5
  4191. echo "${ECHO_T}using kernel streaming" >&6; }
  4192. fi
  4193. # I can't get the following check to work so just manually add the library
  4194. # or could try the following? AC_LIB_WINMM([midiOutGetNumDevs])
  4195. # AC_CHECK_LIB(winmm, midiInGetNumDevs, , AC_MSG_ERROR(Windows MIDI support requires the winmm library!) )],)
  4196. # If no api flags specified, use WinMM
  4197. if test "$api" == ""; then
  4198. api=-D__WINDOWS_MM__
  4199. { echo "$as_me:$LINENO: result: using WinMM" >&5
  4200. echo "${ECHO_T}using WinMM" >&6; }
  4201. LIBS=-lwinmm
  4202. fi
  4203. ;;
  4204. *)
  4205. # Default case for unknown realtime systems.
  4206. { { echo "$as_me:$LINENO: error: Unknown system type for MIDI support!" >&5
  4207. echo "$as_me: error: Unknown system type for MIDI support!" >&2;}
  4208. { (exit 1); exit 1; }; }
  4209. ;;
  4210. esac
  4211. CPPFLAGS="$CPPFLAGS $api"
  4212. cat >confcache <<\_ACEOF
  4213. # This file is a shell script that caches the results of configure
  4214. # tests run on this system so they can be shared between configure
  4215. # scripts and configure runs, see configure's option --config-cache.
  4216. # It is not useful on other systems. If it contains results you don't
  4217. # want to keep, you may remove or edit it.
  4218. #
  4219. # config.status only pays attention to the cache file if you give it
  4220. # the --recheck option to rerun configure.
  4221. #
  4222. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4223. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4224. # following values.
  4225. _ACEOF
  4226. # The following way of writing the cache mishandles newlines in values,
  4227. # but we know of no workaround that is simple, portable, and efficient.
  4228. # So, we kill variables containing newlines.
  4229. # Ultrix sh set writes to stderr and can't be redirected directly,
  4230. # and sets the high bit in the cache file unless we assign to the vars.
  4231. (
  4232. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4233. eval ac_val=\$$ac_var
  4234. case $ac_val in #(
  4235. *${as_nl}*)
  4236. case $ac_var in #(
  4237. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4238. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4239. esac
  4240. case $ac_var in #(
  4241. _ | IFS | as_nl) ;; #(
  4242. *) $as_unset $ac_var ;;
  4243. esac ;;
  4244. esac
  4245. done
  4246. (set) 2>&1 |
  4247. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4248. *${as_nl}ac_space=\ *)
  4249. # `set' does not quote correctly, so add quotes (double-quote
  4250. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4251. sed -n \
  4252. "s/'/'\\\\''/g;
  4253. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4254. ;; #(
  4255. *)
  4256. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4257. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4258. ;;
  4259. esac |
  4260. sort
  4261. ) |
  4262. sed '
  4263. /^ac_cv_env_/b end
  4264. t clear
  4265. :clear
  4266. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4267. t end
  4268. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4269. :end' >>confcache
  4270. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4271. if test -w "$cache_file"; then
  4272. test "x$cache_file" != "x/dev/null" &&
  4273. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4274. echo "$as_me: updating cache $cache_file" >&6;}
  4275. cat confcache >$cache_file
  4276. else
  4277. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4278. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4279. fi
  4280. fi
  4281. rm -f confcache
  4282. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4283. # Let make expand exec_prefix.
  4284. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4285. # Transform confdefs.h into DEFS.
  4286. # Protect against shell expansion while executing Makefile rules.
  4287. # Protect against Makefile macro expansion.
  4288. #
  4289. # If the first sed substitution is executed (which looks for macros that
  4290. # take arguments), then branch to the quote section. Otherwise,
  4291. # look for a macro that doesn't take arguments.
  4292. ac_script='
  4293. t clear
  4294. :clear
  4295. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  4296. t quote
  4297. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  4298. t quote
  4299. b any
  4300. :quote
  4301. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  4302. s/\[/\\&/g
  4303. s/\]/\\&/g
  4304. s/\$/$$/g
  4305. H
  4306. :any
  4307. ${
  4308. g
  4309. s/^\n//
  4310. s/\n/ /g
  4311. p
  4312. }
  4313. '
  4314. DEFS=`sed -n "$ac_script" confdefs.h`
  4315. ac_libobjs=
  4316. ac_ltlibobjs=
  4317. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4318. # 1. Remove the extension, and $U if already installed.
  4319. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4320. ac_i=`echo "$ac_i" | sed "$ac_script"`
  4321. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4322. # will be set to the directory where LIBOBJS objects are built.
  4323. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4324. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  4325. done
  4326. LIBOBJS=$ac_libobjs
  4327. LTLIBOBJS=$ac_ltlibobjs
  4328. : ${CONFIG_STATUS=./config.status}
  4329. ac_clean_files_save=$ac_clean_files
  4330. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4331. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4332. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4333. cat >$CONFIG_STATUS <<_ACEOF
  4334. #! $SHELL
  4335. # Generated by $as_me.
  4336. # Run this file to recreate the current configuration.
  4337. # Compiler output produced by configure, useful for debugging
  4338. # configure, is in config.log if it exists.
  4339. debug=false
  4340. ac_cs_recheck=false
  4341. ac_cs_silent=false
  4342. SHELL=\${CONFIG_SHELL-$SHELL}
  4343. _ACEOF
  4344. cat >>$CONFIG_STATUS <<\_ACEOF
  4345. ## --------------------- ##
  4346. ## M4sh Initialization. ##
  4347. ## --------------------- ##
  4348. # Be more Bourne compatible
  4349. DUALCASE=1; export DUALCASE # for MKS sh
  4350. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4351. emulate sh
  4352. NULLCMD=:
  4353. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4354. # is contrary to our usage. Disable this feature.
  4355. alias -g '${1+"$@"}'='"$@"'
  4356. setopt NO_GLOB_SUBST
  4357. else
  4358. case `(set -o) 2>/dev/null` in
  4359. *posix*) set -o posix ;;
  4360. esac
  4361. fi
  4362. # PATH needs CR
  4363. # Avoid depending upon Character Ranges.
  4364. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4365. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4366. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4367. as_cr_digits='0123456789'
  4368. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4369. # The user is always right.
  4370. if test "${PATH_SEPARATOR+set}" != set; then
  4371. echo "#! /bin/sh" >conf$$.sh
  4372. echo "exit 0" >>conf$$.sh
  4373. chmod +x conf$$.sh
  4374. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4375. PATH_SEPARATOR=';'
  4376. else
  4377. PATH_SEPARATOR=:
  4378. fi
  4379. rm -f conf$$.sh
  4380. fi
  4381. # Support unset when possible.
  4382. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4383. as_unset=unset
  4384. else
  4385. as_unset=false
  4386. fi
  4387. # IFS
  4388. # We need space, tab and new line, in precisely that order. Quoting is
  4389. # there to prevent editors from complaining about space-tab.
  4390. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4391. # splitting by setting IFS to empty value.)
  4392. as_nl='
  4393. '
  4394. IFS=" "" $as_nl"
  4395. # Find who we are. Look in the path if we contain no directory separator.
  4396. case $0 in
  4397. *[\\/]* ) as_myself=$0 ;;
  4398. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4399. for as_dir in $PATH
  4400. do
  4401. IFS=$as_save_IFS
  4402. test -z "$as_dir" && as_dir=.
  4403. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4404. done
  4405. IFS=$as_save_IFS
  4406. ;;
  4407. esac
  4408. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4409. # in which case we are not to be found in the path.
  4410. if test "x$as_myself" = x; then
  4411. as_myself=$0
  4412. fi
  4413. if test ! -f "$as_myself"; then
  4414. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4415. { (exit 1); exit 1; }
  4416. fi
  4417. # Work around bugs in pre-3.0 UWIN ksh.
  4418. for as_var in ENV MAIL MAILPATH
  4419. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4420. done
  4421. PS1='$ '
  4422. PS2='> '
  4423. PS4='+ '
  4424. # NLS nuisances.
  4425. for as_var in \
  4426. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4427. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4428. LC_TELEPHONE LC_TIME
  4429. do
  4430. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4431. eval $as_var=C; export $as_var
  4432. else
  4433. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4434. fi
  4435. done
  4436. # Required to use basename.
  4437. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4438. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4439. as_expr=expr
  4440. else
  4441. as_expr=false
  4442. fi
  4443. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4444. as_basename=basename
  4445. else
  4446. as_basename=false
  4447. fi
  4448. # Name of the executable.
  4449. as_me=`$as_basename -- "$0" ||
  4450. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4451. X"$0" : 'X\(//\)$' \| \
  4452. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4453. echo X/"$0" |
  4454. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4455. s//\1/
  4456. q
  4457. }
  4458. /^X\/\(\/\/\)$/{
  4459. s//\1/
  4460. q
  4461. }
  4462. /^X\/\(\/\).*/{
  4463. s//\1/
  4464. q
  4465. }
  4466. s/.*/./; q'`
  4467. # CDPATH.
  4468. $as_unset CDPATH
  4469. as_lineno_1=$LINENO
  4470. as_lineno_2=$LINENO
  4471. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4472. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  4473. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4474. # uniformly replaced by the line number. The first 'sed' inserts a
  4475. # line-number line after each line using $LINENO; the second 'sed'
  4476. # does the real work. The second script uses 'N' to pair each
  4477. # line-number line with the line containing $LINENO, and appends
  4478. # trailing '-' during substitution so that $LINENO is not a special
  4479. # case at line end.
  4480. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4481. # scripts with optimization help from Paolo Bonzini. Blame Lee
  4482. # E. McMahon (1931-1989) for sed's syntax. :-)
  4483. sed -n '
  4484. p
  4485. /[$]LINENO/=
  4486. ' <$as_myself |
  4487. sed '
  4488. s/[$]LINENO.*/&-/
  4489. t lineno
  4490. b
  4491. :lineno
  4492. N
  4493. :loop
  4494. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  4495. t loop
  4496. s/-\n.*//
  4497. ' >$as_me.lineno &&
  4498. chmod +x "$as_me.lineno" ||
  4499. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  4500. { (exit 1); exit 1; }; }
  4501. # Don't try to exec as it changes $[0], causing all sort of problems
  4502. # (the dirname of $[0] is not the place where we might find the
  4503. # original and so on. Autoconf is especially sensitive to this).
  4504. . "./$as_me.lineno"
  4505. # Exit status is that of the last command.
  4506. exit
  4507. }
  4508. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4509. as_dirname=dirname
  4510. else
  4511. as_dirname=false
  4512. fi
  4513. ECHO_C= ECHO_N= ECHO_T=
  4514. case `echo -n x` in
  4515. -n*)
  4516. case `echo 'x\c'` in
  4517. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4518. *) ECHO_C='\c';;
  4519. esac;;
  4520. *)
  4521. ECHO_N='-n';;
  4522. esac
  4523. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4524. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4525. as_expr=expr
  4526. else
  4527. as_expr=false
  4528. fi
  4529. rm -f conf$$ conf$$.exe conf$$.file
  4530. if test -d conf$$.dir; then
  4531. rm -f conf$$.dir/conf$$.file
  4532. else
  4533. rm -f conf$$.dir
  4534. mkdir conf$$.dir
  4535. fi
  4536. echo >conf$$.file
  4537. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4538. as_ln_s='ln -s'
  4539. # ... but there are two gotchas:
  4540. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4541. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4542. # In both cases, we have to default to `cp -p'.
  4543. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4544. as_ln_s='cp -p'
  4545. elif ln conf$$.file conf$$ 2>/dev/null; then
  4546. as_ln_s=ln
  4547. else
  4548. as_ln_s='cp -p'
  4549. fi
  4550. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4551. rmdir conf$$.dir 2>/dev/null
  4552. if mkdir -p . 2>/dev/null; then
  4553. as_mkdir_p=:
  4554. else
  4555. test -d ./-p && rmdir ./-p
  4556. as_mkdir_p=false
  4557. fi
  4558. if test -x / >/dev/null 2>&1; then
  4559. as_test_x='test -x'
  4560. else
  4561. if ls -dL / >/dev/null 2>&1; then
  4562. as_ls_L_option=L
  4563. else
  4564. as_ls_L_option=
  4565. fi
  4566. as_test_x='
  4567. eval sh -c '\''
  4568. if test -d "$1"; then
  4569. test -d "$1/.";
  4570. else
  4571. case $1 in
  4572. -*)set "./$1";;
  4573. esac;
  4574. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  4575. ???[sx]*):;;*)false;;esac;fi
  4576. '\'' sh
  4577. '
  4578. fi
  4579. as_executable_p=$as_test_x
  4580. # Sed expression to map a string onto a valid CPP name.
  4581. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4582. # Sed expression to map a string onto a valid variable name.
  4583. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4584. exec 6>&1
  4585. # Save the log message, to keep $[0] and so on meaningful, and to
  4586. # report actual input values of CONFIG_FILES etc. instead of their
  4587. # values after options handling.
  4588. ac_log="
  4589. This file was extended by RtMidi $as_me 2.0, which was
  4590. generated by GNU Autoconf 2.61. Invocation command line was
  4591. CONFIG_FILES = $CONFIG_FILES
  4592. CONFIG_HEADERS = $CONFIG_HEADERS
  4593. CONFIG_LINKS = $CONFIG_LINKS
  4594. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4595. $ $0 $@
  4596. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4597. "
  4598. _ACEOF
  4599. cat >>$CONFIG_STATUS <<_ACEOF
  4600. # Files that config.status was made for.
  4601. config_files="$ac_config_files"
  4602. _ACEOF
  4603. cat >>$CONFIG_STATUS <<\_ACEOF
  4604. ac_cs_usage="\
  4605. \`$as_me' instantiates files from templates according to the
  4606. current configuration.
  4607. Usage: $0 [OPTIONS] [FILE]...
  4608. -h, --help print this help, then exit
  4609. -V, --version print version number and configuration settings, then exit
  4610. -q, --quiet do not print progress messages
  4611. -d, --debug don't remove temporary files
  4612. --recheck update $as_me by reconfiguring in the same conditions
  4613. --file=FILE[:TEMPLATE]
  4614. instantiate the configuration file FILE
  4615. Configuration files:
  4616. $config_files
  4617. Report bugs to <bug-autoconf@gnu.org>."
  4618. _ACEOF
  4619. cat >>$CONFIG_STATUS <<_ACEOF
  4620. ac_cs_version="\\
  4621. RtMidi config.status 2.0
  4622. configured by $0, generated by GNU Autoconf 2.61,
  4623. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4624. Copyright (C) 2006 Free Software Foundation, Inc.
  4625. This config.status script is free software; the Free Software Foundation
  4626. gives unlimited permission to copy, distribute and modify it."
  4627. ac_pwd='$ac_pwd'
  4628. srcdir='$srcdir'
  4629. _ACEOF
  4630. cat >>$CONFIG_STATUS <<\_ACEOF
  4631. # If no file are specified by the user, then we need to provide default
  4632. # value. By we need to know if files were specified by the user.
  4633. ac_need_defaults=:
  4634. while test $# != 0
  4635. do
  4636. case $1 in
  4637. --*=*)
  4638. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4639. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4640. ac_shift=:
  4641. ;;
  4642. *)
  4643. ac_option=$1
  4644. ac_optarg=$2
  4645. ac_shift=shift
  4646. ;;
  4647. esac
  4648. case $ac_option in
  4649. # Handling of the options.
  4650. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4651. ac_cs_recheck=: ;;
  4652. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4653. echo "$ac_cs_version"; exit ;;
  4654. --debug | --debu | --deb | --de | --d | -d )
  4655. debug=: ;;
  4656. --file | --fil | --fi | --f )
  4657. $ac_shift
  4658. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4659. ac_need_defaults=false;;
  4660. --he | --h | --help | --hel | -h )
  4661. echo "$ac_cs_usage"; exit ;;
  4662. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4663. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4664. ac_cs_silent=: ;;
  4665. # This is an error.
  4666. -*) { echo "$as_me: error: unrecognized option: $1
  4667. Try \`$0 --help' for more information." >&2
  4668. { (exit 1); exit 1; }; } ;;
  4669. *) ac_config_targets="$ac_config_targets $1"
  4670. ac_need_defaults=false ;;
  4671. esac
  4672. shift
  4673. done
  4674. ac_configure_extra_args=
  4675. if $ac_cs_silent; then
  4676. exec 6>/dev/null
  4677. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4678. fi
  4679. _ACEOF
  4680. cat >>$CONFIG_STATUS <<_ACEOF
  4681. if \$ac_cs_recheck; then
  4682. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4683. CONFIG_SHELL=$SHELL
  4684. export CONFIG_SHELL
  4685. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4686. fi
  4687. _ACEOF
  4688. cat >>$CONFIG_STATUS <<\_ACEOF
  4689. exec 5>>config.log
  4690. {
  4691. echo
  4692. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4693. ## Running $as_me. ##
  4694. _ASBOX
  4695. echo "$ac_log"
  4696. } >&5
  4697. _ACEOF
  4698. cat >>$CONFIG_STATUS <<_ACEOF
  4699. _ACEOF
  4700. cat >>$CONFIG_STATUS <<\_ACEOF
  4701. # Handling of arguments.
  4702. for ac_config_target in $ac_config_targets
  4703. do
  4704. case $ac_config_target in
  4705. "rtmidi-config") CONFIG_FILES="$CONFIG_FILES rtmidi-config" ;;
  4706. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4707. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  4708. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4709. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4710. { (exit 1); exit 1; }; };;
  4711. esac
  4712. done
  4713. # If the user did not use the arguments to specify the items to instantiate,
  4714. # then the envvar interface is used. Set only those that are not.
  4715. # We use the long form for the default assignment because of an extremely
  4716. # bizarre bug on SunOS 4.1.3.
  4717. if $ac_need_defaults; then
  4718. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4719. fi
  4720. # Have a temporary directory for convenience. Make it in the build tree
  4721. # simply because there is no reason against having it here, and in addition,
  4722. # creating and moving files from /tmp can sometimes cause problems.
  4723. # Hook for its removal unless debugging.
  4724. # Note that there is a small window in which the directory will not be cleaned:
  4725. # after its creation but before its name has been assigned to `$tmp'.
  4726. $debug ||
  4727. {
  4728. tmp=
  4729. trap 'exit_status=$?
  4730. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  4731. ' 0
  4732. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4733. }
  4734. # Create a (secure) tmp directory for tmp files.
  4735. {
  4736. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4737. test -n "$tmp" && test -d "$tmp"
  4738. } ||
  4739. {
  4740. tmp=./conf$$-$RANDOM
  4741. (umask 077 && mkdir "$tmp")
  4742. } ||
  4743. {
  4744. echo "$me: cannot create a temporary directory in ." >&2
  4745. { (exit 1); exit 1; }
  4746. }
  4747. #
  4748. # Set up the sed scripts for CONFIG_FILES section.
  4749. #
  4750. # No need to generate the scripts if there are no CONFIG_FILES.
  4751. # This happens for instance when ./config.status config.h
  4752. if test -n "$CONFIG_FILES"; then
  4753. _ACEOF
  4754. ac_delim='%!_!# '
  4755. for ac_last_try in false false false false false :; do
  4756. cat >conf$$subs.sed <<_ACEOF
  4757. SHELL!$SHELL$ac_delim
  4758. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  4759. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  4760. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  4761. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  4762. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  4763. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  4764. exec_prefix!$exec_prefix$ac_delim
  4765. prefix!$prefix$ac_delim
  4766. program_transform_name!$program_transform_name$ac_delim
  4767. bindir!$bindir$ac_delim
  4768. sbindir!$sbindir$ac_delim
  4769. libexecdir!$libexecdir$ac_delim
  4770. datarootdir!$datarootdir$ac_delim
  4771. datadir!$datadir$ac_delim
  4772. sysconfdir!$sysconfdir$ac_delim
  4773. sharedstatedir!$sharedstatedir$ac_delim
  4774. localstatedir!$localstatedir$ac_delim
  4775. includedir!$includedir$ac_delim
  4776. oldincludedir!$oldincludedir$ac_delim
  4777. docdir!$docdir$ac_delim
  4778. infodir!$infodir$ac_delim
  4779. htmldir!$htmldir$ac_delim
  4780. dvidir!$dvidir$ac_delim
  4781. pdfdir!$pdfdir$ac_delim
  4782. psdir!$psdir$ac_delim
  4783. libdir!$libdir$ac_delim
  4784. localedir!$localedir$ac_delim
  4785. mandir!$mandir$ac_delim
  4786. DEFS!$DEFS$ac_delim
  4787. ECHO_C!$ECHO_C$ac_delim
  4788. ECHO_N!$ECHO_N$ac_delim
  4789. ECHO_T!$ECHO_T$ac_delim
  4790. LIBS!$LIBS$ac_delim
  4791. build_alias!$build_alias$ac_delim
  4792. host_alias!$host_alias$ac_delim
  4793. target_alias!$target_alias$ac_delim
  4794. GXX!$GXX$ac_delim
  4795. CXX!$CXX$ac_delim
  4796. CXXFLAGS!$CXXFLAGS$ac_delim
  4797. LDFLAGS!$LDFLAGS$ac_delim
  4798. CPPFLAGS!$CPPFLAGS$ac_delim
  4799. ac_ct_CXX!$ac_ct_CXX$ac_delim
  4800. EXEEXT!$EXEEXT$ac_delim
  4801. OBJEXT!$OBJEXT$ac_delim
  4802. RANLIB!$RANLIB$ac_delim
  4803. AR!$AR$ac_delim
  4804. CC!$CC$ac_delim
  4805. CFLAGS!$CFLAGS$ac_delim
  4806. ac_ct_CC!$ac_ct_CC$ac_delim
  4807. CPP!$CPP$ac_delim
  4808. GREP!$GREP$ac_delim
  4809. EGREP!$EGREP$ac_delim
  4810. cppflag!$cppflag$ac_delim
  4811. cxxflag!$cxxflag$ac_delim
  4812. object_path!$object_path$ac_delim
  4813. build!$build$ac_delim
  4814. build_cpu!$build_cpu$ac_delim
  4815. build_vendor!$build_vendor$ac_delim
  4816. build_os!$build_os$ac_delim
  4817. host!$host$ac_delim
  4818. host_cpu!$host_cpu$ac_delim
  4819. host_vendor!$host_vendor$ac_delim
  4820. host_os!$host_os$ac_delim
  4821. sharedlib!$sharedlib$ac_delim
  4822. sharedname!$sharedname$ac_delim
  4823. libflags!$libflags$ac_delim
  4824. api!$api$ac_delim
  4825. LIBOBJS!$LIBOBJS$ac_delim
  4826. LTLIBOBJS!$LTLIBOBJS$ac_delim
  4827. _ACEOF
  4828. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
  4829. break
  4830. elif $ac_last_try; then
  4831. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4832. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4833. { (exit 1); exit 1; }; }
  4834. else
  4835. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4836. fi
  4837. done
  4838. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  4839. if test -n "$ac_eof"; then
  4840. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  4841. ac_eof=`expr $ac_eof + 1`
  4842. fi
  4843. cat >>$CONFIG_STATUS <<_ACEOF
  4844. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  4845. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  4846. _ACEOF
  4847. sed '
  4848. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  4849. s/^/s,@/; s/!/@,|#_!!_#|/
  4850. :n
  4851. t n
  4852. s/'"$ac_delim"'$/,g/; t
  4853. s/$/\\/; p
  4854. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  4855. ' >>$CONFIG_STATUS <conf$$subs.sed
  4856. rm -f conf$$subs.sed
  4857. cat >>$CONFIG_STATUS <<_ACEOF
  4858. :end
  4859. s/|#_!!_#|//g
  4860. CEOF$ac_eof
  4861. _ACEOF
  4862. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4863. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4864. # trailing colons and then remove the whole line if VPATH becomes empty
  4865. # (actually we leave an empty line to preserve line numbers).
  4866. if test "x$srcdir" = x.; then
  4867. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4868. s/:*\$(srcdir):*/:/
  4869. s/:*\${srcdir}:*/:/
  4870. s/:*@srcdir@:*/:/
  4871. s/^\([^=]*=[ ]*\):*/\1/
  4872. s/:*$//
  4873. s/^[^=]*=[ ]*$//
  4874. }'
  4875. fi
  4876. cat >>$CONFIG_STATUS <<\_ACEOF
  4877. fi # test -n "$CONFIG_FILES"
  4878. for ac_tag in :F $CONFIG_FILES
  4879. do
  4880. case $ac_tag in
  4881. :[FHLC]) ac_mode=$ac_tag; continue;;
  4882. esac
  4883. case $ac_mode$ac_tag in
  4884. :[FHL]*:*);;
  4885. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4886. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4887. { (exit 1); exit 1; }; };;
  4888. :[FH]-) ac_tag=-:-;;
  4889. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4890. esac
  4891. ac_save_IFS=$IFS
  4892. IFS=:
  4893. set x $ac_tag
  4894. IFS=$ac_save_IFS
  4895. shift
  4896. ac_file=$1
  4897. shift
  4898. case $ac_mode in
  4899. :L) ac_source=$1;;
  4900. :[FH])
  4901. ac_file_inputs=
  4902. for ac_f
  4903. do
  4904. case $ac_f in
  4905. -) ac_f="$tmp/stdin";;
  4906. *) # Look for the file first in the build tree, then in the source tree
  4907. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4908. # because $ac_f cannot contain `:'.
  4909. test -f "$ac_f" ||
  4910. case $ac_f in
  4911. [\\/$]*) false;;
  4912. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4913. esac ||
  4914. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4915. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4916. { (exit 1); exit 1; }; };;
  4917. esac
  4918. ac_file_inputs="$ac_file_inputs $ac_f"
  4919. done
  4920. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4921. # use $as_me), people would be surprised to read:
  4922. # /* config.h. Generated by config.status. */
  4923. configure_input="Generated from "`IFS=:
  4924. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  4925. if test x"$ac_file" != x-; then
  4926. configure_input="$ac_file. $configure_input"
  4927. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4928. echo "$as_me: creating $ac_file" >&6;}
  4929. fi
  4930. case $ac_tag in
  4931. *:-:* | *:-) cat >"$tmp/stdin";;
  4932. esac
  4933. ;;
  4934. esac
  4935. ac_dir=`$as_dirname -- "$ac_file" ||
  4936. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4937. X"$ac_file" : 'X\(//\)[^/]' \| \
  4938. X"$ac_file" : 'X\(//\)$' \| \
  4939. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4940. echo X"$ac_file" |
  4941. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4942. s//\1/
  4943. q
  4944. }
  4945. /^X\(\/\/\)[^/].*/{
  4946. s//\1/
  4947. q
  4948. }
  4949. /^X\(\/\/\)$/{
  4950. s//\1/
  4951. q
  4952. }
  4953. /^X\(\/\).*/{
  4954. s//\1/
  4955. q
  4956. }
  4957. s/.*/./; q'`
  4958. { as_dir="$ac_dir"
  4959. case $as_dir in #(
  4960. -*) as_dir=./$as_dir;;
  4961. esac
  4962. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  4963. as_dirs=
  4964. while :; do
  4965. case $as_dir in #(
  4966. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  4967. *) as_qdir=$as_dir;;
  4968. esac
  4969. as_dirs="'$as_qdir' $as_dirs"
  4970. as_dir=`$as_dirname -- "$as_dir" ||
  4971. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4972. X"$as_dir" : 'X\(//\)[^/]' \| \
  4973. X"$as_dir" : 'X\(//\)$' \| \
  4974. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4975. echo X"$as_dir" |
  4976. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4977. s//\1/
  4978. q
  4979. }
  4980. /^X\(\/\/\)[^/].*/{
  4981. s//\1/
  4982. q
  4983. }
  4984. /^X\(\/\/\)$/{
  4985. s//\1/
  4986. q
  4987. }
  4988. /^X\(\/\).*/{
  4989. s//\1/
  4990. q
  4991. }
  4992. s/.*/./; q'`
  4993. test -d "$as_dir" && break
  4994. done
  4995. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4996. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  4997. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  4998. { (exit 1); exit 1; }; }; }
  4999. ac_builddir=.
  5000. case "$ac_dir" in
  5001. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5002. *)
  5003. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5004. # A ".." for each directory in $ac_dir_suffix.
  5005. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  5006. case $ac_top_builddir_sub in
  5007. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5008. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5009. esac ;;
  5010. esac
  5011. ac_abs_top_builddir=$ac_pwd
  5012. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5013. # for backward compatibility:
  5014. ac_top_builddir=$ac_top_build_prefix
  5015. case $srcdir in
  5016. .) # We are building in place.
  5017. ac_srcdir=.
  5018. ac_top_srcdir=$ac_top_builddir_sub
  5019. ac_abs_top_srcdir=$ac_pwd ;;
  5020. [\\/]* | ?:[\\/]* ) # Absolute name.
  5021. ac_srcdir=$srcdir$ac_dir_suffix;
  5022. ac_top_srcdir=$srcdir
  5023. ac_abs_top_srcdir=$srcdir ;;
  5024. *) # Relative name.
  5025. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5026. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5027. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5028. esac
  5029. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5030. case $ac_mode in
  5031. :F)
  5032. #
  5033. # CONFIG_FILE
  5034. #
  5035. _ACEOF
  5036. cat >>$CONFIG_STATUS <<\_ACEOF
  5037. # If the template does not know about datarootdir, expand it.
  5038. # FIXME: This hack should be removed a few years after 2.60.
  5039. ac_datarootdir_hack=; ac_datarootdir_seen=
  5040. case `sed -n '/datarootdir/ {
  5041. p
  5042. q
  5043. }
  5044. /@datadir@/p
  5045. /@docdir@/p
  5046. /@infodir@/p
  5047. /@localedir@/p
  5048. /@mandir@/p
  5049. ' $ac_file_inputs` in
  5050. *datarootdir*) ac_datarootdir_seen=yes;;
  5051. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5052. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5053. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5054. _ACEOF
  5055. cat >>$CONFIG_STATUS <<_ACEOF
  5056. ac_datarootdir_hack='
  5057. s&@datadir@&$datadir&g
  5058. s&@docdir@&$docdir&g
  5059. s&@infodir@&$infodir&g
  5060. s&@localedir@&$localedir&g
  5061. s&@mandir@&$mandir&g
  5062. s&\\\${datarootdir}&$datarootdir&g' ;;
  5063. esac
  5064. _ACEOF
  5065. # Neutralize VPATH when `$srcdir' = `.'.
  5066. # Shell code in configure.ac might set extrasub.
  5067. # FIXME: do we really want to maintain this feature?
  5068. cat >>$CONFIG_STATUS <<_ACEOF
  5069. sed "$ac_vpsub
  5070. $extrasub
  5071. _ACEOF
  5072. cat >>$CONFIG_STATUS <<\_ACEOF
  5073. :t
  5074. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5075. s&@configure_input@&$configure_input&;t t
  5076. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5077. s&@srcdir@&$ac_srcdir&;t t
  5078. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5079. s&@top_srcdir@&$ac_top_srcdir&;t t
  5080. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5081. s&@builddir@&$ac_builddir&;t t
  5082. s&@abs_builddir@&$ac_abs_builddir&;t t
  5083. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5084. $ac_datarootdir_hack
  5085. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  5086. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5087. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5088. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5089. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5090. which seems to be undefined. Please make sure it is defined." >&5
  5091. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5092. which seems to be undefined. Please make sure it is defined." >&2;}
  5093. rm -f "$tmp/stdin"
  5094. case $ac_file in
  5095. -) cat "$tmp/out"; rm -f "$tmp/out";;
  5096. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  5097. esac
  5098. ;;
  5099. esac
  5100. done # for ac_tag
  5101. { (exit 0); exit 0; }
  5102. _ACEOF
  5103. chmod +x $CONFIG_STATUS
  5104. ac_clean_files=$ac_clean_files_save
  5105. # configure is writing to config.log, and then calls config.status.
  5106. # config.status does its own redirection, appending to config.log.
  5107. # Unfortunately, on DOS this fails, as config.log is still kept open
  5108. # by configure, so config.status won't be able to write to it; its
  5109. # output is simply discarded. So we exec the FD to /dev/null,
  5110. # effectively closing config.log, so it can be properly (re)opened and
  5111. # appended to by config.status. When coming back to configure, we
  5112. # need to make the FD available again.
  5113. if test "$no_create" != yes; then
  5114. ac_cs_success=:
  5115. ac_config_status_args=
  5116. test "$silent" = yes &&
  5117. ac_config_status_args="$ac_config_status_args --quiet"
  5118. exec 5>/dev/null
  5119. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5120. exec 5>>config.log
  5121. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5122. # would make configure fail if this is the last instruction.
  5123. $ac_cs_success || { (exit 1); exit 1; }
  5124. fi
  5125. chmod oug+x rtmidi-config