bootstrap-funclib.sh 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  1. # A library of shell functions for autopull.sh, autogen.sh, and bootstrap.
  2. # Copyright (C) 2003-2022 Free Software Foundation, Inc.
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. # Originally written by Paul Eggert. The canonical version of this
  17. # script is maintained as build-aux/bootstrap-funclib.sh in gnulib.
  18. # However, to be useful to your package, you should place a copy of it
  19. # under version control in the top-level directory of your package. The
  20. # intent is that all customization can be done with a bootstrap.conf
  21. # file also maintained in your version control; gnulib comes with a
  22. # template build-aux/bootstrap.conf to get you started.
  23. scriptversion=2022-07-24.15; # UTC
  24. nl='
  25. '
  26. # Ensure file names are sorted consistently across platforms.
  27. LC_ALL=C
  28. export LC_ALL
  29. # Honor $PERL, but work even if there is none.
  30. PERL="${PERL-perl}"
  31. default_gnulib_url=https://git.savannah.gnu.org/git/gnulib.git
  32. # Copyright year, for the --version output.
  33. copyright_year=`echo "$scriptversion" | sed -e 's/[^0-9].*//'`
  34. copyright="Copyright (C) ${copyright_year} Free Software Foundation, Inc.
  35. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
  36. This is free software: you are free to change and redistribute it.
  37. There is NO WARRANTY, to the extent permitted by law."
  38. # warnf_ FORMAT-STRING ARG1...
  39. warnf_ ()
  40. {
  41. warnf_format_=$1
  42. shift
  43. nl='
  44. '
  45. case $* in
  46. *$nl*) me_=$(printf "$me"|tr "$nl|" '??')
  47. printf "$warnf_format_" "$@" | sed "s|^|$me_: |" ;;
  48. *) printf "$me: $warnf_format_" "$@" ;;
  49. esac >&2
  50. }
  51. # warn_ WORD1...
  52. warn_ ()
  53. {
  54. # If IFS does not start with ' ', set it and emit the warning in a subshell.
  55. case $IFS in
  56. ' '*) warnf_ '%s\n' "$*";;
  57. *) (IFS=' '; warn_ "$@");;
  58. esac
  59. }
  60. # die WORD1...
  61. die() { warn_ "$@"; exit 1; }
  62. # ------------------------------ Configuration. ------------------------------
  63. # Directory that contains package-specific gnulib modules and/or overrides.
  64. local_gl_dir=gl
  65. # Name of the Makefile.am
  66. # XXX Not used.
  67. gnulib_mk=gnulib.mk
  68. # List of gnulib modules needed.
  69. gnulib_modules=
  70. # Any gnulib files needed that are not in modules.
  71. gnulib_files=
  72. # A function to be called for each unrecognized option. Returns 0 if
  73. # the option in $1 has been processed by the function. Returns 1 if
  74. # the option has not been processed by the function. Override it via
  75. # your own definition in bootstrap.conf
  76. bootstrap_option_hook() { return 1; }
  77. # A function to be called in order to print the --help information
  78. # corresponding to user-defined command-line options.
  79. bootstrap_print_option_usage_hook() { :; }
  80. # A function to be called at the end of autopull.sh.
  81. # Override it via your own definition in bootstrap.conf.
  82. bootstrap_post_pull_hook() { :; }
  83. # A function to be called right after gnulib-tool is run.
  84. # Override it via your own definition in bootstrap.conf.
  85. bootstrap_post_import_hook() { :; }
  86. # A function to be called after everything else in this script.
  87. # Override it via your own definition in bootstrap.conf.
  88. bootstrap_epilogue() { :; }
  89. # The command to download all .po files for a specified domain into a
  90. # specified directory. Fill in the first %s with the destination
  91. # directory and the second with the domain name.
  92. po_download_command_format=\
  93. "wget --mirror --level=1 -nd -nv -A.po -P '%s' \
  94. https://translationproject.org/latest/%s/"
  95. # Prefer a non-empty tarname (4th argument of AC_INIT if given), else
  96. # fall back to the package name (1st argument with munging).
  97. extract_package_name='
  98. /^AC_INIT(\[*/{
  99. s///
  100. /^[^,]*,[^,]*,[^,]*,[ []*\([^][ ,)]\)/{
  101. s//\1/
  102. s/[],)].*//
  103. p
  104. q
  105. }
  106. s/[],)].*//
  107. s/^GNU //
  108. y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  109. s/[^abcdefghijklmnopqrstuvwxyz0123456789_]/-/g
  110. p
  111. }
  112. '
  113. package=$(${AUTOCONF:-autoconf} --trace AC_INIT:\$4 configure.ac 2>/dev/null)
  114. if test -z "$package"; then
  115. package=$(sed -n "$extract_package_name" configure.ac) \
  116. || die 'cannot find package name in configure.ac'
  117. fi
  118. gnulib_name=lib$package
  119. build_aux=build-aux
  120. source_base=lib
  121. m4_base=m4
  122. doc_base=doc
  123. tests_base=tests
  124. gnulib_extra_files="
  125. build-aux/install-sh
  126. build-aux/mdate-sh
  127. build-aux/texinfo.tex
  128. build-aux/depcomp
  129. build-aux/config.guess
  130. build-aux/config.sub
  131. doc/INSTALL
  132. "
  133. # Additional gnulib-tool options to use. Use "\newline" to break lines.
  134. gnulib_tool_option_extras=
  135. # Other locale categories that need message catalogs.
  136. EXTRA_LOCALE_CATEGORIES=
  137. # Additional xgettext options to use. Use "\\\newline" to break lines.
  138. XGETTEXT_OPTIONS='\\\
  139. --flag=_:1:pass-c-format\\\
  140. --flag=N_:1:pass-c-format\\\
  141. --flag=error:3:c-format --flag=error_at_line:5:c-format\\\
  142. '
  143. # Package bug report address and copyright holder for gettext files
  144. COPYRIGHT_HOLDER='Free Software Foundation, Inc.'
  145. [email protected]
  146. # Files we don't want to import.
  147. # XXX Not used.
  148. excluded_files=
  149. # File that should exist in the top directory of a checked out hierarchy,
  150. # but not in a distribution tarball.
  151. checkout_only_file=README-hacking
  152. # Set this to '.cvsignore .gitignore' in bootstrap.conf if you want
  153. # those files to be generated in directories like lib/, m4/, and po/.
  154. # Or set it to 'auto' to make this script select which to use based
  155. # on which version control system (if any) is used in the source directory.
  156. vc_ignore=auto
  157. # Set this to true in bootstrap.conf to enable --bootstrap-sync by
  158. # default.
  159. bootstrap_sync=false
  160. # Override the default configuration, if necessary.
  161. # Make sure that bootstrap.conf is sourced from the current directory
  162. # if we were invoked as "sh bootstrap".
  163. conffile=`dirname "$me"`/bootstrap.conf
  164. test -r "$conffile" && . "$conffile"
  165. # ------------------------- Build-time prerequisites -------------------------
  166. check_exists() {
  167. if test "$1" = "--verbose"; then
  168. ($2 --version </dev/null) >/dev/null 2>&1
  169. if test $? -ge 126; then
  170. # If not found, run with diagnostics as one may be
  171. # presented with env variables to set to find the right version
  172. ($2 --version </dev/null)
  173. fi
  174. else
  175. ($1 --version </dev/null) >/dev/null 2>&1
  176. fi
  177. test $? -lt 126
  178. }
  179. # Note this deviates from the version comparison in automake
  180. # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
  181. # but this should suffice as we won't be specifying old
  182. # version formats or redundant trailing .0 in bootstrap.conf.
  183. # If we did want full compatibility then we should probably
  184. # use m4_version_compare from autoconf.
  185. sort_ver() { # sort -V is not generally available
  186. ver1="$1"
  187. ver2="$2"
  188. # split on '.' and compare each component
  189. i=1
  190. while : ; do
  191. p1=$(echo "$ver1" | cut -d. -f$i)
  192. p2=$(echo "$ver2" | cut -d. -f$i)
  193. if [ ! "$p1" ]; then
  194. echo "$1 $2"
  195. break
  196. elif [ ! "$p2" ]; then
  197. echo "$2 $1"
  198. break
  199. elif [ ! "$p1" = "$p2" ]; then
  200. if [ "$p1" -gt "$p2" ] 2>/dev/null; then # numeric comparison
  201. echo "$2 $1"
  202. elif [ "$p2" -gt "$p1" ] 2>/dev/null; then # numeric comparison
  203. echo "$1 $2"
  204. else # numeric, then lexicographic comparison
  205. lp=$(printf "%s\n%s\n" "$p1" "$p2" | LANG=C sort -n | tail -n1)
  206. if [ "$lp" = "$p2" ]; then
  207. echo "$1 $2"
  208. else
  209. echo "$2 $1"
  210. fi
  211. fi
  212. break
  213. fi
  214. i=$(($i+1))
  215. done
  216. }
  217. get_version_sed='
  218. # Move version to start of line.
  219. s/.*[v ]\([0-9]\)/\1/
  220. # Skip lines that do not start with version.
  221. /^[0-9]/!d
  222. # Remove characters after the version.
  223. s/[^.a-z0-9-].*//
  224. # The first component must be digits only.
  225. s/^\([0-9]*\)[a-z-].*/\1/
  226. #the following essentially does s/5.005/5.5/
  227. s/\.0*\([1-9]\)/.\1/g
  228. p
  229. q'
  230. get_version() {
  231. app=$1
  232. $app --version >/dev/null 2>&1 || { $app --version; return 1; }
  233. $app --version 2>&1 | sed -n "$get_version_sed"
  234. }
  235. check_versions() {
  236. ret=0
  237. while read app req_ver; do
  238. # We only need libtoolize from the libtool package.
  239. if test "$app" = libtool; then
  240. app=libtoolize
  241. fi
  242. # Exempt git if git is not needed.
  243. if test "$app" = git; then
  244. $check_git || continue
  245. fi
  246. # Honor $APP variables ($TAR, $AUTOCONF, etc.)
  247. appvar=$(echo $app | LC_ALL=C tr '[a-z]-' '[A-Z]_')
  248. test "$appvar" = TAR && appvar=AMTAR
  249. case $appvar in
  250. GZIP) ;; # Do not use $GZIP: it contains gzip options.
  251. PERL::*) ;; # Keep perl modules as-is
  252. *) eval "app=\${$appvar-$app}" ;;
  253. esac
  254. # Handle the still-experimental Automake-NG programs specially.
  255. # They remain named as the mainstream Automake programs ("automake",
  256. # and "aclocal") to avoid gratuitous incompatibilities with
  257. # pre-existing usages (by, say, autoreconf, or custom autogen.sh
  258. # scripts), but correctly identify themselves (as being part of
  259. # "GNU automake-ng") when asked their version.
  260. case $app in
  261. automake-ng|aclocal-ng)
  262. app=${app%-ng}
  263. ($app --version | grep '(GNU automake-ng)') >/dev/null 2>&1 || {
  264. warn_ "Error: '$app' not found or not from Automake-NG"
  265. ret=1
  266. continue
  267. } ;;
  268. # Another check is for perl modules. These can be written as
  269. # e.g. perl::XML::XPath in case of XML::XPath module, etc.
  270. perl::*)
  271. # Extract module name
  272. app="${app#perl::}"
  273. if ! $PERL -m"$app" -e 'exit 0' >/dev/null 2>&1; then
  274. warn_ "Error: perl module '$app' not found"
  275. ret=1
  276. fi
  277. continue
  278. ;;
  279. esac
  280. if [ "$req_ver" = "-" ]; then
  281. # Merely require app to exist; not all prereq apps are well-behaved
  282. # so we have to rely on $? rather than get_version.
  283. if ! check_exists --verbose $app; then
  284. warn_ "Error: '$app' not found"
  285. ret=1
  286. fi
  287. else
  288. # Require app to produce a new enough version string.
  289. inst_ver=$(get_version $app)
  290. if [ ! "$inst_ver" ]; then
  291. warn_ "Error: '$app' not found"
  292. ret=1
  293. else
  294. latest_ver=$(sort_ver $req_ver $inst_ver | cut -d' ' -f2)
  295. if [ ! "$latest_ver" = "$inst_ver" ]; then
  296. warnf_ '%s\n' \
  297. "Error: '$app' version == $inst_ver is too old" \
  298. " '$app' version >= $req_ver is required"
  299. ret=1
  300. fi
  301. fi
  302. fi
  303. done
  304. return $ret
  305. }
  306. print_versions() {
  307. echo "Program Min_version"
  308. echo "----------------------"
  309. printf %s "$buildreq"
  310. echo "----------------------"
  311. # can't depend on column -t
  312. }
  313. # check_build_prerequisites check_git
  314. check_build_prerequisites()
  315. {
  316. check_git="$1"
  317. # gnulib-tool requires at least automake and autoconf.
  318. # If either is not listed, add it (with minimum version) as a prerequisite.
  319. case $buildreq in
  320. *automake*) ;;
  321. *) buildreq="automake 1.9
  322. $buildreq" ;;
  323. esac
  324. case $buildreq in
  325. *autoconf*) ;;
  326. *) buildreq="autoconf 2.59
  327. $buildreq" ;;
  328. esac
  329. # When we can deduce that gnulib-tool will require patch,
  330. # and when patch is not already listed as a prerequisite, add it, too.
  331. if test -d "$local_gl_dir" \
  332. && ! find "$local_gl_dir" -name '*.diff' -exec false {} +; then
  333. case $buildreq in
  334. *patch*) ;;
  335. *) buildreq="patch -
  336. $buildreq" ;;
  337. esac
  338. fi
  339. if ! printf '%s' "$buildreq" | check_versions; then
  340. echo >&2
  341. if test -f README-prereq; then
  342. die "See README-prereq for how to get the prerequisite programs"
  343. else
  344. die "Please install the prerequisite programs"
  345. fi
  346. fi
  347. # Warn the user if autom4te appears to be broken; this causes known
  348. # issues with at least gettext 0.18.3.
  349. probe=$(echo 'm4_quote([hi])' | autom4te -l M4sugar -t 'm4_quote:$%' -)
  350. if test "x$probe" != xhi; then
  351. warn_ "WARNING: your autom4te wrapper eats stdin;"
  352. warn_ "if bootstrap fails, consider upgrading your autotools"
  353. fi
  354. }
  355. # find_tool ENVVAR NAMES...
  356. # -------------------------
  357. # Search for a required program. Use the value of ENVVAR, if set,
  358. # otherwise find the first of the NAMES that can be run.
  359. # If found, set ENVVAR to the program name, die otherwise.
  360. #
  361. # FIXME: code duplication, see also gnu-web-doc-update.
  362. find_tool ()
  363. {
  364. find_tool_envvar=$1
  365. shift
  366. find_tool_names=$@
  367. eval "find_tool_res=\$$find_tool_envvar"
  368. if test x"$find_tool_res" = x; then
  369. for i; do
  370. if check_exists $i; then
  371. find_tool_res=$i
  372. break
  373. fi
  374. done
  375. fi
  376. if test x"$find_tool_res" = x; then
  377. warn_ "one of these is required: $find_tool_names;"
  378. die "alternatively set $find_tool_envvar to a compatible tool"
  379. fi
  380. eval "$find_tool_envvar=\$find_tool_res"
  381. eval "export $find_tool_envvar"
  382. }
  383. # --------------------- Preparing GNULIB_SRCDIR for use. ---------------------
  384. # This is part of autopull.sh, but bootstrap needs it too, for self-upgrading.
  385. cleanup_gnulib() {
  386. status=$?
  387. # XXX It's a bad idea to erase the submodule directory if it contains local
  388. # modifications.
  389. rm -fr "$gnulib_path"
  390. exit $status
  391. }
  392. git_modules_config () {
  393. test -f .gitmodules && git config --file .gitmodules "$@"
  394. }
  395. prepare_GNULIB_SRCDIR ()
  396. {
  397. if test -n "$GNULIB_SRCDIR"; then
  398. # Use GNULIB_SRCDIR directly.
  399. # We already checked that $GNULIB_SRCDIR references a directory.
  400. # Verify that it contains a gnulib checkout.
  401. test -f "$GNULIB_SRCDIR/gnulib-tool" \
  402. || die "Error: --gnulib-srcdir or \$GNULIB_SRCDIR is specified, but does not contain gnulib-tool"
  403. elif $use_git; then
  404. gnulib_path=$(git_modules_config submodule.gnulib.path)
  405. test -z "$gnulib_path" && gnulib_path=gnulib
  406. # Get gnulib files. Populate $gnulib_path, possibly updating a
  407. # submodule, for use in the rest of the script.
  408. if test -n "$GNULIB_REFDIR" && test -d "$GNULIB_REFDIR"/.git \
  409. && git_modules_config submodule.gnulib.url >/dev/null; then
  410. # Use GNULIB_REFDIR as a reference.
  411. echo "$0: getting gnulib files..."
  412. if git submodule -h|grep -- --reference > /dev/null; then
  413. # Prefer the one-liner available in git 1.6.4 or newer.
  414. git submodule update --init --reference "$GNULIB_REFDIR" \
  415. "$gnulib_path" || exit $?
  416. else
  417. # This fallback allows at least git 1.5.5.
  418. if test -f "$gnulib_path"/gnulib-tool; then
  419. # Since file already exists, assume submodule init already complete.
  420. git submodule update -- "$gnulib_path" || exit $?
  421. else
  422. # Older git can't clone into an empty directory.
  423. rmdir "$gnulib_path" 2>/dev/null
  424. git clone --reference "$GNULIB_REFDIR" \
  425. "$(git_modules_config submodule.gnulib.url)" "$gnulib_path" \
  426. && git submodule init -- "$gnulib_path" \
  427. && git submodule update -- "$gnulib_path" \
  428. || exit $?
  429. fi
  430. fi
  431. else
  432. # GNULIB_REFDIR is not set or not usable. Ignore it.
  433. if git_modules_config submodule.gnulib.url >/dev/null; then
  434. echo "$0: getting gnulib files..."
  435. git submodule init -- "$gnulib_path" || exit $?
  436. git submodule update -- "$gnulib_path" || exit $?
  437. elif [ ! -d "$gnulib_path" ]; then
  438. echo "$0: getting gnulib files..."
  439. trap cleanup_gnulib 1 2 13 15
  440. shallow=
  441. if test -z "$GNULIB_REVISION"; then
  442. if git clone -h 2>&1 | grep -- --depth > /dev/null; then
  443. shallow='--depth 2'
  444. fi
  445. git clone $shallow ${GNULIB_URL:-$default_gnulib_url} "$gnulib_path" \
  446. || cleanup_gnulib
  447. else
  448. if git fetch -h 2>&1 | grep -- --depth > /dev/null; then
  449. shallow='--depth 2'
  450. fi
  451. mkdir -p "$gnulib_path"
  452. # Only want a shallow checkout of $GNULIB_REVISION, but git does not
  453. # support cloning by commit hash. So attempt a shallow fetch by commit
  454. # hash to minimize the amount of data downloaded and changes needed to
  455. # be processed, which can drastically reduce download and processing
  456. # time for checkout. If the fetch by commit fails, a shallow fetch can
  457. # not be performed because we do not know what the depth of the commit
  458. # is without fetching all commits. So fallback to fetching all commits.
  459. git -C "$gnulib_path" init
  460. git -C "$gnulib_path" remote add origin \
  461. ${GNULIB_URL:-$default_gnulib_url}
  462. git -C "$gnulib_path" fetch $shallow origin "$GNULIB_REVISION" \
  463. || git -C "$gnulib_path" fetch origin \
  464. || cleanup_gnulib
  465. git -C "$gnulib_path" reset --hard FETCH_HEAD
  466. fi
  467. trap - 1 2 13 15
  468. fi
  469. fi
  470. GNULIB_SRCDIR=$gnulib_path
  471. # Verify that the submodule contains a gnulib checkout.
  472. test -f "$gnulib_path/gnulib-tool" \
  473. || die "Error: $gnulib_path is supposed to contain a gnulib checkout, but does not contain gnulib-tool"
  474. fi
  475. # XXX Should this be done if $use_git is false?
  476. if test -d "$GNULIB_SRCDIR"/.git && test -n "$GNULIB_REVISION" \
  477. && ! git_modules_config submodule.gnulib.url >/dev/null; then
  478. (cd "$GNULIB_SRCDIR" && git checkout "$GNULIB_REVISION") || cleanup_gnulib
  479. fi
  480. # $GNULIB_SRCDIR now points to the version of gnulib to use, and
  481. # we no longer need to use git or $gnulib_path below here.
  482. }
  483. # -------- Upgrading bootstrap to the version found in GNULIB_SRCDIR. --------
  484. upgrade_bootstrap ()
  485. {
  486. { cmp -s "$medir"/bootstrap "$GNULIB_SRCDIR/top/bootstrap" \
  487. && cmp -s "$medir"/bootstrap-funclib.sh "$GNULIB_SRCDIR/top/bootstrap-funclib.sh" \
  488. && cmp -s "$medir"/autopull.sh "$GNULIB_SRCDIR/top/autopull.sh" \
  489. && cmp -s "$medir"/autogen.sh "$GNULIB_SRCDIR/top/autogen.sh"; \
  490. } || {
  491. echo "$0: updating bootstrap & companions and restarting..."
  492. case $(sh -c 'echo "$1"' -- a) in
  493. a) ignored=--;;
  494. *) ignored=ignored;;
  495. esac
  496. exec sh -c \
  497. '{ if test -f "$1"; then cp "$1" "$3"; else cp "$2" "$3"; fi; } && { if test -f "$4"; then cp "$4" "$5"; else rm -f "$5"; fi; } && { if test -f "$6"; then cp "$6" "$7"; else rm -f "$7"; fi; } && { if test -f "$8"; then cp "$8" "$9"; else rm -f "$9"; fi; } && shift && shift && shift && shift && shift && shift && shift && shift && shift && exec "${CONFIG_SHELL-/bin/sh}" "$@"' \
  498. $ignored \
  499. "$GNULIB_SRCDIR/top/bootstrap" "$GNULIB_SRCDIR/build-aux/bootstrap" "$medir/bootstrap" \
  500. "$GNULIB_SRCDIR/top/bootstrap-funclib.sh" "$medir/bootstrap-funclib.sh" \
  501. "$GNULIB_SRCDIR/top/autopull.sh" "$medir/autopull.sh" \
  502. "$GNULIB_SRCDIR/top/autogen.sh" "$medir/autogen.sh" \
  503. "$0" "$@" --no-bootstrap-sync
  504. }
  505. }
  506. # ----------------------------------------------------------------------------
  507. if test x"$gnulib_modules$gnulib_files$gnulib_extra_files" = x; then
  508. use_gnulib=false
  509. else
  510. use_gnulib=true
  511. fi
  512. # ----------------------------------------------------------------------------
  513. # Local Variables:
  514. # eval: (add-hook 'before-save-hook 'time-stamp)
  515. # time-stamp-start: "scriptversion="
  516. # time-stamp-format: "%:y-%02m-%02d.%02H"
  517. # time-stamp-time-zone: "UTC0"
  518. # time-stamp-end: "; # UTC"
  519. # End: