config.status 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  1. #! /bin/bash
  2. # Generated by configure.
  3. # Run this file to recreate the current configuration.
  4. # Compiler output produced by configure, useful for debugging
  5. # configure, is in config.log if it exists.
  6. debug=false
  7. ac_cs_recheck=false
  8. ac_cs_silent=false
  9. SHELL=${CONFIG_SHELL-/bin/bash}
  10. export SHELL
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  124. # ----------------------------------------
  125. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  126. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  127. # script with STATUS, using 1 if that was 0.
  128. as_fn_error ()
  129. {
  130. as_status=$1; test $as_status -eq 0 && as_status=1
  131. if test "$4"; then
  132. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  133. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  134. fi
  135. $as_echo "$as_me: error: $2" >&2
  136. as_fn_exit $as_status
  137. } # as_fn_error
  138. # as_fn_set_status STATUS
  139. # -----------------------
  140. # Set $? to STATUS, without forking.
  141. as_fn_set_status ()
  142. {
  143. return $1
  144. } # as_fn_set_status
  145. # as_fn_exit STATUS
  146. # -----------------
  147. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  148. as_fn_exit ()
  149. {
  150. set +e
  151. as_fn_set_status $1
  152. exit $1
  153. } # as_fn_exit
  154. # as_fn_unset VAR
  155. # ---------------
  156. # Portably unset VAR.
  157. as_fn_unset ()
  158. {
  159. { eval $1=; unset $1;}
  160. }
  161. as_unset=as_fn_unset
  162. # as_fn_append VAR VALUE
  163. # ----------------------
  164. # Append the text in VALUE to the end of the definition contained in VAR. Take
  165. # advantage of any shell optimizations that allow amortized linear growth over
  166. # repeated appends, instead of the typical quadratic growth present in naive
  167. # implementations.
  168. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  169. eval 'as_fn_append ()
  170. {
  171. eval $1+=\$2
  172. }'
  173. else
  174. as_fn_append ()
  175. {
  176. eval $1=\$$1\$2
  177. }
  178. fi # as_fn_append
  179. # as_fn_arith ARG...
  180. # ------------------
  181. # Perform arithmetic evaluation on the ARGs, and store the result in the
  182. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  183. # must be portable across $(()) and expr.
  184. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  185. eval 'as_fn_arith ()
  186. {
  187. as_val=$(( $* ))
  188. }'
  189. else
  190. as_fn_arith ()
  191. {
  192. as_val=`expr "$@" || test $? -eq 1`
  193. }
  194. fi # as_fn_arith
  195. if expr a : '\(a\)' >/dev/null 2>&1 &&
  196. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  197. as_expr=expr
  198. else
  199. as_expr=false
  200. fi
  201. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  202. as_basename=basename
  203. else
  204. as_basename=false
  205. fi
  206. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  207. as_dirname=dirname
  208. else
  209. as_dirname=false
  210. fi
  211. as_me=`$as_basename -- "$0" ||
  212. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  213. X"$0" : 'X\(//\)$' \| \
  214. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  215. $as_echo X/"$0" |
  216. sed '/^.*\/\([^/][^/]*\)\/*$/{
  217. s//\1/
  218. q
  219. }
  220. /^X\/\(\/\/\)$/{
  221. s//\1/
  222. q
  223. }
  224. /^X\/\(\/\).*/{
  225. s//\1/
  226. q
  227. }
  228. s/.*/./; q'`
  229. # Avoid depending upon Character Ranges.
  230. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  231. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  232. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  233. as_cr_digits='0123456789'
  234. as_cr_alnum=$as_cr_Letters$as_cr_digits
  235. ECHO_C= ECHO_N= ECHO_T=
  236. case `echo -n x` in #(((((
  237. -n*)
  238. case `echo 'xy\c'` in
  239. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  240. xy) ECHO_C='\c';;
  241. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  242. ECHO_T=' ';;
  243. esac;;
  244. *)
  245. ECHO_N='-n';;
  246. esac
  247. rm -f conf$$ conf$$.exe conf$$.file
  248. if test -d conf$$.dir; then
  249. rm -f conf$$.dir/conf$$.file
  250. else
  251. rm -f conf$$.dir
  252. mkdir conf$$.dir 2>/dev/null
  253. fi
  254. if (echo >conf$$.file) 2>/dev/null; then
  255. if ln -s conf$$.file conf$$ 2>/dev/null; then
  256. as_ln_s='ln -s'
  257. # ... but there are two gotchas:
  258. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  259. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  260. # In both cases, we have to default to `cp -pR'.
  261. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  262. as_ln_s='cp -pR'
  263. elif ln conf$$.file conf$$ 2>/dev/null; then
  264. as_ln_s=ln
  265. else
  266. as_ln_s='cp -pR'
  267. fi
  268. else
  269. as_ln_s='cp -pR'
  270. fi
  271. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  272. rmdir conf$$.dir 2>/dev/null
  273. # as_fn_mkdir_p
  274. # -------------
  275. # Create "$as_dir" as a directory, including parents if necessary.
  276. as_fn_mkdir_p ()
  277. {
  278. case $as_dir in #(
  279. -*) as_dir=./$as_dir;;
  280. esac
  281. test -d "$as_dir" || eval $as_mkdir_p || {
  282. as_dirs=
  283. while :; do
  284. case $as_dir in #(
  285. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  286. *) as_qdir=$as_dir;;
  287. esac
  288. as_dirs="'$as_qdir' $as_dirs"
  289. as_dir=`$as_dirname -- "$as_dir" ||
  290. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  291. X"$as_dir" : 'X\(//\)[^/]' \| \
  292. X"$as_dir" : 'X\(//\)$' \| \
  293. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  294. $as_echo X"$as_dir" |
  295. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)[^/].*/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\/\)$/{
  304. s//\1/
  305. q
  306. }
  307. /^X\(\/\).*/{
  308. s//\1/
  309. q
  310. }
  311. s/.*/./; q'`
  312. test -d "$as_dir" && break
  313. done
  314. test -z "$as_dirs" || eval "mkdir $as_dirs"
  315. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  316. } # as_fn_mkdir_p
  317. if mkdir -p . 2>/dev/null; then
  318. as_mkdir_p='mkdir -p "$as_dir"'
  319. else
  320. test -d ./-p && rmdir ./-p
  321. as_mkdir_p=false
  322. fi
  323. # as_fn_executable_p FILE
  324. # -----------------------
  325. # Test if FILE is an executable regular file.
  326. as_fn_executable_p ()
  327. {
  328. test -f "$1" && test -x "$1"
  329. } # as_fn_executable_p
  330. as_test_x='test -x'
  331. as_executable_p=as_fn_executable_p
  332. # Sed expression to map a string onto a valid CPP name.
  333. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  334. # Sed expression to map a string onto a valid variable name.
  335. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  336. exec 6>&1
  337. ## ----------------------------------- ##
  338. ## Main body of $CONFIG_STATUS script. ##
  339. ## ----------------------------------- ##
  340. # Save the log message, to keep $0 and so on meaningful, and to
  341. # report actual input values of CONFIG_FILES etc. instead of their
  342. # values after options handling.
  343. ac_log="
  344. This file was extended by Mini-XML $as_me 2.10, which was
  345. generated by GNU Autoconf 2.69. Invocation command line was
  346. CONFIG_FILES = $CONFIG_FILES
  347. CONFIG_HEADERS = $CONFIG_HEADERS
  348. CONFIG_LINKS = $CONFIG_LINKS
  349. CONFIG_COMMANDS = $CONFIG_COMMANDS
  350. $ $0 $@
  351. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  352. "
  353. # Files that config.status was made for.
  354. config_files=" Makefile mxml.list mxml.pc"
  355. config_headers=" config.h"
  356. ac_cs_usage="\
  357. \`$as_me' instantiates files and other configuration actions
  358. from templates according to the current configuration. Unless the files
  359. and actions are specified as TAGs, all are instantiated by default.
  360. Usage: $0 [OPTION]... [TAG]...
  361. -h, --help print this help, then exit
  362. -V, --version print version number and configuration settings, then exit
  363. --config print configuration, then exit
  364. -q, --quiet, --silent
  365. do not print progress messages
  366. -d, --debug don't remove temporary files
  367. --recheck update $as_me by reconfiguring in the same conditions
  368. --file=FILE[:TEMPLATE]
  369. instantiate the configuration file FILE
  370. --header=FILE[:TEMPLATE]
  371. instantiate the configuration header FILE
  372. Configuration files:
  373. $config_files
  374. Configuration headers:
  375. $config_headers
  376. Report bugs to <http://www.msweet.org/bugs.php/Mini-XML>.
  377. Mini-XML home page: <http://www.msweet.org/projects.php/Mini-XML>."
  378. ac_cs_config=""
  379. ac_cs_version="\
  380. Mini-XML config.status 2.10
  381. configured by ./configure, generated by GNU Autoconf 2.69,
  382. with options \"$ac_cs_config\"
  383. Copyright (C) 2012 Free Software Foundation, Inc.
  384. This config.status script is free software; the Free Software Foundation
  385. gives unlimited permission to copy, distribute and modify it."
  386. ac_pwd='/home/mara/work/feeder/feeder_lib/gpx/mxml-2.10'
  387. srcdir='.'
  388. INSTALL='/usr/bin/install -c'
  389. test -n "$AWK" || AWK=awk
  390. # The default lists apply if the user does not specify any file.
  391. ac_need_defaults=:
  392. while test $# != 0
  393. do
  394. case $1 in
  395. --*=?*)
  396. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  397. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  398. ac_shift=:
  399. ;;
  400. --*=)
  401. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  402. ac_optarg=
  403. ac_shift=:
  404. ;;
  405. *)
  406. ac_option=$1
  407. ac_optarg=$2
  408. ac_shift=shift
  409. ;;
  410. esac
  411. case $ac_option in
  412. # Handling of the options.
  413. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  414. ac_cs_recheck=: ;;
  415. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  416. $as_echo "$ac_cs_version"; exit ;;
  417. --config | --confi | --conf | --con | --co | --c )
  418. $as_echo "$ac_cs_config"; exit ;;
  419. --debug | --debu | --deb | --de | --d | -d )
  420. debug=: ;;
  421. --file | --fil | --fi | --f )
  422. $ac_shift
  423. case $ac_optarg in
  424. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  425. '') as_fn_error $? "missing file argument" ;;
  426. esac
  427. as_fn_append CONFIG_FILES " '$ac_optarg'"
  428. ac_need_defaults=false;;
  429. --header | --heade | --head | --hea )
  430. $ac_shift
  431. case $ac_optarg in
  432. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  433. esac
  434. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  435. ac_need_defaults=false;;
  436. --he | --h)
  437. # Conflict between --help and --header
  438. as_fn_error $? "ambiguous option: \`$1'
  439. Try \`$0 --help' for more information.";;
  440. --help | --hel | -h )
  441. $as_echo "$ac_cs_usage"; exit ;;
  442. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  443. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  444. ac_cs_silent=: ;;
  445. # This is an error.
  446. -*) as_fn_error $? "unrecognized option: \`$1'
  447. Try \`$0 --help' for more information." ;;
  448. *) as_fn_append ac_config_targets " $1"
  449. ac_need_defaults=false ;;
  450. esac
  451. shift
  452. done
  453. ac_configure_extra_args=
  454. if $ac_cs_silent; then
  455. exec 6>/dev/null
  456. ac_configure_extra_args="$ac_configure_extra_args --silent"
  457. fi
  458. if $ac_cs_recheck; then
  459. set X /bin/bash './configure' $ac_configure_extra_args --no-create --no-recursion
  460. shift
  461. $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
  462. CONFIG_SHELL='/bin/bash'
  463. export CONFIG_SHELL
  464. exec "$@"
  465. fi
  466. exec 5>>config.log
  467. {
  468. echo
  469. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  470. ## Running $as_me. ##
  471. _ASBOX
  472. $as_echo "$ac_log"
  473. } >&5
  474. # Handling of arguments.
  475. for ac_config_target in $ac_config_targets
  476. do
  477. case $ac_config_target in
  478. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  479. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  480. "mxml.list") CONFIG_FILES="$CONFIG_FILES mxml.list" ;;
  481. "mxml.pc") CONFIG_FILES="$CONFIG_FILES mxml.pc" ;;
  482. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  483. esac
  484. done
  485. # If the user did not use the arguments to specify the items to instantiate,
  486. # then the envvar interface is used. Set only those that are not.
  487. # We use the long form for the default assignment because of an extremely
  488. # bizarre bug on SunOS 4.1.3.
  489. if $ac_need_defaults; then
  490. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  491. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  492. fi
  493. # Have a temporary directory for convenience. Make it in the build tree
  494. # simply because there is no reason against having it here, and in addition,
  495. # creating and moving files from /tmp can sometimes cause problems.
  496. # Hook for its removal unless debugging.
  497. # Note that there is a small window in which the directory will not be cleaned:
  498. # after its creation but before its name has been assigned to `$tmp'.
  499. $debug ||
  500. {
  501. tmp= ac_tmp=
  502. trap 'exit_status=$?
  503. : "${ac_tmp:=$tmp}"
  504. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  505. ' 0
  506. trap 'as_fn_exit 1' 1 2 13 15
  507. }
  508. # Create a (secure) tmp directory for tmp files.
  509. {
  510. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  511. test -d "$tmp"
  512. } ||
  513. {
  514. tmp=./conf$$-$RANDOM
  515. (umask 077 && mkdir "$tmp")
  516. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  517. ac_tmp=$tmp
  518. # Set up the scripts for CONFIG_FILES section.
  519. # No need to generate them if there are no CONFIG_FILES.
  520. # This happens for instance with `./config.status config.h'.
  521. if test -n "$CONFIG_FILES"; then
  522. ac_cr=`echo X | tr X '\015'`
  523. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  524. # But we know of no other shell where ac_cr would be empty at this
  525. # point, so we can use a bashism as a fallback.
  526. if test "x$ac_cr" = x; then
  527. eval ac_cr=\$\'\\r\'
  528. fi
  529. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  530. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  531. ac_cs_awk_cr='\\r'
  532. else
  533. ac_cs_awk_cr=$ac_cr
  534. fi
  535. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  536. cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
  537. S["LTLIBOBJS"]=""
  538. S["LIBOBJS"]=""
  539. S["PC_LIBS"]="-L${exec_prefix}/lib -lmxml"
  540. S["PC_CFLAGS"]="-I${prefix}/include"
  541. S["PICFLAG"]="1"
  542. S["LIBMXML"]="libmxml.so.1.5"
  543. S["DSOFLAGS"]=" -Wl,-soname,libmxml.so.1,-rpath,$(libdir) -shared $(OPTIM)"
  544. S["DSO"]="$(CC)"
  545. S["PTHREAD_LIBS"]="-lpthread"
  546. S["PTHREAD_FLAGS"]="-D_THREAD_SAFE -D_REENTRANT"
  547. S["EGREP"]="/bin/grep -E"
  548. S["GREP"]="/bin/grep"
  549. S["CPP"]="gcc -E"
  550. S["ARFLAGS"]="crvs"
  551. S["RM"]="/bin/rm"
  552. S["MKDIR"]="/bin/mkdir"
  553. S["LN"]="/bin/ln"
  554. S["CP"]="/bin/cp"
  555. S["AR"]="/usr/bin/ar"
  556. S["RANLIB"]="ranlib"
  557. S["INSTALL_DATA"]="${INSTALL} -m 644"
  558. S["INSTALL_SCRIPT"]="${INSTALL}"
  559. S["INSTALL_PROGRAM"]="${INSTALL}"
  560. S["ac_ct_CXX"]="g++"
  561. S["CXXFLAGS"]=""
  562. S["CXX"]="g++"
  563. S["OBJEXT"]="o"
  564. S["EXEEXT"]=""
  565. S["ac_ct_CC"]="gcc"
  566. S["CPPFLAGS"]=""
  567. S["CFLAGS"]="-Wall "
  568. S["CC"]="gcc"
  569. S["ARCHFLAGS"]=""
  570. S["OPTIM"]="-fPIC -Os -g"
  571. S["LDFLAGS"]=" -Wl,-rpath,$(libdir)"
  572. S["VERSION"]="2.10"
  573. S["target_alias"]=""
  574. S["host_alias"]=""
  575. S["build_alias"]=""
  576. S["LIBS"]=""
  577. S["ECHO_T"]=""
  578. S["ECHO_N"]="-n"
  579. S["ECHO_C"]=""
  580. S["DEFS"]="-DHAVE_CONFIG_H"
  581. S["mandir"]="${datarootdir}/man"
  582. S["localedir"]="${datarootdir}/locale"
  583. S["libdir"]="${exec_prefix}/lib"
  584. S["psdir"]="${docdir}"
  585. S["pdfdir"]="${docdir}"
  586. S["dvidir"]="${docdir}"
  587. S["htmldir"]="${docdir}"
  588. S["infodir"]="${datarootdir}/info"
  589. S["docdir"]="${datarootdir}/doc/mxml"
  590. S["oldincludedir"]="/usr/include"
  591. S["includedir"]="${prefix}/include"
  592. S["localstatedir"]="${prefix}/var"
  593. S["sharedstatedir"]="${prefix}/com"
  594. S["sysconfdir"]="${prefix}/etc"
  595. S["datadir"]="${datarootdir}"
  596. S["datarootdir"]="${prefix}/share"
  597. S["libexecdir"]="${exec_prefix}/libexec"
  598. S["sbindir"]="${exec_prefix}/sbin"
  599. S["bindir"]="${exec_prefix}/bin"
  600. S["program_transform_name"]="s,x,x,"
  601. S["prefix"]="/usr/local"
  602. S["exec_prefix"]="/usr/local"
  603. S["PACKAGE_URL"]="http://www.msweet.org/projects.php/Mini-XML"
  604. S["PACKAGE_BUGREPORT"]="http://www.msweet.org/bugs.php/Mini-XML"
  605. S["PACKAGE_STRING"]="Mini-XML 2.10"
  606. S["PACKAGE_VERSION"]="2.10"
  607. S["PACKAGE_TARNAME"]="mxml"
  608. S["PACKAGE_NAME"]="Mini-XML"
  609. S["PATH_SEPARATOR"]=":"
  610. S["SHELL"]="/bin/bash"
  611. _ACAWK
  612. cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
  613. for (key in S) S_is_set[key] = 1
  614. FS = ""
  615. }
  616. {
  617. line = $ 0
  618. nfields = split(line, field, "@")
  619. substed = 0
  620. len = length(field[1])
  621. for (i = 2; i < nfields; i++) {
  622. key = field[i]
  623. keylen = length(key)
  624. if (S_is_set[key]) {
  625. value = S[key]
  626. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  627. len += length(value) + length(field[++i])
  628. substed = 1
  629. } else
  630. len += 1 + keylen
  631. }
  632. print line
  633. }
  634. _ACAWK
  635. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  636. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  637. else
  638. cat
  639. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  640. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  641. fi # test -n "$CONFIG_FILES"
  642. # Set up the scripts for CONFIG_HEADERS section.
  643. # No need to generate them if there are no CONFIG_HEADERS.
  644. # This happens for instance with `./config.status Makefile'.
  645. if test -n "$CONFIG_HEADERS"; then
  646. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  647. BEGIN {
  648. D["PACKAGE_NAME"]=" \"Mini-XML\""
  649. D["PACKAGE_TARNAME"]=" \"mxml\""
  650. D["PACKAGE_VERSION"]=" \"2.10\""
  651. D["PACKAGE_STRING"]=" \"Mini-XML 2.10\""
  652. D["PACKAGE_BUGREPORT"]=" \"http://www.msweet.org/bugs.php/Mini-XML\""
  653. D["PACKAGE_URL"]=" \"http://www.msweet.org/projects.php/Mini-XML\""
  654. D["MXML_VERSION"]=" \"Mini-XML v2.10\""
  655. D["HAVE_STRDUP"]=" 1"
  656. D["HAVE_SNPRINTF"]=" 1"
  657. D["HAVE_VSNPRINTF"]=" 1"
  658. D["HAVE_LONG_LONG"]=" 1"
  659. D["STDC_HEADERS"]=" 1"
  660. D["HAVE_SYS_TYPES_H"]=" 1"
  661. D["HAVE_SYS_STAT_H"]=" 1"
  662. D["HAVE_STDLIB_H"]=" 1"
  663. D["HAVE_STRING_H"]=" 1"
  664. D["HAVE_MEMORY_H"]=" 1"
  665. D["HAVE_STRINGS_H"]=" 1"
  666. D["HAVE_INTTYPES_H"]=" 1"
  667. D["HAVE_STDINT_H"]=" 1"
  668. D["HAVE_UNISTD_H"]=" 1"
  669. D["HAVE_PTHREAD_H"]=" 1"
  670. for (key in D) D_is_set[key] = 1
  671. FS = ""
  672. }
  673. /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
  674. line = $ 0
  675. split(line, arg, " ")
  676. if (arg[1] == "#") {
  677. defundef = arg[2]
  678. mac1 = arg[3]
  679. } else {
  680. defundef = substr(arg[1], 2)
  681. mac1 = arg[2]
  682. }
  683. split(mac1, mac2, "(") #)
  684. macro = mac2[1]
  685. prefix = substr(line, 1, index(line, defundef) - 1)
  686. if (D_is_set[macro]) {
  687. # Preserve the white space surrounding the "#".
  688. print prefix "define", macro P[macro] D[macro]
  689. next
  690. } else {
  691. # Replace #undef with comments. This is necessary, for example,
  692. # in the case of _POSIX_SOURCE, which is predefined and required
  693. # on some systems where configure will not decide to define it.
  694. if (defundef == "undef") {
  695. print "/*", prefix defundef, macro, "*/"
  696. next
  697. }
  698. }
  699. }
  700. { print }
  701. _ACAWK
  702. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  703. fi # test -n "$CONFIG_HEADERS"
  704. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  705. shift
  706. for ac_tag
  707. do
  708. case $ac_tag in
  709. :[FHLC]) ac_mode=$ac_tag; continue;;
  710. esac
  711. case $ac_mode$ac_tag in
  712. :[FHL]*:*);;
  713. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  714. :[FH]-) ac_tag=-:-;;
  715. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  716. esac
  717. ac_save_IFS=$IFS
  718. IFS=:
  719. set x $ac_tag
  720. IFS=$ac_save_IFS
  721. shift
  722. ac_file=$1
  723. shift
  724. case $ac_mode in
  725. :L) ac_source=$1;;
  726. :[FH])
  727. ac_file_inputs=
  728. for ac_f
  729. do
  730. case $ac_f in
  731. -) ac_f="$ac_tmp/stdin";;
  732. *) # Look for the file first in the build tree, then in the source tree
  733. # (if the path is not absolute). The absolute path cannot be DOS-style,
  734. # because $ac_f cannot contain `:'.
  735. test -f "$ac_f" ||
  736. case $ac_f in
  737. [\\/$]*) false;;
  738. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  739. esac ||
  740. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  741. esac
  742. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  743. as_fn_append ac_file_inputs " '$ac_f'"
  744. done
  745. # Let's still pretend it is `configure' which instantiates (i.e., don't
  746. # use $as_me), people would be surprised to read:
  747. # /* config.h. Generated by config.status. */
  748. configure_input='Generated from '`
  749. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  750. `' by configure.'
  751. if test x"$ac_file" != x-; then
  752. configure_input="$ac_file. $configure_input"
  753. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  754. $as_echo "$as_me: creating $ac_file" >&6;}
  755. fi
  756. # Neutralize special characters interpreted by sed in replacement strings.
  757. case $configure_input in #(
  758. *\&* | *\|* | *\\* )
  759. ac_sed_conf_input=`$as_echo "$configure_input" |
  760. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  761. *) ac_sed_conf_input=$configure_input;;
  762. esac
  763. case $ac_tag in
  764. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  765. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  766. esac
  767. ;;
  768. esac
  769. ac_dir=`$as_dirname -- "$ac_file" ||
  770. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  771. X"$ac_file" : 'X\(//\)[^/]' \| \
  772. X"$ac_file" : 'X\(//\)$' \| \
  773. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  774. $as_echo X"$ac_file" |
  775. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  776. s//\1/
  777. q
  778. }
  779. /^X\(\/\/\)[^/].*/{
  780. s//\1/
  781. q
  782. }
  783. /^X\(\/\/\)$/{
  784. s//\1/
  785. q
  786. }
  787. /^X\(\/\).*/{
  788. s//\1/
  789. q
  790. }
  791. s/.*/./; q'`
  792. as_dir="$ac_dir"; as_fn_mkdir_p
  793. ac_builddir=.
  794. case "$ac_dir" in
  795. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  796. *)
  797. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  798. # A ".." for each directory in $ac_dir_suffix.
  799. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  800. case $ac_top_builddir_sub in
  801. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  802. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  803. esac ;;
  804. esac
  805. ac_abs_top_builddir=$ac_pwd
  806. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  807. # for backward compatibility:
  808. ac_top_builddir=$ac_top_build_prefix
  809. case $srcdir in
  810. .) # We are building in place.
  811. ac_srcdir=.
  812. ac_top_srcdir=$ac_top_builddir_sub
  813. ac_abs_top_srcdir=$ac_pwd ;;
  814. [\\/]* | ?:[\\/]* ) # Absolute name.
  815. ac_srcdir=$srcdir$ac_dir_suffix;
  816. ac_top_srcdir=$srcdir
  817. ac_abs_top_srcdir=$srcdir ;;
  818. *) # Relative name.
  819. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  820. ac_top_srcdir=$ac_top_build_prefix$srcdir
  821. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  822. esac
  823. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  824. case $ac_mode in
  825. :F)
  826. #
  827. # CONFIG_FILE
  828. #
  829. case $INSTALL in
  830. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  831. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  832. esac
  833. # If the template does not know about datarootdir, expand it.
  834. # FIXME: This hack should be removed a few years after 2.60.
  835. ac_datarootdir_hack=; ac_datarootdir_seen=
  836. ac_sed_dataroot='
  837. /datarootdir/ {
  838. p
  839. q
  840. }
  841. /@datadir@/p
  842. /@docdir@/p
  843. /@infodir@/p
  844. /@localedir@/p
  845. /@mandir@/p'
  846. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  847. *datarootdir*) ac_datarootdir_seen=yes;;
  848. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  850. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  851. ac_datarootdir_hack='
  852. s&@datadir@&${datarootdir}&g
  853. s&@docdir@&${datarootdir}/doc/mxml&g
  854. s&@infodir@&${datarootdir}/info&g
  855. s&@localedir@&${datarootdir}/locale&g
  856. s&@mandir@&${datarootdir}/man&g
  857. s&\${datarootdir}&${prefix}/share&g' ;;
  858. esac
  859. ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{
  860. h
  861. s///
  862. s/^/:/
  863. s/[ ]*$/:/
  864. s/:\$(srcdir):/:/g
  865. s/:\${srcdir}:/:/g
  866. s/:@srcdir@:/:/g
  867. s/^:*//
  868. s/:*$//
  869. x
  870. s/\(=[ ]*\).*/\1/
  871. G
  872. s/\n//
  873. s/^[^=]*=[ ]*$//
  874. }
  875. :t
  876. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  877. s|@configure_input@|$ac_sed_conf_input|;t t
  878. s&@top_builddir@&$ac_top_builddir_sub&;t t
  879. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  880. s&@srcdir@&$ac_srcdir&;t t
  881. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  882. s&@top_srcdir@&$ac_top_srcdir&;t t
  883. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  884. s&@builddir@&$ac_builddir&;t t
  885. s&@abs_builddir@&$ac_abs_builddir&;t t
  886. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  887. s&@INSTALL@&$ac_INSTALL&;t t
  888. $ac_datarootdir_hack
  889. "
  890. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  891. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  892. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  893. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  894. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  895. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  897. which seems to be undefined. Please make sure it is defined" >&5
  898. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  899. which seems to be undefined. Please make sure it is defined" >&2;}
  900. rm -f "$ac_tmp/stdin"
  901. case $ac_file in
  902. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  903. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  904. esac \
  905. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  906. ;;
  907. :H)
  908. #
  909. # CONFIG_HEADER
  910. #
  911. if test x"$ac_file" != x-; then
  912. {
  913. $as_echo "/* $configure_input */" \
  914. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  915. } >"$ac_tmp/config.h" \
  916. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  917. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  918. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  919. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  920. else
  921. rm -f "$ac_file"
  922. mv "$ac_tmp/config.h" "$ac_file" \
  923. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  924. fi
  925. else
  926. $as_echo "/* $configure_input */" \
  927. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  928. || as_fn_error $? "could not create -" "$LINENO" 5
  929. fi
  930. ;;
  931. esac
  932. done # for ac_tag
  933. as_fn_exit 0