Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for open_pdks 1.0. |
| 4 | # |
| 5 | # Report bugs to <github.com/RTimothyEdwards/open_pdks>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
Tim Edwards | 665c3fd | 2021-05-02 20:20:27 -0400 | [diff] [blame] | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
| 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
| 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 270 | $0: github.com/RTimothyEdwards/open_pdks about your system, |
| 271 | $0: including any error possibly output before this |
| 272 | $0: message. Then install a modern shell, or manually run |
| 273 | $0: the script under such a shell if you do have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
| 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
| 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 410 | # script with STATUS, using 1 if that was 0. |
| 411 | as_fn_error () |
| 412 | { |
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 417 | fi |
| 418 | $as_echo "$as_me: error: $2" >&2 |
| 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
| 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
| 440 | |
| 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 445 | $as_echo X/"$0" | |
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
| 459 | |
| 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 466 | |
| 467 | |
| 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
| 477 | sed ' |
| 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
| 482 | N |
| 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 485 | t loop |
| 486 | s/-\n.*// |
| 487 | ' >$as_me.lineno && |
| 488 | chmod +x "$as_me.lineno" || |
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 490 | |
| 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
| 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
| 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
| 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
| 503 | ECHO_C= ECHO_N= ECHO_T= |
| 504 | case `echo -n x` in #((((( |
| 505 | -n*) |
| 506 | case `echo 'xy\c'` in |
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
| 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
| 514 | esac |
| 515 | |
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
| 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
| 521 | mkdir conf$$.dir 2>/dev/null |
| 522 | fi |
| 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 525 | as_ln_s='ln -s' |
| 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 529 | # In both cases, we have to default to `cp -pR'. |
| 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 531 | as_ln_s='cp -pR' |
| 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
| 535 | as_ln_s='cp -pR' |
| 536 | fi |
| 537 | else |
| 538 | as_ln_s='cp -pR' |
| 539 | fi |
| 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
| 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
| 544 | as_mkdir_p='mkdir -p "$as_dir"' |
| 545 | else |
| 546 | test -d ./-p && rmdir ./-p |
| 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
| 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
| 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 558 | |
| 559 | |
| 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
| 562 | |
| 563 | # Name of the host. |
| 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
| 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
| 572 | ac_clean_files= |
| 573 | ac_config_libobj_dir=. |
| 574 | LIBOBJS= |
| 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
| 579 | |
| 580 | # Identity of this package. |
| 581 | PACKAGE_NAME='open_pdks' |
| 582 | PACKAGE_TARNAME='open_pdks' |
| 583 | PACKAGE_VERSION='1.0' |
| 584 | PACKAGE_STRING='open_pdks 1.0' |
| 585 | PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks' |
| 586 | PACKAGE_URL='' |
| 587 | |
| 588 | ac_subst_vars='LTLIBOBJS |
| 589 | LIBOBJS |
Tim Edwards | 062fbb1 | 2021-11-26 15:44:59 -0500 | [diff] [blame] | 590 | OPENPDKS_TOP |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 591 | ENABLED_TECHS |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 592 | EF_STYLE |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 593 | SKY130_OSU_T18_PATH |
| 594 | SKY130_OSU_T15_PATH |
| 595 | SKY130_OSU_T12_PATH |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 596 | SKY130_SRAM_MACROS_PATH |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 597 | XSCHEM_SKY130_PATH |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 598 | SKY130_ML_XX_HD_PATH |
Ahmed Ghazy | 3238548 | 2021-01-19 20:38:14 +0200 | [diff] [blame] | 599 | PATCH |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 600 | MAGIC |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 601 | XSCHEM_DISABLED |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 602 | QFLOW_DISABLED |
| 603 | OPENLANE_DISABLED |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 604 | IRSIM_DISABLED |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 605 | NETGEN_DISABLED |
| 606 | MAGIC_DISABLED |
| 607 | KLAYOUT_DISABLED |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 608 | ALL_TECHS |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 609 | SKY130_SOURCE_PATH |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 610 | SKY130_LINK_TARGETS |
Tim Edwards | 665c3fd | 2021-05-02 20:20:27 -0400 | [diff] [blame] | 611 | SED |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 612 | pkgpyexecdir |
| 613 | pyexecdir |
| 614 | pkgpythondir |
| 615 | pythondir |
| 616 | PYTHON_PLATFORM |
| 617 | PYTHON_EXEC_PREFIX |
| 618 | PYTHON_PREFIX |
| 619 | PYTHON_VERSION |
| 620 | PYTHON |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 621 | target_alias |
| 622 | host_alias |
| 623 | build_alias |
| 624 | LIBS |
| 625 | ECHO_T |
| 626 | ECHO_N |
| 627 | ECHO_C |
| 628 | DEFS |
| 629 | mandir |
| 630 | localedir |
| 631 | libdir |
| 632 | psdir |
| 633 | pdfdir |
| 634 | dvidir |
| 635 | htmldir |
| 636 | infodir |
| 637 | docdir |
| 638 | oldincludedir |
| 639 | includedir |
| 640 | localstatedir |
| 641 | sharedstatedir |
| 642 | sysconfdir |
| 643 | datadir |
| 644 | datarootdir |
| 645 | libexecdir |
| 646 | sbindir |
| 647 | bindir |
| 648 | program_transform_name |
| 649 | prefix |
| 650 | exec_prefix |
| 651 | PACKAGE_URL |
| 652 | PACKAGE_BUGREPORT |
| 653 | PACKAGE_STRING |
| 654 | PACKAGE_VERSION |
| 655 | PACKAGE_TARNAME |
| 656 | PACKAGE_NAME |
| 657 | PATH_SEPARATOR |
| 658 | SHELL' |
| 659 | ac_subst_files='' |
| 660 | ac_user_opts=' |
| 661 | enable_option_checking |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 662 | enable_sky130_pdk |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 663 | with_sky130_link_targets |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 664 | enable_klayout |
| 665 | enable_magic |
| 666 | enable_netgen |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 667 | enable_irsim |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 668 | enable_openlane |
| 669 | enable_qflow |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 670 | enable_xschem |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 671 | enable_alpha_sky130 |
| 672 | enable_xschem_sky130 |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 673 | enable_sram_sky130 |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 674 | enable_osu_t12_sky130 |
| 675 | enable_osu_t15_sky130 |
| 676 | enable_osu_t18_sky130 |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 677 | with_ef_style |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 678 | ' |
| 679 | ac_precious_vars='build_alias |
| 680 | host_alias |
| 681 | target_alias |
| 682 | PYTHON' |
| 683 | |
| 684 | |
| 685 | # Initialize some variables set by options. |
| 686 | ac_init_help= |
| 687 | ac_init_version=false |
| 688 | ac_unrecognized_opts= |
| 689 | ac_unrecognized_sep= |
| 690 | # The variables have the same names as the options, with |
| 691 | # dashes changed to underlines. |
| 692 | cache_file=/dev/null |
| 693 | exec_prefix=NONE |
| 694 | no_create= |
| 695 | no_recursion= |
| 696 | prefix=NONE |
| 697 | program_prefix=NONE |
| 698 | program_suffix=NONE |
| 699 | program_transform_name=s,x,x, |
| 700 | silent= |
| 701 | site= |
| 702 | srcdir= |
| 703 | verbose= |
| 704 | x_includes=NONE |
| 705 | x_libraries=NONE |
| 706 | |
| 707 | # Installation directory options. |
| 708 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 709 | # and all the variables that are supposed to be based on exec_prefix |
| 710 | # by default will actually change. |
| 711 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 712 | # (The list follows the same order as the GNU Coding Standards.) |
| 713 | bindir='${exec_prefix}/bin' |
| 714 | sbindir='${exec_prefix}/sbin' |
| 715 | libexecdir='${exec_prefix}/libexec' |
| 716 | datarootdir='${prefix}/share' |
| 717 | datadir='${datarootdir}' |
| 718 | sysconfdir='${prefix}/etc' |
| 719 | sharedstatedir='${prefix}/com' |
| 720 | localstatedir='${prefix}/var' |
| 721 | includedir='${prefix}/include' |
| 722 | oldincludedir='/usr/include' |
| 723 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 724 | infodir='${datarootdir}/info' |
| 725 | htmldir='${docdir}' |
| 726 | dvidir='${docdir}' |
| 727 | pdfdir='${docdir}' |
| 728 | psdir='${docdir}' |
| 729 | libdir='${exec_prefix}/lib' |
| 730 | localedir='${datarootdir}/locale' |
| 731 | mandir='${datarootdir}/man' |
| 732 | |
| 733 | ac_prev= |
| 734 | ac_dashdash= |
| 735 | for ac_option |
| 736 | do |
| 737 | # If the previous option needs an argument, assign it. |
| 738 | if test -n "$ac_prev"; then |
| 739 | eval $ac_prev=\$ac_option |
| 740 | ac_prev= |
| 741 | continue |
| 742 | fi |
| 743 | |
| 744 | case $ac_option in |
| 745 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 746 | *=) ac_optarg= ;; |
| 747 | *) ac_optarg=yes ;; |
| 748 | esac |
| 749 | |
| 750 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 751 | |
| 752 | case $ac_dashdash$ac_option in |
| 753 | --) |
| 754 | ac_dashdash=yes ;; |
| 755 | |
| 756 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 757 | ac_prev=bindir ;; |
| 758 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 759 | bindir=$ac_optarg ;; |
| 760 | |
| 761 | -build | --build | --buil | --bui | --bu) |
| 762 | ac_prev=build_alias ;; |
| 763 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 764 | build_alias=$ac_optarg ;; |
| 765 | |
| 766 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 767 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 768 | ac_prev=cache_file ;; |
| 769 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 770 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 771 | cache_file=$ac_optarg ;; |
| 772 | |
| 773 | --config-cache | -C) |
| 774 | cache_file=config.cache ;; |
| 775 | |
| 776 | -datadir | --datadir | --datadi | --datad) |
| 777 | ac_prev=datadir ;; |
| 778 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 779 | datadir=$ac_optarg ;; |
| 780 | |
| 781 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 782 | | --dataroo | --dataro | --datar) |
| 783 | ac_prev=datarootdir ;; |
| 784 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 785 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 786 | datarootdir=$ac_optarg ;; |
| 787 | |
| 788 | -disable-* | --disable-*) |
| 789 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 790 | # Reject names that are not valid shell variable names. |
| 791 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 792 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 793 | ac_useropt_orig=$ac_useropt |
| 794 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 795 | case $ac_user_opts in |
| 796 | *" |
| 797 | "enable_$ac_useropt" |
| 798 | "*) ;; |
| 799 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 800 | ac_unrecognized_sep=', ';; |
| 801 | esac |
| 802 | eval enable_$ac_useropt=no ;; |
| 803 | |
| 804 | -docdir | --docdir | --docdi | --doc | --do) |
| 805 | ac_prev=docdir ;; |
| 806 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 807 | docdir=$ac_optarg ;; |
| 808 | |
| 809 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 810 | ac_prev=dvidir ;; |
| 811 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 812 | dvidir=$ac_optarg ;; |
| 813 | |
| 814 | -enable-* | --enable-*) |
| 815 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 816 | # Reject names that are not valid shell variable names. |
| 817 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 818 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 819 | ac_useropt_orig=$ac_useropt |
| 820 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 821 | case $ac_user_opts in |
| 822 | *" |
| 823 | "enable_$ac_useropt" |
| 824 | "*) ;; |
| 825 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 826 | ac_unrecognized_sep=', ';; |
| 827 | esac |
| 828 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 829 | |
| 830 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 831 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 832 | | --exec | --exe | --ex) |
| 833 | ac_prev=exec_prefix ;; |
| 834 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 835 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 836 | | --exec=* | --exe=* | --ex=*) |
| 837 | exec_prefix=$ac_optarg ;; |
| 838 | |
| 839 | -gas | --gas | --ga | --g) |
| 840 | # Obsolete; use --with-gas. |
| 841 | with_gas=yes ;; |
| 842 | |
| 843 | -help | --help | --hel | --he | -h) |
| 844 | ac_init_help=long ;; |
| 845 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 846 | ac_init_help=recursive ;; |
| 847 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 848 | ac_init_help=short ;; |
| 849 | |
| 850 | -host | --host | --hos | --ho) |
| 851 | ac_prev=host_alias ;; |
| 852 | -host=* | --host=* | --hos=* | --ho=*) |
| 853 | host_alias=$ac_optarg ;; |
| 854 | |
| 855 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 856 | ac_prev=htmldir ;; |
| 857 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 858 | | --ht=*) |
| 859 | htmldir=$ac_optarg ;; |
| 860 | |
| 861 | -includedir | --includedir | --includedi | --included | --include \ |
| 862 | | --includ | --inclu | --incl | --inc) |
| 863 | ac_prev=includedir ;; |
| 864 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 865 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 866 | includedir=$ac_optarg ;; |
| 867 | |
| 868 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 869 | ac_prev=infodir ;; |
| 870 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 871 | infodir=$ac_optarg ;; |
| 872 | |
| 873 | -libdir | --libdir | --libdi | --libd) |
| 874 | ac_prev=libdir ;; |
| 875 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 876 | libdir=$ac_optarg ;; |
| 877 | |
| 878 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 879 | | --libexe | --libex | --libe) |
| 880 | ac_prev=libexecdir ;; |
| 881 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 882 | | --libexe=* | --libex=* | --libe=*) |
| 883 | libexecdir=$ac_optarg ;; |
| 884 | |
| 885 | -localedir | --localedir | --localedi | --localed | --locale) |
| 886 | ac_prev=localedir ;; |
| 887 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 888 | localedir=$ac_optarg ;; |
| 889 | |
| 890 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 891 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 892 | ac_prev=localstatedir ;; |
| 893 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 894 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 895 | localstatedir=$ac_optarg ;; |
| 896 | |
| 897 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 898 | ac_prev=mandir ;; |
| 899 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 900 | mandir=$ac_optarg ;; |
| 901 | |
| 902 | -nfp | --nfp | --nf) |
| 903 | # Obsolete; use --without-fp. |
| 904 | with_fp=no ;; |
| 905 | |
| 906 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 907 | | --no-cr | --no-c | -n) |
| 908 | no_create=yes ;; |
| 909 | |
| 910 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 911 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 912 | no_recursion=yes ;; |
| 913 | |
| 914 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 915 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 916 | | --oldin | --oldi | --old | --ol | --o) |
| 917 | ac_prev=oldincludedir ;; |
| 918 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 919 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 920 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 921 | oldincludedir=$ac_optarg ;; |
| 922 | |
| 923 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 924 | ac_prev=prefix ;; |
| 925 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 926 | prefix=$ac_optarg ;; |
| 927 | |
| 928 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 929 | | --program-pre | --program-pr | --program-p) |
| 930 | ac_prev=program_prefix ;; |
| 931 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 932 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 933 | program_prefix=$ac_optarg ;; |
| 934 | |
| 935 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 936 | | --program-suf | --program-su | --program-s) |
| 937 | ac_prev=program_suffix ;; |
| 938 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 939 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 940 | program_suffix=$ac_optarg ;; |
| 941 | |
| 942 | -program-transform-name | --program-transform-name \ |
| 943 | | --program-transform-nam | --program-transform-na \ |
| 944 | | --program-transform-n | --program-transform- \ |
| 945 | | --program-transform | --program-transfor \ |
| 946 | | --program-transfo | --program-transf \ |
| 947 | | --program-trans | --program-tran \ |
| 948 | | --progr-tra | --program-tr | --program-t) |
| 949 | ac_prev=program_transform_name ;; |
| 950 | -program-transform-name=* | --program-transform-name=* \ |
| 951 | | --program-transform-nam=* | --program-transform-na=* \ |
| 952 | | --program-transform-n=* | --program-transform-=* \ |
| 953 | | --program-transform=* | --program-transfor=* \ |
| 954 | | --program-transfo=* | --program-transf=* \ |
| 955 | | --program-trans=* | --program-tran=* \ |
| 956 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 957 | program_transform_name=$ac_optarg ;; |
| 958 | |
| 959 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 960 | ac_prev=pdfdir ;; |
| 961 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 962 | pdfdir=$ac_optarg ;; |
| 963 | |
| 964 | -psdir | --psdir | --psdi | --psd | --ps) |
| 965 | ac_prev=psdir ;; |
| 966 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 967 | psdir=$ac_optarg ;; |
| 968 | |
| 969 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 970 | | -silent | --silent | --silen | --sile | --sil) |
| 971 | silent=yes ;; |
| 972 | |
| 973 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 974 | ac_prev=sbindir ;; |
| 975 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 976 | | --sbi=* | --sb=*) |
| 977 | sbindir=$ac_optarg ;; |
| 978 | |
| 979 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 980 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 981 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 982 | | --sha | --sh) |
| 983 | ac_prev=sharedstatedir ;; |
| 984 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 985 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 986 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 987 | | --sha=* | --sh=*) |
| 988 | sharedstatedir=$ac_optarg ;; |
| 989 | |
| 990 | -site | --site | --sit) |
| 991 | ac_prev=site ;; |
| 992 | -site=* | --site=* | --sit=*) |
| 993 | site=$ac_optarg ;; |
| 994 | |
| 995 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 996 | ac_prev=srcdir ;; |
| 997 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 998 | srcdir=$ac_optarg ;; |
| 999 | |
| 1000 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1001 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1002 | ac_prev=sysconfdir ;; |
| 1003 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1004 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1005 | sysconfdir=$ac_optarg ;; |
| 1006 | |
| 1007 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1008 | ac_prev=target_alias ;; |
| 1009 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1010 | target_alias=$ac_optarg ;; |
| 1011 | |
| 1012 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1013 | verbose=yes ;; |
| 1014 | |
| 1015 | -version | --version | --versio | --versi | --vers | -V) |
| 1016 | ac_init_version=: ;; |
| 1017 | |
| 1018 | -with-* | --with-*) |
| 1019 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1020 | # Reject names that are not valid shell variable names. |
| 1021 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1022 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1023 | ac_useropt_orig=$ac_useropt |
| 1024 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1025 | case $ac_user_opts in |
| 1026 | *" |
| 1027 | "with_$ac_useropt" |
| 1028 | "*) ;; |
| 1029 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1030 | ac_unrecognized_sep=', ';; |
| 1031 | esac |
| 1032 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1033 | |
| 1034 | -without-* | --without-*) |
| 1035 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1036 | # Reject names that are not valid shell variable names. |
| 1037 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1038 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1039 | ac_useropt_orig=$ac_useropt |
| 1040 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1041 | case $ac_user_opts in |
| 1042 | *" |
| 1043 | "with_$ac_useropt" |
| 1044 | "*) ;; |
| 1045 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1046 | ac_unrecognized_sep=', ';; |
| 1047 | esac |
| 1048 | eval with_$ac_useropt=no ;; |
| 1049 | |
| 1050 | --x) |
| 1051 | # Obsolete; use --with-x. |
| 1052 | with_x=yes ;; |
| 1053 | |
| 1054 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1055 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1056 | ac_prev=x_includes ;; |
| 1057 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1058 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1059 | x_includes=$ac_optarg ;; |
| 1060 | |
| 1061 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1062 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1063 | ac_prev=x_libraries ;; |
| 1064 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1065 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1066 | x_libraries=$ac_optarg ;; |
| 1067 | |
| 1068 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1069 | Try \`$0 --help' for more information" |
| 1070 | ;; |
| 1071 | |
| 1072 | *=*) |
| 1073 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1074 | # Reject names that are not valid shell variable names. |
| 1075 | case $ac_envvar in #( |
| 1076 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1077 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1078 | esac |
| 1079 | eval $ac_envvar=\$ac_optarg |
| 1080 | export $ac_envvar ;; |
| 1081 | |
| 1082 | *) |
| 1083 | # FIXME: should be removed in autoconf 3.0. |
| 1084 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1085 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1086 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1087 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1088 | ;; |
| 1089 | |
| 1090 | esac |
| 1091 | done |
| 1092 | |
| 1093 | if test -n "$ac_prev"; then |
| 1094 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1095 | as_fn_error $? "missing argument to $ac_option" |
| 1096 | fi |
| 1097 | |
| 1098 | if test -n "$ac_unrecognized_opts"; then |
| 1099 | case $enable_option_checking in |
| 1100 | no) ;; |
| 1101 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1102 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1103 | esac |
| 1104 | fi |
| 1105 | |
| 1106 | # Check all directory arguments for consistency. |
| 1107 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1108 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1109 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Tim Edwards | bf1da95 | 2021-12-21 15:41:31 -0500 | [diff] [blame] | 1110 | libdir localedir mandir |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1111 | do |
| 1112 | eval ac_val=\$$ac_var |
| 1113 | # Remove trailing slashes. |
| 1114 | case $ac_val in |
| 1115 | */ ) |
| 1116 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1117 | eval $ac_var=\$ac_val;; |
| 1118 | esac |
| 1119 | # Be sure to have absolute directory names. |
| 1120 | case $ac_val in |
| 1121 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1122 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1123 | esac |
| 1124 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1125 | done |
| 1126 | |
| 1127 | # There might be people who depend on the old broken behavior: `$host' |
| 1128 | # used to hold the argument of --host etc. |
| 1129 | # FIXME: To remove some day. |
| 1130 | build=$build_alias |
| 1131 | host=$host_alias |
| 1132 | target=$target_alias |
| 1133 | |
| 1134 | # FIXME: To remove some day. |
| 1135 | if test "x$host_alias" != x; then |
| 1136 | if test "x$build_alias" = x; then |
| 1137 | cross_compiling=maybe |
| 1138 | elif test "x$build_alias" != "x$host_alias"; then |
| 1139 | cross_compiling=yes |
| 1140 | fi |
| 1141 | fi |
| 1142 | |
| 1143 | ac_tool_prefix= |
| 1144 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1145 | |
| 1146 | test "$silent" = yes && exec 6>/dev/null |
| 1147 | |
| 1148 | |
| 1149 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1150 | ac_ls_di=`ls -di .` && |
| 1151 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1152 | as_fn_error $? "working directory cannot be determined" |
| 1153 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1154 | as_fn_error $? "pwd does not report name of working directory" |
| 1155 | |
| 1156 | |
| 1157 | # Find the source files, if location was not specified. |
| 1158 | if test -z "$srcdir"; then |
| 1159 | ac_srcdir_defaulted=yes |
| 1160 | # Try the directory containing this script, then the parent directory. |
| 1161 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1162 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1163 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1164 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1165 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1166 | $as_echo X"$as_myself" | |
| 1167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1168 | s//\1/ |
| 1169 | q |
| 1170 | } |
| 1171 | /^X\(\/\/\)[^/].*/{ |
| 1172 | s//\1/ |
| 1173 | q |
| 1174 | } |
| 1175 | /^X\(\/\/\)$/{ |
| 1176 | s//\1/ |
| 1177 | q |
| 1178 | } |
| 1179 | /^X\(\/\).*/{ |
| 1180 | s//\1/ |
| 1181 | q |
| 1182 | } |
| 1183 | s/.*/./; q'` |
| 1184 | srcdir=$ac_confdir |
| 1185 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1186 | srcdir=.. |
| 1187 | fi |
| 1188 | else |
| 1189 | ac_srcdir_defaulted=no |
| 1190 | fi |
| 1191 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1192 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1193 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1194 | fi |
| 1195 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1196 | ac_abs_confdir=`( |
| 1197 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1198 | pwd)` |
| 1199 | # When building in place, set srcdir=. |
| 1200 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1201 | srcdir=. |
| 1202 | fi |
| 1203 | # Remove unnecessary trailing slashes from srcdir. |
| 1204 | # Double slashes in file names in object file debugging info |
| 1205 | # mess up M-x gdb in Emacs. |
| 1206 | case $srcdir in |
| 1207 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1208 | esac |
| 1209 | for ac_var in $ac_precious_vars; do |
| 1210 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1211 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1212 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1213 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1214 | done |
| 1215 | |
| 1216 | # |
| 1217 | # Report the --help message. |
| 1218 | # |
| 1219 | if test "$ac_init_help" = "long"; then |
| 1220 | # Omit some internal or obsolete options to make the list less imposing. |
| 1221 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1222 | cat <<_ACEOF |
| 1223 | \`configure' configures open_pdks 1.0 to adapt to many kinds of systems. |
| 1224 | |
| 1225 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1226 | |
| 1227 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1228 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1229 | |
| 1230 | Defaults for the options are specified in brackets. |
| 1231 | |
| 1232 | Configuration: |
| 1233 | -h, --help display this help and exit |
| 1234 | --help=short display options specific to this package |
| 1235 | --help=recursive display the short help of all the included packages |
| 1236 | -V, --version display version information and exit |
| 1237 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1238 | --cache-file=FILE cache test results in FILE [disabled] |
| 1239 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1240 | -n, --no-create do not create output files |
| 1241 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1242 | |
| 1243 | Installation directories: |
| 1244 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1245 | [$ac_default_prefix] |
| 1246 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1247 | [PREFIX] |
| 1248 | |
| 1249 | By default, \`make install' will install all the files in |
| 1250 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1251 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1252 | for instance \`--prefix=\$HOME'. |
| 1253 | |
| 1254 | For better control, use the options below. |
| 1255 | |
| 1256 | Fine tuning of the installation directories: |
| 1257 | --bindir=DIR user executables [EPREFIX/bin] |
| 1258 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1259 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1260 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1261 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1262 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1263 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1264 | --includedir=DIR C header files [PREFIX/include] |
| 1265 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1266 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1267 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1268 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1269 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1270 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1271 | --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks] |
| 1272 | --htmldir=DIR html documentation [DOCDIR] |
| 1273 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1274 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1275 | --psdir=DIR ps documentation [DOCDIR] |
| 1276 | _ACEOF |
| 1277 | |
| 1278 | cat <<\_ACEOF |
| 1279 | _ACEOF |
| 1280 | fi |
| 1281 | |
| 1282 | if test -n "$ac_init_help"; then |
| 1283 | case $ac_init_help in |
| 1284 | short | recursive ) echo "Configuration of open_pdks 1.0:";; |
| 1285 | esac |
| 1286 | cat <<\_ACEOF |
| 1287 | |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 1288 | Optional Features: |
| 1289 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1290 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1291 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1292 | --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk |
| 1293 | "location of the source files for the sky130 (pdks |
Ahmed Ghazy | 3238548 | 2021-01-19 20:38:14 +0200 | [diff] [blame] | 1294 | with a pdk_url file can automatically download them |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1295 | if the path is omitted)" |
| 1296 | --enable-klayout |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1297 | Enable or disable klayout setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1298 | |
| 1299 | |
| 1300 | --enable-magic |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1301 | Enable or disable magic setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1302 | |
| 1303 | |
| 1304 | --enable-netgen |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1305 | Enable or disable netgen setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1306 | |
| 1307 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 1308 | --enable-irsim |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1309 | Enable or disable irsim setup [default=enabled] |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 1310 | |
| 1311 | |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1312 | --enable-openlane |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1313 | Enable or disable openlane setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1314 | |
| 1315 | |
| 1316 | --enable-qflow |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1317 | Enable or disable qflow setup [default=enabled] |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 1318 | |
| 1319 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1320 | --enable-xschem |
| 1321 | Enable or disable xschem setup [default=enabled] |
| 1322 | |
| 1323 | |
| 1324 | --enable-alpha-sky130[=path] |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1325 | Install sky130_ml_xx_hd. If path is omitted, the repository |
| 1326 | will be downloaded. [default=enabled] |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1327 | --enable-xschem-sky130[=path] |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1328 | Install xschem_sky130. If path is omitted, the repository |
| 1329 | will be downloaded. [default=enabled] |
| 1330 | --enable-sram-sky130[=path] |
| 1331 | Install sky130_sram_macros. If path is omitted, the repository |
Tim Edwards | 980e8f3 | 2021-04-28 10:37:56 -0400 | [diff] [blame] | 1332 | will be downloaded. [default=disabled] |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1333 | --enable-osu-t12-sky130[=path] |
| 1334 | Install sky130_osu_t12. If path is omitted, the repository |
Tim Edwards | 980e8f3 | 2021-04-28 10:37:56 -0400 | [diff] [blame] | 1335 | will be downloaded. [default=disabled] |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1336 | --enable-osu-t15-sky130[=path] |
| 1337 | Install sky130_osu_t15. If path is omitted, the repository |
Tim Edwards | 980e8f3 | 2021-04-28 10:37:56 -0400 | [diff] [blame] | 1338 | will be downloaded. [default=disabled] |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1339 | --enable-osu-t18-sky130[=path] |
| 1340 | Install sky130_osu_t18. If path is omitted, the repository |
Tim Edwards | 980e8f3 | 2021-04-28 10:37:56 -0400 | [diff] [blame] | 1341 | will be downloaded. [default=disabled] |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 1342 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1343 | Optional Packages: |
| 1344 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1345 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1346 | --with-sky130-link-targets=none|source |
| 1347 | "make symbolic links to existing files |
| 1348 | [default=none]" |
| 1349 | --with-ef-style Use efabless style file system structure |
| 1350 | [default=no] |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1351 | |
| 1352 | Some influential environment variables: |
| 1353 | PYTHON the Python interpreter |
| 1354 | |
| 1355 | Use these variables to override the choices made by `configure' or to help |
| 1356 | it to find libraries and programs with nonstandard names/locations. |
| 1357 | |
| 1358 | Report bugs to <github.com/RTimothyEdwards/open_pdks>. |
| 1359 | _ACEOF |
| 1360 | ac_status=$? |
| 1361 | fi |
| 1362 | |
| 1363 | if test "$ac_init_help" = "recursive"; then |
| 1364 | # If there are subdirs, report their specific --help. |
| 1365 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1366 | test -d "$ac_dir" || |
| 1367 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1368 | continue |
| 1369 | ac_builddir=. |
| 1370 | |
| 1371 | case "$ac_dir" in |
| 1372 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1373 | *) |
| 1374 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1375 | # A ".." for each directory in $ac_dir_suffix. |
| 1376 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1377 | case $ac_top_builddir_sub in |
| 1378 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1379 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1380 | esac ;; |
| 1381 | esac |
| 1382 | ac_abs_top_builddir=$ac_pwd |
| 1383 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1384 | # for backward compatibility: |
| 1385 | ac_top_builddir=$ac_top_build_prefix |
| 1386 | |
| 1387 | case $srcdir in |
| 1388 | .) # We are building in place. |
| 1389 | ac_srcdir=. |
| 1390 | ac_top_srcdir=$ac_top_builddir_sub |
| 1391 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1392 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1393 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1394 | ac_top_srcdir=$srcdir |
| 1395 | ac_abs_top_srcdir=$srcdir ;; |
| 1396 | *) # Relative name. |
| 1397 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1398 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1399 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1400 | esac |
| 1401 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1402 | |
| 1403 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1404 | # Check for guested configure. |
| 1405 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1406 | echo && |
| 1407 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1408 | elif test -f "$ac_srcdir/configure"; then |
| 1409 | echo && |
| 1410 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1411 | else |
| 1412 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1413 | fi || ac_status=$? |
| 1414 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1415 | done |
| 1416 | fi |
| 1417 | |
| 1418 | test -n "$ac_init_help" && exit $ac_status |
| 1419 | if $ac_init_version; then |
| 1420 | cat <<\_ACEOF |
| 1421 | open_pdks configure 1.0 |
| 1422 | generated by GNU Autoconf 2.69 |
| 1423 | |
| 1424 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1425 | This configure script is free software; the Free Software Foundation |
| 1426 | gives unlimited permission to copy, distribute and modify it. |
| 1427 | _ACEOF |
| 1428 | exit |
| 1429 | fi |
| 1430 | |
| 1431 | ## ------------------------ ## |
| 1432 | ## Autoconf initialization. ## |
| 1433 | ## ------------------------ ## |
| 1434 | cat >config.log <<_ACEOF |
| 1435 | This file contains any messages produced by compilers while |
| 1436 | running configure, to aid debugging if configure makes a mistake. |
| 1437 | |
| 1438 | It was created by open_pdks $as_me 1.0, which was |
| 1439 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1440 | |
| 1441 | $ $0 $@ |
| 1442 | |
| 1443 | _ACEOF |
| 1444 | exec 5>>config.log |
| 1445 | { |
| 1446 | cat <<_ASUNAME |
| 1447 | ## --------- ## |
| 1448 | ## Platform. ## |
| 1449 | ## --------- ## |
| 1450 | |
| 1451 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1452 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1453 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1454 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1455 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1456 | |
| 1457 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1458 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1459 | |
| 1460 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1461 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1462 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1463 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1464 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1465 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1466 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1467 | |
| 1468 | _ASUNAME |
| 1469 | |
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1471 | for as_dir in $PATH |
| 1472 | do |
| 1473 | IFS=$as_save_IFS |
| 1474 | test -z "$as_dir" && as_dir=. |
| 1475 | $as_echo "PATH: $as_dir" |
| 1476 | done |
| 1477 | IFS=$as_save_IFS |
| 1478 | |
| 1479 | } >&5 |
| 1480 | |
| 1481 | cat >&5 <<_ACEOF |
| 1482 | |
| 1483 | |
| 1484 | ## ----------- ## |
| 1485 | ## Core tests. ## |
| 1486 | ## ----------- ## |
| 1487 | |
| 1488 | _ACEOF |
| 1489 | |
| 1490 | |
| 1491 | # Keep a trace of the command line. |
| 1492 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1493 | # Strip out --silent because we don't want to record it for future runs. |
| 1494 | # Also quote any args containing shell meta-characters. |
| 1495 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1496 | ac_configure_args= |
| 1497 | ac_configure_args0= |
| 1498 | ac_configure_args1= |
| 1499 | ac_must_keep_next=false |
| 1500 | for ac_pass in 1 2 |
| 1501 | do |
| 1502 | for ac_arg |
| 1503 | do |
| 1504 | case $ac_arg in |
| 1505 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1507 | | -silent | --silent | --silen | --sile | --sil) |
| 1508 | continue ;; |
| 1509 | *\'*) |
| 1510 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1511 | esac |
| 1512 | case $ac_pass in |
| 1513 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1514 | 2) |
| 1515 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1516 | if test $ac_must_keep_next = true; then |
| 1517 | ac_must_keep_next=false # Got value, back to normal. |
| 1518 | else |
| 1519 | case $ac_arg in |
| 1520 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1521 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1522 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1523 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1524 | case "$ac_configure_args0 " in |
| 1525 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1526 | esac |
| 1527 | ;; |
| 1528 | -* ) ac_must_keep_next=true ;; |
| 1529 | esac |
| 1530 | fi |
| 1531 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1532 | ;; |
| 1533 | esac |
| 1534 | done |
| 1535 | done |
| 1536 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1537 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1538 | |
| 1539 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1540 | # config.log. We remove comments because anyway the quotes in there |
| 1541 | # would cause problems or look ugly. |
| 1542 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1543 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1544 | trap 'exit_status=$? |
| 1545 | # Save into config.log some information that might help in debugging. |
| 1546 | { |
| 1547 | echo |
| 1548 | |
| 1549 | $as_echo "## ---------------- ## |
| 1550 | ## Cache variables. ## |
| 1551 | ## ---------------- ##" |
| 1552 | echo |
| 1553 | # The following way of writing the cache mishandles newlines in values, |
| 1554 | ( |
| 1555 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1556 | eval ac_val=\$$ac_var |
| 1557 | case $ac_val in #( |
| 1558 | *${as_nl}*) |
| 1559 | case $ac_var in #( |
| 1560 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1561 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1562 | esac |
| 1563 | case $ac_var in #( |
| 1564 | _ | IFS | as_nl) ;; #( |
| 1565 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1566 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1567 | esac ;; |
| 1568 | esac |
| 1569 | done |
| 1570 | (set) 2>&1 | |
| 1571 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1572 | *${as_nl}ac_space=\ *) |
| 1573 | sed -n \ |
| 1574 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1575 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1576 | ;; #( |
| 1577 | *) |
| 1578 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1579 | ;; |
| 1580 | esac | |
| 1581 | sort |
| 1582 | ) |
| 1583 | echo |
| 1584 | |
| 1585 | $as_echo "## ----------------- ## |
| 1586 | ## Output variables. ## |
| 1587 | ## ----------------- ##" |
| 1588 | echo |
| 1589 | for ac_var in $ac_subst_vars |
| 1590 | do |
| 1591 | eval ac_val=\$$ac_var |
| 1592 | case $ac_val in |
| 1593 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1594 | esac |
| 1595 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1596 | done | sort |
| 1597 | echo |
| 1598 | |
| 1599 | if test -n "$ac_subst_files"; then |
| 1600 | $as_echo "## ------------------- ## |
| 1601 | ## File substitutions. ## |
| 1602 | ## ------------------- ##" |
| 1603 | echo |
| 1604 | for ac_var in $ac_subst_files |
| 1605 | do |
| 1606 | eval ac_val=\$$ac_var |
| 1607 | case $ac_val in |
| 1608 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1609 | esac |
| 1610 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1611 | done | sort |
| 1612 | echo |
| 1613 | fi |
| 1614 | |
| 1615 | if test -s confdefs.h; then |
| 1616 | $as_echo "## ----------- ## |
| 1617 | ## confdefs.h. ## |
| 1618 | ## ----------- ##" |
| 1619 | echo |
| 1620 | cat confdefs.h |
| 1621 | echo |
| 1622 | fi |
| 1623 | test "$ac_signal" != 0 && |
| 1624 | $as_echo "$as_me: caught signal $ac_signal" |
| 1625 | $as_echo "$as_me: exit $exit_status" |
| 1626 | } >&5 |
| 1627 | rm -f core *.core core.conftest.* && |
| 1628 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1629 | exit $exit_status |
| 1630 | ' 0 |
| 1631 | for ac_signal in 1 2 13 15; do |
| 1632 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1633 | done |
| 1634 | ac_signal=0 |
| 1635 | |
| 1636 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1637 | rm -f -r conftest* confdefs.h |
| 1638 | |
| 1639 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1640 | |
| 1641 | # Predefined preprocessor variables. |
| 1642 | |
| 1643 | cat >>confdefs.h <<_ACEOF |
| 1644 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1645 | _ACEOF |
| 1646 | |
| 1647 | cat >>confdefs.h <<_ACEOF |
| 1648 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1649 | _ACEOF |
| 1650 | |
| 1651 | cat >>confdefs.h <<_ACEOF |
| 1652 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1653 | _ACEOF |
| 1654 | |
| 1655 | cat >>confdefs.h <<_ACEOF |
| 1656 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1657 | _ACEOF |
| 1658 | |
| 1659 | cat >>confdefs.h <<_ACEOF |
| 1660 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1661 | _ACEOF |
| 1662 | |
| 1663 | cat >>confdefs.h <<_ACEOF |
| 1664 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1665 | _ACEOF |
| 1666 | |
| 1667 | |
| 1668 | # Let the site file select an alternate cache file if it wants to. |
| 1669 | # Prefer an explicitly selected file to automatically selected ones. |
| 1670 | ac_site_file1=NONE |
| 1671 | ac_site_file2=NONE |
| 1672 | if test -n "$CONFIG_SITE"; then |
| 1673 | # We do not want a PATH search for config.site. |
| 1674 | case $CONFIG_SITE in #(( |
| 1675 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 1676 | */*) ac_site_file1=$CONFIG_SITE;; |
| 1677 | *) ac_site_file1=./$CONFIG_SITE;; |
| 1678 | esac |
| 1679 | elif test "x$prefix" != xNONE; then |
| 1680 | ac_site_file1=$prefix/share/config.site |
| 1681 | ac_site_file2=$prefix/etc/config.site |
| 1682 | else |
| 1683 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1684 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1685 | fi |
| 1686 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1687 | do |
| 1688 | test "x$ac_site_file" = xNONE && continue |
| 1689 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1691 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1692 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1693 | . "$ac_site_file" \ |
| 1694 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1695 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1696 | as_fn_error $? "failed to load site script $ac_site_file |
| 1697 | See \`config.log' for more details" "$LINENO" 5; } |
| 1698 | fi |
| 1699 | done |
| 1700 | |
| 1701 | if test -r "$cache_file"; then |
| 1702 | # Some versions of bash will fail to source /dev/null (special files |
| 1703 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1704 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1706 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1707 | case $cache_file in |
| 1708 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1709 | *) . "./$cache_file";; |
| 1710 | esac |
| 1711 | fi |
| 1712 | else |
| 1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1714 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1715 | >$cache_file |
| 1716 | fi |
| 1717 | |
| 1718 | # Check that the precious variables saved in the cache have kept the same |
| 1719 | # value. |
| 1720 | ac_cache_corrupted=false |
| 1721 | for ac_var in $ac_precious_vars; do |
| 1722 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1723 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1724 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1725 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1726 | case $ac_old_set,$ac_new_set in |
| 1727 | set,) |
| 1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1729 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1730 | ac_cache_corrupted=: ;; |
| 1731 | ,set) |
| 1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1733 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1734 | ac_cache_corrupted=: ;; |
| 1735 | ,);; |
| 1736 | *) |
| 1737 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1738 | # differences in whitespace do not lead to failure. |
| 1739 | ac_old_val_w=`echo x $ac_old_val` |
| 1740 | ac_new_val_w=`echo x $ac_new_val` |
| 1741 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1743 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1744 | ac_cache_corrupted=: |
| 1745 | else |
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1747 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1748 | eval $ac_var=\$ac_old_val |
| 1749 | fi |
| 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1751 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1753 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1754 | fi;; |
| 1755 | esac |
| 1756 | # Pass precious variables to config.status. |
| 1757 | if test "$ac_new_set" = set; then |
| 1758 | case $ac_new_val in |
| 1759 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1760 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1761 | esac |
| 1762 | case " $ac_configure_args " in |
| 1763 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1764 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 1765 | esac |
| 1766 | fi |
| 1767 | done |
| 1768 | if $ac_cache_corrupted; then |
| 1769 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1770 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1772 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1773 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 1774 | fi |
| 1775 | ## -------------------- ## |
| 1776 | ## Main body of script. ## |
| 1777 | ## -------------------- ## |
| 1778 | |
| 1779 | ac_ext=c |
| 1780 | ac_cpp='$CPP $CPPFLAGS' |
| 1781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1784 | |
| 1785 | |
| 1786 | |
Tim Edwards | d09355e | 2021-08-23 16:25:31 -0400 | [diff] [blame] | 1787 | # AC_PREFIX_DEFAULT(/usr) |
Tim Edwards | 053cff3 | 2021-03-13 17:17:36 -0500 | [diff] [blame] | 1788 | |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1789 | |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 1790 | ## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | if test -n "$PYTHON"; then |
| 1798 | # If the user set $PYTHON, use it and don't search something else. |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5 |
| 1800 | $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; } |
| 1801 | prog="import sys |
| 1802 | # split strings by '.' and convert to numeric. Append some zeros |
| 1803 | # because we need at least 4 digits for the hex conversion. |
| 1804 | # map returns an iterator in Python 3.0 and a list in 2.x |
| 1805 | minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0] |
| 1806 | minverhex = 0 |
| 1807 | # xrange is not present in Python 3.0 and range returns an iterator |
| 1808 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 1809 | sys.exit(sys.hexversion < minverhex)" |
| 1810 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 |
| 1811 | ($PYTHON -c "$prog") >&5 2>&5 |
| 1812 | ac_status=$? |
| 1813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1814 | (exit $ac_status); }; then : |
| 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 1816 | $as_echo "yes" >&6; } |
| 1817 | else |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1819 | $as_echo "no" >&6; } |
| 1820 | as_fn_error $? "Python interpreter is too old" "$LINENO" 5 |
| 1821 | fi |
| 1822 | am_display_PYTHON=$PYTHON |
| 1823 | else |
| 1824 | # Otherwise, try each interpreter until we find one that satisfies |
| 1825 | # VERSION. |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5 |
| 1827 | $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; } |
| 1828 | if ${am_cv_pathless_PYTHON+:} false; then : |
| 1829 | $as_echo_n "(cached) " >&6 |
| 1830 | else |
| 1831 | |
Tim Edwards | bf1da95 | 2021-12-21 15:41:31 -0500 | [diff] [blame] | 1832 | for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1833 | test "$am_cv_pathless_PYTHON" = none && break |
| 1834 | prog="import sys |
| 1835 | # split strings by '.' and convert to numeric. Append some zeros |
| 1836 | # because we need at least 4 digits for the hex conversion. |
| 1837 | # map returns an iterator in Python 3.0 and a list in 2.x |
| 1838 | minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0] |
| 1839 | minverhex = 0 |
| 1840 | # xrange is not present in Python 3.0 and range returns an iterator |
| 1841 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 1842 | sys.exit(sys.hexversion < minverhex)" |
| 1843 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 |
| 1844 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 |
| 1845 | ac_status=$? |
| 1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1847 | (exit $ac_status); }; then : |
| 1848 | break |
| 1849 | fi |
| 1850 | done |
| 1851 | fi |
| 1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
| 1853 | $as_echo "$am_cv_pathless_PYTHON" >&6; } |
| 1854 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
| 1855 | if test "$am_cv_pathless_PYTHON" = none; then |
| 1856 | PYTHON=: |
| 1857 | else |
| 1858 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. |
| 1859 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 |
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1861 | $as_echo_n "checking for $ac_word... " >&6; } |
| 1862 | if ${ac_cv_path_PYTHON+:} false; then : |
| 1863 | $as_echo_n "(cached) " >&6 |
| 1864 | else |
| 1865 | case $PYTHON in |
| 1866 | [\\/]* | ?:[\\/]*) |
| 1867 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 1868 | ;; |
| 1869 | *) |
| 1870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1871 | for as_dir in $PATH |
| 1872 | do |
| 1873 | IFS=$as_save_IFS |
| 1874 | test -z "$as_dir" && as_dir=. |
| 1875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1877 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 1878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1879 | break 2 |
| 1880 | fi |
| 1881 | done |
| 1882 | done |
| 1883 | IFS=$as_save_IFS |
| 1884 | |
| 1885 | ;; |
| 1886 | esac |
| 1887 | fi |
| 1888 | PYTHON=$ac_cv_path_PYTHON |
| 1889 | if test -n "$PYTHON"; then |
| 1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 1891 | $as_echo "$PYTHON" >&6; } |
| 1892 | else |
| 1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 1894 | $as_echo "no" >&6; } |
| 1895 | fi |
| 1896 | |
| 1897 | |
| 1898 | fi |
| 1899 | am_display_PYTHON=$am_cv_pathless_PYTHON |
| 1900 | fi |
| 1901 | |
| 1902 | |
| 1903 | if test "$PYTHON" = :; then |
| 1904 | as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 |
| 1905 | else |
| 1906 | |
| 1907 | |
| 1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
| 1909 | $as_echo_n "checking for $am_display_PYTHON version... " >&6; } |
| 1910 | if ${am_cv_python_version+:} false; then : |
| 1911 | $as_echo_n "(cached) " >&6 |
| 1912 | else |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1913 | am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1914 | fi |
| 1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
| 1916 | $as_echo "$am_cv_python_version" >&6; } |
| 1917 | PYTHON_VERSION=$am_cv_python_version |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1918 | |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1919 | |
| 1920 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 1921 | PYTHON_PREFIX='${prefix}' |
| 1922 | |
| 1923 | PYTHON_EXEC_PREFIX='${exec_prefix}' |
| 1924 | |
| 1925 | |
| 1926 | |
| 1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
| 1928 | $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } |
| 1929 | if ${am_cv_python_platform+:} false; then : |
| 1930 | $as_echo_n "(cached) " >&6 |
| 1931 | else |
| 1932 | am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` |
| 1933 | fi |
| 1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 |
| 1935 | $as_echo "$am_cv_python_platform" >&6; } |
| 1936 | PYTHON_PLATFORM=$am_cv_python_platform |
| 1937 | |
| 1938 | |
| 1939 | # Just factor out some code duplication. |
| 1940 | am_python_setup_sysconfig="\ |
| 1941 | import sys |
| 1942 | # Prefer sysconfig over distutils.sysconfig, for better compatibility |
| 1943 | # with python 3.x. See automake bug#10227. |
| 1944 | try: |
| 1945 | import sysconfig |
| 1946 | except ImportError: |
| 1947 | can_use_sysconfig = 0 |
| 1948 | else: |
| 1949 | can_use_sysconfig = 1 |
| 1950 | # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
| 1951 | # <https://github.com/pypa/virtualenv/issues/118> |
| 1952 | try: |
| 1953 | from platform import python_implementation |
| 1954 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
| 1955 | can_use_sysconfig = 0 |
| 1956 | except ImportError: |
| 1957 | pass" |
| 1958 | |
| 1959 | |
| 1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 |
| 1961 | $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } |
| 1962 | if ${am_cv_python_pythondir+:} false; then : |
| 1963 | $as_echo_n "(cached) " >&6 |
| 1964 | else |
| 1965 | if test "x$prefix" = xNONE |
| 1966 | then |
| 1967 | am_py_prefix=$ac_default_prefix |
| 1968 | else |
| 1969 | am_py_prefix=$prefix |
| 1970 | fi |
| 1971 | am_cv_python_pythondir=`$PYTHON -c " |
| 1972 | $am_python_setup_sysconfig |
| 1973 | if can_use_sysconfig: |
| 1974 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
| 1975 | else: |
| 1976 | from distutils import sysconfig |
| 1977 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
| 1978 | sys.stdout.write(sitedir)"` |
| 1979 | case $am_cv_python_pythondir in |
| 1980 | $am_py_prefix*) |
| 1981 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` |
| 1982 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` |
| 1983 | ;; |
| 1984 | *) |
| 1985 | case $am_py_prefix in |
| 1986 | /usr|/System*) ;; |
| 1987 | *) |
| 1988 | am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages |
| 1989 | ;; |
| 1990 | esac |
| 1991 | ;; |
| 1992 | esac |
| 1993 | |
| 1994 | fi |
| 1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
| 1996 | $as_echo "$am_cv_python_pythondir" >&6; } |
| 1997 | pythondir=$am_cv_python_pythondir |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | pkgpythondir=\${pythondir}/$PACKAGE |
| 2002 | |
| 2003 | |
| 2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 |
| 2005 | $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } |
| 2006 | if ${am_cv_python_pyexecdir+:} false; then : |
| 2007 | $as_echo_n "(cached) " >&6 |
| 2008 | else |
| 2009 | if test "x$exec_prefix" = xNONE |
| 2010 | then |
| 2011 | am_py_exec_prefix=$am_py_prefix |
| 2012 | else |
| 2013 | am_py_exec_prefix=$exec_prefix |
| 2014 | fi |
| 2015 | am_cv_python_pyexecdir=`$PYTHON -c " |
| 2016 | $am_python_setup_sysconfig |
| 2017 | if can_use_sysconfig: |
| 2018 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) |
| 2019 | else: |
| 2020 | from distutils import sysconfig |
| 2021 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') |
| 2022 | sys.stdout.write(sitedir)"` |
| 2023 | case $am_cv_python_pyexecdir in |
| 2024 | $am_py_exec_prefix*) |
| 2025 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |
| 2026 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` |
| 2027 | ;; |
| 2028 | *) |
| 2029 | case $am_py_exec_prefix in |
| 2030 | /usr|/System*) ;; |
| 2031 | *) |
| 2032 | am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages |
| 2033 | ;; |
| 2034 | esac |
| 2035 | ;; |
| 2036 | esac |
| 2037 | |
| 2038 | fi |
| 2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
| 2040 | $as_echo "$am_cv_python_pyexecdir" >&6; } |
| 2041 | pyexecdir=$am_cv_python_pyexecdir |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | pkgpyexecdir=\${pyexecdir}/$PACKAGE |
| 2046 | |
| 2047 | |
| 2048 | |
| 2049 | fi |
| 2050 | |
| 2051 | |
| 2052 | |
| 2053 | if test -z $PYTHON; |
| 2054 | then |
Tim Edwards | 238499f | 2021-05-17 16:34:13 -0400 | [diff] [blame] | 2055 | if test -z ""; |
| 2056 | then |
| 2057 | PYTHON="python3" |
| 2058 | else |
| 2059 | PYTHON="" |
| 2060 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2061 | fi |
| 2062 | PYTHON_NAME=`basename $PYTHON` |
| 2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5 |
| 2064 | $as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; } |
Tim Edwards | 238499f | 2021-05-17 16:34:13 -0400 | [diff] [blame] | 2065 | $PYTHON -c "import distutils" 2>/dev/null |
| 2066 | if test $? -eq 0; |
| 2067 | then |
| 2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2069 | $as_echo "yes" >&6; } |
Tim Edwards | 238499f | 2021-05-17 16:34:13 -0400 | [diff] [blame] | 2070 | eval HAVE_PYMOD_DISTUTILS=yes |
| 2071 | else |
| 2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2073 | $as_echo "no" >&6; } |
Tim Edwards | 238499f | 2021-05-17 16:34:13 -0400 | [diff] [blame] | 2074 | eval HAVE_PYMOD_DISTUTILS=no |
| 2075 | # |
| 2076 | if test -n "" |
| 2077 | then |
| 2078 | as_fn_error $? "failed to find required module distutils" "$LINENO" 5 |
| 2079 | exit 1 |
| 2080 | fi |
| 2081 | fi |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2082 | |
| 2083 | |
Tim Edwards | 665c3fd | 2021-05-02 20:20:27 -0400 | [diff] [blame] | 2084 | # Check for Mac OS X gsed vs. sed |
| 2085 | |
| 2086 | |
| 2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 2088 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 2089 | if ${ac_cv_path_SED+:} false; then : |
| 2090 | $as_echo_n "(cached) " >&6 |
| 2091 | else |
| 2092 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 2093 | for ac_i in 1 2 3 4 5 6 7; do |
| 2094 | ac_script="$ac_script$as_nl$ac_script" |
| 2095 | done |
| 2096 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 2097 | { ac_script=; unset ac_script;} |
| 2098 | if test -z "$SED"; then |
| 2099 | ac_path_SED_found=false |
| 2100 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2102 | for as_dir in $PATH |
| 2103 | do |
| 2104 | IFS=$as_save_IFS |
| 2105 | test -z "$as_dir" && as_dir=. |
| 2106 | for ac_prog in sed gsed; do |
| 2107 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2108 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 2109 | as_fn_executable_p "$ac_path_SED" || continue |
| 2110 | # Check for GNU ac_path_SED and select it if it is found. |
| 2111 | # Check for GNU $ac_path_SED |
| 2112 | case `"$ac_path_SED" --version 2>&1` in |
| 2113 | *GNU*) |
| 2114 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 2115 | *) |
| 2116 | ac_count=0 |
| 2117 | $as_echo_n 0123456789 >"conftest.in" |
| 2118 | while : |
| 2119 | do |
| 2120 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 2121 | mv "conftest.tmp" "conftest.in" |
| 2122 | cp "conftest.in" "conftest.nl" |
| 2123 | $as_echo '' >> "conftest.nl" |
| 2124 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 2125 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 2126 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 2127 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 2128 | # Best one so far, save it but keep looking for a better one |
| 2129 | ac_cv_path_SED="$ac_path_SED" |
| 2130 | ac_path_SED_max=$ac_count |
| 2131 | fi |
| 2132 | # 10*(2^10) chars as input seems more than enough |
| 2133 | test $ac_count -gt 10 && break |
| 2134 | done |
| 2135 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 2136 | esac |
| 2137 | |
| 2138 | $ac_path_SED_found && break 3 |
| 2139 | done |
| 2140 | done |
| 2141 | done |
| 2142 | IFS=$as_save_IFS |
| 2143 | if test -z "$ac_cv_path_SED"; then |
| 2144 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 2145 | fi |
| 2146 | else |
| 2147 | ac_cv_path_SED=$SED |
| 2148 | fi |
| 2149 | |
| 2150 | fi |
| 2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 2152 | $as_echo "$ac_cv_path_SED" >&6; } |
| 2153 | SED="$ac_cv_path_SED" |
| 2154 | rm -f conftest.sed |
| 2155 | |
| 2156 | |
| 2157 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2158 | realpath() { |
| 2159 | # Cross-platform, handles ~ |
| 2160 | python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1 |
| 2161 | } |
| 2162 | |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 2163 | ENABLED_TECHS= |
| 2164 | |
Tim Edwards | 062fbb1 | 2021-11-26 15:44:59 -0500 | [diff] [blame] | 2165 | # Export the open_pdks top level directory |
| 2166 | OPENPDKS_TOP=`cd .. && pwd` |
| 2167 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2168 | # detect PDKs based on directories that include Makefile.in files |
| 2169 | |
| 2170 | |
| 2171 | # define tools |
| 2172 | # define tools to install setup files for. This does not imply that the tools are |
| 2173 | # available on the system; just that open_pdks will install the setup files for them. |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2174 | |
| 2175 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2176 | # check for the source and install paths for each PDK. |
| 2177 | |
| 2178 | |
| 2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5 |
| 2180 | $as_echo "$as_me: Found technology directories: sky130" >&6;} |
| 2181 | |
| 2182 | |
| 2183 | |
| 2184 | # --enable-pdk-[pdk]=/path/to/pdk |
| 2185 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2186 | echo "Checking technology sky130..." |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2187 | |
| 2188 | |
| 2189 | SKY130_SOURCE_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2190 | SKY130_LINK_TARGETS="none" |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2191 | SKY130_AUTO="0" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2192 | |
| 2193 | # Check whether --enable-sky130-sky130 was given. |
| 2194 | if test "${enable_sky130_pdk+set}" = set; then : |
| 2195 | enableval=$enable_sky130_pdk; |
| 2196 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2197 | export SKY130_SOURCE_PATH=../sources/sky130-pdk |
| 2198 | SKY130_AUTO="1" |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 2199 | ENABLED_TECHS="$ENABLED_TECHS sky130" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2200 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2201 | echo "Disabling sky130..." |
| 2202 | else |
| 2203 | SKY130_SOURCE_PATH=$enableval |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 2204 | ENABLED_TECHS="$ENABLED_TECHS sky130" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2205 | fi |
| 2206 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2207 | fi |
| 2208 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2209 | |
| 2210 | if [ "$SKY130_SOURCE_PATH" != "" ]; then |
| 2211 | SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH` |
| 2212 | SKY130_BASENAME=`basename $SKY130_SOURCE_PATH` |
| 2213 | if [ "$SKY130_BASENAME" = "libraries" ]; then |
| 2214 | SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH` |
| 2215 | fi |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2216 | # Basic check that the PDK path exists, unless depending on Makefile |
| 2217 | # to download it automatically. |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2218 | if [ "$SKY130_AUTO" = "0" ]; then |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2220 | $as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;} |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2221 | as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh` |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5 |
| 2223 | $as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; } |
| 2224 | if eval \${$as_ac_File+:} false; then : |
| 2225 | $as_echo_n "(cached) " >&6 |
| 2226 | else |
| 2227 | test "$cross_compiling" = yes && |
| 2228 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 2229 | if test -r "$SKY130_SOURCE_PATH"; then |
| 2230 | eval "$as_ac_File=yes" |
| 2231 | else |
| 2232 | eval "$as_ac_File=no" |
| 2233 | fi |
| 2234 | fi |
| 2235 | eval ac_res=\$$as_ac_File |
| 2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2237 | $as_echo "$ac_res" >&6; } |
| 2238 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 2239 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2241 | $as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;} |
| 2242 | |
| 2243 | else |
| 2244 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2245 | as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2246 | |
| 2247 | fi |
| 2248 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2249 | else |
| 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: PDK 'sky130' will be downloaded automatically during make." >&5 |
| 2251 | $as_echo "$as_me: PDK 'sky130' will be downloaded automatically during make." >&6;} |
| 2252 | fi |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2253 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2254 | # --with-pdk-link-targets=PDK_LINK_TARGETS |
| 2255 | |
| 2256 | # Check whether --with-sky130-link-targets was given. |
| 2257 | if test "${with_sky130_link_targets+set}" = set; then : |
| 2258 | withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets |
| 2259 | |
| 2260 | fi |
| 2261 | |
| 2262 | |
| 2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5 |
| 2264 | $as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;} |
| 2265 | fi |
| 2266 | |
| 2267 | |
| 2268 | |
| 2269 | |
| 2270 | |
| 2271 | |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 2272 | # Export the list of known technologies to the Makefile |
| 2273 | ALL_TECHS="sky130" |
| 2274 | |
| 2275 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2276 | # Set variables for tool setups |
| 2277 | |
| 2278 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5 |
| 2280 | $as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2281 | |
| 2282 | |
| 2283 | |
| 2284 | |
| 2285 | |
| 2286 | KLAYOUT_DISABLED=0 |
| 2287 | # Check whether --enable-klayout was given. |
| 2288 | if test "${enable_klayout+set}" = set; then : |
| 2289 | enableval=$enable_klayout; |
| 2290 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2291 | KLAYOUT_DISABLED=1 |
| 2292 | fi |
| 2293 | |
| 2294 | |
| 2295 | fi |
| 2296 | |
| 2297 | |
| 2298 | |
| 2299 | |
| 2300 | |
| 2301 | MAGIC_DISABLED=0 |
| 2302 | # Check whether --enable-magic was given. |
| 2303 | if test "${enable_magic+set}" = set; then : |
| 2304 | enableval=$enable_magic; |
| 2305 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2306 | MAGIC_DISABLED=1 |
| 2307 | fi |
| 2308 | |
| 2309 | |
| 2310 | fi |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | |
| 2316 | NETGEN_DISABLED=0 |
| 2317 | # Check whether --enable-netgen was given. |
| 2318 | if test "${enable_netgen+set}" = set; then : |
| 2319 | enableval=$enable_netgen; |
| 2320 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2321 | NETGEN_DISABLED=1 |
| 2322 | fi |
| 2323 | |
| 2324 | |
| 2325 | fi |
| 2326 | |
| 2327 | |
| 2328 | |
| 2329 | |
| 2330 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 2331 | IRSIM_DISABLED=0 |
| 2332 | # Check whether --enable-irsim was given. |
| 2333 | if test "${enable_irsim+set}" = set; then : |
| 2334 | enableval=$enable_irsim; |
| 2335 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2336 | IRSIM_DISABLED=1 |
| 2337 | fi |
| 2338 | |
| 2339 | |
| 2340 | fi |
| 2341 | |
| 2342 | |
| 2343 | |
| 2344 | |
| 2345 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2346 | OPENLANE_DISABLED=0 |
| 2347 | # Check whether --enable-openlane was given. |
| 2348 | if test "${enable_openlane+set}" = set; then : |
| 2349 | enableval=$enable_openlane; |
| 2350 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2351 | OPENLANE_DISABLED=1 |
| 2352 | fi |
| 2353 | |
| 2354 | |
| 2355 | fi |
| 2356 | |
| 2357 | |
| 2358 | |
| 2359 | |
| 2360 | |
| 2361 | QFLOW_DISABLED=0 |
| 2362 | # Check whether --enable-qflow was given. |
| 2363 | if test "${enable_qflow+set}" = set; then : |
| 2364 | enableval=$enable_qflow; |
| 2365 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2366 | QFLOW_DISABLED=1 |
| 2367 | fi |
| 2368 | |
| 2369 | |
| 2370 | fi |
| 2371 | |
| 2372 | |
| 2373 | |
| 2374 | |
| 2375 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2376 | XSCHEM_DISABLED=0 |
| 2377 | # Check whether --enable-xschem was given. |
| 2378 | if test "${enable_xschem+set}" = set; then : |
| 2379 | enableval=$enable_xschem; |
| 2380 | if test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2381 | XSCHEM_DISABLED=1 |
| 2382 | fi |
| 2383 | |
| 2384 | |
| 2385 | fi |
| 2386 | |
| 2387 | |
| 2388 | |
| 2389 | |
| 2390 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2391 | # Magic |
| 2392 | # Extract the first word of "magic", so it can be a program name with args. |
| 2393 | set dummy magic; ac_word=$2 |
| 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2395 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2396 | if ${ac_cv_path_MAGIC+:} false; then : |
| 2397 | $as_echo_n "(cached) " >&6 |
| 2398 | else |
| 2399 | case $MAGIC in |
| 2400 | [\\/]* | ?:[\\/]*) |
| 2401 | ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. |
| 2402 | ;; |
| 2403 | *) |
| 2404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2405 | for as_dir in $PATH |
| 2406 | do |
| 2407 | IFS=$as_save_IFS |
| 2408 | test -z "$as_dir" && as_dir=. |
| 2409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2411 | ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext" |
| 2412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2413 | break 2 |
| 2414 | fi |
| 2415 | done |
| 2416 | done |
| 2417 | IFS=$as_save_IFS |
| 2418 | |
| 2419 | ;; |
| 2420 | esac |
| 2421 | fi |
| 2422 | MAGIC=$ac_cv_path_MAGIC |
| 2423 | if test -n "$MAGIC"; then |
| 2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5 |
| 2425 | $as_echo "$MAGIC" >&6; } |
| 2426 | else |
| 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2428 | $as_echo "no" >&6; } |
| 2429 | fi |
| 2430 | |
| 2431 | |
| 2432 | if test -z "$MAGIC"; then |
| 2433 | as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5 |
| 2434 | fi |
| 2435 | # Extract the first word of "patch", so it can be a program name with args. |
| 2436 | set dummy patch; ac_word=$2 |
| 2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2438 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2439 | if ${ac_cv_path_PATCH+:} false; then : |
| 2440 | $as_echo_n "(cached) " >&6 |
| 2441 | else |
| 2442 | case $PATCH in |
| 2443 | [\\/]* | ?:[\\/]*) |
| 2444 | ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. |
| 2445 | ;; |
| 2446 | *) |
| 2447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2448 | for as_dir in $PATH |
| 2449 | do |
| 2450 | IFS=$as_save_IFS |
| 2451 | test -z "$as_dir" && as_dir=. |
| 2452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2454 | ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" |
| 2455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2456 | break 2 |
| 2457 | fi |
| 2458 | done |
| 2459 | done |
| 2460 | IFS=$as_save_IFS |
| 2461 | |
| 2462 | ;; |
| 2463 | esac |
| 2464 | fi |
| 2465 | PATCH=$ac_cv_path_PATCH |
| 2466 | if test -n "$PATCH"; then |
| 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 |
| 2468 | $as_echo "$PATCH" >&6; } |
| 2469 | else |
| 2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2471 | $as_echo "no" >&6; } |
| 2472 | fi |
| 2473 | |
| 2474 | |
| 2475 | if test -z "$PATCH"; then |
| 2476 | as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5 |
| 2477 | fi |
| 2478 | |
| 2479 | # Other installations (libraries or tools if applicable) |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2480 | |
| 2481 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 2482 | # Optional installations (like the above, but disabled by default) |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 2483 | |
| 2484 | |
| 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | |
| 2490 | |
| 2491 | # echo target targetvar flag location |
| 2492 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2493 | SKY130_ML_XX_HD_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2494 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2495 | # Check whether --enable-alpha-sky130 was given. |
| 2496 | if test "${enable_alpha_sky130+set}" = set; then : |
| 2497 | enableval=$enable_alpha_sky130; |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2498 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5 |
| 2500 | $as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;} |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2501 | export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2502 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_ml_xx_hd'" >&5 |
| 2504 | $as_echo "$as_me: Disabling package 'sky130_ml_xx_hd'" >&6;} |
| 2505 | export SKY130_ML_XX_HD_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2506 | else |
| 2507 | SKY130_ML_XX_HD_PATH=$enableval |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&5 |
| 2509 | $as_echo "$as_me: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2510 | fi |
| 2511 | SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH` |
| 2512 | |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2513 | else |
| 2514 | |
| 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5 |
| 2516 | $as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;} |
| 2517 | SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd |
| 2518 | |
| 2519 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2520 | fi |
| 2521 | |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | |
| 2527 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2528 | |
| 2529 | |
| 2530 | |
| 2531 | |
| 2532 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2533 | # echo target targetvar flag location |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2534 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2535 | XSCHEM_SKY130_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2536 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2537 | # Check whether --enable-xschem-sky130 was given. |
| 2538 | if test "${enable_xschem_sky130+set}" = set; then : |
| 2539 | enableval=$enable_xschem_sky130; |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2540 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5 |
| 2542 | $as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;} |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 2543 | export XSCHEM_SKY130_PATH=../sources/xschem_sky130 |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2544 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'xschem_sky130'" >&5 |
| 2546 | $as_echo "$as_me: Disabling package 'xschem_sky130'" >&6;} |
| 2547 | export XSCHEM_SKY130_PATH="" |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2548 | else |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2549 | XSCHEM_SKY130_PATH=$enableval |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&5 |
| 2551 | $as_echo "$as_me: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2552 | fi |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2553 | XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH` |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2554 | |
Tim Edwards | 7e0a644 | 2021-02-11 15:37:42 -0500 | [diff] [blame] | 2555 | else |
| 2556 | |
| 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5 |
| 2558 | $as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;} |
| 2559 | XSCHEM_SKY130_PATH=../sources/xschem_sky130 |
| 2560 | |
| 2561 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2562 | fi |
| 2563 | |
| 2564 | |
| 2565 | |
| 2566 | |
| 2567 | |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2568 | |
| 2569 | |
| 2570 | |
| 2571 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 2572 | |
| 2573 | |
| 2574 | |
| 2575 | |
| 2576 | # echo target targetvar flag location |
| 2577 | |
| 2578 | SKY130_SRAM_MACROS_PATH="" |
| 2579 | |
| 2580 | # Check whether --enable-sram-sky130 was given. |
| 2581 | if test "${enable_sram_sky130+set}" = set; then : |
| 2582 | enableval=$enable_sram_sky130; |
| 2583 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
| 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will be installed automatically during make." >&5 |
| 2585 | $as_echo "$as_me: Package 'sky130_sram_macros' will be installed automatically during make." >&6;} |
| 2586 | export SKY130_SRAM_MACROS_PATH=../sources/sky130_sram_macros |
| 2587 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_sram_macros'" >&5 |
| 2589 | $as_echo "$as_me: Disabling package 'sky130_sram_macros'" >&6;} |
| 2590 | export SKY130_SRAM_MACROS_PATH="" |
| 2591 | else |
| 2592 | SKY130_SRAM_MACROS_PATH=$enableval |
| 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&5 |
| 2594 | $as_echo "$as_me: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&6;} |
| 2595 | fi |
| 2596 | SKY130_SRAM_MACROS_PATH=`realpath $SKY130_SRAM_MACROS_PATH` |
| 2597 | |
| 2598 | else |
| 2599 | |
| 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will not be installed." >&5 |
| 2601 | $as_echo "$as_me: Package 'sky130_sram_macros' will not be installed." >&6;} |
| 2602 | |
| 2603 | |
| 2604 | fi |
| 2605 | |
| 2606 | |
| 2607 | |
| 2608 | |
| 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
| 2613 | |
| 2614 | |
| 2615 | |
| 2616 | |
| 2617 | # echo target targetvar flag location |
| 2618 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 2619 | SKY130_OSU_T12_PATH="" |
| 2620 | |
| 2621 | # Check whether --enable-osu-t12-sky130 was given. |
| 2622 | if test "${enable_osu_t12_sky130+set}" = set; then : |
| 2623 | enableval=$enable_osu_t12_sky130; |
| 2624 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
| 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will be installed automatically during make." >&5 |
| 2626 | $as_echo "$as_me: Package 'sky130_osu_t12' will be installed automatically during make." >&6;} |
| 2627 | export SKY130_OSU_T12_PATH=../sources/sky130_osu_t12 |
| 2628 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t12'" >&5 |
| 2630 | $as_echo "$as_me: Disabling package 'sky130_osu_t12'" >&6;} |
| 2631 | export SKY130_OSU_T12_PATH="" |
| 2632 | else |
| 2633 | SKY130_OSU_T12_PATH=$enableval |
| 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&5 |
| 2635 | $as_echo "$as_me: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&6;} |
| 2636 | fi |
| 2637 | SKY130_OSU_T12_PATH=`realpath $SKY130_OSU_T12_PATH` |
| 2638 | |
| 2639 | else |
| 2640 | |
| 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will not be installed." >&5 |
| 2642 | $as_echo "$as_me: Package 'sky130_osu_t12' will not be installed." >&6;} |
| 2643 | |
| 2644 | |
| 2645 | fi |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | |
| 2656 | |
| 2657 | |
| 2658 | # echo target targetvar flag location |
| 2659 | |
| 2660 | SKY130_OSU_T15_PATH="" |
| 2661 | |
| 2662 | # Check whether --enable-osu-t15-sky130 was given. |
| 2663 | if test "${enable_osu_t15_sky130+set}" = set; then : |
| 2664 | enableval=$enable_osu_t15_sky130; |
| 2665 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
| 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will be installed automatically during make." >&5 |
| 2667 | $as_echo "$as_me: Package 'sky130_osu_t15' will be installed automatically during make." >&6;} |
| 2668 | export SKY130_OSU_T15_PATH=../sources/sky130_osu_t15 |
| 2669 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t15'" >&5 |
| 2671 | $as_echo "$as_me: Disabling package 'sky130_osu_t15'" >&6;} |
| 2672 | export SKY130_OSU_T15_PATH="" |
| 2673 | else |
| 2674 | SKY130_OSU_T15_PATH=$enableval |
| 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&5 |
| 2676 | $as_echo "$as_me: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&6;} |
| 2677 | fi |
| 2678 | SKY130_OSU_T15_PATH=`realpath $SKY130_OSU_T15_PATH` |
| 2679 | |
| 2680 | else |
| 2681 | |
| 2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will not be installed." >&5 |
| 2683 | $as_echo "$as_me: Package 'sky130_osu_t15' will not be installed." >&6;} |
| 2684 | |
| 2685 | |
| 2686 | fi |
| 2687 | |
| 2688 | |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | |
| 2694 | |
| 2695 | |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | # echo target targetvar flag location |
| 2700 | |
| 2701 | SKY130_OSU_T18_PATH="" |
| 2702 | |
| 2703 | # Check whether --enable-osu-t18-sky130 was given. |
| 2704 | if test "${enable_osu_t18_sky130+set}" = set; then : |
| 2705 | enableval=$enable_osu_t18_sky130; |
| 2706 | if test "$enableval" == "yes" -o "$enableval" == "YES"; then |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will be installed automatically during make." >&5 |
| 2708 | $as_echo "$as_me: Package 'sky130_osu_t18' will be installed automatically during make." >&6;} |
| 2709 | export SKY130_OSU_T18_PATH=../sources/sky130_osu_t18 |
| 2710 | elif test "$enableval" == "no" -o "$enableval" == "NO"; then |
| 2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t18'" >&5 |
| 2712 | $as_echo "$as_me: Disabling package 'sky130_osu_t18'" >&6;} |
| 2713 | export SKY130_OSU_T18_PATH="" |
| 2714 | else |
| 2715 | SKY130_OSU_T18_PATH=$enableval |
| 2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&5 |
| 2717 | $as_echo "$as_me: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&6;} |
| 2718 | fi |
| 2719 | SKY130_OSU_T18_PATH=`realpath $SKY130_OSU_T18_PATH` |
| 2720 | |
| 2721 | else |
| 2722 | |
| 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will not be installed." >&5 |
| 2724 | $as_echo "$as_me: Package 'sky130_osu_t18' will not be installed." >&6;} |
| 2725 | |
| 2726 | |
| 2727 | fi |
| 2728 | |
| 2729 | |
| 2730 | |
| 2731 | |
| 2732 | |
| 2733 | |
| 2734 | |
| 2735 | |
| 2736 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5 |
| 2738 | $as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&6;} |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 2739 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 2740 | # Check for "--with-ef-style" |
| 2741 | EF_STYLE=0 |
| 2742 | |
| 2743 | # Check whether --with-ef-style was given. |
| 2744 | if test "${with_ef_style+set}" = set; then : |
| 2745 | withval=$with_ef_style; |
Tim Edwards | 8292c90 | 2020-12-24 16:25:25 -0500 | [diff] [blame] | 2746 | pdks_ef_style=$withval |
| 2747 | if test "$withval" == "yes" -o "$withval" == "YES"; then |
| 2748 | EF_STYLE=1 |
| 2749 | fi |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 2750 | |
| 2751 | fi |
| 2752 | |
| 2753 | |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2754 | |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 2755 | # Export the list of enabled technologies to the Makefile |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2756 | |
Tim Edwards | 062fbb1 | 2021-11-26 15:44:59 -0500 | [diff] [blame] | 2757 | # Export the top level directory of open_pdks |
| 2758 | |
Tim Edwards | 3c02c08 | 2021-11-26 13:48:33 -0500 | [diff] [blame] | 2759 | |
| 2760 | MAKEFILES=$(find -L .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g') |
Ahmed Ghazy | 6dc7ebf | 2020-07-29 16:52:14 +0200 | [diff] [blame] | 2761 | ac_config_files="$ac_config_files $MAKEFILES" |
| 2762 | |
| 2763 | |
| 2764 | cat >confcache <<\_ACEOF |
| 2765 | # This file is a shell script that caches the results of configure |
| 2766 | # tests run on this system so they can be shared between configure |
| 2767 | # scripts and configure runs, see configure's option --config-cache. |
| 2768 | # It is not useful on other systems. If it contains results you don't |
| 2769 | # want to keep, you may remove or edit it. |
| 2770 | # |
| 2771 | # config.status only pays attention to the cache file if you give it |
| 2772 | # the --recheck option to rerun configure. |
| 2773 | # |
| 2774 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2775 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2776 | # following values. |
| 2777 | |
| 2778 | _ACEOF |
| 2779 | |
| 2780 | # The following way of writing the cache mishandles newlines in values, |
| 2781 | # but we know of no workaround that is simple, portable, and efficient. |
| 2782 | # So, we kill variables containing newlines. |
| 2783 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2784 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2785 | ( |
| 2786 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 2787 | eval ac_val=\$$ac_var |
| 2788 | case $ac_val in #( |
| 2789 | *${as_nl}*) |
| 2790 | case $ac_var in #( |
| 2791 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2792 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2793 | esac |
| 2794 | case $ac_var in #( |
| 2795 | _ | IFS | as_nl) ;; #( |
| 2796 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2797 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2798 | esac ;; |
| 2799 | esac |
| 2800 | done |
| 2801 | |
| 2802 | (set) 2>&1 | |
| 2803 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 2804 | *${as_nl}ac_space=\ *) |
| 2805 | # `set' does not quote correctly, so add quotes: double-quote |
| 2806 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 2807 | sed -n \ |
| 2808 | "s/'/'\\\\''/g; |
| 2809 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 2810 | ;; #( |
| 2811 | *) |
| 2812 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2813 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2814 | ;; |
| 2815 | esac | |
| 2816 | sort |
| 2817 | ) | |
| 2818 | sed ' |
| 2819 | /^ac_cv_env_/b end |
| 2820 | t clear |
| 2821 | :clear |
| 2822 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 2823 | t end |
| 2824 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 2825 | :end' >>confcache |
| 2826 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 2827 | if test -w "$cache_file"; then |
| 2828 | if test "x$cache_file" != "x/dev/null"; then |
| 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 2830 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 2831 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 2832 | cat confcache >"$cache_file" |
| 2833 | else |
| 2834 | case $cache_file in #( |
| 2835 | */* | ?:*) |
| 2836 | mv -f confcache "$cache_file"$$ && |
| 2837 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 2838 | *) |
| 2839 | mv -f confcache "$cache_file" ;; |
| 2840 | esac |
| 2841 | fi |
| 2842 | fi |
| 2843 | else |
| 2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 2845 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 2846 | fi |
| 2847 | fi |
| 2848 | rm -f confcache |
| 2849 | |
| 2850 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2851 | # Let make expand exec_prefix. |
| 2852 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2853 | |
| 2854 | # Transform confdefs.h into DEFS. |
| 2855 | # Protect against shell expansion while executing Makefile rules. |
| 2856 | # Protect against Makefile macro expansion. |
| 2857 | # |
| 2858 | # If the first sed substitution is executed (which looks for macros that |
| 2859 | # take arguments), then branch to the quote section. Otherwise, |
| 2860 | # look for a macro that doesn't take arguments. |
| 2861 | ac_script=' |
| 2862 | :mline |
| 2863 | /\\$/{ |
| 2864 | N |
| 2865 | s,\\\n,, |
| 2866 | b mline |
| 2867 | } |
| 2868 | t clear |
| 2869 | :clear |
| 2870 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 2871 | t quote |
| 2872 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 2873 | t quote |
| 2874 | b any |
| 2875 | :quote |
| 2876 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 2877 | s/\[/\\&/g |
| 2878 | s/\]/\\&/g |
| 2879 | s/\$/$$/g |
| 2880 | H |
| 2881 | :any |
| 2882 | ${ |
| 2883 | g |
| 2884 | s/^\n// |
| 2885 | s/\n/ /g |
| 2886 | p |
| 2887 | } |
| 2888 | ' |
| 2889 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 2890 | |
| 2891 | |
| 2892 | ac_libobjs= |
| 2893 | ac_ltlibobjs= |
| 2894 | U= |
| 2895 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 2896 | # 1. Remove the extension, and $U if already installed. |
| 2897 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 2898 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 2899 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 2900 | # will be set to the directory where LIBOBJS objects are built. |
| 2901 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 2902 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 2903 | done |
| 2904 | LIBOBJS=$ac_libobjs |
| 2905 | |
| 2906 | LTLIBOBJS=$ac_ltlibobjs |
| 2907 | |
| 2908 | |
| 2909 | |
| 2910 | : "${CONFIG_STATUS=./config.status}" |
| 2911 | ac_write_fail=0 |
| 2912 | ac_clean_files_save=$ac_clean_files |
| 2913 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 2915 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 2916 | as_write_fail=0 |
| 2917 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 2918 | #! $SHELL |
| 2919 | # Generated by $as_me. |
| 2920 | # Run this file to recreate the current configuration. |
| 2921 | # Compiler output produced by configure, useful for debugging |
| 2922 | # configure, is in config.log if it exists. |
| 2923 | |
| 2924 | debug=false |
| 2925 | ac_cs_recheck=false |
| 2926 | ac_cs_silent=false |
| 2927 | |
| 2928 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 2929 | export SHELL |
| 2930 | _ASEOF |
| 2931 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 2932 | ## -------------------- ## |
| 2933 | ## M4sh Initialization. ## |
| 2934 | ## -------------------- ## |
| 2935 | |
| 2936 | # Be more Bourne compatible |
| 2937 | DUALCASE=1; export DUALCASE # for MKS sh |
| 2938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 2939 | emulate sh |
| 2940 | NULLCMD=: |
| 2941 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 2942 | # is contrary to our usage. Disable this feature. |
| 2943 | alias -g '${1+"$@"}'='"$@"' |
| 2944 | setopt NO_GLOB_SUBST |
| 2945 | else |
| 2946 | case `(set -o) 2>/dev/null` in #( |
| 2947 | *posix*) : |
| 2948 | set -o posix ;; #( |
| 2949 | *) : |
| 2950 | ;; |
| 2951 | esac |
| 2952 | fi |
| 2953 | |
| 2954 | |
| 2955 | as_nl=' |
| 2956 | ' |
| 2957 | export as_nl |
| 2958 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 2959 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2960 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2961 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2962 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 2963 | # but without wasting forks for bash or zsh. |
| 2964 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 2965 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2966 | as_echo='print -r --' |
| 2967 | as_echo_n='print -rn --' |
| 2968 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2969 | as_echo='printf %s\n' |
| 2970 | as_echo_n='printf %s' |
| 2971 | else |
| 2972 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 2973 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 2974 | as_echo_n='/usr/ucb/echo -n' |
| 2975 | else |
| 2976 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 2977 | as_echo_n_body='eval |
| 2978 | arg=$1; |
| 2979 | case $arg in #( |
| 2980 | *"$as_nl"*) |
| 2981 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 2982 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 2983 | esac; |
| 2984 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 2985 | ' |
| 2986 | export as_echo_n_body |
| 2987 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 2988 | fi |
| 2989 | export as_echo_body |
| 2990 | as_echo='sh -c $as_echo_body as_echo' |
| 2991 | fi |
| 2992 | |
| 2993 | # The user is always right. |
| 2994 | if test "${PATH_SEPARATOR+set}" != set; then |
| 2995 | PATH_SEPARATOR=: |
| 2996 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 2997 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 2998 | PATH_SEPARATOR=';' |
| 2999 | } |
| 3000 | fi |
| 3001 | |
| 3002 | |
| 3003 | # IFS |
| 3004 | # We need space, tab and new line, in precisely that order. Quoting is |
| 3005 | # there to prevent editors from complaining about space-tab. |
| 3006 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 3007 | # splitting by setting IFS to empty value.) |
| 3008 | IFS=" "" $as_nl" |
| 3009 | |
| 3010 | # Find who we are. Look in the path if we contain no directory separator. |
| 3011 | as_myself= |
| 3012 | case $0 in #(( |
| 3013 | *[\\/]* ) as_myself=$0 ;; |
| 3014 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3015 | for as_dir in $PATH |
| 3016 | do |
| 3017 | IFS=$as_save_IFS |
| 3018 | test -z "$as_dir" && as_dir=. |
| 3019 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 3020 | done |
| 3021 | IFS=$as_save_IFS |
| 3022 | |
| 3023 | ;; |
| 3024 | esac |
| 3025 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 3026 | # in which case we are not to be found in the path. |
| 3027 | if test "x$as_myself" = x; then |
| 3028 | as_myself=$0 |
| 3029 | fi |
| 3030 | if test ! -f "$as_myself"; then |
| 3031 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 3032 | exit 1 |
| 3033 | fi |
| 3034 | |
| 3035 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 3036 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 3037 | # suppresses any "Segmentation fault" message there. '((' could |
| 3038 | # trigger a bug in pdksh 5.2.14. |
| 3039 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 3040 | do eval test x\${$as_var+set} = xset \ |
| 3041 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 3042 | done |
| 3043 | PS1='$ ' |
| 3044 | PS2='> ' |
| 3045 | PS4='+ ' |
| 3046 | |
| 3047 | # NLS nuisances. |
| 3048 | LC_ALL=C |
| 3049 | export LC_ALL |
| 3050 | LANGUAGE=C |
| 3051 | export LANGUAGE |
| 3052 | |
| 3053 | # CDPATH. |
| 3054 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 3055 | |
| 3056 | |
| 3057 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 3058 | # ---------------------------------------- |
| 3059 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 3060 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 3061 | # script with STATUS, using 1 if that was 0. |
| 3062 | as_fn_error () |
| 3063 | { |
| 3064 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 3065 | if test "$4"; then |
| 3066 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3067 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 3068 | fi |
| 3069 | $as_echo "$as_me: error: $2" >&2 |
| 3070 | as_fn_exit $as_status |
| 3071 | } # as_fn_error |
| 3072 | |
| 3073 | |
| 3074 | # as_fn_set_status STATUS |
| 3075 | # ----------------------- |
| 3076 | # Set $? to STATUS, without forking. |
| 3077 | as_fn_set_status () |
| 3078 | { |
| 3079 | return $1 |
| 3080 | } # as_fn_set_status |
| 3081 | |
| 3082 | # as_fn_exit STATUS |
| 3083 | # ----------------- |
| 3084 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 3085 | as_fn_exit () |
| 3086 | { |
| 3087 | set +e |
| 3088 | as_fn_set_status $1 |
| 3089 | exit $1 |
| 3090 | } # as_fn_exit |
| 3091 | |
| 3092 | # as_fn_unset VAR |
| 3093 | # --------------- |
| 3094 | # Portably unset VAR. |
| 3095 | as_fn_unset () |
| 3096 | { |
| 3097 | { eval $1=; unset $1;} |
| 3098 | } |
| 3099 | as_unset=as_fn_unset |
| 3100 | # as_fn_append VAR VALUE |
| 3101 | # ---------------------- |
| 3102 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 3103 | # advantage of any shell optimizations that allow amortized linear growth over |
| 3104 | # repeated appends, instead of the typical quadratic growth present in naive |
| 3105 | # implementations. |
| 3106 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 3107 | eval 'as_fn_append () |
| 3108 | { |
| 3109 | eval $1+=\$2 |
| 3110 | }' |
| 3111 | else |
| 3112 | as_fn_append () |
| 3113 | { |
| 3114 | eval $1=\$$1\$2 |
| 3115 | } |
| 3116 | fi # as_fn_append |
| 3117 | |
| 3118 | # as_fn_arith ARG... |
| 3119 | # ------------------ |
| 3120 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 3121 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 3122 | # must be portable across $(()) and expr. |
| 3123 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 3124 | eval 'as_fn_arith () |
| 3125 | { |
| 3126 | as_val=$(( $* )) |
| 3127 | }' |
| 3128 | else |
| 3129 | as_fn_arith () |
| 3130 | { |
| 3131 | as_val=`expr "$@" || test $? -eq 1` |
| 3132 | } |
| 3133 | fi # as_fn_arith |
| 3134 | |
| 3135 | |
| 3136 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 3137 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 3138 | as_expr=expr |
| 3139 | else |
| 3140 | as_expr=false |
| 3141 | fi |
| 3142 | |
| 3143 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 3144 | as_basename=basename |
| 3145 | else |
| 3146 | as_basename=false |
| 3147 | fi |
| 3148 | |
| 3149 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 3150 | as_dirname=dirname |
| 3151 | else |
| 3152 | as_dirname=false |
| 3153 | fi |
| 3154 | |
| 3155 | as_me=`$as_basename -- "$0" || |
| 3156 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 3157 | X"$0" : 'X\(//\)$' \| \ |
| 3158 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 3159 | $as_echo X/"$0" | |
| 3160 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 3161 | s//\1/ |
| 3162 | q |
| 3163 | } |
| 3164 | /^X\/\(\/\/\)$/{ |
| 3165 | s//\1/ |
| 3166 | q |
| 3167 | } |
| 3168 | /^X\/\(\/\).*/{ |
| 3169 | s//\1/ |
| 3170 | q |
| 3171 | } |
| 3172 | s/.*/./; q'` |
| 3173 | |
| 3174 | # Avoid depending upon Character Ranges. |
| 3175 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 3176 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 3177 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 3178 | as_cr_digits='0123456789' |
| 3179 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 3180 | |
| 3181 | ECHO_C= ECHO_N= ECHO_T= |
| 3182 | case `echo -n x` in #((((( |
| 3183 | -n*) |
| 3184 | case `echo 'xy\c'` in |
| 3185 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 3186 | xy) ECHO_C='\c';; |
| 3187 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 3188 | ECHO_T=' ';; |
| 3189 | esac;; |
| 3190 | *) |
| 3191 | ECHO_N='-n';; |
| 3192 | esac |
| 3193 | |
| 3194 | rm -f conf$$ conf$$.exe conf$$.file |
| 3195 | if test -d conf$$.dir; then |
| 3196 | rm -f conf$$.dir/conf$$.file |
| 3197 | else |
| 3198 | rm -f conf$$.dir |
| 3199 | mkdir conf$$.dir 2>/dev/null |
| 3200 | fi |
| 3201 | if (echo >conf$$.file) 2>/dev/null; then |
| 3202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 3203 | as_ln_s='ln -s' |
| 3204 | # ... but there are two gotchas: |
| 3205 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 3206 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 3207 | # In both cases, we have to default to `cp -pR'. |
| 3208 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 3209 | as_ln_s='cp -pR' |
| 3210 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 3211 | as_ln_s=ln |
| 3212 | else |
| 3213 | as_ln_s='cp -pR' |
| 3214 | fi |
| 3215 | else |
| 3216 | as_ln_s='cp -pR' |
| 3217 | fi |
| 3218 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 3219 | rmdir conf$$.dir 2>/dev/null |
| 3220 | |
| 3221 | |
| 3222 | # as_fn_mkdir_p |
| 3223 | # ------------- |
| 3224 | # Create "$as_dir" as a directory, including parents if necessary. |
| 3225 | as_fn_mkdir_p () |
| 3226 | { |
| 3227 | |
| 3228 | case $as_dir in #( |
| 3229 | -*) as_dir=./$as_dir;; |
| 3230 | esac |
| 3231 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 3232 | as_dirs= |
| 3233 | while :; do |
| 3234 | case $as_dir in #( |
| 3235 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 3236 | *) as_qdir=$as_dir;; |
| 3237 | esac |
| 3238 | as_dirs="'$as_qdir' $as_dirs" |
| 3239 | as_dir=`$as_dirname -- "$as_dir" || |
| 3240 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3241 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 3242 | X"$as_dir" : 'X\(//\)$' \| \ |
| 3243 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 3244 | $as_echo X"$as_dir" | |
| 3245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3246 | s//\1/ |
| 3247 | q |
| 3248 | } |
| 3249 | /^X\(\/\/\)[^/].*/{ |
| 3250 | s//\1/ |
| 3251 | q |
| 3252 | } |
| 3253 | /^X\(\/\/\)$/{ |
| 3254 | s//\1/ |
| 3255 | q |
| 3256 | } |
| 3257 | /^X\(\/\).*/{ |
| 3258 | s//\1/ |
| 3259 | q |
| 3260 | } |
| 3261 | s/.*/./; q'` |
| 3262 | test -d "$as_dir" && break |
| 3263 | done |
| 3264 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 3265 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 3266 | |
| 3267 | |
| 3268 | } # as_fn_mkdir_p |
| 3269 | if mkdir -p . 2>/dev/null; then |
| 3270 | as_mkdir_p='mkdir -p "$as_dir"' |
| 3271 | else |
| 3272 | test -d ./-p && rmdir ./-p |
| 3273 | as_mkdir_p=false |
| 3274 | fi |
| 3275 | |
| 3276 | |
| 3277 | # as_fn_executable_p FILE |
| 3278 | # ----------------------- |
| 3279 | # Test if FILE is an executable regular file. |
| 3280 | as_fn_executable_p () |
| 3281 | { |
| 3282 | test -f "$1" && test -x "$1" |
| 3283 | } # as_fn_executable_p |
| 3284 | as_test_x='test -x' |
| 3285 | as_executable_p=as_fn_executable_p |
| 3286 | |
| 3287 | # Sed expression to map a string onto a valid CPP name. |
| 3288 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 3289 | |
| 3290 | # Sed expression to map a string onto a valid variable name. |
| 3291 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 3292 | |
| 3293 | |
| 3294 | exec 6>&1 |
| 3295 | ## ----------------------------------- ## |
| 3296 | ## Main body of $CONFIG_STATUS script. ## |
| 3297 | ## ----------------------------------- ## |
| 3298 | _ASEOF |
| 3299 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 3300 | |
| 3301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3302 | # Save the log message, to keep $0 and so on meaningful, and to |
| 3303 | # report actual input values of CONFIG_FILES etc. instead of their |
| 3304 | # values after options handling. |
| 3305 | ac_log=" |
| 3306 | This file was extended by open_pdks $as_me 1.0, which was |
| 3307 | generated by GNU Autoconf 2.69. Invocation command line was |
| 3308 | |
| 3309 | CONFIG_FILES = $CONFIG_FILES |
| 3310 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 3311 | CONFIG_LINKS = $CONFIG_LINKS |
| 3312 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 3313 | $ $0 $@ |
| 3314 | |
| 3315 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3316 | " |
| 3317 | |
| 3318 | _ACEOF |
| 3319 | |
| 3320 | case $ac_config_files in *" |
| 3321 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 3322 | esac |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3327 | # Files that config.status was made for. |
| 3328 | config_files="$ac_config_files" |
| 3329 | |
| 3330 | _ACEOF |
| 3331 | |
| 3332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3333 | ac_cs_usage="\ |
| 3334 | \`$as_me' instantiates files and other configuration actions |
| 3335 | from templates according to the current configuration. Unless the files |
| 3336 | and actions are specified as TAGs, all are instantiated by default. |
| 3337 | |
| 3338 | Usage: $0 [OPTION]... [TAG]... |
| 3339 | |
| 3340 | -h, --help print this help, then exit |
| 3341 | -V, --version print version number and configuration settings, then exit |
| 3342 | --config print configuration, then exit |
| 3343 | -q, --quiet, --silent |
| 3344 | do not print progress messages |
| 3345 | -d, --debug don't remove temporary files |
| 3346 | --recheck update $as_me by reconfiguring in the same conditions |
| 3347 | --file=FILE[:TEMPLATE] |
| 3348 | instantiate the configuration file FILE |
| 3349 | |
| 3350 | Configuration files: |
| 3351 | $config_files |
| 3352 | |
| 3353 | Report bugs to <github.com/RTimothyEdwards/open_pdks>." |
| 3354 | |
| 3355 | _ACEOF |
| 3356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3357 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 3358 | ac_cs_version="\\ |
| 3359 | open_pdks config.status 1.0 |
| 3360 | configured by $0, generated by GNU Autoconf 2.69, |
| 3361 | with options \\"\$ac_cs_config\\" |
| 3362 | |
| 3363 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 3364 | This config.status script is free software; the Free Software Foundation |
| 3365 | gives unlimited permission to copy, distribute and modify it." |
| 3366 | |
| 3367 | ac_pwd='$ac_pwd' |
| 3368 | srcdir='$srcdir' |
| 3369 | test -n "\$AWK" || AWK=awk |
| 3370 | _ACEOF |
| 3371 | |
| 3372 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3373 | # The default lists apply if the user does not specify any file. |
| 3374 | ac_need_defaults=: |
| 3375 | while test $# != 0 |
| 3376 | do |
| 3377 | case $1 in |
| 3378 | --*=?*) |
| 3379 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3380 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 3381 | ac_shift=: |
| 3382 | ;; |
| 3383 | --*=) |
| 3384 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3385 | ac_optarg= |
| 3386 | ac_shift=: |
| 3387 | ;; |
| 3388 | *) |
| 3389 | ac_option=$1 |
| 3390 | ac_optarg=$2 |
| 3391 | ac_shift=shift |
| 3392 | ;; |
| 3393 | esac |
| 3394 | |
| 3395 | case $ac_option in |
| 3396 | # Handling of the options. |
| 3397 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3398 | ac_cs_recheck=: ;; |
| 3399 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 3400 | $as_echo "$ac_cs_version"; exit ;; |
| 3401 | --config | --confi | --conf | --con | --co | --c ) |
| 3402 | $as_echo "$ac_cs_config"; exit ;; |
| 3403 | --debug | --debu | --deb | --de | --d | -d ) |
| 3404 | debug=: ;; |
| 3405 | --file | --fil | --fi | --f ) |
| 3406 | $ac_shift |
| 3407 | case $ac_optarg in |
| 3408 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3409 | '') as_fn_error $? "missing file argument" ;; |
| 3410 | esac |
| 3411 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 3412 | ac_need_defaults=false;; |
| 3413 | --he | --h | --help | --hel | -h ) |
| 3414 | $as_echo "$ac_cs_usage"; exit ;; |
| 3415 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3416 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 3417 | ac_cs_silent=: ;; |
| 3418 | |
| 3419 | # This is an error. |
| 3420 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 3421 | Try \`$0 --help' for more information." ;; |
| 3422 | |
| 3423 | *) as_fn_append ac_config_targets " $1" |
| 3424 | ac_need_defaults=false ;; |
| 3425 | |
| 3426 | esac |
| 3427 | shift |
| 3428 | done |
| 3429 | |
| 3430 | ac_configure_extra_args= |
| 3431 | |
| 3432 | if $ac_cs_silent; then |
| 3433 | exec 6>/dev/null |
| 3434 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 3435 | fi |
| 3436 | |
| 3437 | _ACEOF |
| 3438 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3439 | if \$ac_cs_recheck; then |
| 3440 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 3441 | shift |
| 3442 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 3443 | CONFIG_SHELL='$SHELL' |
| 3444 | export CONFIG_SHELL |
| 3445 | exec "\$@" |
| 3446 | fi |
| 3447 | |
| 3448 | _ACEOF |
| 3449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3450 | exec 5>>config.log |
| 3451 | { |
| 3452 | echo |
| 3453 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 3454 | ## Running $as_me. ## |
| 3455 | _ASBOX |
| 3456 | $as_echo "$ac_log" |
| 3457 | } >&5 |
| 3458 | |
| 3459 | _ACEOF |
| 3460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3461 | _ACEOF |
| 3462 | |
| 3463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3464 | |
| 3465 | # Handling of arguments. |
| 3466 | for ac_config_target in $ac_config_targets |
| 3467 | do |
| 3468 | case $ac_config_target in |
| 3469 | "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; |
| 3470 | |
| 3471 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 3472 | esac |
| 3473 | done |
| 3474 | |
| 3475 | |
| 3476 | # If the user did not use the arguments to specify the items to instantiate, |
| 3477 | # then the envvar interface is used. Set only those that are not. |
| 3478 | # We use the long form for the default assignment because of an extremely |
| 3479 | # bizarre bug on SunOS 4.1.3. |
| 3480 | if $ac_need_defaults; then |
| 3481 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 3482 | fi |
| 3483 | |
| 3484 | # Have a temporary directory for convenience. Make it in the build tree |
| 3485 | # simply because there is no reason against having it here, and in addition, |
| 3486 | # creating and moving files from /tmp can sometimes cause problems. |
| 3487 | # Hook for its removal unless debugging. |
| 3488 | # Note that there is a small window in which the directory will not be cleaned: |
| 3489 | # after its creation but before its name has been assigned to `$tmp'. |
| 3490 | $debug || |
| 3491 | { |
| 3492 | tmp= ac_tmp= |
| 3493 | trap 'exit_status=$? |
| 3494 | : "${ac_tmp:=$tmp}" |
| 3495 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 3496 | ' 0 |
| 3497 | trap 'as_fn_exit 1' 1 2 13 15 |
| 3498 | } |
| 3499 | # Create a (secure) tmp directory for tmp files. |
| 3500 | |
| 3501 | { |
| 3502 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 3503 | test -d "$tmp" |
| 3504 | } || |
| 3505 | { |
| 3506 | tmp=./conf$$-$RANDOM |
| 3507 | (umask 077 && mkdir "$tmp") |
| 3508 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 3509 | ac_tmp=$tmp |
| 3510 | |
| 3511 | # Set up the scripts for CONFIG_FILES section. |
| 3512 | # No need to generate them if there are no CONFIG_FILES. |
| 3513 | # This happens for instance with `./config.status config.h'. |
| 3514 | if test -n "$CONFIG_FILES"; then |
| 3515 | |
| 3516 | |
| 3517 | ac_cr=`echo X | tr X '\015'` |
| 3518 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 3519 | # But we know of no other shell where ac_cr would be empty at this |
| 3520 | # point, so we can use a bashism as a fallback. |
| 3521 | if test "x$ac_cr" = x; then |
| 3522 | eval ac_cr=\$\'\\r\' |
| 3523 | fi |
| 3524 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 3525 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 3526 | ac_cs_awk_cr='\\r' |
| 3527 | else |
| 3528 | ac_cs_awk_cr=$ac_cr |
| 3529 | fi |
| 3530 | |
| 3531 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 3532 | _ACEOF |
| 3533 | |
| 3534 | |
| 3535 | { |
| 3536 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 3537 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 3538 | echo "_ACEOF" |
| 3539 | } >conf$$subs.sh || |
| 3540 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3541 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 3542 | ac_delim='%!_!# ' |
| 3543 | for ac_last_try in false false false false false :; do |
| 3544 | . ./conf$$subs.sh || |
| 3545 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3546 | |
| 3547 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 3548 | if test $ac_delim_n = $ac_delim_num; then |
| 3549 | break |
| 3550 | elif $ac_last_try; then |
| 3551 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3552 | else |
| 3553 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 3554 | fi |
| 3555 | done |
| 3556 | rm -f conf$$subs.sh |
| 3557 | |
| 3558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3559 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 3560 | _ACEOF |
| 3561 | sed -n ' |
| 3562 | h |
| 3563 | s/^/S["/; s/!.*/"]=/ |
| 3564 | p |
| 3565 | g |
| 3566 | s/^[^!]*!// |
| 3567 | :repl |
| 3568 | t repl |
| 3569 | s/'"$ac_delim"'$// |
| 3570 | t delim |
| 3571 | :nl |
| 3572 | h |
| 3573 | s/\(.\{148\}\)..*/\1/ |
| 3574 | t more1 |
| 3575 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 3576 | p |
| 3577 | n |
| 3578 | b repl |
| 3579 | :more1 |
| 3580 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3581 | p |
| 3582 | g |
| 3583 | s/.\{148\}// |
| 3584 | t nl |
| 3585 | :delim |
| 3586 | h |
| 3587 | s/\(.\{148\}\)..*/\1/ |
| 3588 | t more2 |
| 3589 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 3590 | p |
| 3591 | b |
| 3592 | :more2 |
| 3593 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3594 | p |
| 3595 | g |
| 3596 | s/.\{148\}// |
| 3597 | t delim |
| 3598 | ' <conf$$subs.awk | sed ' |
| 3599 | /^[^""]/{ |
| 3600 | N |
| 3601 | s/\n// |
| 3602 | } |
| 3603 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3604 | rm -f conf$$subs.awk |
| 3605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3606 | _ACAWK |
| 3607 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 3608 | for (key in S) S_is_set[key] = 1 |
| 3609 | FS = "" |
| 3610 | |
| 3611 | } |
| 3612 | { |
| 3613 | line = $ 0 |
| 3614 | nfields = split(line, field, "@") |
| 3615 | substed = 0 |
| 3616 | len = length(field[1]) |
| 3617 | for (i = 2; i < nfields; i++) { |
| 3618 | key = field[i] |
| 3619 | keylen = length(key) |
| 3620 | if (S_is_set[key]) { |
| 3621 | value = S[key] |
| 3622 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 3623 | len += length(value) + length(field[++i]) |
| 3624 | substed = 1 |
| 3625 | } else |
| 3626 | len += 1 + keylen |
| 3627 | } |
| 3628 | |
| 3629 | print line |
| 3630 | } |
| 3631 | |
| 3632 | _ACAWK |
| 3633 | _ACEOF |
| 3634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3635 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 3636 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 3637 | else |
| 3638 | cat |
| 3639 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 3640 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 3641 | _ACEOF |
| 3642 | |
| 3643 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 3644 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 3645 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 3646 | # (actually we leave an empty line to preserve line numbers). |
| 3647 | if test "x$srcdir" = x.; then |
| 3648 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 3649 | h |
| 3650 | s/// |
| 3651 | s/^/:/ |
| 3652 | s/[ ]*$/:/ |
| 3653 | s/:\$(srcdir):/:/g |
| 3654 | s/:\${srcdir}:/:/g |
| 3655 | s/:@srcdir@:/:/g |
| 3656 | s/^:*// |
| 3657 | s/:*$// |
| 3658 | x |
| 3659 | s/\(=[ ]*\).*/\1/ |
| 3660 | G |
| 3661 | s/\n// |
| 3662 | s/^[^=]*=[ ]*$// |
| 3663 | }' |
| 3664 | fi |
| 3665 | |
| 3666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3667 | fi # test -n "$CONFIG_FILES" |
| 3668 | |
| 3669 | |
| 3670 | eval set X " :F $CONFIG_FILES " |
| 3671 | shift |
| 3672 | for ac_tag |
| 3673 | do |
| 3674 | case $ac_tag in |
| 3675 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 3676 | esac |
| 3677 | case $ac_mode$ac_tag in |
| 3678 | :[FHL]*:*);; |
| 3679 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 3680 | :[FH]-) ac_tag=-:-;; |
| 3681 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 3682 | esac |
| 3683 | ac_save_IFS=$IFS |
| 3684 | IFS=: |
| 3685 | set x $ac_tag |
| 3686 | IFS=$ac_save_IFS |
| 3687 | shift |
| 3688 | ac_file=$1 |
| 3689 | shift |
| 3690 | |
| 3691 | case $ac_mode in |
| 3692 | :L) ac_source=$1;; |
| 3693 | :[FH]) |
| 3694 | ac_file_inputs= |
| 3695 | for ac_f |
| 3696 | do |
| 3697 | case $ac_f in |
| 3698 | -) ac_f="$ac_tmp/stdin";; |
| 3699 | *) # Look for the file first in the build tree, then in the source tree |
| 3700 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 3701 | # because $ac_f cannot contain `:'. |
| 3702 | test -f "$ac_f" || |
| 3703 | case $ac_f in |
| 3704 | [\\/$]*) false;; |
| 3705 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 3706 | esac || |
| 3707 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 3708 | esac |
| 3709 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 3710 | as_fn_append ac_file_inputs " '$ac_f'" |
| 3711 | done |
| 3712 | |
| 3713 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 3714 | # use $as_me), people would be surprised to read: |
| 3715 | # /* config.h. Generated by config.status. */ |
| 3716 | configure_input='Generated from '` |
| 3717 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 3718 | `' by configure.' |
| 3719 | if test x"$ac_file" != x-; then |
| 3720 | configure_input="$ac_file. $configure_input" |
| 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 3722 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 3723 | fi |
| 3724 | # Neutralize special characters interpreted by sed in replacement strings. |
| 3725 | case $configure_input in #( |
| 3726 | *\&* | *\|* | *\\* ) |
| 3727 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 3728 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 3729 | *) ac_sed_conf_input=$configure_input;; |
| 3730 | esac |
| 3731 | |
| 3732 | case $ac_tag in |
| 3733 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 3734 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 3735 | esac |
| 3736 | ;; |
| 3737 | esac |
| 3738 | |
| 3739 | ac_dir=`$as_dirname -- "$ac_file" || |
| 3740 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3741 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 3742 | X"$ac_file" : 'X\(//\)$' \| \ |
| 3743 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 3744 | $as_echo X"$ac_file" | |
| 3745 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3746 | s//\1/ |
| 3747 | q |
| 3748 | } |
| 3749 | /^X\(\/\/\)[^/].*/{ |
| 3750 | s//\1/ |
| 3751 | q |
| 3752 | } |
| 3753 | /^X\(\/\/\)$/{ |
| 3754 | s//\1/ |
| 3755 | q |
| 3756 | } |
| 3757 | /^X\(\/\).*/{ |
| 3758 | s//\1/ |
| 3759 | q |
| 3760 | } |
| 3761 | s/.*/./; q'` |
| 3762 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 3763 | ac_builddir=. |
| 3764 | |
| 3765 | case "$ac_dir" in |
| 3766 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3767 | *) |
| 3768 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 3769 | # A ".." for each directory in $ac_dir_suffix. |
| 3770 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 3771 | case $ac_top_builddir_sub in |
| 3772 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3773 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 3774 | esac ;; |
| 3775 | esac |
| 3776 | ac_abs_top_builddir=$ac_pwd |
| 3777 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 3778 | # for backward compatibility: |
| 3779 | ac_top_builddir=$ac_top_build_prefix |
| 3780 | |
| 3781 | case $srcdir in |
| 3782 | .) # We are building in place. |
| 3783 | ac_srcdir=. |
| 3784 | ac_top_srcdir=$ac_top_builddir_sub |
| 3785 | ac_abs_top_srcdir=$ac_pwd ;; |
| 3786 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 3787 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 3788 | ac_top_srcdir=$srcdir |
| 3789 | ac_abs_top_srcdir=$srcdir ;; |
| 3790 | *) # Relative name. |
| 3791 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 3792 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 3793 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 3794 | esac |
| 3795 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 3796 | |
| 3797 | |
| 3798 | case $ac_mode in |
| 3799 | :F) |
| 3800 | # |
| 3801 | # CONFIG_FILE |
| 3802 | # |
| 3803 | |
| 3804 | _ACEOF |
| 3805 | |
| 3806 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3807 | # If the template does not know about datarootdir, expand it. |
| 3808 | # FIXME: This hack should be removed a few years after 2.60. |
| 3809 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 3810 | ac_sed_dataroot=' |
| 3811 | /datarootdir/ { |
| 3812 | p |
| 3813 | q |
| 3814 | } |
| 3815 | /@datadir@/p |
| 3816 | /@docdir@/p |
| 3817 | /@infodir@/p |
| 3818 | /@localedir@/p |
| 3819 | /@mandir@/p' |
| 3820 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 3821 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 3822 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 3824 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 3825 | _ACEOF |
| 3826 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3827 | ac_datarootdir_hack=' |
| 3828 | s&@datadir@&$datadir&g |
| 3829 | s&@docdir@&$docdir&g |
| 3830 | s&@infodir@&$infodir&g |
| 3831 | s&@localedir@&$localedir&g |
| 3832 | s&@mandir@&$mandir&g |
| 3833 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 3834 | esac |
| 3835 | _ACEOF |
| 3836 | |
| 3837 | # Neutralize VPATH when `$srcdir' = `.'. |
| 3838 | # Shell code in configure.ac might set extrasub. |
| 3839 | # FIXME: do we really want to maintain this feature? |
| 3840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3841 | ac_sed_extra="$ac_vpsub |
| 3842 | $extrasub |
| 3843 | _ACEOF |
| 3844 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3845 | :t |
| 3846 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 3847 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 3848 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 3849 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 3850 | s&@srcdir@&$ac_srcdir&;t t |
| 3851 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 3852 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 3853 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 3854 | s&@builddir@&$ac_builddir&;t t |
| 3855 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 3856 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 3857 | $ac_datarootdir_hack |
| 3858 | " |
| 3859 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 3860 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 3861 | |
| 3862 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 3863 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 3864 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 3865 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 3867 | which seems to be undefined. Please make sure it is defined" >&5 |
| 3868 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 3869 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 3870 | |
| 3871 | rm -f "$ac_tmp/stdin" |
| 3872 | case $ac_file in |
| 3873 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 3874 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 3875 | esac \ |
| 3876 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 3877 | ;; |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | esac |
| 3882 | |
| 3883 | done # for ac_tag |
| 3884 | |
| 3885 | |
| 3886 | as_fn_exit 0 |
| 3887 | _ACEOF |
| 3888 | ac_clean_files=$ac_clean_files_save |
| 3889 | |
| 3890 | test $ac_write_fail = 0 || |
| 3891 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 3892 | |
| 3893 | |
| 3894 | # configure is writing to config.log, and then calls config.status. |
| 3895 | # config.status does its own redirection, appending to config.log. |
| 3896 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 3897 | # by configure, so config.status won't be able to write to it; its |
| 3898 | # output is simply discarded. So we exec the FD to /dev/null, |
| 3899 | # effectively closing config.log, so it can be properly (re)opened and |
| 3900 | # appended to by config.status. When coming back to configure, we |
| 3901 | # need to make the FD available again. |
| 3902 | if test "$no_create" != yes; then |
| 3903 | ac_cs_success=: |
| 3904 | ac_config_status_args= |
| 3905 | test "$silent" = yes && |
| 3906 | ac_config_status_args="$ac_config_status_args --quiet" |
| 3907 | exec 5>/dev/null |
| 3908 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 3909 | exec 5>>config.log |
| 3910 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 3911 | # would make configure fail if this is the last instruction. |
| 3912 | $ac_cs_success || as_fn_exit 1 |
| 3913 | fi |
| 3914 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 3916 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 3917 | fi |
| 3918 | |
| 3919 | |
| 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5 |
| 3921 | $as_echo "Build configured successfully" >&6; } |