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.

5959 lines
168 KiB

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