configure 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #!/bin/sh
  2. echo '---------------------------------------------------------------------'
  3. echo 'SoftEther VPN for Unix'
  4. echo
  5. echo 'Copyright (c) SoftEther VPN Project at University of Tsukuba, Japan.'
  6. echo 'Copyright (c) Daiyuu Nobori. All Rights Reserved.'
  7. echo
  8. echo 'This program is free software; you can redistribute it and/or'
  9. echo 'modify it under the terms of the GNU General Public License'
  10. echo 'version 2 as published by the Free Software Foundation.'
  11. echo
  12. echo 'Read and understand README.TXT, LICENSE.TXT and WARNING.TXT before use.'
  13. echo '---------------------------------------------------------------------'
  14. echo
  15. echo 'Welcome to the corner-cutting configure script !'
  16. echo
  17. echo 'Select your operating system below:'
  18. echo ' 1: Linux'
  19. echo ' 2: FreeBSD'
  20. echo ' 3: Solaris'
  21. echo ' 4: Mac OS X'
  22. echo
  23. echo -n 'Which is your operating system (1 - 4) ? : '
  24. read TMP
  25. echo
  26. OS=""
  27. if test "$TMP" = "1"
  28. then
  29. OS="linux"
  30. fi
  31. if test "$TMP" = "2"
  32. then
  33. OS="freebsd"
  34. fi
  35. if test "$TMP" = "3"
  36. then
  37. OS="solaris"
  38. fi
  39. if test "$TMP" = "4"
  40. then
  41. OS="macos"
  42. fi
  43. if test "$OS" = ""
  44. then
  45. echo "Wrong number."
  46. exit 1
  47. fi
  48. echo 'Select your CPU bits below:'
  49. echo ' 1: 32-bit'
  50. echo ' 2: 64-bit'
  51. echo
  52. echo -n 'Which is the type of your CPU (1 - 2) ? : '
  53. read TMP
  54. echo
  55. CPU=""
  56. if test "$TMP" = "1"
  57. then
  58. CPU="32bit"
  59. fi
  60. if test "$TMP" = "2"
  61. then
  62. CPU="64bit"
  63. fi
  64. if test "$CPU" = ""
  65. then
  66. echo "Wrong number."
  67. exit 1
  68. fi
  69. cp src/makefiles/${OS}_${CPU}.mak Makefile
  70. echo "The Makefile is generated. Run 'make' to build SoftEther VPN."