config.status 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192
  1. #! /bin/bash
  2. # Generated by aconfigure.
  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. as_nop=:
  17. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18. then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else $as_nop
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. # Reset variables that may have inherited troublesome values from
  34. # the environment.
  35. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  36. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  37. # side effect of setting IFS to empty, thus disabling word splitting.)
  38. # Quoting is to prevent editors from complaining about space-tab.
  39. as_nl='
  40. '
  41. export as_nl
  42. IFS=" "" $as_nl"
  43. PS1='$ '
  44. PS2='> '
  45. PS4='+ '
  46. # Ensure predictable behavior from utilities with locale-dependent output.
  47. LC_ALL=C
  48. export LC_ALL
  49. LANGUAGE=C
  50. export LANGUAGE
  51. # We cannot yet rely on "unset" to work, but we need these variables
  52. # to be unset--not just set to an empty or harmless value--now, to
  53. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  54. # also avoids known problems related to "unset" and subshell syntax
  55. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  56. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  57. do eval test \${$as_var+y} \
  58. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  59. done
  60. # Ensure that fds 0, 1, and 2 are open.
  61. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  62. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  63. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  64. # The user is always right.
  65. if ${PATH_SEPARATOR+false} :; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Find who we are. Look in the path if we contain no directory separator.
  73. as_myself=
  74. case $0 in #((
  75. *[\\/]* ) as_myself=$0 ;;
  76. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  77. for as_dir in $PATH
  78. do
  79. IFS=$as_save_IFS
  80. case $as_dir in #(((
  81. '') as_dir=./ ;;
  82. */) ;;
  83. *) as_dir=$as_dir/ ;;
  84. esac
  85. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  86. done
  87. IFS=$as_save_IFS
  88. ;;
  89. esac
  90. # We did not find ourselves, most probably we were run as `sh COMMAND'
  91. # in which case we are not to be found in the path.
  92. if test "x$as_myself" = x; then
  93. as_myself=$0
  94. fi
  95. if test ! -f "$as_myself"; then
  96. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  97. exit 1
  98. fi
  99. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  100. # ----------------------------------------
  101. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  102. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  103. # script with STATUS, using 1 if that was 0.
  104. as_fn_error ()
  105. {
  106. as_status=$1; test $as_status -eq 0 && as_status=1
  107. if test "$4"; then
  108. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  110. fi
  111. printf "%s\n" "$as_me: error: $2" >&2
  112. as_fn_exit $as_status
  113. } # as_fn_error
  114. # as_fn_set_status STATUS
  115. # -----------------------
  116. # Set $? to STATUS, without forking.
  117. as_fn_set_status ()
  118. {
  119. return $1
  120. } # as_fn_set_status
  121. # as_fn_exit STATUS
  122. # -----------------
  123. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  124. as_fn_exit ()
  125. {
  126. set +e
  127. as_fn_set_status $1
  128. exit $1
  129. } # as_fn_exit
  130. # as_fn_unset VAR
  131. # ---------------
  132. # Portably unset VAR.
  133. as_fn_unset ()
  134. {
  135. { eval $1=; unset $1;}
  136. }
  137. as_unset=as_fn_unset
  138. # as_fn_append VAR VALUE
  139. # ----------------------
  140. # Append the text in VALUE to the end of the definition contained in VAR. Take
  141. # advantage of any shell optimizations that allow amortized linear growth over
  142. # repeated appends, instead of the typical quadratic growth present in naive
  143. # implementations.
  144. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  145. then :
  146. eval 'as_fn_append ()
  147. {
  148. eval $1+=\$2
  149. }'
  150. else $as_nop
  151. as_fn_append ()
  152. {
  153. eval $1=\$$1\$2
  154. }
  155. fi # as_fn_append
  156. # as_fn_arith ARG...
  157. # ------------------
  158. # Perform arithmetic evaluation on the ARGs, and store the result in the
  159. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  160. # must be portable across $(()) and expr.
  161. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  162. then :
  163. eval 'as_fn_arith ()
  164. {
  165. as_val=$(( $* ))
  166. }'
  167. else $as_nop
  168. as_fn_arith ()
  169. {
  170. as_val=`expr "$@" || test $? -eq 1`
  171. }
  172. fi # as_fn_arith
  173. if expr a : '\(a\)' >/dev/null 2>&1 &&
  174. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  180. as_basename=basename
  181. else
  182. as_basename=false
  183. fi
  184. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  185. as_dirname=dirname
  186. else
  187. as_dirname=false
  188. fi
  189. as_me=`$as_basename -- "$0" ||
  190. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  191. X"$0" : 'X\(//\)$' \| \
  192. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  193. printf "%s\n" X/"$0" |
  194. sed '/^.*\/\([^/][^/]*\)\/*$/{
  195. s//\1/
  196. q
  197. }
  198. /^X\/\(\/\/\)$/{
  199. s//\1/
  200. q
  201. }
  202. /^X\/\(\/\).*/{
  203. s//\1/
  204. q
  205. }
  206. s/.*/./; q'`
  207. # Avoid depending upon Character Ranges.
  208. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  209. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  210. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  211. as_cr_digits='0123456789'
  212. as_cr_alnum=$as_cr_Letters$as_cr_digits
  213. # Determine whether it's possible to make 'echo' print without a newline.
  214. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  215. # for compatibility with existing Makefiles.
  216. ECHO_C= ECHO_N= ECHO_T=
  217. case `echo -n x` in #(((((
  218. -n*)
  219. case `echo 'xy\c'` in
  220. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  221. xy) ECHO_C='\c';;
  222. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  223. ECHO_T=' ';;
  224. esac;;
  225. *)
  226. ECHO_N='-n';;
  227. esac
  228. # For backward compatibility with old third-party macros, we provide
  229. # the shell variables $as_echo and $as_echo_n. New code should use
  230. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  231. as_echo='printf %s\n'
  232. as_echo_n='printf %s'
  233. rm -f conf$$ conf$$.exe conf$$.file
  234. if test -d conf$$.dir; then
  235. rm -f conf$$.dir/conf$$.file
  236. else
  237. rm -f conf$$.dir
  238. mkdir conf$$.dir 2>/dev/null
  239. fi
  240. if (echo >conf$$.file) 2>/dev/null; then
  241. if ln -s conf$$.file conf$$ 2>/dev/null; then
  242. as_ln_s='ln -s'
  243. # ... but there are two gotchas:
  244. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  245. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  246. # In both cases, we have to default to `cp -pR'.
  247. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  248. as_ln_s='cp -pR'
  249. elif ln conf$$.file conf$$ 2>/dev/null; then
  250. as_ln_s=ln
  251. else
  252. as_ln_s='cp -pR'
  253. fi
  254. else
  255. as_ln_s='cp -pR'
  256. fi
  257. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  258. rmdir conf$$.dir 2>/dev/null
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. printf "%s\n" X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. if mkdir -p . 2>/dev/null; then
  304. as_mkdir_p='mkdir -p "$as_dir"'
  305. else
  306. test -d ./-p && rmdir ./-p
  307. as_mkdir_p=false
  308. fi
  309. # as_fn_executable_p FILE
  310. # -----------------------
  311. # Test if FILE is an executable regular file.
  312. as_fn_executable_p ()
  313. {
  314. test -f "$1" && test -x "$1"
  315. } # as_fn_executable_p
  316. as_test_x='test -x'
  317. as_executable_p=as_fn_executable_p
  318. # Sed expression to map a string onto a valid CPP name.
  319. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  320. # Sed expression to map a string onto a valid variable name.
  321. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  322. exec 6>&1
  323. ## ----------------------------------- ##
  324. ## Main body of $CONFIG_STATUS script. ##
  325. ## ----------------------------------- ##
  326. # Save the log message, to keep $0 and so on meaningful, and to
  327. # report actual input values of CONFIG_FILES etc. instead of their
  328. # values after options handling.
  329. ac_log="
  330. This file was extended by pjproject $as_me 2.x, which was
  331. generated by GNU Autoconf 2.71. Invocation command line was
  332. CONFIG_FILES = $CONFIG_FILES
  333. CONFIG_HEADERS = $CONFIG_HEADERS
  334. CONFIG_LINKS = $CONFIG_LINKS
  335. CONFIG_COMMANDS = $CONFIG_COMMANDS
  336. $ $0 $@
  337. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  338. "
  339. # Files that config.status was made for.
  340. config_files=" build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak"
  341. config_headers=" pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
  342. ac_cs_usage="\
  343. \`$as_me' instantiates files and other configuration actions
  344. from templates according to the current configuration. Unless the files
  345. and actions are specified as TAGs, all are instantiated by default.
  346. Usage: $0 [OPTION]... [TAG]...
  347. -h, --help print this help, then exit
  348. -V, --version print version number and configuration settings, then exit
  349. --config print configuration, then exit
  350. -q, --quiet, --silent
  351. do not print progress messages
  352. -d, --debug don't remove temporary files
  353. --recheck update $as_me by reconfiguring in the same conditions
  354. --file=FILE[:TEMPLATE]
  355. instantiate the configuration file FILE
  356. --header=FILE[:TEMPLATE]
  357. instantiate the configuration header FILE
  358. Configuration files:
  359. $config_files
  360. Configuration headers:
  361. $config_headers
  362. Report bugs to the package provider."
  363. ac_cs_config='CFLAGS=-fPIC'
  364. ac_cs_version="\
  365. pjproject config.status 2.x
  366. configured by ./aconfigure, generated by GNU Autoconf 2.71,
  367. with options \"$ac_cs_config\"
  368. Copyright (C) 2021 Free Software Foundation, Inc.
  369. This config.status script is free software; the Free Software Foundation
  370. gives unlimited permission to copy, distribute and modify it."
  371. ac_pwd='/code'
  372. srcdir='.'
  373. test -n "$AWK" || AWK=awk
  374. # The default lists apply if the user does not specify any file.
  375. ac_need_defaults=:
  376. while test $# != 0
  377. do
  378. case $1 in
  379. --*=?*)
  380. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  381. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  382. ac_shift=:
  383. ;;
  384. --*=)
  385. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  386. ac_optarg=
  387. ac_shift=:
  388. ;;
  389. *)
  390. ac_option=$1
  391. ac_optarg=$2
  392. ac_shift=shift
  393. ;;
  394. esac
  395. case $ac_option in
  396. # Handling of the options.
  397. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  398. ac_cs_recheck=: ;;
  399. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  400. printf "%s\n" "$ac_cs_version"; exit ;;
  401. --config | --confi | --conf | --con | --co | --c )
  402. printf "%s\n" "$ac_cs_config"; exit ;;
  403. --debug | --debu | --deb | --de | --d | -d )
  404. debug=: ;;
  405. --file | --fil | --fi | --f )
  406. $ac_shift
  407. case $ac_optarg in
  408. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  409. '') as_fn_error $? "missing file argument" ;;
  410. esac
  411. as_fn_append CONFIG_FILES " '$ac_optarg'"
  412. ac_need_defaults=false;;
  413. --header | --heade | --head | --hea )
  414. $ac_shift
  415. case $ac_optarg in
  416. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  417. esac
  418. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  419. ac_need_defaults=false;;
  420. --he | --h)
  421. # Conflict between --help and --header
  422. as_fn_error $? "ambiguous option: \`$1'
  423. Try \`$0 --help' for more information.";;
  424. --help | --hel | -h )
  425. printf "%s\n" "$ac_cs_usage"; exit ;;
  426. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  427. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  428. ac_cs_silent=: ;;
  429. # This is an error.
  430. -*) as_fn_error $? "unrecognized option: \`$1'
  431. Try \`$0 --help' for more information." ;;
  432. *) as_fn_append ac_config_targets " $1"
  433. ac_need_defaults=false ;;
  434. esac
  435. shift
  436. done
  437. ac_configure_extra_args=
  438. if $ac_cs_silent; then
  439. exec 6>/dev/null
  440. ac_configure_extra_args="$ac_configure_extra_args --silent"
  441. fi
  442. if $ac_cs_recheck; then
  443. set X /bin/bash './aconfigure' 'CFLAGS=-fPIC' $ac_configure_extra_args --no-create --no-recursion
  444. shift
  445. \printf "%s\n" "running CONFIG_SHELL=/bin/bash $*" >&6
  446. CONFIG_SHELL='/bin/bash'
  447. export CONFIG_SHELL
  448. exec "$@"
  449. fi
  450. exec 5>>config.log
  451. {
  452. echo
  453. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  454. ## Running $as_me. ##
  455. _ASBOX
  456. printf "%s\n" "$ac_log"
  457. } >&5
  458. # Handling of arguments.
  459. for ac_config_target in $ac_config_targets
  460. do
  461. case $ac_config_target in
  462. "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
  463. "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
  464. "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
  465. "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
  466. "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
  467. "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
  468. "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
  469. "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
  470. "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
  471. "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
  472. "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
  473. "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
  474. "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
  475. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  476. esac
  477. done
  478. # If the user did not use the arguments to specify the items to instantiate,
  479. # then the envvar interface is used. Set only those that are not.
  480. # We use the long form for the default assignment because of an extremely
  481. # bizarre bug on SunOS 4.1.3.
  482. if $ac_need_defaults; then
  483. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  484. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  485. fi
  486. # Have a temporary directory for convenience. Make it in the build tree
  487. # simply because there is no reason against having it here, and in addition,
  488. # creating and moving files from /tmp can sometimes cause problems.
  489. # Hook for its removal unless debugging.
  490. # Note that there is a small window in which the directory will not be cleaned:
  491. # after its creation but before its name has been assigned to `$tmp'.
  492. $debug ||
  493. {
  494. tmp= ac_tmp=
  495. trap 'exit_status=$?
  496. : "${ac_tmp:=$tmp}"
  497. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  498. ' 0
  499. trap 'as_fn_exit 1' 1 2 13 15
  500. }
  501. # Create a (secure) tmp directory for tmp files.
  502. {
  503. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  504. test -d "$tmp"
  505. } ||
  506. {
  507. tmp=./conf$$-$RANDOM
  508. (umask 077 && mkdir "$tmp")
  509. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  510. ac_tmp=$tmp
  511. # Set up the scripts for CONFIG_FILES section.
  512. # No need to generate them if there are no CONFIG_FILES.
  513. # This happens for instance with `./config.status config.h'.
  514. if test -n "$CONFIG_FILES"; then
  515. ac_cr=`echo X | tr X '\015'`
  516. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  517. # But we know of no other shell where ac_cr would be empty at this
  518. # point, so we can use a bashism as a fallback.
  519. if test "x$ac_cr" = x; then
  520. eval ac_cr=\$\'\\r\'
  521. fi
  522. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  523. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  524. ac_cs_awk_cr='\\r'
  525. else
  526. ac_cs_awk_cr=$ac_cr
  527. fi
  528. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  529. cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
  530. S["LTLIBOBJS"]=""
  531. S["LIBOBJS"]=""
  532. S["ac_main_obj"]="main.o"
  533. S["ac_host"]="unix"
  534. S["ac_webrtc_aec3_ldflags"]=""
  535. S["ac_webrtc_aec3_cflags"]=""
  536. S["ac_webrtc_aec3_instset"]=""
  537. S["ac_no_webrtc_aec3"]="1"
  538. S["ac_webrtc_ldflags"]=""
  539. S["ac_webrtc_cflags"]=""
  540. S["ac_webrtc_instset"]="sse2"
  541. S["ac_no_webrtc"]=""
  542. S["ac_no_yuv"]=""
  543. S["ac_no_srtp"]=""
  544. S["ac_lyra_model_path"]=""
  545. S["ac_no_lyra_codec"]="1"
  546. S["ac_no_bcg729"]="1"
  547. S["opus_present"]=""
  548. S["opus_h_present"]=""
  549. S["ac_no_opus"]="1"
  550. S["silk_present"]=""
  551. S["silk_h_present"]=""
  552. S["ac_no_silk"]="1"
  553. S["opencore_amrwb_dec_present"]=""
  554. S["opencore_amrwb_dec_h_present"]=""
  555. S["opencore_amrwb_enc_present"]=""
  556. S["opencore_amrwb_enc_h_present"]=""
  557. S["opencore_amrnb_present"]=""
  558. S["opencore_amrnb_h_present"]=""
  559. S["ac_no_opencore_amrwb"]="1"
  560. S["ac_no_opencore_amrnb"]="1"
  561. S["libgnutls_present"]=""
  562. S["gnutls_h_present"]=""
  563. S["libcrypto_present"]="1"
  564. S["libssl_present"]="1"
  565. S["openssl_h_present"]="1"
  566. S["ac_ssl_backend"]="openssl"
  567. S["ac_ssl_has_aes_gcm"]="1"
  568. S["ac_no_ssl"]=""
  569. S["ac_no_mediacodec"]=""
  570. S["ac_vpx_ldflags"]=""
  571. S["ac_vpx_cflags"]=""
  572. S["ac_openh264_ldflags"]=""
  573. S["ac_openh264_cflags"]=""
  574. S["ac_v4l2_ldflags"]=""
  575. S["ac_v4l2_cflags"]=""
  576. S["PKG_CONFIG"]="pkg-config"
  577. S["SAVED_PKG_CONFIG_PATH"]=""
  578. S["ac_ffmpeg_ldflags"]=" "
  579. S["ac_ffmpeg_cflags"]=" -DPJMEDIA_USE_OLD_FFMPEG=1"
  580. S["ac_has_ffmpeg"]=""
  581. S["ac_sdl_ldflags"]=""
  582. S["ac_sdl_cflags"]=""
  583. S["SDL_CONFIG"]=""
  584. S["ac_resample_dll"]=""
  585. S["ac_no_ilbc_codec"]=""
  586. S["ac_no_speex_codec"]=""
  587. S["ac_no_g7221_codec"]=""
  588. S["ac_no_g722_codec"]=""
  589. S["ac_no_gsm_codec"]=""
  590. S["ac_no_l16_codec"]=""
  591. S["ac_no_g711_codec"]=""
  592. S["ac_no_speex_aec"]=""
  593. S["ac_no_large_filter"]=""
  594. S["ac_no_small_filter"]=""
  595. S["ac_qt_cflags"]=""
  596. S["ac_pjmedia_video_has_qt"]=""
  597. S["ac_darwin_cflags"]=""
  598. S["ac_pjmedia_video_has_ios_opengl"]=""
  599. S["ac_pjmedia_video_has_vtoolbox"]=""
  600. S["ac_pjmedia_video_has_metal"]=""
  601. S["ac_pjmedia_video_has_darwin"]=""
  602. S["ac_dshow_ldflags"]=""
  603. S["ac_dshow_cflags"]=""
  604. S["ac_pjmedia_video_dev_has_dshow"]=""
  605. S["ac_android_cflags"]=""
  606. S["ac_pjmedia_video_has_android"]=""
  607. S["ac_pjmedia_video"]=""
  608. S["ac_pjmedia_audiodev_objs"]=""
  609. S["ac_oboe_ldflags"]=""
  610. S["ac_oboe_cflags"]=""
  611. S["ac_pa_cflags"]=" -DHAVE_SYS_SOUNDCARD_H -DHAVE_LINUX_SOUNDCARD_H -DPA_LITTLE_ENDIAN"
  612. S["ac_external_pa"]="0"
  613. S["ac_pjmedia_snd"]="null"
  614. S["ac_pjmedia_resample"]="libresample"
  615. S["ac_external_webrtc_aec3"]="0"
  616. S["ac_external_webrtc"]="0"
  617. S["ac_external_yuv"]="0"
  618. S["ac_srtp_shutdown_present"]=""
  619. S["ac_srtp_deinit_present"]=""
  620. S["ac_external_srtp_lib"]=""
  621. S["ac_external_srtp"]="0"
  622. S["ac_external_gsm"]="0"
  623. S["ac_external_speex"]="0"
  624. S["ac_no_pjsua2"]=""
  625. S["ac_shared_libraries"]=""
  626. S["ac_linux_poll"]="select"
  627. S["ac_os_objs"]="ioqueue_select.o file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o sock_qos_bsd.o guid_uuid.o"
  628. S["ac_std_cpp_lib"]=""
  629. S["ac_target_arch"]=""
  630. S["ac_cross_compile"]=""
  631. S["ac_shlib_suffix"]="so"
  632. S["ac_cflags"]=" -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
  633. S["ac_build_mak_vars"]=""
  634. S["ac_pjdir"]="/code"
  635. S["CC_CFLAGS"]="-Wall"
  636. S["CC_OPTIMIZE"]="-O2"
  637. S["CC_DEF"]="-D"
  638. S["CC_INC"]="-I"
  639. S["CC_OUT"]="-c -o "
  640. S["LIBEXT2"]=""
  641. S["LIBEXT"]="a"
  642. S["LDOUT"]="-o "
  643. S["LD"]="g++"
  644. S["AR_FLAGS"]="rv"
  645. S["ac_ct_AR"]="ar"
  646. S["AR"]="ar"
  647. S["RANLIB"]="ranlib"
  648. S["ac_ct_CXX"]="g++"
  649. S["CXXFLAGS"]="-g -O2"
  650. S["CXX"]="g++"
  651. S["OBJEXT"]="o"
  652. S["EXEEXT"]=""
  653. S["ac_ct_CC"]="gcc"
  654. S["CPPFLAGS"]=""
  655. S["LDFLAGS"]=""
  656. S["CFLAGS"]="-fPIC -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
  657. S["CC"]="gcc"
  658. S["target_os"]="linux-gnu"
  659. S["target_vendor"]="unknown"
  660. S["target_cpu"]="x86_64"
  661. S["target"]="x86_64-unknown-linux-gnu"
  662. S["host_os"]="linux-gnu"
  663. S["host_vendor"]="unknown"
  664. S["host_cpu"]="x86_64"
  665. S["host"]="x86_64-unknown-linux-gnu"
  666. S["build_os"]="linux-gnu"
  667. S["build_vendor"]="unknown"
  668. S["build_cpu"]="x86_64"
  669. S["build"]="x86_64-unknown-linux-gnu"
  670. S["target_alias"]=""
  671. S["host_alias"]=""
  672. S["build_alias"]=""
  673. S["LIBS"]="-lssl -lcrypto -luuid -lm -lrt -lpthread "
  674. S["ECHO_T"]=""
  675. S["ECHO_N"]="-n"
  676. S["ECHO_C"]=""
  677. S["DEFS"]="-DHAVE_CONFIG_H"
  678. S["mandir"]="${datarootdir}/man"
  679. S["localedir"]="${datarootdir}/locale"
  680. S["libdir"]="${exec_prefix}/lib"
  681. S["psdir"]="${docdir}"
  682. S["pdfdir"]="${docdir}"
  683. S["dvidir"]="${docdir}"
  684. S["htmldir"]="${docdir}"
  685. S["infodir"]="${datarootdir}/info"
  686. S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
  687. S["oldincludedir"]="/usr/include"
  688. S["includedir"]="${prefix}/include"
  689. S["runstatedir"]="${localstatedir}/run"
  690. S["localstatedir"]="${prefix}/var"
  691. S["sharedstatedir"]="${prefix}/com"
  692. S["sysconfdir"]="${prefix}/etc"
  693. S["datadir"]="${datarootdir}"
  694. S["datarootdir"]="${prefix}/share"
  695. S["libexecdir"]="${exec_prefix}/libexec"
  696. S["sbindir"]="${exec_prefix}/sbin"
  697. S["bindir"]="${exec_prefix}/bin"
  698. S["program_transform_name"]="s,x,x,"
  699. S["prefix"]="/usr/local"
  700. S["exec_prefix"]="${prefix}"
  701. S["PACKAGE_URL"]=""
  702. S["PACKAGE_BUGREPORT"]=""
  703. S["PACKAGE_STRING"]="pjproject 2.x"
  704. S["PACKAGE_VERSION"]="2.x"
  705. S["PACKAGE_TARNAME"]="pjproject"
  706. S["PACKAGE_NAME"]="pjproject"
  707. S["PATH_SEPARATOR"]=":"
  708. S["SHELL"]="/bin/bash"
  709. _ACAWK
  710. cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
  711. for (key in S) S_is_set[key] = 1
  712. FS = ""
  713. }
  714. {
  715. line = $ 0
  716. nfields = split(line, field, "@")
  717. substed = 0
  718. len = length(field[1])
  719. for (i = 2; i < nfields; i++) {
  720. key = field[i]
  721. keylen = length(key)
  722. if (S_is_set[key]) {
  723. value = S[key]
  724. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  725. len += length(value) + length(field[++i])
  726. substed = 1
  727. } else
  728. len += 1 + keylen
  729. }
  730. print line
  731. }
  732. _ACAWK
  733. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  734. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  735. else
  736. cat
  737. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  738. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  739. fi # test -n "$CONFIG_FILES"
  740. # Set up the scripts for CONFIG_HEADERS section.
  741. # No need to generate them if there are no CONFIG_HEADERS.
  742. # This happens for instance with `./config.status Makefile'.
  743. if test -n "$CONFIG_HEADERS"; then
  744. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  745. BEGIN {
  746. D["PACKAGE_NAME"]=" \"pjproject\""
  747. D["PACKAGE_TARNAME"]=" \"pjproject\""
  748. D["PACKAGE_VERSION"]=" \"2.x\""
  749. D["PACKAGE_STRING"]=" \"pjproject 2.x\""
  750. D["PACKAGE_BUGREPORT"]=" \"\""
  751. D["PACKAGE_URL"]=" \"\""
  752. D["HAVE_LIBPTHREAD"]=" 1"
  753. D["HAVE_LIBRT"]=" 1"
  754. D["HAVE_LIBM"]=" 1"
  755. D["HAVE_LIBUUID"]=" 1"
  756. D["PJ_M_NAME"]=" \"x86_64\""
  757. D["PJ_POOL_ALIGNMENT"]=" 8"
  758. D["HAVE_STDIO_H"]=" 1"
  759. D["HAVE_STDLIB_H"]=" 1"
  760. D["HAVE_STRING_H"]=" 1"
  761. D["HAVE_INTTYPES_H"]=" 1"
  762. D["HAVE_STDINT_H"]=" 1"
  763. D["HAVE_STRINGS_H"]=" 1"
  764. D["HAVE_SYS_STAT_H"]=" 1"
  765. D["HAVE_SYS_TYPES_H"]=" 1"
  766. D["HAVE_UNISTD_H"]=" 1"
  767. D["STDC_HEADERS"]=" 1"
  768. D["PJ_LINUX"]=" 1"
  769. D["PJ_HAS_FLOATING_POINT"]=" 1"
  770. D["PJ_HAS_ARPA_INET_H"]=" 1"
  771. D["PJ_HAS_ASSERT_H"]=" 1"
  772. D["PJ_HAS_CTYPE_H"]=" 1"
  773. D["PJ_HAS_ERRNO_H"]=" 1"
  774. D["PJ_HAS_FCNTL_H"]=" 1"
  775. D["PJ_HAS_LINUX_SOCKET_H"]=" 1"
  776. D["PJ_HAS_LIMITS_H"]=" 1"
  777. D["PJ_HAS_MALLOC_H"]=" 1"
  778. D["PJ_HAS_NETDB_H"]=" 1"
  779. D["PJ_HAS_NETINET_IN_SYSTM_H"]=" 1"
  780. D["PJ_HAS_NETINET_IN_H"]=" 1"
  781. D["PJ_HAS_NETINET_IP_H"]=" 1"
  782. D["PJ_HAS_NETINET_TCP_H"]=" 1"
  783. D["PJ_HAS_IFADDRS_H"]=" 1"
  784. D["PJ_HAS_SEMAPHORE_H"]=" 1"
  785. D["PJ_HAS_SETJMP_H"]=" 1"
  786. D["PJ_HAS_STDARG_H"]=" 1"
  787. D["PJ_HAS_STDDEF_H"]=" 1"
  788. D["PJ_HAS_STDIO_H"]=" 1"
  789. D["PJ_HAS_STDINT_H"]=" 1"
  790. D["PJ_HAS_STDLIB_H"]=" 1"
  791. D["PJ_HAS_STRING_H"]=" 1"
  792. D["PJ_HAS_INTTYPES_H"]=" 1"
  793. D["PJ_HAS_SYS_IOCTL_H"]=" 1"
  794. D["PJ_HAS_SYS_SELECT_H"]=" 1"
  795. D["PJ_HAS_SYS_SOCKET_H"]=" 1"
  796. D["PJ_HAS_SYS_TIME_H"]=" 1"
  797. D["PJ_HAS_SYS_TIMEB_H"]=" 1"
  798. D["PJ_HAS_SYS_TYPES_H"]=" 1"
  799. D["PJ_HAS_SYS_UTSNAME_H"]=" 1"
  800. D["PJ_HAS_TIME_H"]=" 1"
  801. D["PJ_HAS_UNISTD_H"]=" 1"
  802. D["PJ_HAS_EXECINFO_H"]=" 1"
  803. D["PJ_HAS_NET_IF_H"]=" 1"
  804. D["PJ_HAS_LOCALTIME_R"]=" 1"
  805. D["PJ_OS_NAME"]=" \"x86_64-unknown-linux-gnu\""
  806. D["PJ_HAS_ERRNO_VAR"]=" 1"
  807. D["PJ_HAS_HIGH_RES_TIMER"]=" 1"
  808. D["PJ_HAS_MALLOC"]=" 1"
  809. D["PJ_NATIVE_STRING_IS_UNICODE"]=" 0"
  810. D["PJ_ATOMIC_VALUE_TYPE"]=" long"
  811. D["PJ_SOCK_HAS_INET_ATON"]=" 1"
  812. D["PJ_SOCK_HAS_INET_PTON"]=" 1"
  813. D["PJ_SOCK_HAS_INET_NTOP"]=" 1"
  814. D["PJ_SOCK_HAS_GETADDRINFO"]=" 1"
  815. D["PJ_SOCK_HAS_SOCKETPAIR"]=" 1"
  816. D["PJ_HAS_SOCKLEN_T"]=" 1"
  817. D["PJ_SOCK_HAS_IPV6_V6ONLY"]=" 1"
  818. D["PJ_HAS_SO_ERROR"]=" 1"
  819. D["PJ_EMULATE_RWMUTEX"]=" 0"
  820. D["PJ_HAS_SSL_SOCK"]=" 1"
  821. D["PJ_SSL_SOCK_IMP"]=" PJ_SSL_SOCK_IMP_OPENSSL"
  822. D["PJMEDIA_HAS_OPENCORE_AMRNB_CODEC"]=" 0"
  823. D["PJMEDIA_HAS_OPENCORE_AMRWB_CODEC"]=" 0"
  824. D["PJMEDIA_HAS_SILK_CODEC"]=" 0"
  825. D["PJMEDIA_HAS_OPUS_CODEC"]=" 0"
  826. D["PJMEDIA_HAS_BCG729"]=" 0"
  827. D["PJMEDIA_HAS_LIBWEBRTC_AEC3"]=" 0"
  828. D["PJ_SELECT_NEEDS_NFDS"]=" 0"
  829. D["PJ_THREAD_SET_STACK_SIZE"]=" 0"
  830. D["PJ_THREAD_ALLOCATE_STACK"]=" 0"
  831. D["PJ_BLOCKING_ERROR_VAL"]=" EAGAIN"
  832. D["PJ_BLOCKING_CONNECT_ERROR_VAL"]=" EINPROGRESS"
  833. D["PJ_HAS_PTHREAD_SETNAME_NP"]=" 1"
  834. for (key in D) D_is_set[key] = 1
  835. FS = ""
  836. }
  837. /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
  838. line = $ 0
  839. split(line, arg, " ")
  840. if (arg[1] == "#") {
  841. defundef = arg[2]
  842. mac1 = arg[3]
  843. } else {
  844. defundef = substr(arg[1], 2)
  845. mac1 = arg[2]
  846. }
  847. split(mac1, mac2, "(") #)
  848. macro = mac2[1]
  849. prefix = substr(line, 1, index(line, defundef) - 1)
  850. if (D_is_set[macro]) {
  851. # Preserve the white space surrounding the "#".
  852. print prefix "define", macro P[macro] D[macro]
  853. next
  854. } else {
  855. # Replace #undef with comments. This is necessary, for example,
  856. # in the case of _POSIX_SOURCE, which is predefined and required
  857. # on some systems where configure will not decide to define it.
  858. if (defundef == "undef") {
  859. print "/*", prefix defundef, macro, "*/"
  860. next
  861. }
  862. }
  863. }
  864. { print }
  865. _ACAWK
  866. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  867. fi # test -n "$CONFIG_HEADERS"
  868. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  869. shift
  870. for ac_tag
  871. do
  872. case $ac_tag in
  873. :[FHLC]) ac_mode=$ac_tag; continue;;
  874. esac
  875. case $ac_mode$ac_tag in
  876. :[FHL]*:*);;
  877. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  878. :[FH]-) ac_tag=-:-;;
  879. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  880. esac
  881. ac_save_IFS=$IFS
  882. IFS=:
  883. set x $ac_tag
  884. IFS=$ac_save_IFS
  885. shift
  886. ac_file=$1
  887. shift
  888. case $ac_mode in
  889. :L) ac_source=$1;;
  890. :[FH])
  891. ac_file_inputs=
  892. for ac_f
  893. do
  894. case $ac_f in
  895. -) ac_f="$ac_tmp/stdin";;
  896. *) # Look for the file first in the build tree, then in the source tree
  897. # (if the path is not absolute). The absolute path cannot be DOS-style,
  898. # because $ac_f cannot contain `:'.
  899. test -f "$ac_f" ||
  900. case $ac_f in
  901. [\\/$]*) false;;
  902. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  903. esac ||
  904. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  905. esac
  906. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  907. as_fn_append ac_file_inputs " '$ac_f'"
  908. done
  909. # Let's still pretend it is `configure' which instantiates (i.e., don't
  910. # use $as_me), people would be surprised to read:
  911. # /* config.h. Generated by config.status. */
  912. configure_input='Generated from '`
  913. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  914. `' by configure.'
  915. if test x"$ac_file" != x-; then
  916. configure_input="$ac_file. $configure_input"
  917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  918. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  919. fi
  920. # Neutralize special characters interpreted by sed in replacement strings.
  921. case $configure_input in #(
  922. *\&* | *\|* | *\\* )
  923. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  924. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  925. *) ac_sed_conf_input=$configure_input;;
  926. esac
  927. case $ac_tag in
  928. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  929. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  930. esac
  931. ;;
  932. esac
  933. ac_dir=`$as_dirname -- "$ac_file" ||
  934. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  935. X"$ac_file" : 'X\(//\)[^/]' \| \
  936. X"$ac_file" : 'X\(//\)$' \| \
  937. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  938. printf "%s\n" X"$ac_file" |
  939. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  940. s//\1/
  941. q
  942. }
  943. /^X\(\/\/\)[^/].*/{
  944. s//\1/
  945. q
  946. }
  947. /^X\(\/\/\)$/{
  948. s//\1/
  949. q
  950. }
  951. /^X\(\/\).*/{
  952. s//\1/
  953. q
  954. }
  955. s/.*/./; q'`
  956. as_dir="$ac_dir"; as_fn_mkdir_p
  957. ac_builddir=.
  958. case "$ac_dir" in
  959. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  960. *)
  961. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  962. # A ".." for each directory in $ac_dir_suffix.
  963. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  964. case $ac_top_builddir_sub in
  965. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  966. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  967. esac ;;
  968. esac
  969. ac_abs_top_builddir=$ac_pwd
  970. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  971. # for backward compatibility:
  972. ac_top_builddir=$ac_top_build_prefix
  973. case $srcdir in
  974. .) # We are building in place.
  975. ac_srcdir=.
  976. ac_top_srcdir=$ac_top_builddir_sub
  977. ac_abs_top_srcdir=$ac_pwd ;;
  978. [\\/]* | ?:[\\/]* ) # Absolute name.
  979. ac_srcdir=$srcdir$ac_dir_suffix;
  980. ac_top_srcdir=$srcdir
  981. ac_abs_top_srcdir=$srcdir ;;
  982. *) # Relative name.
  983. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  984. ac_top_srcdir=$ac_top_build_prefix$srcdir
  985. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  986. esac
  987. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  988. case $ac_mode in
  989. :F)
  990. #
  991. # CONFIG_FILE
  992. #
  993. # If the template does not know about datarootdir, expand it.
  994. # FIXME: This hack should be removed a few years after 2.60.
  995. ac_datarootdir_hack=; ac_datarootdir_seen=
  996. ac_sed_dataroot='
  997. /datarootdir/ {
  998. p
  999. q
  1000. }
  1001. /@datadir@/p
  1002. /@docdir@/p
  1003. /@infodir@/p
  1004. /@localedir@/p
  1005. /@mandir@/p'
  1006. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  1007. *datarootdir*) ac_datarootdir_seen=yes;;
  1008. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  1009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  1010. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  1011. ac_datarootdir_hack='
  1012. s&@datadir@&${datarootdir}&g
  1013. s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
  1014. s&@infodir@&${datarootdir}/info&g
  1015. s&@localedir@&${datarootdir}/locale&g
  1016. s&@mandir@&${datarootdir}/man&g
  1017. s&\${datarootdir}&${prefix}/share&g' ;;
  1018. esac
  1019. ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{
  1020. h
  1021. s///
  1022. s/^/:/
  1023. s/[ ]*$/:/
  1024. s/:\$(srcdir):/:/g
  1025. s/:\${srcdir}:/:/g
  1026. s/:@srcdir@:/:/g
  1027. s/^:*//
  1028. s/:*$//
  1029. x
  1030. s/\(=[ ]*\).*/\1/
  1031. G
  1032. s/\n//
  1033. s/^[^=]*=[ ]*$//
  1034. }
  1035. :t
  1036. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  1037. s|@configure_input@|$ac_sed_conf_input|;t t
  1038. s&@top_builddir@&$ac_top_builddir_sub&;t t
  1039. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  1040. s&@srcdir@&$ac_srcdir&;t t
  1041. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  1042. s&@top_srcdir@&$ac_top_srcdir&;t t
  1043. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  1044. s&@builddir@&$ac_builddir&;t t
  1045. s&@abs_builddir@&$ac_abs_builddir&;t t
  1046. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  1047. $ac_datarootdir_hack
  1048. "
  1049. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  1050. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1051. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  1052. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  1053. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  1054. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  1055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  1056. which seems to be undefined. Please make sure it is defined" >&5
  1057. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  1058. which seems to be undefined. Please make sure it is defined" >&2;}
  1059. rm -f "$ac_tmp/stdin"
  1060. case $ac_file in
  1061. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  1062. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  1063. esac \
  1064. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1065. ;;
  1066. :H)
  1067. #
  1068. # CONFIG_HEADER
  1069. #
  1070. if test x"$ac_file" != x-; then
  1071. {
  1072. printf "%s\n" "/* $configure_input */" >&1 \
  1073. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  1074. } >"$ac_tmp/config.h" \
  1075. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1076. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  1077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  1078. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  1079. else
  1080. rm -f "$ac_file"
  1081. mv "$ac_tmp/config.h" "$ac_file" \
  1082. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  1083. fi
  1084. else
  1085. printf "%s\n" "/* $configure_input */" >&1 \
  1086. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  1087. || as_fn_error $? "could not create -" "$LINENO" 5
  1088. fi
  1089. ;;
  1090. esac
  1091. done # for ac_tag
  1092. as_fn_exit 0