Fix to work with older versions of mysql_config that don't support --include. Also add mysql version check.
Fix to work with older versions of mysql_config that don't support --include.
Also add mysql version check.

--HG--
extra : convert_revision : 36b6174ed1c64e8c5516f6adee71f27e068ceca2

rjschof/gem5,austinharris/gem5-riscv,gem5/gem5,aclifton/cpeg853-gem5,HwisooSo/gemV-update,gedare/gem5,KuroeKurose/gem5,gedare/gem5,austinharris/gem5-riscv,samueldotj/TeeRISC-Simulator,joerocklin/gem5,rjschof/gem5,KuroeKurose/gem5,rjschof/gem5,markoshorro/gem5,SanchayanMaity/gem5,sobercoder/gem5,kaiyuanl/gem5,aclifton/cpeg853-gem5,qizenguf/MLC-STT,powerjg/gem5-ci-test,powerjg/gem5-ci-test,rjschof/gem5,Weil0ng/gem5,KuroeKurose/gem5,zlfben/gem5,samueldotj/TeeRISC-Simulator,gedare/gem5,markoshorro/gem5,briancoutinho0905/2dsampling,gem5/gem5,KuroeKurose/gem5,zlfben/gem5,gem5/gem5,joerocklin/gem5,samueldotj/TeeRISC-Simulator,rallylee/gem5,qizenguf/MLC-STT,kaiyuanl/gem5,gedare/gem5,yb-kim/gemV,TUD-OS/gem5-dtu,Weil0ng/gem5,briancoutinho0905/2dsampling,rallylee/gem5,SanchayanMaity/gem5,rjschof/gem5,markoshorro/gem5,austinharris/gem5-riscv,austinharris/gem5-riscv,gem5/gem5,samueldotj/TeeRISC-Simulator,zlfben/gem5,Weil0ng/gem5,SanchayanMaity/gem5,sobercoder/gem5,cancro7/gem5,HwisooSo/gemV-update,markoshorro/gem5,rallylee/gem5,briancoutinho0905/2dsampling,Weil0ng/gem5,zlfben/gem5,rallylee/gem5,aclifton/cpeg853-gem5,qizenguf/MLC-STT,TUD-OS/gem5-dtu,rallylee/gem5,powerjg/gem5-ci-test,cancro7/gem5,gem5/gem5,samueldotj/TeeRISC-Simulator,yb-kim/gemV,briancoutinho0905/2dsampling,powerjg/gem5-ci-test,cancro7/gem5,kaiyuanl/gem5,rallylee/gem5,SanchayanMaity/gem5,austinharris/gem5-riscv,TUD-OS/gem5-dtu,zlfben/gem5,rjschof/gem5,aclifton/cpeg853-gem5,markoshorro/gem5,KuroeKurose/gem5,cancro7/gem5,powerjg/gem5-ci-test,cancro7/gem5,markoshorro/gem5,briancoutinho0905/2dsampling,joerocklin/gem5,powerjg/gem5-ci-test,austinharris/gem5-riscv,sobercoder/gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,HwisooSo/gemV-update,qizenguf/MLC-STT,gem5/gem5,gem5/gem5,HwisooSo/gemV-update,joerocklin/gem5,zlfben/gem5,TUD-OS/gem5-dtu,joerocklin/gem5,rallylee/gem5,yb-kim/gemV,yb-kim/gemV,kaiyuanl/gem5,sobercoder/gem5,sobercoder/gem5,joerocklin/gem5,kaiyuanl/gem5,TUD-OS/gem5-dtu,samueldotj/TeeRISC-Simulator,gedare/gem5,Weil0ng/gem5,HwisooSo/gemV-update,HwisooSo/gemV-update,qizenguf/MLC-STT,TUD-OS/gem5-dtu,rjschof/gem5,sobercoder/gem5,briancoutinho0905/2dsampling,Weil0ng/gem5,joerocklin/gem5,yb-kim/gemV,gedare/gem5,yb-kim/gemV,yb-kim/gemV,austinharris/gem5-riscv,sobercoder/gem5,markoshorro/gem5,kaiyuanl/gem5,cancro7/gem5,SanchayanMaity/gem5,cancro7/gem5,aclifton/cpeg853-gem5,zlfben/gem5,samueldotj/TeeRISC-Simulator,TUD-OS/gem5-dtu,yb-kim/gemV,qizenguf/MLC-STT,aclifton/cpeg853-gem5,briancoutinho0905/2dsampling,SanchayanMaity/gem5,powerjg/gem5-ci-test,gedare/gem5,joerocklin/gem5,qizenguf/MLC-STT,Weil0ng/gem5,kaiyuanl/gem5,HwisooSo/gemV-update,SanchayanMaity/gem5,KuroeKurose/gem5